/* ============================================================
   TSUTSUMU - お香作り体験スタジオ
   ナチュラル・温かみデザイン
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F5F0EB;
  --bg-white: #FFFFFF;
  --text: #3C3226;
  --text-light: #6B5E52;
  --accent: #7B8B6F;
  --accent-light: #A3B296;
  --gold: #C4A882;
  --gold-light: #D9C4A8;
  --border: #E8E0D8;
  --error: #C45B5B;
  --success: #5B8C5A;
  --shadow: 0 2px 20px rgba(60, 50, 38, 0.08);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 235, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link--cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--accent-light);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.lang-btn:hover:not(.active) {
  border-color: var(--text);
  color: var(--text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #E8DFD4 0%, #D4C9BC 40%, #B8AFA4 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(123, 139, 111, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 12px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Button */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 1px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123, 139, 111, 0.3);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section--about {
  background: var(--bg-white);
}

.section--menu {
  background: var(--bg);
}

.section--access {
  background: var(--bg-white);
}

.section--reservation {
  background: var(--bg);
}

.section-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 50px;
}

/* --- About --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 2;
}

.about-image-placeholder {
  background: linear-gradient(135deg, #D4C9BC, #B8AFA4);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 14px;
  letter-spacing: 2px;
}

/* --- Menu --- */
.menu-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.menu-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(60, 50, 38, 0.12);
}

.menu-card-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--gold);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

.menu-card-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.menu-card-desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.menu-card-details {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.menu-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.menu-detail-label {
  font-size: 13px;
  color: var(--text-light);
}

.menu-detail-value {
  font-size: 14px;
  font-weight: 500;
}

.menu-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

/* --- Access --- */
.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.access-list dt {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 20px;
}

.access-list dt:first-child {
  margin-top: 0;
}

.access-list dd {
  font-size: 15px;
  margin-top: 4px;
}

/* --- Reservation Form --- */
.reservation-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5E52' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 139, 111, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
}

.form-error {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
}

.form-group.has-error .form-error {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Checkbox */
.form-group--checkbox {
  margin-top: 8px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: var(--bg);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '\2713';
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

/* Price Display */
.price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin: 16px 0 24px;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.price-display span:first-child {
  font-size: 15px;
  font-weight: 500;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Form States */
.form-loading {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-loading p {
  color: var(--text-light);
  font-size: 14px;
}

.form-success {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-light);
  font-size: 14px;
}

.form-error-message {
  text-align: center;
  padding: 20px;
  background: #FFF0F0;
  border-radius: 8px;
  margin-top: 16px;
}

.form-error-message p {
  color: var(--error);
  font-size: 14px;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-info p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(245, 240, 235, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }

  .lang-switcher {
    order: -1;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: 8px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .menu-cards {
    grid-template-columns: 1fr;
  }

  .access-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .reservation-form {
    padding: 30px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .menu-card {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    letter-spacing: 6px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }
}
