/* ふうふ旅 — Tours with Ryo & Maria
   Built from Ryo & Maria's own material:
   - accent orange  = the Hamarain BOOKS opening flyer (and Maria's orange jacket)
   - black labels   = the caption style of their reels ("4 years since the wedding")
   - station stamps = the eki-stamp habit of Japanese travel, one per stop of their route
   Japanese principles: 間 ma (space), 簡素 kanso (few colours/typefaces),
   不均整 fukinsei (asymmetry), 渋み shibui (muted palette), 縦書き tategaki, 青海波 seigaiha.
*/

:root {
  --kinari: #f3eee4;
  --kinari-2: #ebe3d4;
  --sumi: #1f1d1a;
  --sumi-2: #4a4640;
  --nezumi: #857f75;
  --ai: #24405e;
  --hamarain: #e8820c;       /* the shop flyer orange */
  --hamarain-ink: #a85600;   /* same hue, dark enough for small text on paper */
  --bg: var(--kinari);
  --bg-2: var(--kinari-2);
  --fg: var(--sumi);
  --fg-2: var(--sumi-2);
  --muted: var(--nezumi);
  --line: rgba(31, 29, 26, .14);
  --accent: var(--hamarain);
  --accent-ink: var(--hamarain-ink);
  --sea: var(--ai);
  --label-bg: #111;
  --label-fg: #fbf8f2;
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  /* Emil Kowalski's curves: strong ease-out for entries, ease-in-out for on-screen movement */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161512; --bg-2: #1f1c18; --fg: #ece5d8; --fg-2: #c5bdae; --muted: #8f887c;
    --line: rgba(236, 229, 216, .14); --accent: #f0952e; --accent-ink: #f3a54b; --sea: #8fb0d3;
    --label-bg: #f3eee4; --label-fg: #161512;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161512; --bg-2: #1f1c18; --fg: #ece5d8; --fg-2: #c5bdae; --muted: #8f887c;
  --line: rgba(236, 229, 216, .14); --accent: #f0952e; --accent-ink: #f3a54b; --sea: #8fb0d3;
  --label-bg: #f3eee4; --label-fg: #161512;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--bg) var(--paper-noise);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.45; text-wrap: balance; }
p, dd, li { line-break: strict; text-wrap: pretty; }
html[data-lang="ja"] h2, html[data-lang="ja"] h3 { word-break: keep-all; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

/* Bilingual: both languages live in the markup; <html data-lang> picks one. */
html[data-lang="ja"] body [lang="en"],
html[data-lang="en"] body [lang="ja"] { display: none !important; }
html[data-lang="en"] body { line-height: 1.75; letter-spacing: 0; }
/* Language swap: a 180ms blur crossfade so two scripts read as one transformation */
main, .masthead .nav, .footer { transition: opacity 180ms ease, filter 180ms ease; }
html.is-swapping main, html.is-swapping .masthead .nav, html.is-swapping .footer { opacity: .25; filter: blur(2px); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.tategaki { writing-mode: vertical-rl; text-orientation: mixed; }

/* ---------- Their reel labels ---------- */
.labels {
  position: absolute; left: 14px; bottom: 14px; margin: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  pointer-events: none;
}
.label {
  display: inline-block; background: var(--label-bg); color: var(--label-fg);
  font-family: var(--serif); font-weight: 600; font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.25; padding: 6px 12px; letter-spacing: .02em;
}
.label-sm { font-size: 13px; font-weight: 400; padding: 4px 10px; }
.photo { position: relative; overflow: hidden; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Seal ---------- */
.seal, .footer-seal {
  display: inline-grid; place-items: center;
  font-family: var(--serif); font-weight: 800; color: #fff8ee; background: var(--accent);
  border-radius: 6px; line-height: 1; text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .35);
}
.seal { width: 44px; height: 44px; font-size: 13px; letter-spacing: .1em; transform: rotate(-3deg); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.masthead.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-ja { font-family: var(--serif); font-weight: 800; font-size: 18px; letter-spacing: .12em; }
.brand-en { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; }
.nav a { text-decoration: none; position: relative; padding: 4px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 200ms var(--ease-out);
}
.nav-cta { border: 1px solid var(--fg); padding: 6px 16px !important; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.nav-cta:active { transform: scale(.97); }
.lang-toggle {
  font: inherit; font-size: 13px; color: var(--fg); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center; min-height: 36px;
  transition: transform 160ms var(--ease-out);
}
.lang-toggle:active { transform: scale(.97); }
.lang-opt { color: var(--muted); transition: color 160ms ease; }
html[data-lang="ja"] .lang-opt[data-opt="ja"], html[data-lang="en"] .lang-opt[data-opt="en"] { color: var(--fg); font-weight: 700; }
.lang-sep { color: var(--line); }

@media (hover: hover) and (pointer: fine) {
  .nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-cta:hover { background: var(--fg); color: var(--bg); }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 6vw, 96px); align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(48px, 7vw, 96px);
}
.hero-copy { display: flex; gap: clamp(20px, 4vw, 56px); align-items: flex-start; justify-self: end; }
html[data-lang="ja"] .hero-copy { flex-direction: row-reverse; } /* vertical title reads from the right */
.hero-title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; letter-spacing: .14em; line-height: 1.7; max-height: 72vh; }
html[data-lang="en"] .hero-title { writing-mode: horizontal-tb; letter-spacing: -.01em; line-height: 1.12; font-size: clamp(38px, 5vw, 72px); max-height: none; }
html[data-lang="en"] .hero-copy { flex-direction: column; justify-self: start; }
.hero-sub { max-width: 30ch; padding-top: clamp(8px, 4vw, 64px); }
html[data-lang="en"] .hero-sub { max-width: 40ch; padding-top: 0; }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1.4em; }
.hero-sub p:not(.eyebrow) { color: var(--fg-2); font-size: 15px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo .photo { aspect-ratio: 4 / 5; }
.hero-photo .photo img { object-position: 60% 40%; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px 10px 18px; border: 1px solid var(--line); z-index: -1; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; letter-spacing: .06em; }

/* ---------- Epigraph ---------- */
.epigraph { padding: clamp(40px, 8vw, 120px) var(--gutter) clamp(56px, 9vw, 136px); display: grid; justify-items: center; }
.epigraph blockquote { margin: 0; max-width: 40em; text-align: center; }
.epigraph p { word-break: keep-all; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(19px, 2.3vw, 30px); line-height: 1.8; letter-spacing: .06em; margin-bottom: .8em; }
html[data-lang="en"] .epigraph p { letter-spacing: 0; line-height: 1.5; }
.epigraph footer { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: var(--muted); }
.epigraph cite { font-style: normal; }

/* ---------- Seigaiha wave ---------- */
.wave {
  height: 28px; margin: 0 var(--gutter); opacity: .5; background-color: var(--sea);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='black' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='19'/%3E%3Ccircle cx='20' cy='20' r='14'/%3E%3Ccircle cx='20' cy='20' r='9'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 40px 20px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='black' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='19'/%3E%3Ccircle cx='20' cy='20' r='14'/%3E%3Ccircle cx='20' cy='20' r='9'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 40px 20px;
}

/* ---------- Sections ---------- */
.section {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 64px); padding: clamp(72px, 10vw, 144px) var(--gutter);
}
.section-num { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; color: var(--accent); padding-top: 12px; justify-self: start; height: max-content; }
.section-num::after { content: ""; display: block; width: 1px; height: 72px; background: var(--line); margin: 16px 0 0 14px; }
.section-title { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: .08em; margin-bottom: .7em; }
html[data-lang="en"] .section-title { letter-spacing: -.005em; }
.section-head { margin-bottom: clamp(36px, 5vw, 72px); }
.section-head p { color: var(--fg-2); max-width: 46ch; }
.section-inner { min-width: 0; }

/* 一 Letter */
.message-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 112px); align-items: start; }
.message .section-title { position: sticky; top: 120px; }
.letter { font-family: var(--serif); font-size: clamp(16px, 1.3vw, 18px); line-height: 2.2; max-width: 36em; }
html[data-lang="en"] .letter { line-height: 1.85; }
.letter p:first-child { font-size: 1.25em; margin-bottom: 1.4em; }
.signature { margin-top: 2.2em; font-size: 1.15em; display: flex; align-items: center; gap: 14px; }
.signature::before { content: ""; width: 40px; height: 1px; background: var(--fg); }

/* 二 Route */
.route { background: var(--bg-2); }
.tally { list-style: none; padding: 0; margin: 0 0 clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); max-width: 860px; }
.tally li { padding: 18px 18px 0 0; font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.tally strong { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; color: var(--fg); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.route-rail { position: relative; margin-right: calc(var(--gutter) * -1); }
.route-controls { display: flex; gap: 8px; justify-content: flex-end; margin: 0 var(--gutter) 14px 0; }
.route-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--fg); font-size: 18px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}
.route-btn:active { transform: scale(.94); }
.route-btn:disabled { opacity: .35; cursor: default; }
.route-track {
  list-style: none; margin: 0; padding: 36px var(--gutter) 28px 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(232px, 24vw, 300px); gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  position: relative; overscroll-behavior-x: contain;
}
.route-track:focus-visible { outline-offset: -2px; }
.stop { position: relative; scroll-snap-align: start; }
/* the dashed route line that runs behind the stamps */
.stop::before {
  content: ""; position: absolute; top: 34px; left: 0; right: calc(clamp(18px, 2.4vw, 32px) * -1);
  border-top: 2px dashed color-mix(in srgb, var(--fg) 25%, transparent);
}
.stop:last-child::before { right: 50%; }
.stamp {
  position: relative; z-index: 1;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 1px;
  color: var(--sea); background: var(--bg-2);
  border: 2px solid currentColor; box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 4px currentColor;
  font-family: var(--serif); transform: rotate(var(--tilt, -6deg));
  margin-bottom: 18px;
}
.stop:nth-child(3n+2) .stamp { --tilt: 5deg; }
.stop:nth-child(3n) .stamp { --tilt: -2deg; }
.stamp-city { font-weight: 800; font-size: 13px; line-height: 1.1; letter-spacing: .02em; padding: 0 6px; white-space: nowrap; }
.stamp-city-long { font-size: 10px; letter-spacing: -.02em; padding: 0 4px; }
.stamp-date { font-family: var(--sans); font-size: 8px; letter-spacing: .08em; }
.stamp-home { color: var(--accent); width: 84px; height: 84px; margin-top: -6px; margin-bottom: 12px; }
.stamp-home .stamp-city { font-size: 16px; }
.stop-card .photo { aspect-ratio: 1; margin-bottom: 12px; }
.stop-card p { font-size: 14px; color: var(--fg-2); line-height: 1.7; margin: 0; }
.stop-card-text { border-top: 1px solid var(--line); padding-top: 16px; }
.stop-kicker { font-family: var(--serif); font-size: 26px !important; color: var(--fg) !important; margin-bottom: 8px !important; }

/* 三 Tours */
.tour-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 48px); }
.tour { grid-column: span 6; display: grid; gap: 18px; align-content: start; }
.tour-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: clamp(20px, 4vw, 64px); }
.tour:nth-child(3), .tour:nth-child(5) { margin-top: clamp(0px, 8vw, 120px); }   /* fukinsei — the right column steps down */
.tour .photo { aspect-ratio: 4 / 3; }
.tour-wide .photo { aspect-ratio: 780 / 295; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.photo-pair img { height: 100%; }
.tour-body { max-width: 52ch; }
.tour h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: .06em; margin-bottom: .5em; }
.tour-meta { font-size: 12px; letter-spacing: .1em; color: var(--accent-ink); margin-bottom: .6em; }
.tour-body p:last-child { color: var(--fg-2); margin: 0; }
.note { margin: clamp(48px, 6vw, 80px) 0 0; max-width: 60ch; font-size: 14px; color: var(--fg-2); padding-left: 18px; border-left: 2px solid var(--accent); }

/* 四 Bookshop — the way they photograph it */
.books { background: #2a211b; color: #f1e9dc; }
.books .section-num { color: var(--hamarain); }
.books .section-num::after { background: rgba(241, 233, 220, .2); }
.books-head { max-width: 62ch; }
.books-head p { color: rgba(241, 233, 220, .82); }
.books-lede { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); color: #fff !important; line-height: 1.5; margin-bottom: 1em; }
.books-lede span { background: linear-gradient(transparent 62%, rgba(232, 130, 12, .55) 62%); padding: 0 2px; }
.shelf {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px);
}
.book { margin: 0; }
.book img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 2px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .7); transition: transform 300ms var(--ease-out); }
.book-title { font-family: var(--serif); font-size: 13px; line-height: 1.5; margin: 14px 0 6px; color: #fff; }
.book-line { font-size: 12px; line-height: 1.7; color: rgba(241, 233, 220, .7); margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .book:hover img { transform: translateY(-6px) rotate(-1deg); }
}
.shop-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end;
  background: var(--hamarain); color: #2a1503; padding: clamp(22px, 3vw, 36px); border-radius: 4px;
}
.shop-card dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.shop-card dt { font-size: 12px; letter-spacing: .12em; opacity: .75; }
.shop-card dd { margin: 2px 0 0; font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.5; }
.btn-shop { background: #1d140d; border-color: #1d140d; color: #fff8ee; }

/* 五 Seasons */
.season-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.season { padding: 28px clamp(12px, 2vw, 28px) 0; border-left: 1px solid var(--line); }
.season:first-child { border-left: 0; padding-left: 0; }
.season-kanji { display: block; font-family: var(--serif); font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--fg); opacity: .14; margin-bottom: 18px; transition: opacity 200ms ease, color 200ms ease; }
.season h3 { font-size: 17px; margin-bottom: .6em; letter-spacing: .04em; }
.season p { font-size: 14px; color: var(--fg-2); }
@media (hover: hover) and (pointer: fine) { .season:hover .season-kanji { opacity: 1; color: var(--accent); } }

/* 六 Access + FAQ */
.info-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); }
.access dl { margin: 0; }
.access dt { font-family: var(--serif); font-weight: 600; margin-top: 1.4em; }
.access dt:first-child { margin-top: 0; }
.access dd { margin: .2em 0 0; color: var(--fg-2); font-size: 15px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-family: var(--serif); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 20px; color: var(--muted);
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 220ms var(--ease-out), opacity 220ms ease, content-visibility 220ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq-a p { color: var(--fg-2); font-size: 15px; padding-right: 32px; }

/* 七 Contact */
.contact { background: var(--bg-2); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.inquiry { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.field label, .field legend { font-size: 13px; color: var(--fg-2); letter-spacing: .06em; padding: 0; }
.field legend { margin-bottom: 8px; }
.inquiry input[type="text"], .inquiry input[type="date"], .inquiry input[type="number"], .inquiry textarea {
  font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--fg-2); border-radius: 0;
  padding: 10px 2px; width: 100%; min-height: 44px; transition: border-color 160ms ease;
}
.inquiry textarea { resize: vertical; border: 1px solid var(--line); padding: 12px; }
.inquiry input:focus, .inquiry textarea:focus { outline: none; border-color: var(--accent); }
.inquiry input[aria-invalid="true"] { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; min-height: 40px; line-height: 22px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.chip:active span { transform: scale(.97); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { color: var(--accent-ink); font-size: 14px; margin: 0; }
.preview {
  border: 1px solid var(--line); background: var(--bg); padding: 20px; display: grid; gap: 14px;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
@starting-style { .preview { opacity: 0; transform: translateY(8px); } }
.preview-label { font-size: 12px; color: var(--muted); margin: 0; letter-spacing: .08em; }
.preview pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: 14px; line-height: 1.8; color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start;
  font: inherit; font-size: 14px; letter-spacing: .08em;
  color: var(--bg); background: var(--fg); border: 1px solid var(--fg);
  padding: 12px 22px; min-height: 46px; border-radius: 2px; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: transparent; color: var(--fg); }
  .btn:hover .btn-arrow { transform: translateX(4px); }
  .btn-shop:hover { background: #fff8ee; color: #1d140d; }
}

/* ---------- Footer ---------- */
.footer { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(72px, 10vw, 128px) var(--gutter) 48px; }
.footer-seal { width: 64px; height: 64px; font-size: 18px; transform: rotate(-4deg); }
.footer-line { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); margin: 0; letter-spacing: .12em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; }
.footer-links a { color: var(--fg-2); text-underline-offset: 4px; }
.footer-small { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Entry motion (rare, first-view only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* photos unveil from the bottom, like a print being pulled */
.js .reveal .photo img, .js .reveal.book img { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out), transform 300ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
.js .reveal.is-in .photo img, .js .reveal.book.is-in img { clip-path: inset(0 0 0 0); }
/* station stamps press in once, one after another */
.js .stamp { opacity: 0; transform: rotate(var(--tilt, -6deg)) scale(1.18); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
.js .stop.is-in .stamp { opacity: 1; transform: rotate(var(--tilt, -6deg)) scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* gentler, not none: keep fades, drop movement */
  .js .reveal { transform: none !important; transition: opacity 300ms ease; }
  .js .stamp, .js .stop.is-in .stamp { transform: rotate(var(--tilt, -6deg)); transition: opacity 300ms ease; }
  .js .reveal .photo img, .js .reveal.book img { clip-path: none; transition: none; }
  .btn:active, .chip:active span, .route-btn:active, .lang-toggle:active, .nav-cta:active { transform: none; }
  .book img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 960px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .hero-copy { justify-self: start; }
  .hero-title { max-height: 58vh; }
  .message-body, .info-inner, .contact-inner { grid-template-columns: 1fr; }
  .message .section-title { position: static; }
  .tour { grid-column: 1 / -1; }
  .tour:nth-child(3), .tour:nth-child(5) { margin-top: 0; }
  .tour-wide { grid-template-columns: 1fr; }
  .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season:nth-child(3) { border-left: 0; padding-left: 0; }
  .season:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .shop-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .masthead { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand-en { display: none; }
  .seal { width: 38px; height: 38px; font-size: 11px; }
  .nav-cta { padding: 5px 12px !important; font-size: 13px; }
  .section { grid-template-columns: 1fr; gap: 12px; }
  .section-num { font-size: 24px; padding-top: 0; display: flex; align-items: center; gap: 14px; }
  .section-num::after { width: 48px; height: 1px; margin: 0; }
  .hero-copy { gap: 20px; }
  .hero-title { font-size: 30px; }
  .hero-sub { padding-top: 0; }
  .hero-photo::before { inset: 10px -8px 6px 10px; }
  .label { font-size: 15px; }
  .tally li { padding-right: 10px; font-size: 12px; }
  .route-controls { display: none; }
  .route-track { grid-auto-columns: 74vw; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-card dl { grid-template-columns: 1fr; }
  .season-grid { grid-template-columns: 1fr; }
  .season { border-left: 0; padding-left: 0; padding-right: 0; }
  .season:nth-child(n+2) { border-top: 1px solid var(--line); margin-top: 24px; }
  .season-kanji { font-size: 48px; }
  .field-row { grid-template-columns: 1fr; }
}
