/* ビストロツナグ
   Lacquerware palette: black urushi, vermilion (朱), cool white (胡粉), and the indigo (藍) of the
   entrance mural. The warm amber comes only from the photographs, so the rooms stand out against
   their complement. The vermilion thread is the red thread that ties people together: ツナグ. */

@property --bg     { syntax: "<color>"; inherits: true; initial-value: #0d1014; }
@property --fg     { syntax: "<color>"; inherits: true; initial-value: #f3f4f1; }
@property --muted  { syntax: "<color>"; inherits: true; initial-value: #98a2a8; }
@property --line   { syntax: "<color>"; inherits: true; initial-value: rgba(243, 244, 241, .17); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #e9583a; }

:root {
  --lacquer: #0d1014;
  --white: #f3f4f1;
  --vermilion: #e9583a;
  --pad: clamp(20px, 6vw, 96px);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --logo: "Tenor Sans", "Cormorant Garamond", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

body                     { --bg: #0d1014; --fg: #f3f4f1; --muted: #98a2a8; --line: rgba(243, 244, 241, .17); --accent: #e9583a; }
body[data-theme="light"] { --bg: #f2f4f3; --fg: #101a24; --muted: #55626c; --line: rgba(16, 26, 36, .18);    --accent: #b8321a; }
body[data-theme="ai"]    { --bg: #12293d; --fg: #f3f4f1; --muted: #a9b8c4; --line: rgba(243, 244, 241, .2);  --accent: #f0694a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
html.is-opening, html.is-opening body { overflow: hidden; }

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mincho);
  font-size: clamp(15px, .36vw + 13.6px, 17px);
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: .07em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  transition: --bg .9s ease, --fg .9s ease, --muted .9s ease, --line .9s ease, --accent .9s ease;
}

/* Paper grain: softens the low-resolution source photos and ties the sections together */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h2, h3 { font-weight: 400; line-height: 1.5; letter-spacing: .12em; }
small { font-size: .72em; letter-spacing: .04em; }
em { font-style: normal; }
table { width: 100%; border-collapse: collapse; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 80;
  padding: .4em 1em; background: var(--fg); color: var(--bg);
}
.skip:focus { top: 12px; }

/* ---------- Shared parts ---------- */

.label {
  display: flex; align-items: baseline; gap: 1.1em;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .16em;
  line-height: 1.4;
}
.label em {
  color: var(--accent);
  font-family: var(--latin);
  font-size: 1.32em;
  font-style: italic;
  letter-spacing: .08em;
}

.frame { overflow: hidden; border-radius: 3px; background: #181d23; }
.frame img { height: 100%; object-fit: cover; }

.note { color: var(--muted); font-size: .84rem; }

.notice {
  display: inline-block;
  padding: .55em 1.2em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(13, 16, 20, .55);
  color: var(--white);
  font-size: .8rem;
  line-height: 1.6;
  backdrop-filter: blur(6px);
}
.notice-text { color: var(--accent); }

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95em 2em;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--fg);
  font-size: .9rem;
  line-height: 1.5;
  letter-spacing: .12em;
  text-align: center;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  background: var(--accent);
  transform: translateY(102%);
  transition: transform .55s var(--ease);
}
@media (hover: hover) {
  .btn:hover { color: var(--bg); }
  .btn:hover::before { transform: none; }
}
.btn--sm { padding: .55em 1.35em; font-size: .78rem; }
.btn--solid { background: var(--accent); color: var(--lacquer); }
.btn--solid::before { background: var(--white); }
@media (hover: hover) { .btn--solid:hover { color: var(--lacquer); } }

.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btns--center { justify-content: center; }

.row {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto;
  align-items: baseline;
  gap: 0 .8em;
  padding: .85em 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.row i { align-self: end; margin-bottom: .45em; border-bottom: 1px dotted var(--line); }
.row__price { white-space: nowrap; font-size: .95em; }
.row__price small { margin-left: .25em; color: var(--muted); }
.row p { grid-column: 1 / -1; margin-top: .25em; color: var(--muted); font-size: .84rem; line-height: 1.8; }

.terms th, .terms td { padding: .75em .9em .75em 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; font-size: .88rem; line-height: 1.7; vertical-align: top; }
.terms thead th { color: var(--accent); }
.terms tbody th { color: var(--muted); white-space: nowrap; }
.terms--compact a { color: var(--accent); white-space: nowrap; border-bottom: 1px solid currentColor; }
.terms--compact td:last-child { text-align: right; padding-right: 0; }

/* ---------- Header and menu ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(14px, 1.7vw, 24px) var(--pad);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0 0 -24px; z-index: -1;
  background: linear-gradient(var(--bg) 66%, transparent);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: .92; }

.logo { display: inline-flex; align-items: center; gap: .8em; white-space: nowrap; line-height: 1; }
.logo__mark { width: 42px; height: 31px; flex: none; }
.logo-mark__ink { fill: currentColor; }
.logo-mark__red { fill: var(--accent); }
.site-header:not(.is-scrolled) { --logo-sub: var(--white); }
.logo__text { display: grid; gap: .5em; font-family: var(--logo); }
.logo__text b { font-size: 1rem; font-weight: 400; letter-spacing: .3em; }
.logo__text small { color: var(--logo-sub, var(--muted)); font-size: .5rem; letter-spacing: .62em; }

.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: .84rem; }
.nav a { position: relative; line-height: 1.6; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
@media (hover: hover) { .nav a:hover::after { transform: none; } }

.site-header__end { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none;
  appearance: none; background: none; border: 0; padding: .3em 0;
  color: inherit; font-family: var(--latin); font-size: 1.05rem; font-style: italic; letter-spacing: .08em;
  cursor: pointer;
}

.menu {
  position: fixed; inset: 0; z-index: 35;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: 84px var(--pad) 40px;
  background: var(--lacquer);
  color: var(--white);
  visibility: hidden;
}
.menu.is-open { visibility: visible; }
.menu__nav a { display: flex; align-items: baseline; gap: 1em; padding: .5em 0; border-bottom: 1px solid rgba(243, 244, 241, .16); font-size: 1.28rem; }
.menu__nav em { width: 4.6em; color: var(--vermilion); font-family: var(--latin); font-size: .78em; font-style: italic; }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.menu__foot .btn { color: var(--white); border-color: var(--vermilion); }
.menu__tel { color: var(--vermilion); }

/* ---------- Thread ---------- */

.thread { position: absolute; top: 0; left: 0; z-index: 3; width: 100%; overflow: visible; pointer-events: none; }
.thread__line { fill: none; stroke: var(--accent); stroke-width: 1; }
.thread__head polygon { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
.thread__head { opacity: 0; transition: opacity .35s ease; }

.tn { position: absolute; left: 0; width: 0; height: 0; pointer-events: none; }

/* ---------- Hero ---------- */

.hero {
  --R: clamp(60px, min(15vw, 14.5vh), 132px);   /* radius of one hexagon of the mark, and of every lattice cell */
  --cy: 47%;
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: var(--lacquer);
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(6, 10, 14, .78), rgba(6, 10, 14, .5) 16%, rgba(6, 10, 14, 0) 36%),
    radial-gradient(ellipse 60% 62% at 50% var(--cy), rgba(6, 10, 14, .42), rgba(6, 10, 14, .1) 72%),
    linear-gradient(to bottom, rgba(6, 10, 14, .72), rgba(6, 10, 14, 0) 24%, rgba(6, 10, 14, 0) 55%, var(--lacquer) 99%);
}

/* The logo: two linked hexagons over the name. Proportions follow logo-final (emblem radius R, name sizes as shares of R). */
.hero__logo {
  position: absolute; left: 50%; top: var(--cy);
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -50%);
}
.hero__emblem {
  height: calc(var(--R) * 2.0665); width: auto; aspect-ratio: 426.78 / 309.98;
  overflow: visible;
  filter: drop-shadow(0 0 calc(var(--R) * .16) rgba(6, 10, 14, .55));
}
.emblem__ink { fill: var(--white); }
.emblem__red { fill: var(--vermilion); }

.mark {
  display: flex; flex-direction: column; align-items: center;
  margin: calc(var(--R) * .47) 0 0;
  font-family: var(--logo);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  font-feature-settings: normal;
  text-shadow: 0 0 calc(var(--R) * .2) rgba(6, 10, 14, .7);
}
.mark__sub { margin-right: -.62em; color: rgba(243, 244, 241, .78); font-size: max(10px, calc(var(--R) * .193)); letter-spacing: .62em; }
.mark__latin { margin: calc(var(--R) * .14) -.3em 0 0; font-size: calc(var(--R) * .4545); letter-spacing: .3em; }
.mark .ch { display: inline-block; }

.hero__copy {
  position: absolute; right: var(--pad); top: var(--cy);
  display: flex; flex-direction: column; gap: .9em;
  font-size: clamp(.95rem, 1.32vw, 1.28rem);
  line-height: 1.5;
  letter-spacing: .24em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font-feature-settings: normal;
  text-shadow: 0 0 22px rgba(6, 10, 14, .7);
}
.hero__copy span { display: block; }

.hero__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(20px, 4vh, 40px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  font-size: .8rem;
  line-height: 1.7;
}
.hero__place em { display: block; color: var(--vermilion); font-family: var(--latin); font-size: 1.32em; font-style: italic; }

/* ---------- Concept ---------- */

.concept { position: relative; padding: clamp(120px, 26vh, 260px) var(--pad) clamp(200px, 34vh, 340px); }
.concept__inner { margin-left: clamp(0px, 12vw, 200px); max-width: 1040px; }
.statement {
  margin: 1.2em 0 2.2em;
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  line-height: 1.62;
  letter-spacing: .1em;
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); max-width: 780px; }
.facts > div { padding-top: 1em; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.facts dd { font-size: 1rem; line-height: 1.2; }
.facts b { color: var(--accent); font-family: var(--latin); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 300; letter-spacing: 0; margin-right: .08em; font-variant-numeric: lining-nums; }
.facts p { margin-top: .4em; color: var(--muted); font-size: .8rem; line-height: 1.6; }

/* ---------- Space ---------- */

.space {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(56px, 7vw, 120px);
  padding: 0 var(--pad);
}
.space__media { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; height: 100vh; align-self: start; }
.space__frame { position: relative; width: 100%; height: min(78vh, 46vw); overflow: hidden; border-radius: 3px; background: #181d23; }
.space__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.space__text { position: relative; padding-left: clamp(28px, 4vw, 64px); }
.chapter { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 12vh 0; max-width: 32em; }
.chapter__img { display: none; }
.chapter__no { color: var(--accent); font-family: var(--latin); font-size: 1.15rem; font-style: italic; line-height: 1.4; }
.chapter__no b { font-weight: 300; }
.chapter h3 { margin: .7em 0 1.1em; font-size: clamp(1.45rem, 2.5vw, 2.3rem); }

/* ---------- Course ---------- */

.course { position: relative; padding: clamp(120px, 24vh, 240px) var(--pad) clamp(140px, 26vh, 280px); }
.course__head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(90px, 24vh, 240px);
}
.course__intro h2 { margin: .6em 0 .6em; font-size: clamp(1.8rem, 4.2vw, 3.7rem); line-height: 1.4; }
.course__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em 1.1em; margin-bottom: 1.6em; line-height: 1.5; }
.course__price b { color: var(--accent); font-size: 1.5rem; font-weight: 400; letter-spacing: .06em; }
.course__price small { margin-left: -1em; color: var(--muted); }
.course__price span { color: var(--muted); font-size: .88rem; }
.course__photo .frame { aspect-ratio: 5 / 4; }

.episodes {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
}
.episodes__sticky { position: sticky; top: 20vh; display: grid; line-height: 1; color: var(--accent); font-family: var(--latin); }
.episodes__word { font-size: clamp(1.2rem, 2vw, 1.8rem); font-style: italic; letter-spacing: .06em; }
.episodes__num { display: block; height: 1em; overflow: hidden; font-size: clamp(6rem, 15vw, 15.5rem); font-weight: 300; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.episodes__digit { display: block; }
.episodes__of { margin-top: .3em; color: var(--muted); font-size: 1.1rem; }

.episodes__list { position: relative; }
.ep {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(110px, 17vh, 170px);
  padding: 1.1em 0 1.1em clamp(30px, 4.4vw, 70px);
  line-height: 1.5;
}
.ep::before {
  content: "";
  position: absolute; left: -5px; top: 50%;
  width: 10px; height: 11.5px;
  background: var(--line);
  clip-path: var(--hex);
  transform: translateY(-50%);
  transition: background .5s ease, transform .5s var(--ease);
}
.ep__no { color: var(--muted); font-family: var(--latin); font-size: 1.02rem; font-style: italic; letter-spacing: .06em; transition: color .5s ease; }
.ep__name { font-size: clamp(1.14rem, 2.25vw, 2.05rem); letter-spacing: .1em; transition: color .5s ease, transform .7s var(--ease); }
.js .ep__name { color: var(--muted); }
.ep.is-active::before { background: var(--accent); transform: translateY(-50%) scale(1.6); }
.ep.is-active .ep__no { color: var(--accent); }
.ep.is-active .ep__name { color: var(--fg); transform: translateX(.35em); }

.course__foot {
  position: relative;
  margin: clamp(50px, 9vh, 100px) 0 0 calc(100% / 3);
  padding-left: clamp(30px, 4.4vw, 70px);
}
.course__foot .terms { margin: 1.4em 0 2em; }

/* ---------- Lunch ---------- */

.lunch { position: relative; padding: clamp(110px, 20vh, 210px) var(--pad) clamp(80px, 14vh, 150px); }
.lunch__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); padding-right: 3vw; }
.tategaki {
  display: flex; flex-direction: column; gap: .7em;
  margin: 2em 0 2.6em;
  font-size: clamp(1.02rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  letter-spacing: .2em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  font-feature-settings: normal;
}
.lunch__photo .frame { aspect-ratio: 4 / 3; }
.lunch__name { font-family: var(--latin); font-size: clamp(2.6rem, 5.6vw, 5.2rem); font-weight: 300; line-height: 1.05; letter-spacing: .03em; }
.w { display: inline-block; white-space: nowrap; }
.lunch__price { margin: .8em 0 1.4em; line-height: 1.5; }
.lunch__price b { color: var(--accent); font-size: 1.5rem; font-weight: 400; letter-spacing: .06em; }
.lunch__price small { margin-left: .25em; color: var(--muted); }
.steps { margin: 2em 0 3em; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 1em; padding: .8em 0; border-bottom: 1px solid var(--line); line-height: 1.8; }
.steps span { color: var(--accent); font-size: .88rem; }

.kids {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
  margin-top: clamp(90px, 16vh, 180px);
  padding-right: 3vw;
}
.kids__photo { width: min(100%, 420px); clip-path: var(--hex); aspect-ratio: .866; margin-inline: auto; }
.kids__photo img { height: 100%; object-fit: cover; }
.kids h3 { margin: .5em 0 .4em; font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.kids__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em 1.1em; line-height: 1.5; }
.kids__price b { color: var(--accent); font-size: 1.25rem; font-weight: 400; }
.kids__price small { margin-left: -1em; color: var(--muted); }
.kids__price span { color: var(--muted); font-size: .86rem; }
.kids__lead { margin: 1em 0 .6em; }
.kids__list { margin-bottom: .8em; }
.kids__list li { position: relative; padding-left: 1.1em; line-height: 1.85; }
.kids__list li::before { content: "・"; position: absolute; left: -.05em; color: var(--accent); }
.kids__list small { color: var(--muted); }
.kids .terms { margin: 1.2em 0 .6em; }

/* ---------- Drinks ---------- */

.drinks { position: relative; padding: clamp(60px, 12vh, 120px) var(--pad) clamp(120px, 22vh, 240px); }
.drinks__head { margin-bottom: clamp(36px, 7vh, 72px); }
.drinks__head h2 { margin-top: .4em; font-family: var(--latin); font-size: clamp(2.2rem, 5.4vw, 4.8rem); font-weight: 300; letter-spacing: .03em; line-height: 1.1; }
.drinks__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); padding-right: 3vw; }
.drinks__col h3 { padding-bottom: .4em; border-bottom: 1px solid var(--accent); color: var(--accent); font-family: var(--latin); font-size: 1.28rem; font-style: italic; letter-spacing: .12em; }

/* ---------- Gallery ---------- */

.gal { position: relative; }
.gal__stage { position: sticky; top: 0; z-index: 4; height: 100vh; overflow: hidden; background: var(--bg); }
.gal__track { position: relative; display: flex; align-items: center; gap: clamp(40px, 5vw, 96px); width: max-content; height: 100%; padding-inline: var(--pad); will-change: transform; }
.gal__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; transform-origin: left; }
.gal__line--base { background: var(--line); }
.gal__line--live { background: var(--accent); transform: scaleX(0); }

.gal__panel { position: relative; flex: none; width: min(30em, 36vw); padding: 2.2em 0; background: var(--bg); }
.gal__panel h2 { margin: .8em 0 .9em; font-size: clamp(1.5rem, 2.5vw, 2.3rem); }
.gal__panel h3 { margin-bottom: .9em; font-size: clamp(1.3rem, 2.1vw, 1.95rem); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.tags li { padding: .25em .9em; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; line-height: 1.7; }

.ph { position: relative; flex: none; }
.ph .frame { aspect-ratio: 1; }
.ph--s { width: 33vh; }
.ph--m { width: 50vh; }
.ph--l { width: 66vh; }
.ph--up { transform: translateY(-7vh); }
.ph--down { transform: translateY(7vh); }
.ph figcaption { display: flex; align-items: baseline; gap: .9em; margin-top: .75em; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.ph figcaption b { color: var(--accent); font-family: var(--latin); font-size: 1.15em; font-style: italic; font-weight: 400; }

/* ---------- Reservation ---------- */

.reserve { position: relative; display: grid; place-items: center; min-height: 112vh; overflow: hidden; color: var(--white); text-align: center; }
.reserve__media { position: absolute; inset: 0; will-change: clip-path; }
.reserve__media::after { content: ""; position: absolute; inset: 0; background: rgba(6, 10, 14, .56); }
.reserve__media img { height: 100%; object-fit: cover; }
.reserve__body { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 1.6em; padding: 16vh var(--pad); }
.reserve__body .label { justify-content: center; color: #d5d9da; }
.reserve__body .label em { color: var(--vermilion); }
.reserve__body h2 { font-size: clamp(1.5rem, 3.6vw, 3.3rem); }
.reserve__body .note { color: #d5d9da; }
.reserve .btn { color: var(--white); border-color: var(--white); }
.reserve .btn--solid { background: var(--white); color: var(--lacquer); }
@media (hover: hover) {
  .reserve .btn:hover { color: var(--lacquer); }
  .reserve .btn::before, .reserve .btn--solid::before { background: var(--vermilion); }
}

/* ---------- Access ---------- */

.access { position: relative; padding: clamp(100px, 20vh, 200px) var(--pad) clamp(170px, 35vh, 350px); }
.access__head h2 { margin-top: .4em; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.2; }
.access__kana { color: var(--muted); font-size: .84rem; margin-top: .5em; }
.access__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); margin-top: clamp(36px, 7vh, 72px); }
.info > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 1em; padding: 1em 0; border-bottom: 1px solid var(--line); line-height: 1.85; }
.info dt { color: var(--accent); font-size: .86rem; line-height: 2.1; }
.info a { border-bottom: 1px solid var(--accent); }
.access__map { min-height: 340px; overflow: hidden; border-radius: 3px; background: #101a23; }
.access__map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.85) contrast(.92) brightness(.92); }

.hours, .guide { margin-top: clamp(56px, 10vh, 110px); }
.hours h3, .guide h3 { margin-bottom: .9em; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.hours__table th, .hours__table td { padding: 1em 1.2em 1em 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; line-height: 1.6; vertical-align: top; }
.hours__table thead th { padding-block: .4em; color: var(--accent); font-size: .86rem; }
.hours__table tbody th { white-space: nowrap; color: var(--accent); }
.hours__table small { display: block; margin-top: .2em; color: var(--muted); }

.guide__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(36px, 5vw, 80px); }
.guide__list > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 1em; padding: .8em 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.8; }
.guide__list dt { color: var(--muted); font-size: .92em; }

/* ---------- Footer ---------- */

.footer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.2em; padding: clamp(110px, 22vh, 220px) var(--pad) 40px; background: var(--lacquer); color: var(--white); text-align: center; }
.footer__hex { position: relative; z-index: 4; width: 150px; height: auto; overflow: visible; }
.footer__arm { fill: none; stroke: var(--vermilion); stroke-width: 8.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__erase { fill: none; stroke: var(--lacquer); stroke-width: 19.26; }
.footer__ring { fill: var(--white); }
.footer__mark { display: grid; justify-items: center; gap: .62em; margin: .5em 0 2.4em; line-height: 1; font-family: var(--logo); }
.footer__sub { margin-right: -.62em; color: #a4adb3; font-size: .56rem; letter-spacing: .62em; }
.footer__latin { margin-right: -.3em; font-size: 1.3rem; font-weight: 400; letter-spacing: .3em; }
.footer__kana { margin-top: .5em; color: #98a2a8; font-family: var(--mincho); font-size: .66rem; letter-spacing: .24em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em 1.7em; font-size: .86rem; }
.footer__small { color: #98a2a8; font-size: .76rem; line-height: 1.8; }
.footer a { transition: color .3s ease; }
@media (hover: hover) { .footer a:hover { color: var(--vermilion); } }

/* ---------- Parts that only exist when the manager fills them in (/admin/) ---------- */

img[data-img]:not([src]) { visibility: hidden; }   /* an uploaded photo, until it has been fetched */

.news { max-width: 780px; margin-bottom: clamp(72px, 14vh, 150px); }
.news__list { margin-top: 1.1em; border-top: 1px solid var(--line); }
.news__list li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 0 1.2em; padding: 1.1em 0; border-bottom: 1px solid var(--line); line-height: 1.8; }
.news__list li.no-date { grid-template-columns: minmax(0, 1fr); }
.news__list time { color: var(--accent); font-family: var(--latin); font-size: 1.08rem; letter-spacing: .06em; font-variant-numeric: lining-nums; }
.news__list h3 { font-size: 1rem; line-height: 1.8; letter-spacing: .08em; }
.news__list p { margin-top: .3em; color: var(--muted); font-size: .88rem; }

.course__block + .course__block { margin-top: clamp(140px, 26vh, 280px); }
.lunch__block + .lunch__block { margin-top: clamp(56px, 10vh, 110px); }
.lunch__block > .steps:last-child, .lunch__block > .menu-rows:last-child { margin-bottom: 0; }
.lunch__block > .label { margin-bottom: 1em; }
.lunch__name--ja { font-family: var(--mincho); font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.4; letter-spacing: .1em; }
.menu-head { margin-bottom: .5em; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.menu-sub { margin: 2.2em 0 .1em; color: var(--accent); font-size: .92rem; font-weight: 400; line-height: 1.6; letter-spacing: .14em; }
.menu-head + .menu-sub, .lunch__block > .menu-sub:first-child { margin-top: 0; }

.row--photo { grid-template-columns: 64px auto minmax(16px, 1fr) auto; }
.row__img { grid-row: 1 / span 2; align-self: start; width: 64px; height: 64px; margin-right: .4em; border-radius: 3px; object-fit: cover; }
.row--photo p { grid-column: 2 / -1; }
.row__tag { margin-left: .9em; padding: .1em .7em; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; white-space: nowrap; }
.row.is-soldout .row__name, .row.is-soldout .row__price { color: var(--muted); }

.drinks__lead { max-width: 40em; margin-top: 1em; }
.drinks__grid + .drinks__head { margin-top: clamp(70px, 12vh, 130px); }

@media (max-width: 1319px) {
  .drinks__grid:not(.drinks__grid--auto) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .drinks__grid:not(.drinks__grid--auto) > .drinks__col:first-child { grid-row: span 2; }
}
.drinks__grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

@media (max-width: 899px) {
  .news__list li { grid-template-columns: minmax(0, 1fr); }
  .drinks__grid:not(.drinks__grid--auto) { grid-template-columns: minmax(0, 1fr); }
  .drinks__grid:not(.drinks__grid--auto) > .drinks__col:first-child { grid-row: auto; }
}

/* ---------- Initial states for scripted reveals ---------- */

.js .hero__copy span,
.js .hero__foot > *,
.js .hero__emblem,
.js .mark .ch,
.js .site-header { visibility: hidden; }
.js [data-reveal], .js [data-chars] { visibility: hidden; }
html.is-static [data-reveal], html.is-static [data-chars] { visibility: visible; }

/* The photo and logo sit in the markup, so they would paint before the scripts arrive.
   Hold them back until the opening has drawn its first black frame over them. */
.js:not(.is-stage-ready) .hero__media,
.js:not(.is-stage-ready) .mark { visibility: hidden; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 899px) {
  .hero { --cy: 36%; --R: clamp(56px, min(17vw, 11vh), 96px); }
  .hero__shade {
    background:
      radial-gradient(ellipse 80% 42% at 50% var(--cy), rgba(6, 10, 14, .42), rgba(6, 10, 14, .1) 80%),
      linear-gradient(to bottom, rgba(6, 10, 14, .72), rgba(6, 10, 14, .05) 22%, rgba(6, 10, 14, .1) 50%, rgba(6, 10, 14, .72) 84%, var(--lacquer) 99%);
  }
  .hero__copy { top: auto; right: var(--pad); bottom: 104px; transform: none; font-size: .98rem; height: auto; letter-spacing: .2em; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .notice { font-size: .72rem; }

  .concept__inner { margin-left: 0; }
  .concept, .course, .lunch, .drinks, .access { padding-left: calc(var(--pad) + 8px); }
  .facts { gap: 12px; }
  .facts p { font-size: .72rem; }

  .space { display: block; padding-left: calc(var(--pad) + 8px); }
  .space__media { display: none; }
  .space__text { padding-left: 0; }
  .chapter { min-height: 0; padding: 7vh 0; }
  .chapter__img { display: block; aspect-ratio: 5 / 4; object-fit: cover; margin-bottom: 1.6em; border-radius: 3px; }

  .course__head { grid-template-columns: minmax(0, 1fr); }
  .episodes { display: block; }
  .episodes__sticky { top: 58px; z-index: 2; display: flex; align-items: baseline; gap: .4em; padding: .3em 0 .6em; background: linear-gradient(var(--bg) 78%, transparent); }
  .episodes__num { font-size: 3rem; }
  .episodes__of { margin: 0; }
  .ep { min-height: 92px; padding: .9em 0 .9em 0; }
  .ep::before { left: calc(var(--pad) * -1 - 8px + 3vw - 5px); }
  .course__foot { margin-left: 0; padding-left: 0; }
  .terms th, .terms td { padding-right: .6em; font-size: .8rem; }

  .lunch__grid, .kids { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .tategaki { font-size: .98rem; }
  .kids__photo { width: min(72%, 300px); margin-inline: 0; }
  .steps li { grid-template-columns: 6em minmax(0, 1fr); }

  .drinks__grid { grid-template-columns: minmax(0, 1fr); padding-right: 0; gap: 44px; }

  .gal { padding: 70px 0 90px; }
  .gal__stage { position: static; height: auto; overflow: visible; z-index: auto; background: none; }
  .gal__line { display: none; }
  .gal__track { flex-direction: column; align-items: stretch; width: auto; height: auto; gap: 44px; padding-left: calc(var(--pad) + 8px); padding-right: var(--pad); will-change: auto; }
  .gal__panel { width: auto; padding: 0; background: none; }
  .ph, .ph--up, .ph--down { transform: none; }
  .ph--s { width: 68%; }
  .ph--s:nth-of-type(even) { margin-left: auto; }
  .ph--m { width: 84%; }
  .ph--l { width: 100%; }

  .reserve { min-height: 88vh; }
  .reserve__body { padding-inline: calc(var(--pad) + 8px) var(--pad); }
  .reserve .btn { width: 100%; }
  .reserve .btns { width: 100%; max-width: 340px; }

  .access__grid { grid-template-columns: minmax(0, 1fr); }
  .guide__list { grid-template-columns: minmax(0, 1fr); }
  .guide__list > div { grid-template-columns: 8.2em minmax(0, 1fr); }
  .hours__table th, .hours__table td { padding-right: .7em; font-size: .88rem; }
  .hours__table small { font-size: .68rem; }
}

@media (max-width: 520px) {
  .site-header__end .btn--sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Natural Japanese line breaks: no single orphaned character on narrow screens */
h2, h3, .ep__name, .notice, .statement { text-wrap: balance; word-break: auto-phrase; }
.row__name { word-break: auto-phrase; }
@media (max-width: 899px) {
  .gal__panel h2 { font-size: 1.32rem; }
}

/* ---------- Contact form (shown only once it has been set up: js/contact.js) ---------- */
.contact { position: relative; padding: clamp(110px, 20vh, 210px) var(--pad) clamp(90px, 16vh, 170px); }
.contact__head, .form, .form__done { max-width: 760px; margin-inline: auto; }
.contact__head h2 { margin-top: .5em; font-size: clamp(1.5rem, 3.2vw, 2.6rem); }
.contact__lead { margin-top: 1.4em; }
.contact__head .note { margin-top: 1em; }
.contact__head .note a, .form__done a { border-bottom: 1px solid var(--accent); }

.form { display: grid; gap: clamp(26px, 4vh, 40px); margin-top: clamp(40px, 7vh, 72px); }
.form[hidden], .form__done[hidden] { display: none; }
.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form__label { display: flex; align-items: baseline; gap: .8em; padding: 0; font-size: .86rem; letter-spacing: .12em; line-height: 1.6; }
.form__label i { color: var(--accent); font-size: .72rem; font-style: normal; }
.form__label small { color: var(--muted); font-size: .72rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vh, 40px) clamp(24px, 4vw, 56px); }
.field, .field--pair label { display: grid; align-content: start; gap: .5em; min-width: 0; }
.field--pair { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 clamp(16px, 2vw, 28px); }
.form input:not([type="radio"]), .form textarea {
  width: 100%; min-width: 0; margin: 0; padding: .55em 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--fg);
  font: inherit; font-size: max(16px, 1rem); letter-spacing: .05em; line-height: 1.7;   /* 16px: iOS zooms into anything smaller */
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form input[type="date"] { min-height: calc(2.8em + 1px); }
.form textarea { display: block; min-height: 9em; padding: .8em 1em; border: 1px solid var(--line); border-radius: 3px; resize: vertical; }
.form input:not([type="radio"]):focus-visible, .form input[aria-invalid="true"] { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.form textarea:focus-visible, .form textarea[aria-invalid="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.unit { display: flex; align-items: baseline; gap: .5em; }
.unit em { color: var(--muted); font-size: .86rem; font-style: normal; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .9em; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: .6em 1.3em; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; line-height: 1.6; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__topics.is-bad .chip span { border-color: var(--accent); }
@media (hover: hover) { .chip:hover span { border-color: var(--accent); } }

.form__check { display: flex; justify-content: center; min-height: 78px; }
.form__status { color: var(--accent); font-size: .88rem; line-height: 1.7; text-align: center; }
.form__status:empty { display: none; }
.form .btn { min-width: min(100%, 280px); font-family: inherit; cursor: pointer; }
.form .btn--solid { color: var(--white); }
.form .btn[disabled] { opacity: .55; cursor: default; }
@media (hover: hover) { .form .btn--solid:not([disabled]):hover { color: var(--lacquer); } }

.form__done { display: grid; place-content: center; gap: 1em; margin-top: clamp(40px, 7vh, 72px); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 3px; text-align: center; }
.form__done h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.form__done:focus { outline: none; }

@media (max-width: 899px) {
  .contact { padding-left: calc(var(--pad) + 8px); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- After the first outside review (2026-11-18) ---------- */

/* While the shop is closed, the notice is what a visitor needs first: large and solid enough to read over the photo */
.notice { padding: .6em 1.3em; background: rgba(13, 16, 20, .78); font-size: .88rem; }
.reserve__paused { max-width: 34em; line-height: 1.9; text-wrap: balance; word-break: auto-phrase; }

/* Running text a little tighter, figures aligned, and no line that ends in one stranded character */
body { letter-spacing: .05em; }
p, li, dd, figcaption { text-wrap: pretty; }
.terms, .hours__table, .guide__list, .info, .row__price, .row p, .note { letter-spacing: .03em; }
.terms td, .hours__table td, .row__price { font-variant-numeric: lining-nums tabular-nums; }
.steps li, .kids__list li, .guide__list dd, .info dd, .facts dt, .facts p, figcaption { word-break: auto-phrase; }
.steps li { text-wrap: balance; }

/* Phones: the copy on the first screen takes the space between the mark and the address, however short the screen.
   It used to be pinned to the bottom, so with the browser's address bar showing it ran up into the mark. */
@media (max-width: 899px) {
  .hero { --cy: 32%; }
  .hero__copy {
    top: calc(var(--cy) + var(--R) * 1.74 + 12px); bottom: 92px; height: auto;
    gap: .7em; font-size: clamp(.78rem, 2.3vh, .98rem); letter-spacing: .14em;
  }
  .hero__copy span { word-break: auto-phrase; }
  .notice { font-size: .8rem; }
}

/* ---------- After the second outside review (2026-11-19): size follows importance ----------
   The words had become concrete, but the largest things on screen were still the mark, a counter and English titles.
   Nothing here removes a movement; it changes how much room each thing takes. */

/* First screen: the mark at about 70 %, so the room behind it is seen; the notice is the one thing a visitor must not miss */
.hero { --R: clamp(46px, min(10.5vw, 10.2vh), 94px); }
.hero__foot .notice { border-color: var(--vermilion); background: var(--vermilion); color: var(--lacquer); font-size: .92rem; font-weight: 600; backdrop-filter: none; }

/* The introduction is a practical sentence (shoes off, tatami tables, a room upstairs): set to be read, not announced */
.concept { padding-bottom: clamp(120px, 22vh, 220px); }
.statement { max-width: 27em; font-size: clamp(1.2rem, 2.35vw, 2.05rem); line-height: 1.95; letter-spacing: .06em; }
/* and the three figures are a quiet line of facts under it, no longer a row of results */
.facts { max-width: 640px; gap: clamp(14px, 2.4vw, 34px); }
.facts > div { padding-top: .8em; }
.facts dd { line-height: 1.5; }
.facts b { font-size: 1.55rem; font-weight: 400; }

/* Course: the dishes lead. The counter stays and still turns, but as a marker beside the list; every dish can be read
   before the thread reaches it. */
.course__intro h2 { font-size: clamp(1.6rem, 3.2vw, 2.8rem); }
.course__price b, .lunch__price b, .kids__price b { font-size: 1.8rem; }
.episodes { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.episodes__word { font-size: clamp(1rem, 1.4vw, 1.3rem); }
.episodes__num { font-size: clamp(3.2rem, 6.4vw, 6.2rem); }
.ep { min-height: clamp(76px, 10.5vh, 108px); padding-block: .8em; }
.ep__name { color: color-mix(in srgb, var(--fg) 76%, transparent); }

/* Lunch and drinks: the English names are names, not headlines */
.lunch__name { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.15; }
.lunch__name--ja { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.drinks__head h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }

@media (max-width: 899px) {
  .hero { --R: clamp(48px, min(15vw, 9.8vh), 86px); }
  .hero__foot .notice { font-size: .82rem; }
  .episodes { grid-template-columns: minmax(0, 1fr); }
  .episodes__num { font-size: 2.2rem; }
  .facts b { font-size: 1.35rem; }
}
