/* ============================================================
   Château de Montfrin — Shared Design System
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --gold:        #b8953e;
  --gold-light:  #d4b76a;
  --gold-pale:   #f0e6cc;
  --cream:       #faf8f4;
  --cream-dark:  #f2ede4;
  --charcoal:    #1a1a18;
  --text:        #2c2b28;
  --text-light:  #6b6860;
  --text-faint:  #9c988e;
  --olive:       #5c6b3c;
  --olive-dark:  #3d4728;
  --white:       #ffffff;
  --line:        rgba(184, 149, 62, 0.18);

  /* Type */
  --serif:    'Cormorant Garamond', 'Noto Serif JP', serif; /* 欧文ディスプレイ＋和文見出し（明朝） */
  --jp-serif: 'Noto Serif JP', serif;                       /* 和文の見出し・商品名（明朝） */
  --jp:       'Outfit', 'Noto Sans JP', sans-serif;         /* 和文の本文（ゴシック・可読性重視） */
  --sans:     'Outfit', 'Noto Sans JP', sans-serif;         /* ナビ・ラベル・UI */

  /* Rhythm — generous, luxury spacing */
  --section-y: clamp(7rem, 14vw, 14rem);
  --gutter:    clamp(1.5rem, 6vw, 8rem);
  --maxw:      1280px;
}

html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Typographic primitives ── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.display em { font-style: italic; color: var(--gold); }
.lead {
  font-family: var(--jp);
  font-weight: 300;
  line-height: 2.4;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

/* ── Layout helpers ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 3.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: background .5s ease, color .5s ease, border-color .5s ease;
}
.btn:hover { background: var(--gold); color: var(--cream); }
.btn--dark { border-color: rgba(184,149,62,.45); }
.btn--solid { background: var(--gold); color: var(--cream); }
.btn--solid:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* underline text-link */
.txtlink {
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: .8rem;
  transition: gap .35s ease;
}
.txtlink .arrow { transition: transform .35s ease; }
.txtlink:hover { gap: 1.2rem; }

/* ── Divider ── */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
}
.divider .line { flex: 0 0 64px; height: 1px; background: var(--gold-light); opacity: .45; }
.divider .diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ── Navigation ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem var(--gutter);
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(184, 149, 62, 0.08);
  transition: padding .4s ease, background .4s ease;
}
#nav.scrolled { padding: 1rem var(--gutter); background: rgba(250, 248, 244, 0.96); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--charcoal);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 2.3rem; align-items: center; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color .3s;
}
.nav-links a:not(.nav-order)::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .4s ease;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:not(.nav-order):hover::after { width: 100%; }
.nav-links a.active { color: var(--charcoal); }
.nav-links a.active:not(.nav-order)::after { width: 100%; }

.nav-order {
  padding: .6rem 1.7rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  transition: background .3s ease, color .3s ease;
}
.nav-order:hover { background: var(--gold); color: var(--cream) !important; }

/* Bilingual nav labels (English + Japanese) */
.nav-links > a:not(.nav-order), .nav-dd__btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.1;
}
.nav-ja {
  font-family: var(--sans); font-size: .54rem; font-weight: 300; letter-spacing: .12em;
  text-transform: none; color: var(--text-faint); transition: color .3s; white-space: nowrap;
}
.nav-links a:hover .nav-ja,
.nav-dd:hover .nav-dd__btn .nav-ja,
.nav-dd:focus-within .nav-dd__btn .nav-ja,
.nav-dd__btn.active .nav-ja,
.nav-links a.active .nav-ja { color: var(--gold); }
.nav-drawer a .drawer-ja {
  display: block; font-family: var(--jp); font-size: .82rem; font-weight: 300;
  letter-spacing: .1em; color: var(--text-light); margin-top: 5px;
}

/* Dropdown (About) */
.nav-dd { position: relative; }
.nav-dd__btn {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 300;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light);
  background: none; border: none; cursor: pointer; padding: 3px 0;
  position: relative; transition: color .3s;
}
.nav-dd__btn::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .4s ease;
}
.nav-dd:hover .nav-dd__btn, .nav-dd:focus-within .nav-dd__btn, .nav-dd__btn.active { color: var(--charcoal); }
.nav-dd:hover .nav-dd__btn::after, .nav-dd:focus-within .nav-dd__btn::after, .nav-dd__btn.active::after { width: 100%; }
.nav-dd__menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--cream); border: 1px solid var(--line);
  padding: .6rem 0; min-width: 13rem;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s;
  box-shadow: 0 16px 40px rgba(26,26,24,.08);
}
.nav-dd:hover .nav-dd__menu, .nav-dd:focus-within .nav-dd__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dd__menu a {
  display: block; font-family: var(--jp); font-size: .78rem; font-weight: 300;
  letter-spacing: .04em; color: var(--text-light); text-decoration: none;
  padding: .7rem 1.6rem; text-transform: none; transition: background .25s, color .25s;
}
.nav-dd__menu a::after { display: none; }
.nav-dd__menu a:hover { background: var(--cream-dark); color: var(--gold); }

/* Drawer sub-items */
.nav-drawer__label {
  font-family: var(--sans); font-size: .58rem; font-weight: 300;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin-top: .4rem;
}
.nav-drawer a.nav-drawer__sub { font-family: var(--jp); font-size: 1rem; color: var(--text-light); }

/* Mobile toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; z-index: 110; }
.menu-toggle span { display: block; width: 24px; height: 1px; background: var(--charcoal); margin: 6px 0; transition: .35s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 105;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.8rem;
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease;
}
.nav-drawer.open { opacity: 1; visibility: visible; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--charcoal);
  text-decoration: none;
  text-align: center;
}
.nav-drawer a.is-cta { margin-top: 1rem; }

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) 3rem;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 4rem; flex-wrap: wrap;
  margin-bottom: 5rem;
}
.footer-brand .nav-logo { color: var(--cream); }
.footer-brand p {
  font-family: var(--jp);
  font-size: 0.74rem; font-weight: 200; line-height: 2;
  color: rgba(250,248,244,.4);
  margin-top: 1.2rem; max-width: 22rem;
}
.footer-cols { display: flex; gap: clamp(2.5rem, 5vw, 5rem); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.58rem; font-weight: 300; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.5rem;
}
.footer-col a {
  display: block;
  font-family: var(--jp);
  font-size: 0.78rem; font-weight: 200;
  color: rgba(250,248,244,.55); text-decoration: none;
  margin-bottom: .95rem; transition: color .3s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-contact p {
  font-family: var(--jp);
  font-size: 0.74rem; font-weight: 200; line-height: 2;
  color: rgba(250,248,244,.5);
}
.footer-bottom {
  border-top: 1px solid rgba(250,248,244,.07);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.64rem; font-weight: 200; color: rgba(250,248,244,.25); letter-spacing: .05em; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a {
  font-size: 0.62rem; font-weight: 200; color: rgba(250,248,244,.25);
  text-decoration: none; letter-spacing: .05em; transition: color .3s;
}
.footer-legal a:hover { color: rgba(250,248,244,.6); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .footer-top { flex-direction: column; gap: 3rem; }
  .footer-cols { gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
