/* 月彩 Tsukisai — 箱根仙石原離れ宿 */
/* Design tokens */
:root {
  --ink: #1B2A3E;           /* 深紺 — fukakon */
  --ink-2: #0F1925;         /* deeper night */
  --ink-3: #283B53;         /* smoke ink */
  --moon: #F1EBD8;          /* 月白 — tsukishiro */
  --moon-2: #E8DFC5;        /* aged paper */
  --moon-3: #FBF7EB;        /* paper white */
  --gold: #B9986A;          /* 金 — kin */
  --gold-2: #8F7349;        /* deep gold */
  --gold-3: #D4B884;        /* light gold */
  --sumi: #0A0F17;          /* 墨 */
  --ash: #6B7483;           /* muted */
  --ash-2: #9AA2B0;
  --line: rgba(185,152,106,0.28);
  --line-2: rgba(241,235,216,0.14);

  --serif-jp: "Shippori Mincho B1", "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --serif-en: "Cormorant Garamond", "Playfair Display", "EB Garamond", serif;
  --sans-jp: "Shippori Mincho B1", "Noto Serif JP", serif;
  --mono: "Cormorant Garamond", serif;

  --pad: clamp(24px, 4vw, 72px);
  --col: min(1320px, 92vw);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--moon-3);
  color: var(--ink);
  font-family: var(--serif-jp);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }

/* Typography scales */
.en { font-family: var(--serif-en); letter-spacing: 0.24em; font-weight: 400; font-style: italic; }
.en-up { font-family: var(--serif-en); letter-spacing: 0.32em; text-transform: uppercase; font-style: normal; font-weight: 400; }
.vert { writing-mode: vertical-rl; letter-spacing: 0.2em; }

h1, h2, h3, h4 { font-weight: 400; margin: 0; letter-spacing: 0.08em; }
p { margin: 0; }

/* Shared chrome — top nav */
.chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  transition: background 600ms ease, color 600ms ease, border-color 600ms ease, backdrop-filter 600ms ease;
  border-bottom: 1px solid transparent;
}
.chrome.on-dark { color: var(--moon); }
.chrome.on-light { color: var(--ink); }
.chrome.scrolled {
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.chrome.scrolled.force-dark {
  background: rgba(15, 25, 37, 0.82);
  color: var(--moon);
  border-bottom-color: var(--line-2);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  justify-self: start;
}
.brand .mark {
  width: 34px; height: 34px; position: relative;
}
.brand .name-jp {
  font-size: 20px; letter-spacing: 0.4em; font-weight: 400;
}
.brand .name-en {
  font-family: var(--serif-en);
  font-size: 10px; letter-spacing: 0.46em; text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
}
.nav-center {
  display: flex; gap: 34px; align-items: center;
  font-size: 13px; letter-spacing: 0.28em;
}
.nav-center a { position: relative; padding: 6px 0; opacity: 0.82; transition: opacity .3s; }
.nav-center a:hover, .nav-center a.active { opacity: 1; }
.nav-center a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
  transform: translateX(-50%);
}
.nav-right {
  justify-self: end;
  display: flex; gap: 18px; align-items: center;
}
.book-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  font-family: var(--serif-en);
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
  transition: background .4s, color .4s;
}
.book-btn:hover { background: var(--gold); color: var(--moon-3); border-color: var(--gold); }
.lang {
  display: flex; gap: 10px;
  font-family: var(--serif-en); font-size: 11px; letter-spacing: 0.3em;
}
.lang span { opacity: 0.5; cursor: pointer; }
.lang span.on { opacity: 1; color: var(--gold); }

/* Footer */
.foot {
  background: var(--ink-2);
  color: var(--moon-2);
  padding: 96px var(--pad) 36px;
  border-top: 1px solid var(--line-2);
}
.foot-inner {
  width: var(--col);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot h4 {
  font-family: var(--serif-en);
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 18px;
}
.foot ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2.2; letter-spacing: 0.12em; }
.foot ul a { opacity: 0.72; transition: opacity .3s; }
.foot ul a:hover { opacity: 1; }
.foot-brand .big {
  font-size: 28px; letter-spacing: 0.5em; margin-bottom: 6px;
}
.foot-brand .sub {
  font-family: var(--serif-en); font-size: 11px; letter-spacing: 0.36em;
  color: var(--gold-3); margin-bottom: 28px;
}
.foot-brand p { font-size: 13px; opacity: 0.7; max-width: 360px; }
.foot-base {
  width: var(--col); margin: 72px auto 0;
  padding-top: 28px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between;
  font-family: var(--serif-en); font-size: 10px; letter-spacing: 0.3em; opacity: 0.5;
}

/* Page generic */
main { min-height: 100vh; }

/* Kanji mark — stylized 月 with crescent */
.crest {
  position: relative; display: inline-block;
}
.crest svg { display: block; }

/* Reusable section headers */
.kicker {
  font-family: var(--serif-en);
  font-size: 11px; letter-spacing: 0.44em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold); display: inline-block; }
.section-title {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.3; letter-spacing: 0.14em;
  margin: 24px 0 0;
}
.section-title .en-sub {
  display: block; margin-top: 18px;
  font-family: var(--serif-en); font-style: italic;
  font-size: 16px; letter-spacing: 0.18em; color: var(--gold-2); opacity: 0.86;
}

/* Long-form reading */
.prose { font-size: 15px; line-height: 2.1; color: var(--ink-3); letter-spacing: 0.08em; max-width: 54ch; }

/* Buttons */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--serif-en); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  transition: all .45s ease;
}
.btn-ghost:hover { background: var(--gold); color: var(--moon-3); }
.btn-solid {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--moon);
  font-family: var(--serif-en); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  transition: all .45s ease;
}
.btn-solid:hover { background: var(--gold); color: var(--moon-3); }

/* Scroll indicator */
.scroll-ind {
  position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%);
  color: var(--moon); font-family: var(--serif-en);
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  opacity: 0.85;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 3;
}
.scroll-ind .line { width: 1px; height: 56px; background: linear-gradient(to bottom, transparent, var(--moon)); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Utility */
.w-col { width: var(--col); margin-inline: auto; }
.stack-24 > * + * { margin-top: 24px; }
.stack-16 > * + * { margin-top: 16px; }
.divider { width: 1px; height: 60px; background: var(--gold); opacity: .5; display: inline-block; }
.hr-gold { width: 60px; height: 1px; background: var(--gold); border: 0; }

/* Page transitions (when switching routes) */
.page-enter { animation: pageIn 800ms cubic-bezier(.2,.6,.2,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sumi wash background accent */
.sumi-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(27,42,62,0.06), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(185,152,106,0.08), transparent 60%);
}

/* Image placeholder with japanese ink feel */
.img-ph {
  position: relative; overflow: hidden; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.img-ph .ph-label {
  position: relative; z-index: 2;
  color: var(--moon); opacity: 0.5;
  font-family: var(--serif-en); font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
}

/* Hero-specific styles live in page files */

/* Numbering */
.num {
  font-family: var(--serif-en); font-style: italic;
  color: var(--gold); font-size: 14px; letter-spacing: 0.2em;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Vertical Japanese label */
.v-label {
  writing-mode: vertical-rl;
  letter-spacing: 0.4em;
  font-size: 13px;
  color: var(--gold-2);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--moon-3); }
::-webkit-scrollbar-thumb { background: var(--gold-3); border-radius: 4px; }

/* Mobile */
@media (max-width: 900px) {
  .nav-center { display: none; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
