/* ==========================================================================
   Koyo Traditional Japanese Restaurant — site.css
   Design direction: Fine Dining / Editorial, adapted (43rd Restaurant DESIGN.md)
   Palette pulled from the dining room: shoji paper, lantern-lit pine (hinoki),
   lacquer black, and the maple red of the 紅葉 (koyo) logo.
   ========================================================================== */

:root {
  /* Color tokens (DESIGN.md §6) */
  --color-bg: #f3ecdf;            /* shoji paper */
  --color-surface: #e9dfcc;       /* aged paper */
  --color-text: #1c1915;          /* sumi ink */
  --color-muted: #5f5346;         /* 7.0:1 on bg */
  --color-accent: #a33a19;        /* maple red, 6.1:1 on bg */
  --color-accent-contrast: #fff8ef;
  --color-border: rgba(28, 25, 21, 0.18);

  --color-night: #16120e;         /* lacquer */
  --color-night-2: #211a14;
  --color-night-text: #efe6d6;
  --color-night-muted: #b9ab96;   /* 8.3:1 on night */
  --color-hinoki: #c98a45;        /* pine glow — decoration + large text on night only */

  /* Type */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(3.5rem, 11vw, 9rem);
  --fs-h1: clamp(2.75rem, 6vw, 5.5rem);
  --fs-h2: clamp(2.1rem, 4vw, 3.75rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.8125rem;

  /* Spacing (8px system) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px; --space-11: 160px;

  --section-pad: clamp(64px, 11vw, 160px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1320px;
  --radius: 2px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* -------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 1px; }
.on-night :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--color-hinoki); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--color-text); color: var(--color-bg);
  padding: 12px 18px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); position: relative; }
.on-night { background: var(--color-night); color: var(--color-night-text); }
.on-night a:hover { color: var(--color-hinoki); }

/* Labels: small, tracked, quiet */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted);
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.on-night .label { color: var(--color-night-muted); }

.lead { font-size: var(--fs-lead); line-height: 1.65; }
.muted { color: var(--color-muted); }
.on-night .muted { color: var(--color-night-muted); }

/* ------------------------------------------------- vertical kanji (motif) */
/* Signature decision #2: section markers set vertically, like a hanging scroll. */
.tate {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-display); font-weight: 600;
  color: var(--color-accent); letter-spacing: 0.25em; line-height: 1;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  user-select: none;
}
.on-night .tate { color: var(--color-hinoki); }

/* ------------------------------------------------------------- buttons */
.btn {
  --b: var(--color-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--b); border-radius: var(--radius);
  background: transparent; color: var(--b); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--b); color: var(--color-bg); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease); }
.btn--solid { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }
.btn--solid:hover { background: #87300f; border-color: #87300f; color: var(--color-accent-contrast); }
.btn--light { --b: var(--color-night-text); }
.btn--light:hover { color: var(--color-night); }
.btn svg { width: 18px; height: 18px; flex: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.875rem;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link span[aria-hidden] { transition: transform .3s var(--ease); }
.text-link:hover span[aria-hidden] { transform: translateX(4px); }
.text-link:active { transform: translateY(1px); }
.action-bar a:active, .drawer__links a:active, .menu-nav a:active { opacity: .75; }

/* -------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--color-night-text);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.site-header.is-solid, .page-paper .site-header {
  background: rgba(243, 236, 223, 0.97); color: var(--color-text);
  box-shadow: 0 1px 0 var(--color-border);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.32em; line-height: 1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: .8; margin-top: 5px; font-weight: 500; }
.brand:hover { color: inherit; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav__links a {
  text-decoration: none; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 12px 0; position: relative;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a:hover { color: inherit; }
.nav__call { min-height: 44px; padding: 0 18px; font-size: 0.8125rem; }
.site-header:not(.is-solid) .nav__call { --b: var(--color-night-text); }
.page-paper .site-header .nav__call, .site-header.is-solid .nav__call { --b: var(--color-text); }

.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 0.8125rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.menu-toggle__bars { width: 22px; height: 10px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle__bars::before { top: 0; } .menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--color-night); color: var(--color-night-text);
  padding: 32px var(--gutter) 120px; overflow-y: auto;
  display: none;
}
.drawer.is-open { display: block; animation: drawerIn .35s var(--ease); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.drawer__links a { display: flex; align-items: baseline; justify-content: space-between; text-decoration: none; padding: 18px 0; border-bottom: 1px solid rgba(239,230,214,.14); font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.drawer__links a small { font-family: var(--font-display); font-size: 1rem; color: var(--color-hinoki); letter-spacing: .2em; }
.drawer__actions { display: grid; gap: 12px; margin-top: 32px; }
.drawer__actions .btn { width: 100%; }
.drawer__hours { margin-top: 32px; color: var(--color-night-muted); font-size: var(--fs-small); }
.drawer__hours strong { color: var(--color-night-text); font-weight: 500; }

/* ---------------------------------------------------------------- hero */
/* Signature decision #1: the dining room seen through a shoji frame. */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  background: var(--color-night); color: var(--color-night-text); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.06); animation: heroSettle 2.4s var(--ease) forwards; }
@keyframes heroSettle { to { transform: scale(1); } }
.hero::before { /* legibility: warm night falloff, not a decorative gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,18,14,.55) 0%, rgba(22,18,14,.08) 30%, rgba(22,18,14,.25) 55%, rgba(22,18,14,.9) 100%);
}
.hero__shoji { /* kumiko lattice framing the left and right edges */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --cell: clamp(36px, 4.2vw, 56px);
}
.hero__shoji::before, .hero__shoji::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: calc(var(--cell) * 2 + 2px);
  background-image:
    linear-gradient(90deg, rgba(239,230,214,.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(239,230,214,.22) 1px, transparent 1px);
  background-size: var(--cell) calc(var(--cell) * 1.25);
  border-inline: 1px solid rgba(239,230,214,.28);
  animation: shojiOpen 1.6s .2s var(--ease) both;
}
.hero__shoji::before { left: 0; --dir: -1; }
.hero__shoji::after { right: 0; --dir: 1; }
@keyframes shojiOpen { from { transform: translateX(calc(var(--dir) * -40%)); opacity: 0; } to { transform: none; opacity: 1; } }

.hero__inner { padding-block: calc(var(--header-h) + 48px) clamp(40px, 7vw, 88px); }
.hero__eyebrow { color: var(--color-night-text); opacity: .9; margin-bottom: 18px; }
.hero__eyebrow::before { background: var(--color-hinoki); opacity: 1; }
.hero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: 0.18em; line-height: .92; margin-left: -0.04em; }
.hero__title span { display: block; font-size: clamp(1.15rem, 2.2vw, 1.75rem); letter-spacing: 0.02em; font-weight: 400; margin-top: 22px; line-height: 1.4; max-width: 30ch; color: var(--color-night-text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__side { position: absolute; top: calc(var(--header-h) + clamp(32px, 6vh, 72px)); right: calc(var(--gutter) + clamp(36px, 4.2vw, 56px) * 2 + 24px); }
.hero__kanji { font-size: clamp(2.6rem, 5vw, 4.25rem); color: var(--color-night-text); letter-spacing: .14em; text-shadow: 0 2px 24px rgba(22,18,14,.6); }
.hero__wrapper { position: relative; }
.hero__seal { display: inline-flex; margin-top: 18px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(239,230,214,.22); font-size: var(--fs-small); color: var(--color-night-muted); }
.hero__facts a { color: var(--color-night-text); text-decoration: none; }
.hero__facts a:hover { color: var(--color-hinoki); }
.hero__facts strong { color: var(--color-night-text); font-weight: 500; }

/* ---------------------------------------------------------------- intro */
.intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); }
.intro__body { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px var(--gutter); }
.intro__statement { grid-column: 1 / -1; font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1.18; letter-spacing: -0.015em; max-width: 24ch; text-wrap: initial; }
.intro__statement em { font-style: normal; color: var(--color-accent); }
.intro__text { grid-column: 6 / span 6; margin-top: 24px; }
.intro__text p { color: var(--color-muted); }

/* ----------------------------------------------------- name / calligraphy */
.name { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px var(--gutter); align-items: center; }
.name__fig { grid-column: 1 / span 6; margin: 0; }
.name__text { grid-column: 8 / span 5; }
.name__text h2 { font-size: var(--fs-h2); margin: 18px 0 24px; }
.name__text h2 .jp { display: block; font-size: .5em; color: var(--color-accent); letter-spacing: .3em; margin-bottom: 14px; font-weight: 600; }

/* -------------------------------------------------- dishes (editorial) */
.dishes__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.dishes__head h2 { font-size: var(--fs-h1); }
.dish-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: clamp(40px, 6vw, 96px) var(--gutter); }
.dish { margin: 0; }
.dish figcaption { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.dish__no { font-family: var(--font-display); color: var(--color-accent); font-size: .95rem; letter-spacing: .1em; grid-row: span 2; }
.dish__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }
.dish__desc { color: var(--color-muted); font-size: 1rem; grid-column: 2; margin: 0; }
.dish--a { grid-column: 1 / span 7; }
.dish--b { grid-column: 9 / span 4; margin-top: clamp(80px, 14vw, 220px); }
.dish--c { grid-column: 2 / span 4; }
.dish--d { grid-column: 7 / span 6; margin-top: clamp(-40px, -4vw, 0px); }

.frame { position: relative; overflow: hidden; background: var(--color-surface); border-radius: var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-45 { aspect-ratio: 4 / 5; }

/* ----------------------------------------------------- menu preview (oshinagaki) */
.preview { display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(20px, 5vw, 72px); }
.preview h2 { font-size: var(--fs-h1); margin: 18px 0 16px; }
.preview__cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 var(--gutter); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--color-border); }
.preview__col { padding-top: 28px; }
.preview__col h3 { font-size: 1.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.preview__col h3 span { font-size: .95rem; color: var(--color-accent); letter-spacing: .2em; font-weight: 600; }
.preview__col p.note { color: var(--color-muted); font-size: var(--fs-small); }
.preview__list li { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.preview__list b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: capitalize; }
.preview__list span { color: var(--color-muted); font-size: .95rem; }
.preview__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; }

/* ------------------------------------------------------------- rooms */
/* Signature decision #3: zashiki rooms; image "slides open" like a shoji panel. */
.rooms { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px var(--gutter); align-items: end; }
.rooms__main { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.rooms__text { grid-column: 7 / span 5; align-self: start; padding-top: clamp(0px, 4vw, 48px); }
.rooms__text h2 { font-size: var(--fs-h1); margin: 18px 0 24px; }
.rooms__second { grid-column: 7 / span 6; }
.rooms__text p { color: var(--color-night-muted); }
.rooms__text p.lead { color: var(--color-night-text); }

/* full-bleed band */
.band { position: relative; height: clamp(320px, 62vw, 820px); overflow: hidden; background: var(--color-night); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.js .band img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.js .band.is-in img { transform: scale(1); }
.band__cap { position: absolute; left: var(--gutter); bottom: var(--gutter); color: var(--color-night-text); font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase; background: rgba(22,18,14,.7); padding: 8px 12px; }

/* ----------------------------------------------------- reservation CTA */
.reserve { text-align: center; position: relative; overflow: hidden; }
.reserve__leaf { width: clamp(64px, 8vw, 96px); height: auto; margin: 0 auto 28px; color: var(--color-accent); }
.reserve h2 { font-size: var(--fs-h1); max-width: 16ch; margin: 0 auto 24px; }
.reserve p { max-width: 46ch; margin: 0 auto 36px; color: var(--color-muted); }
.reserve__phone { display: inline-block; font-family: var(--font-display); font-size: clamp(2.2rem, 6.5vw, 5rem); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; line-height: 1; margin-bottom: 36px; border-bottom: 2px solid var(--color-accent); padding-bottom: 8px; }
.reserve__phone:hover { color: var(--color-accent); }
.reserve__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ----------------------------------------------------------- reviews */
.quotes { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 40px var(--gutter); align-items: start; }
.quotes__intro { grid-column: 1 / span 4; }
.quotes__list { grid-column: 6 / span 7; display: grid; gap: 40px; }
.quote { margin: 0; }
.quote p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.3; font-weight: 500; margin: 0 0 14px; }
.quote p::before { content: "「"; color: var(--color-accent); margin-left: -0.6em; }
.quote p::after { content: "」"; color: var(--color-accent); }
.quote footer { color: var(--color-muted); font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase; }
.rating { font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1; font-weight: 600; margin: 18px 0 8px; }
.rating-note { color: var(--color-muted); font-size: var(--fs-small); letter-spacing: .08em; margin-bottom: 18px; }

/* ------------------------------------------------------- visit / hours */
.visit { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 48px var(--gutter); }
.visit__head { grid-column: 1 / -1; display: flex; gap: clamp(20px, 5vw, 72px); align-items: start; }
.visit__head h2 { font-size: var(--fs-h1); margin-top: 18px; }
.visit__where { grid-column: 1 / span 5; }
.visit__hours { grid-column: 7 / span 6; }
.visit h3 { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--color-night-muted); margin-bottom: 16px; }
.visit__addr { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; margin-bottom: 20px; font-weight: 500; }
.visit__phone { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-decoration: none; border-bottom: 1px solid var(--color-hinoki); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.visit__note { margin-top: 24px; color: var(--color-night-muted); font-size: var(--fs-small); }

.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid rgba(239,230,214,.14); vertical-align: top; font-weight: 400; }
.hours th { font-weight: 500; width: 34%; padding-right: 12px; }
.hours td { color: var(--color-night-muted); }
.hours td + td { padding-left: 12px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--color-night-text); }
.hours tr.is-today th::after { content: "Today"; display: inline-block; margin-left: 10px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-hinoki); border: 1px solid currentColor; padding: 1px 6px; vertical-align: 2px; }
.hours .closed { color: rgba(239,230,214,.5); }
.hours caption { text-align: left; }
.paper .hours th, .paper .hours td { border-bottom-color: var(--color-border); }
.paper .hours td { color: var(--color-muted); }
.paper .hours tr.is-today th, .paper .hours tr.is-today td { color: var(--color-text); }
.paper .hours tr.is-today th::after { color: var(--color-accent); }
.paper .hours .closed { color: rgba(28,25,21,.45); }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--color-night); color: var(--color-night-muted); padding-block: 72px 40px; border-top: 1px solid rgba(239,230,214,.08); font-size: var(--fs-small); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 40px var(--gutter); }
.footer__brand { grid-column: 1 / span 4; color: var(--color-night-text); }
.footer__brand p { color: var(--color-night-muted); margin-top: 16px; max-width: 30ch; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col h2 { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--color-night-text); margin-bottom: 14px; }
.footer__col li { margin-bottom: 6px; }
.footer__col a { text-decoration: none; display: inline-block; padding: 4px 0; }
.footer__col a:hover { color: var(--color-hinoki); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(239,230,214,.12); font-size: .8125rem; }

/* ---------------------------------------------------- mobile action bar */
.action-bar { display: none; }

/* --------------------------------------------------------- page heads */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head__inner { display: flex; gap: clamp(20px, 5vw, 72px); align-items: start; }
.page-head h1 { font-size: var(--fs-h1); margin: 18px 0 20px; }
.page-head p { max-width: 54ch; color: var(--color-muted); }

/* --------------------------------------------------------- menu page */
.menu-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--color-bg); border-block: 1px solid var(--color-border); }
.menu-nav ul { display: flex; gap: 4px clamp(20px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a { display: inline-flex; align-items: center; min-height: 52px; white-space: nowrap; text-decoration: none; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--color-muted); border-bottom: 2px solid transparent; }
.menu-nav a:hover, .menu-nav a.is-active { color: var(--color-text); border-bottom-color: var(--color-accent); }

.menu-section { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--color-border); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-section__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px var(--gutter); }
.menu-section__head { grid-column: 1 / span 4; position: relative; }
.menu-section__head .stick { position: sticky; top: calc(var(--header-h) + 84px); display: flex; gap: 20px; }
.menu-section__head h2 { font-size: var(--fs-h2); }
.menu-section__head p { color: var(--color-muted); margin-top: 14px; font-size: 1rem; max-width: 28ch; }
.menu-section__body { grid-column: 6 / span 7; }
.menu-group + .menu-group { margin-top: 56px; }
.menu-group h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 4px; }
.menu-group > p { color: var(--color-muted); font-size: .95rem; margin-bottom: 8px; }
.items { columns: 1; }
.item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); break-inside: avoid; }
.item__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.item__desc { grid-column: 1 / -1; color: var(--color-muted); font-size: 1rem; margin: 0; }
.item__price { font-size: var(--fs-small); color: var(--color-muted); white-space: nowrap; }
.menu-figure { margin: 0 0 40px; }
.price-note { display: flex; gap: 14px; align-items: flex-start; background: var(--color-surface); padding: 16px 24px; border: 1px solid rgba(163, 58, 25, .35); border-radius: var(--radius); font-size: .95rem; color: var(--color-text); }
.price-note svg { flex: none; width: 22px; height: 22px; color: var(--color-accent); margin-top: 2px; }

/* ----------------------------------------------------------- about */
.story { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 40px var(--gutter); align-items: start; }
.story__fig { grid-column: 1 / span 7; margin: 0; }
.story__text { grid-column: 9 / span 4; }
.story__text h2 { font-size: var(--fs-h2); margin: 18px 0 24px; }
.story__text p { color: var(--color-muted); }
.on-night .story__text p { color: var(--color-night-muted); }
.trio { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter); }
.trio > :nth-child(1) { grid-column: 1 / span 5; }
.trio > :nth-child(2) { grid-column: 6 / span 4; margin-top: clamp(40px, 8vw, 120px); }
.trio > :nth-child(3) { grid-column: 10 / span 3; margin-top: clamp(0px, 3vw, 40px); }
.caption { font-size: var(--fs-small); color: var(--color-muted); margin-top: 12px; letter-spacing: .02em; }
.on-night .caption { color: var(--color-night-muted); }

/* --------------------------------------------------------- reveal motion */
/* "Shoji slide": images open from one side like a sliding panel. */
/* The image inside is clipped, never the observed container: a fully clipped
   element can report as "not intersecting" in some browsers (Safari), which would
   leave photos hidden forever. */
.js .reveal-slide > img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease), transform 1.2s var(--ease); }
.js .reveal-slide.from-right > img { clip-path: inset(0 0 0 100%); }
.js .reveal-slide.is-in > img { clip-path: inset(0 0 0 0); }
.js .reveal-up { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-up.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------- tagline reveal */
/* Words light from ink-wash grey to full ink as they cross the reading line. */
.js .tagline .w { color: rgba(28, 25, 21, .28); transition: color .7s var(--ease); }
.js .tagline em .w { color: rgba(163, 58, 25, .3); }
.js .tagline .w.is-lit { color: var(--color-text); }
.js .tagline em .w.is-lit { color: var(--color-accent); }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px var(--gutter); }
.faq__head { grid-column: 1 / span 4; }
.faq__head h2 { font-size: var(--fs-h2); margin: 18px 0 16px; }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 16px 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-accent); }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item p { color: var(--color-muted); margin: 0 0 24px; max-width: 56ch; }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 64ch; }
.prose h2 { font-size: var(--fs-h3); margin: 40px 0 12px; }
.prose p { color: var(--color-muted); }
.prose strong { color: var(--color-text); font-weight: 500; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .dish--a { grid-column: 1 / span 8; }
  .dish--b { grid-column: 9 / span 4; }
  .dish--c { grid-column: 1 / span 5; }
  .dish--d { grid-column: 6 / span 7; margin-top: 0; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 4; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav__links, .nav__call { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand svg { width: 36px; height: 36px; }

  .hero { min-height: 92svh; }
  .hero__side { display: none; }
  .hero__shoji::after { display: none; }
  .hero__shoji::before { width: calc(var(--cell) + 1px); }
  .hero__actions .btn { flex: 1 1 200px; }

  .intro, .preview { grid-template-columns: 1fr; }
  .intro > .tate, .preview > .tate, .visit__head .tate, .page-head__inner .tate { writing-mode: horizontal-tb; letter-spacing: .3em; font-size: 1rem; }
  .intro__text { grid-column: 1 / -1; }
  .name__fig, .name__text { grid-column: 1 / -1; }
  .dishes__head { flex-direction: column; align-items: flex-start; }
  .dish--a, .dish--b, .dish--c, .dish--d { grid-column: 1 / -1; margin-top: 0; }
  .dish--b { grid-column: 3 / -1; }
  .dish--c { grid-column: 1 / span 10; }
  .preview__cols { grid-template-columns: 1fr; }
  .rooms__main, .rooms__text, .rooms__second { grid-column: 1 / -1; grid-row: auto; }
  .rooms__main { order: 2; } .rooms__text { order: 1; padding-top: 0; } .rooms__second { order: 3; grid-column: 3 / -1; }
  .quotes__intro, .quotes__list { grid-column: 1 / -1; }
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .quote p::before { margin-left: 0; }
  .visit__head { flex-direction: column; gap: 8px; }
  .visit__where, .visit__hours { grid-column: 1 / -1; }
  .page-head__inner { flex-direction: column; gap: 8px; }
  .menu-section__head, .menu-section__body { grid-column: 1 / -1; }
  .menu-section__head .stick { position: static; flex-direction: column; gap: 8px; }
  .menu-section__head .tate { writing-mode: horizontal-tb; font-size: 1rem; }
  .story__fig, .story__text { grid-column: 1 / -1; }
  .trio > :nth-child(1) { grid-column: 1 / -1; }
  .trio > :nth-child(2) { grid-column: 1 / span 7; margin-top: 0; }
  .trio > :nth-child(3) { grid-column: 8 / span 5; margin-top: 48px; }
  .footer__col, .footer__col--wide { grid-column: span 6; }

  /* Sticky mobile action bar: Call · Menu · Directions */
  .action-bar {
    display: grid; grid-template-columns: 1.25fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--color-night); color: var(--color-night-text);
    border-top: 1px solid rgba(239,230,214,.14);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 60px; text-decoration: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
    border-left: 1px solid rgba(239,230,214,.12);
  }
  .action-bar a:first-child { border-left: 0; background: var(--color-accent); color: var(--color-accent-contrast); }
  .action-bar a:hover { color: inherit; }
  .action-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 60px; }
  .site-footer { padding-bottom: 32px; }
}

@media (max-width: 520px) {
  .brand__sub { display: none; }
  .hours, .hours tbody { display: block; }
  .hours tr { display: grid; grid-template-columns: 7.25rem 1fr; padding: 12px 0; border-bottom: 1px solid rgba(239,230,214,.14); }
  .paper .hours tr { border-bottom-color: var(--color-border); }
  .hours th, .hours td { border: 0; padding: 2px 0; width: auto; }
  .hours th { grid-row: span 2; }
  .hours td + td { padding-left: 0; }
  .hours tr.is-today th::after { display: block; width: max-content; margin: 6px 0 0; }
  .hero__title { letter-spacing: 0.12em; }
  .hero__facts { gap: 4px 18px; }
  .dish--b, .dish--c { grid-column: 1 / -1; }
  .rooms__second { grid-column: 1 / -1; }
  .trio > :nth-child(2), .trio > :nth-child(3) { grid-column: 1 / -1; margin-top: 0; }
  .footer__col, .footer__col--wide { grid-column: 1 / -1; }
  .btn { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__media img { transform: none; }
  .js .reveal-slide > img, .js .reveal-up { clip-path: none; opacity: 1; transform: none; }
  .js .band img { transform: none; }
  .js .tagline .w { color: inherit; }
}

@media print {
  .site-header, .action-bar, .drawer, .menu-nav, .hero__shoji { display: none !important; }
  body { background: #fff; padding: 0; }
  .menu-section__head .stick { position: static; }
}
