/* 日本料理 さか本 — public site. Every colour, size, space and duration comes from
   the tokens below (DESIGN.md §2). Do not add raw values outside :root. */
@font-face {
  font-family: "Shippori Mincho";
  src: url("/assets/fonts/shippori-mincho-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2030-203A, U+20AC;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("/assets/fonts/shippori-mincho-ja.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF;
}
/* Only the glyphs of the news list heading "お知らせ一覧" (scripts/build-font.mjs prints this range). */
@font-face {
  font-family: "Shippori Mincho News";
  src: url("/assets/fonts/shippori-mincho-news.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0020, U+304A, U+77E5, U+3089, U+305B, U+4E00, U+89A7;
}

:root {
  /* colour */
  --kinari: #f3f1e9;
  --washi: #fbfaf6;
  --sumi: #1e221f;
  --nezumi: #4a4e47;
  --koke: #44583a;
  --tsuchi: #5f452f; /* 7.81:1 on kinari */
  --kusa: #6f7d4f;
  --koke-deep: #2f3b2c;
  --kusa-light: #b9c49a;
  --hai: #c9c6b8;
  --line: #dcd9ce;
  --scrim: rgb(30 34 31 / 0.72);

  /* type */
  --font-display: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --font-display-system: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --font-text: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "YuGothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  --fs-note: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-h4: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-h2: 1.75rem;
  --fs-h1: 2.25rem;
  --fs-display: 2.8125rem;
  --lh-body: 1.75;
  --lh-lead: 1.75;
  --lh-h4: 1.6;
  --lh-h3: 1.5;
  --lh-h2: 1.45;
  --lh-h1: 1.4;
  --ls-text: 0.02em;
  --ls-heading: 0.01em;
  --measure: 36em;

  /* space (IBM Carbon scale) */
  --sp-01: 2px;
  --sp-02: 4px;
  --sp-03: 8px;
  --sp-04: 12px;
  --sp-05: 16px;
  --sp-06: 24px;
  --sp-07: 32px;
  --sp-08: 40px;
  --sp-09: 48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  --sp-13: 160px;
  --gutter: var(--sp-05);
  --grid-gap: var(--sp-07);
  --section-gap: var(--sp-11);
  --layout-max: 1200px;

  /* shape */
  --radius-0: 0;
  --radius-1: 2px;
  --rule: 1px;

  /* motion (Material 3 durations and easings) */
  --dur-press: 100ms;
  --dur-hover: 200ms;
  --dur-fade: 300ms;
  --dur-reveal: 500ms;
  --dur-hero: 700ms;
  --ease-enter: cubic-bezier(0, 0, 0, 1);
  --ease-hero: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --move-reveal: 12px;
  --stagger: 60ms;
  --hero-scale-from: 1.04;

  /* touch */
  --target: 44px;
  --target-primary: 48px;
  --sticky-height: 64px;
  --thumb: 112px;

  /* component sizes (DESIGN.md §2-9) */
  --logo-h: 44px;
  --logo-h-lg: 56px;
  --term: 9em;
  --dish-no: 2.2em;
  --dot: 6px;
  --dot-hit: 44px;
  --dot-step: 12px;
  --name-shrink: 3.4svh; /* the vertical name's size on short phones (never below --fs-h3) */
  --name-shrink-landscape: 6svh; /* the same on landscape screens under 30em tall */
  --sets-col-min: 21rem; /* narrowest set-meal column; rem, so enlarged text falls back to one column */
  --chevron: 10px;
  --stroke: 1.5px;
  --slide-dish: min(88vw, 560px); /* below the narrowest dish photo (564px): never stretched */
  --slide-h: 250px; /* tablet and PC: one height for every photo (the smallest dish photo is 250px tall) */
  --actions-max: 30rem;
  --ls-vertical: 0.12em;
  --ls-number: 0.04em;
  --lh-note: 1.7;
  --lh-number: 1.3;
  --lh-icon: 1;
  --fw-display: 500;
  --fw-strong: 600;
  --press-scale: 0.98;
  --hover-scale: 1.02;
  --dot-active-scale: 1.4;
  --lightbox-from: 0.96;
  --rule-on-dark: rgb(201 198 184 / 0.4);
  --hover-on-dark: rgb(243 241 233 / 0.08);
  --z-sticky: 20;
  --z-header: 15;
  --header-h: 112px;
  --consent-h: 9rem;
  --hero-photo-max: 34svh;
  --z-consent: 25;
  --z-skip: 30;
  --focus-ring: 3px;
  --rule-strong: 2px;
  --underline-offset: 0.3em;
  --underline-offset-current: 0.45em;
  --count-width: 4em;
  --consent-dialog-h: 85dvh;
  --list-indent: 1.5em;
  --unavailable: 0.4;
  --ratio-hero: 4 / 5;
  --ratio-wide: 2 / 1;
  --ratio-thumb: 3 / 2;
  --cols-hero: 5fr auto 5fr;
  --cols-hero-intl: 5fr 6fr;
  --cols-split: 5fr 7fr;
  --cols-feature: 3fr 2fr;
  --cols-recommend: 2fr 1fr 1fr;
}

/* Breakpoints are in em, so larger browser text moves pages to the roomier layouts. */
@media (min-width: 42em) {
  :root { --gutter: var(--sp-07); --fs-h2: 2.25rem; }
}
@media (min-width: 66em) {
  :root { --gutter: var(--sp-10); --grid-gap: var(--sp-09); --section-gap: var(--sp-13); --fs-h1: 2.8125rem; --fs-display: 3.5625rem; --thumb: 160px; --lh-body: 1.8; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--sp-05); scroll-padding-bottom: calc(var(--sticky-height) + var(--sp-05)); }
/* While the consent banner is open it sits above the sticky bar; keep focused items above both. */
html[data-consent-open] { scroll-padding-bottom: calc(var(--sticky-height) + var(--consent-h) + var(--sp-05)); }
@media (min-width: 66em) {
  html { scroll-padding-top: calc(var(--header-h) + var(--sp-05)); scroll-padding-bottom: var(--sp-05); }
  /* motion.js marks a header taller than a quarter of the screen (large text); it then scrolls away. */
  html[data-header-tall] { scroll-padding-top: var(--sp-05); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--kinari);
  color: var(--sumi);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-text);
  font-kerning: normal;
  font-feature-settings: "palt" 0;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
/* Latin words wrap between words; only Japanese and Chinese text may break anywhere. */
body:lang(en), body:lang(ko) { overflow-wrap: break-word; }
:lang(en) h1 { hyphens: auto; }
/* Japanese headings and dish names break between phrases, and no line ends with one character. */
:lang(ja) :is(h1, h2, h3, .sister-name, .menu-section-title), .news-alert-title:lang(ja) { word-break: auto-phrase; text-wrap: pretty; }
/* Dish names break only at the <wbr> points in the data (site/data/menu.mjs dishNameBreaks). */
.dish-name:lang(ja) { word-break: keep-all; text-wrap: balance; }
.hours-note { text-wrap: pretty; }
/* Japanese notes and answers break between phrases too: no "くだ／さい" and no line of just "い。". */
:lang(ja) :is(.hours-note, .faq-row dd, .access-note) { word-break: auto-phrase; text-wrap: pretty; }
/* Phone numbers break only at their hyphens (and only when the text is very large), never between digits. */
.access-number, .footer-tel, .header-tel-number, .action-detail { word-break: keep-all; overflow-wrap: normal; }
/* In a sentence the number and its brackets move to the next line whole. */
.tel-inline { display: inline-block; word-break: keep-all; overflow-wrap: normal; }
:lang(zh-Hans) :is(h1, h2, h3, .dish-name), :lang(zh-Hant) :is(h1, h2, h3, .dish-name), :lang(ko) :is(h1, h2, h3, .dish-name) { text-wrap: pretty; }
/* Japanese inside Korean pages wraps as Japanese (keep-all would make whole names unbreakable). */
body:lang(ko) [lang="ja"] { word-break: normal; overflow-wrap: anywhere; }
:lang(ko) body, body:lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", var(--font-text); word-break: keep-all; }
body:lang(zh-Hans) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", var(--font-text); }
body:lang(zh-Hant) { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", var(--font-text); }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: var(--underline-offset); text-decoration-thickness: var(--rule); }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: var(--focus-ring) solid var(--koke); outline-offset: var(--focus-ring); border-radius: var(--radius-1); }
.access :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--kusa-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { flex: none; }
[hidden] { display: none !important; }

/* headings: Shippori Mincho for ja/en, OS serif for ko/zh */
h1, h2, h3, h4, .dish-name, .sister-name, .badge {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-heading);
}
:lang(ko) :is(h1, h2, h3, h4, .dish-name, .sister-name) { font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif; }
/* A Latin serif first, so "Sakamoto" is not drawn with SimSun's coarse Latin on Windows. */
/* Mincho fallbacks to the end (Yu Mincho, Hiragino Mincho) so a gothic face never mixes into a heading. */
:lang(zh-Hans) :is(h1, h2, h3, h4, .dish-name, .sister-name) { font-family: "Times New Roman", Times, "Noto Serif SC", "Songti SC", "SimSun", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; }
:lang(zh-Hant) :is(h1, h2, h3, h4, .dish-name, .sister-name) { font-family: "Times New Roman", Times, "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; }
/* Japanese originals on other-language pages use the system serif, so those pages load no web font. */
.dish-original, .name-original { font-family: var(--font-display-system); }

.section-inner { width: 100%; max-width: var(--layout-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-gap) 0; }
.section-title { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--sp-07); }
.section-note { max-width: var(--measure); color: var(--nezumi); font-size: var(--fs-note); line-height: var(--lh-note); margin-bottom: var(--sp-09); }
.text-link { display: inline-flex; align-items: center; min-height: var(--target); gap: var(--sp-03); color: var(--koke); text-decoration: underline; }
.text-link:hover { text-decoration-thickness: var(--rule-strong); }

/* ---------- header ---------- */
/* Hidden by its own height, so larger text never pushes it into view. */
.skip-link { position: absolute; left: var(--sp-05); top: 0; transform: translateY(calc(-100% - var(--sp-02))); z-index: var(--z-skip); padding: var(--sp-04) var(--sp-05); background: var(--sumi); color: var(--washi); }
.skip-link:focus { transform: translateY(var(--sp-03)); }
.site-header { border-bottom: var(--rule) solid var(--line); background: var(--kinari); }
.header-inner {
  max-width: var(--layout-max); margin-inline: auto; padding: var(--sp-04) var(--gutter) var(--sp-02);
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand ." "lang lang"; align-items: center; column-gap: var(--sp-05); row-gap: var(--sp-02);
}
.brand { display: block; grid-area: brand; }
.brand-logo { width: auto; height: var(--logo-h); }
.header-nav, .header-actions { display: none; }
.lang-switch { grid-area: lang; }
/* Five full names on one row; on the narrowest phones (320px) the row wraps rather than hiding a name. */
.lang-switch ul { display: flex; flex-wrap: wrap; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--target); min-height: var(--target);
  padding-inline: var(--sp-02); white-space: nowrap; color: var(--nezumi); text-decoration: none;
}
.lang-switch a[aria-current="true"] { color: var(--sumi); text-decoration: underline; text-decoration-color: var(--kusa); text-underline-offset: var(--underline-offset-current); }
.lang-switch a:hover { color: var(--sumi); }

/* Phones: four short section links follow the hero as one row (not sticky); 320px wraps to two. */
.section-nav { border-block: var(--rule) solid var(--line); margin-top: var(--sp-07); }
.section-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--sp-02); padding-inline: var(--gutter); }
.section-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); min-width: var(--target); padding-inline: var(--sp-02); white-space: nowrap; color: var(--koke); }

@media (min-width: 42em), (orientation: landscape) and (min-width: 36em) {
  .header-inner { grid-template-columns: auto 1fr; grid-template-areas: "brand lang"; }
  .lang-switch ul { justify-content: flex-end; gap: var(--sp-03); }
}
@media (min-width: 66em) {
  html:not([data-header-tall]) .site-header { position: sticky; top: 0; z-index: var(--z-header); }
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions" "brand nav lang"; column-gap: var(--sp-08); row-gap: 0; padding-block: var(--sp-03); }
  .brand-logo { height: var(--logo-h-lg); }
  .header-nav { display: block; grid-area: nav; align-self: center; }
  /* Same padding on every item (a two-character item is still 48px wide), so the gaps look even. */
  .header-nav ul { display: flex; flex-wrap: wrap; column-gap: var(--sp-03); }
  .header-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); min-width: var(--target); padding-inline: var(--sp-02); white-space: nowrap; text-decoration: none; }
  .header-nav a:hover { text-decoration: underline; text-decoration-color: var(--kusa); }
  .header-actions { display: flex; grid-area: actions; justify-content: flex-end; align-items: center; gap: var(--sp-05); }
  .header-tel { display: inline-flex; align-items: center; gap: var(--sp-03); min-height: var(--target); text-decoration: none; }
  .header-tel-number { font-variant-numeric: tabular-nums; font-size: var(--fs-lead); }
  .header-reserve { display: inline-flex; align-items: center; min-height: var(--target); padding-inline: var(--sp-05); background: var(--koke); color: var(--washi); border-radius: var(--radius-1); text-decoration: none; }
  .header-reserve:hover { background: var(--koke-deep); }
  .section-nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--layout-max); margin-inline: auto; padding: var(--sp-03) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-05); row-gap: var(--sp-04); align-items: start;
}
.hero-body { display: contents; }
.hero-media { grid-column: 1; grid-row: 1; overflow: hidden; }
/* Phones keep the photo to about a third of the screen so the opening hours stay on the first screen;
   the crop keeps the lower part of the room, where the irori hearth and the bench are (the alt text). */
.hero-media img { width: 100%; aspect-ratio: var(--ratio-hero); max-height: var(--hero-photo-max); object-fit: cover; object-position: 50% 100%; }
.hero-title { font-size: var(--fs-h1); line-height: var(--lh-h1); }
/* Japanese: the name hangs vertically beside the photo, a grass-coloured rule between them */
.hero-title:lang(ja) {
  grid-column: 2; grid-row: 1; align-self: stretch; position: relative;
  /* On short phones the name shrinks (never below --fs-h3, which follows the browser's text size)
     so it is no taller than the photo and the opening hours stay on the first screen. */
  font-size: max(var(--fs-h3), min(var(--fs-h2), var(--name-shrink)));
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: var(--ls-vertical); line-height: var(--lh-icon);
  padding-left: var(--sp-05); border-left: var(--rule) solid var(--kusa);
}
/* Other-language names: the Japanese original never breaks; a Korean original or a Chinese reading takes its own line. */
.name-original, .name-reading { display: block; font-size: var(--fs-lead); color: var(--nezumi); }
.name-ja { white-space: nowrap; }
/* Other languages: name, place and hours come first; the photo follows. */
.hero:not(:lang(ja)) { grid-template-columns: minmax(0, 1fr); }
.hero-title:not(:lang(ja)) { grid-column: 1; }
.hero:not(:lang(ja)) .hero-media { grid-row: auto; order: 1; }
.hero-place, .hero-hours, .hero .actions { grid-column: 1 / -1; }
.hero-place { color: var(--nezumi); font-size: var(--fs-lead); }
.hero .hero-actions { display: none; } /* phones: the sticky bar carries these */
.hours-note { margin-top: var(--sp-03); }
@media (max-width: 41.99em) {
  .hero .hours-list dd { column-gap: var(--sp-03); }
  .hero .hours-time { font-size: var(--fs-body); }
}
@media (max-width: 65.99em) {
  .hero .hours-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.hours-title { font-size: var(--fs-h4); line-height: var(--lh-h4); margin-bottom: var(--sp-04); }
/* The label column is as wide as its longest label (subgrid keeps the rows aligned), so the times
   start early and nothing overflows at 320px with large text. */
.hours-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--sp-04); row-gap: var(--sp-03); font-variant-numeric: tabular-nums; }
.hours-list > div { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
.hours-list dt { color: var(--nezumi); }
.hours-list dd { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-05); }
.hours-time { font-size: var(--fs-lead); }
.hours-list dd, .hours-time, .hours-lo { overflow-wrap: anywhere; hyphens: auto; } /* times and day names may wrap at very large text */
.hours-lo { color: var(--nezumi); }
.hours-closed dd { font-weight: var(--fw-strong); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-03); }
.action {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-03); min-height: var(--target-primary);
  padding: var(--sp-03) var(--sp-05); border: var(--rule) solid var(--koke); border-radius: var(--radius-1);
  color: var(--koke); background: var(--washi); text-decoration: none;
  transition: background-color var(--dur-hover) var(--ease-enter), color var(--dur-hover) var(--ease-enter);
}
.action:hover { background: var(--kinari); }
.action--primary { grid-column: 1 / -1; background: var(--koke); color: var(--washi); flex-wrap: wrap; }
.action--primary:hover { background: var(--koke-deep); }
.action-detail { font-variant-numeric: tabular-nums; font-size: var(--fs-lead); }
.action:active { transform: scale(var(--press-scale)); transition-duration: var(--dur-press); }

/* Tablet and PC (and landscape phones from 36em): the photo keeps its whole 4:5 frame beside the name;
   place, hours and actions sit in the vertical middle of the photo (no empty band below). */
@media (min-width: 42em), (orientation: landscape) and (min-width: 36em) {
  :root { --hero-photo-max: none; }
  /* Tablet: no actions row (the sticky bar has them), so no empty gap; PC adds the row below. */
  .hero { grid-template-columns: var(--cols-hero); grid-template-rows: 1fr auto auto 1fr; column-gap: var(--grid-gap); row-gap: var(--sp-07); padding-top: var(--sp-07); }
  .hero-media { grid-column: 1; grid-row: 1 / -1; }
  .hero-title:lang(ja) { grid-column: 2; grid-row: 1 / -1; font-size: var(--fs-h1); }
  .hero-place, .hero-hours, .hero .actions { grid-column: 3; }
  .hero-place { grid-row: 2; }
  .hero-hours { grid-row: 3; }
  .hero .hero-actions { grid-row: 4; }
  .hero:not(:lang(ja)) { grid-template-columns: var(--cols-hero-intl); grid-template-rows: 1fr auto auto auto 1fr; }
  .hero:not(:lang(ja)) .hero-media { grid-column: 1; grid-row: 1 / -1; order: 0; }
  .hero-title:not(:lang(ja)) { grid-column: 2; grid-row: 2; }
  .hero:not(:lang(ja)) :is(.hero-place, .hero-hours, .actions) { grid-column: 2; }
  .hero:not(:lang(ja)) .hero-place { grid-row: 3; }
  .hero:not(:lang(ja)) .hero-hours { grid-row: 4; }
  .hero:not(:lang(ja)) .actions { grid-row: 5; }
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: var(--actions-max); }
}
/* Landscape phones and short tablets: hours start at the top beside a photo no taller than the screen allows. */
@media (min-width: 36em) and (max-height: 30em) {
  .hero { grid-template-rows: 0 auto auto 1fr; row-gap: var(--sp-04); padding-top: var(--sp-04); }
  .hero-title:lang(ja) { font-size: max(var(--fs-body), min(var(--fs-h1), var(--name-shrink-landscape))); }
  .hero-title:not(:lang(ja)) { font-size: var(--fs-h3); }
  .hero:not(:lang(ja)) { grid-template-rows: 0 auto auto auto 1fr; }
  .hero-media img { max-height: 70svh; }
}
@media (min-width: 66em) {
  .hero { padding-top: var(--sp-09); grid-template-rows: 1fr auto auto auto 1fr; }
  .hero:not(:lang(ja)) { grid-template-rows: 1fr auto auto auto auto 1fr; }
  .hero-title:lang(ja) { font-size: var(--fs-display); }
  .hero .hero-actions { display: grid; }
}

/* the one orchestrated moment: the photo settles and the rule draws beside the name */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle var(--dur-hero) var(--ease-hero) both; }
  .hero-title:lang(ja) { border-left-color: transparent; }
  .hero-title:lang(ja)::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rule) * -1); width: var(--rule); background: var(--kusa);
    transform-origin: top; animation: rule-draw var(--dur-hero) var(--ease-hero) var(--dur-fade) both;
  }
}
@keyframes hero-settle { from { transform: scale(var(--hero-scale-from)); } to { transform: none; } }
@keyframes rule-draw { from { transform: scaleY(0); } to { transform: none; } }

/* ---------- reveal (section titles and a few rows only) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition: opacity var(--dur-reveal) var(--ease-enter), transform var(--dur-reveal) var(--ease-enter);
    transition-delay: calc(var(--reveal-order, 0) * var(--stagger));
  }
  .motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(var(--move-reveal)); }
  [data-reveal-order="1"] { --reveal-order: 1; }
  [data-reveal-order="2"] { --reveal-order: 2; }
  [data-reveal-order="3"] { --reveal-order: 3; }
}

/* ---------- first visit ---------- */
.faq { display: grid; border-top: var(--rule) solid var(--line); }
.faq-row { display: grid; gap: var(--sp-02); padding-block: var(--sp-05); border-bottom: var(--rule) solid var(--line); }
.faq-row dt { font-weight: var(--fw-strong); color: var(--tsuchi); }
.faq-row dd { max-width: var(--measure); }
@media (min-width: 42em) {
  .faq-row { grid-template-columns: var(--term) 1fr; gap: var(--grid-gap); align-items: baseline; }
  .faq-row dt { font-size: var(--fs-body); }
}

/* ---------- menu ---------- */
.recommend { margin-bottom: var(--sp-10); }
.recommend-title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.recommend-lead { color: var(--nezumi); margin: var(--sp-03) 0 var(--sp-06); }
.recommend-list { display: grid; gap: var(--sp-07); align-items: start; }
.recommend-item { display: grid; gap: var(--sp-04); }
.recommend-photo { overflow: hidden; }
.recommend-photo img { width: 100%; aspect-ratio: var(--ratio-wide); object-fit: cover; }
.badge { justify-self: start; display: inline-block; font-size: var(--fs-body); line-height: var(--lh-note); color: var(--koke); border-bottom: var(--rule) solid var(--kusa); margin-bottom: var(--sp-02); }
.recommend-body .dish-name { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.recommend-body .dish-price { font-size: var(--fs-lead); margin-top: var(--sp-03); }
@media (min-width: 42em) {
  .recommend-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .recommend-item:first-child { grid-column: 1 / -1; grid-template-columns: var(--cols-feature); align-items: end; gap: var(--grid-gap); }
}
@media (min-width: 66em) {
  .recommend-list { grid-template-columns: var(--cols-recommend); }
  .recommend-item:first-child { grid-column: auto; grid-template-columns: 1fr; }
  .recommend-item:first-child .dish-name { font-size: var(--fs-h3); line-height: var(--lh-h3); }
}

.menu-section { margin-top: var(--sp-09); }
.menu-fold + .menu-fold { margin-top: 0; } /* closed sections sit as one list of rules */
.menu-section-title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.menu-list { margin-top: var(--sp-05); border-top: var(--rule) solid var(--sumi); }
/* Name and price on the first row; contents and other details below. On phones the details run
   the full width under the photo, which keeps each set meal short. */
.menu-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "details details";
  column-gap: var(--sp-05); row-gap: var(--sp-02); padding-block: var(--sp-05); border-bottom: var(--rule) solid var(--line);
}
.menu-item.has-photo { grid-template-columns: var(--thumb) minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "thumb name" "thumb price" "details details"; }
.dish-head { display: contents; } /* a box only in the two-column set meals */
.menu-item .dish-name { grid-area: name; }
.menu-item .dish-price { grid-area: price; }
.dish-details { grid-area: details; }
.dish-details > :first-child { margin-top: 0; }
.dish-thumb { grid-area: thumb; overflow: hidden; align-self: start; }
.dish-thumb img { width: 100%; aspect-ratio: var(--ratio-thumb); object-fit: cover; }
.dish-name { font-size: var(--fs-lead); line-height: var(--lh-h4); }
.dish-no { display: inline-block; min-width: var(--dish-no); color: var(--tsuchi); font-family: var(--font-text); font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.dish-original { color: var(--nezumi); }
.dish-contents { color: var(--nezumi); margin-top: var(--sp-02); }
.dish-served { color: var(--tsuchi); margin-top: var(--sp-02); }
.dish-ingredients { color: var(--nezumi); margin-top: var(--sp-02); }
.menu-legend { color: var(--nezumi); margin-bottom: var(--sp-06); }
.menu-legend-label { color: var(--tsuchi); margin-inline-end: var(--sp-02); }
.menu-close { min-width: var(--target); margin-block: var(--sp-03) var(--sp-05); padding: 0; border: 0; background: none; cursor: pointer; }
.dish-price { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: end; }
.menu-item.has-photo .dish-price { text-align: start; }
@media (min-width: 42em) {
  .menu-item.has-photo { grid-template-columns: var(--thumb) minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "thumb name price" "thumb details details"; }
  .menu-item.has-photo .dish-price { text-align: end; }
}
.menu-jump { margin-bottom: var(--sp-05); }
.menu-jump ul { display: flex; flex-wrap: wrap; column-gap: var(--sp-05); }
.menu-jump a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); min-width: var(--target); color: var(--koke); }
/* From about 800px: the set meals in two columns, each laid out like a phone row (name over price,
   details full width), so names keep room in either column. */
@media (min-width: 50em) {
  /* rem-based minimum: with enlarged text the list falls back to one column. */
  #menu-sets .menu-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--sets-col-min)), 1fr)); column-gap: var(--grid-gap); }
  /* Name and price stack in one box beside the photo, so the price stays under the name; a row
     stretched by the neighbouring dish gives its extra height to the last row, below the details. */
  #menu-sets .menu-item.has-photo { grid-template-columns: var(--thumb) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "thumb head" "details details"; }
  #menu-sets .menu-item.has-photo .dish-head { display: block; grid-area: head; }
  #menu-sets .menu-item.has-photo .dish-price { text-align: start; margin-top: var(--sp-02); }
}
/* The meat/fish line follows the contents on the same line (one line less per dish). */
.dish-details > .dish-contents, .dish-details > .dish-ingredients { display: inline; }
.dish-details > .dish-contents:has(+ .dish-ingredients)::after { content: "／" / ""; margin-inline: var(--sp-03); color: var(--nezumi); } /* ends the contents line, never starts one; screen readers hear the label */
/* A meat/fish word never splits ("豚／肉"); Japanese and Chinese contents break only between items. */
.dish-ingredient { white-space: nowrap; }
.dish-contents:is(:lang(ja), :lang(zh-Hans), :lang(zh-Hant)) { word-break: keep-all; }
.dish-details > :is(.dish-original, .dish-served) { display: block; }
.dish-details > .dish-original + .dish-contents { margin-top: var(--sp-02); }

.menu-fold { border-top: var(--rule) solid var(--sumi); }
.menu-fold:last-of-type { border-bottom: var(--rule) solid var(--sumi); }
.menu-fold > summary {
  display: flex; align-items: center; gap: var(--sp-05);
  min-height: var(--target-primary); padding-block: var(--sp-05); cursor: pointer; list-style: none;
}
.menu-summary { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: var(--sp-05); }
.menu-fold > summary::-webkit-details-marker { display: none; }
.menu-fold > summary::after {
  content: ""; flex: none; width: var(--chevron); height: var(--chevron); margin-inline-start: auto; align-self: center;
  border-right: var(--stroke) solid currentColor; border-bottom: var(--stroke) solid currentColor; transform: rotate(45deg) translateY(calc(var(--chevron) / -3));
  transition: transform var(--dur-fade) var(--ease-enter);
}
.menu-fold[open] > summary::after { transform: rotate(-135deg); }
.menu-count { color: var(--nezumi); }
.menu-fold .menu-list { margin-top: 0; border-top: var(--rule) solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .menu-fold { interpolate-size: allow-keywords; }
    .menu-fold::details-content { height: 0; overflow: clip; transition: height var(--dur-fade) var(--ease-enter), content-visibility var(--dur-fade) allow-discrete; }
    .menu-fold[open]::details-content { height: auto; }
  }
}
.menu-reviews { margin-top: var(--sp-07); }

/* ---------- gallery ---------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--sp-05); }
/* One row of photos on a shared baseline, captions in a row below (subgrid): photos of different
   heights line up at the bottom, so the controls stay right under them. */
.gallery-track {
  display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; column-gap: var(--sp-04);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: var(--focus-ring) var(--gutter) var(--sp-03); scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--kusa) transparent;
}
.gallery-track:focus-visible { outline-offset: calc(var(--focus-ring) * -1); }
.gallery-slide { grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: var(--sp-03); width: min-content; scroll-snap-align: start; }
/* Photos keep their own proportions and are never shown larger than their pixels. */
/* width: max-content — with overflow: hidden (it clips the hover zoom) the button would otherwise have no minimum width. */
.photo-open { position: relative; align-self: end; display: block; width: max-content; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
/* max-width: none — a percentage max-width would give the photo no minimum width inside the min-content slide. */
.photo-open img { max-width: none; height: auto; transition: transform var(--dur-fade) var(--ease-enter); }
.gallery-slide .photo-open img { width: var(--slide-dish); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .photo-open:hover img { transform: scale(var(--hover-scale)); } }
/* Tells that a photo opens larger; solid sumi, no shadow or transparency (DESIGN.md §2-6). */
.photo-badge {
  position: absolute; right: var(--sp-03); bottom: var(--sp-03); display: inline-flex; align-items: center; gap: var(--sp-02);
  padding: var(--sp-01) var(--sp-03); background: var(--sumi); color: var(--washi); line-height: var(--lh-number); border-radius: var(--radius-1);
}
.gallery-slide figcaption { color: var(--nezumi); }
/* Tablet and PC: every photo the same height, its width from its own proportions. */
@media (min-width: 42em) { .gallery-slide .photo-open img { width: auto; height: var(--slide-h); } }
@media (min-width: 66em) {
  .gallery-track { padding-inline: max(var(--gutter), calc((100vw - var(--layout-max)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--layout-max)) / 2 + var(--gutter))); }
}
.gallery-toolbar { display: flex; align-items: center; gap: var(--sp-03); margin-top: var(--sp-05); }
.gallery-toggle, .gallery-arrow {
  flex: none; display: inline-grid; place-items: center; width: var(--target); height: var(--target); padding: 0;
  border: var(--rule) solid var(--line); border-radius: var(--radius-1); background: var(--washi); cursor: pointer;
}
.gallery-toggle:hover, .gallery-arrow:hover { border-color: var(--kusa); }
/* Only the icon fades, so a focus ring left on an unavailable arrow stays clearly visible. */
.gallery-arrow[aria-disabled="true"] { cursor: default; }
.gallery-arrow[aria-disabled="true"] svg { opacity: var(--unavailable); }
.gallery-toggle .icon-play, .gallery-toggle[aria-pressed="true"] .icon-pause { display: none; }
.gallery-toggle[aria-pressed="true"] .icon-play { display: block; }
.gallery-dots { display: flex; flex-wrap: wrap; }
.gallery-dot { display: inline-grid; place-items: center; width: var(--dot-hit); height: var(--target); padding: 0; border: 0; background: none; cursor: pointer; }
.gallery-dot span { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--kusa); transition: background-color var(--dur-hover) var(--ease-enter), transform var(--dur-hover) var(--ease-enter); }
.gallery-dot[aria-current="true"] span { background: var(--koke); transform: scale(var(--dot-active-scale)); }
.gallery-count { margin-inline-start: auto; color: var(--nezumi); font-variant-numeric: tabular-nums; }
.gallery-hint { margin-top: var(--sp-03); color: var(--nezumi); }
/* Phones show the dots as a position marker only; the arrows and swipe move the photos. */
@media (max-width: 41.99em) { .gallery-dot { width: var(--dot-step); pointer-events: none; } .gallery-dots { flex-wrap: nowrap; } }
/* The narrowest phones keep the controls on one row; the dots already show the position. */
@media (max-width: 22.49em) { .gallery-count { display: none; } }
/* Short landscape phones: one photo height that fits the screen. */
@media (max-width: 41.99em) and (max-height: 30em) { .gallery-slide .photo-open img { width: auto; height: min(var(--slide-h), 55svh); } }

/* ---------- lightbox ---------- */
/* Opaque, full screen: nothing behind shows through (the sticky bar included). */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--sumi); color: var(--washi); }
.lightbox::backdrop { background: var(--sumi); }
/* The close button sits in the corner, so the photo gets the full height between the top and the controls. */
.lightbox-inner { position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; padding: calc(var(--target-primary) + var(--sp-05) * 2) var(--sp-05) var(--sp-05); gap: var(--sp-04); }
/* Short (landscape) screens: arrows at the sides and the count in the corner, so the photo gets the whole height. */
@media (max-height: 30em) {
  .lightbox-inner { grid-template-rows: minmax(0, 1fr); padding: var(--sp-05) calc(var(--target-primary) + var(--sp-05) * 2); }
  .lightbox-nav { display: contents; }
  .lightbox-nav button { position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox-nav button:first-child { left: var(--sp-05); }
  .lightbox-nav button:last-child { right: var(--sp-05); }
  .lightbox-count { position: absolute; top: var(--sp-05); left: var(--sp-05); min-width: 0; }
  .lightbox-hint { display: none; }
}
.lightbox-close { position: absolute; top: var(--sp-05); right: var(--sp-05); z-index: 1; width: var(--target-primary); height: var(--target-primary); border: var(--rule) solid var(--hai); border-radius: var(--radius-1); background: var(--sumi); color: var(--washi); font-size: var(--fs-h3); line-height: var(--lh-icon); cursor: pointer; }
/* The photo takes the room the caption leaves, and the pair sits in the vertical middle. */
.lightbox-figure { min-height: 0; display: grid; grid-template-rows: minmax(0, max-content) auto; align-content: center; justify-items: center; gap: var(--sp-04); touch-action: pan-y pinch-zoom; }
.lightbox-figure picture { display: flex; justify-content: center; min-height: 0; height: 100%; max-width: 100%; }
.lightbox-figure img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-caption { max-width: var(--measure); color: var(--washi); text-align: center; }
.lightbox-nav { display: flex; justify-content: center; align-items: center; gap: var(--sp-05); }
.lightbox-nav button { display: inline-grid; place-items: center; width: var(--target-primary); height: var(--target-primary); border: var(--rule) solid var(--hai); border-radius: var(--radius-1); background: var(--sumi); color: var(--washi); cursor: pointer; }
.lightbox-nav button[aria-disabled="true"] { cursor: default; }
.lightbox-nav button[aria-disabled="true"] svg { opacity: var(--unavailable); }
.lightbox-count { font-variant-numeric: tabular-nums; min-width: var(--count-width); text-align: center; }
.lightbox-hint { color: var(--hai); text-align: center; }
@media (pointer: fine) { .lightbox-hint { display: none; } } /* swiping is a touch gesture */
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-figure { animation: lightbox-in var(--dur-fade) var(--ease-hero) both; }
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(var(--lightbox-from)); } to { opacity: 1; transform: none; } }

/* ---------- news (markup from site/news-view.mjs) ---------- */
.news-preview { max-width: var(--layout-max); margin-inline: auto; padding: var(--section-gap) var(--gutter) 0; }
.news-preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-05); margin-bottom: var(--sp-06); flex-wrap: wrap; }
.news-preview-heading h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.news-alert { max-width: var(--layout-max); margin: var(--sp-04) auto 0; padding-inline: var(--gutter); }
/* The kind comes first and the whole title wraps (never cut), so the dates of a closure stay readable. */
.news-alert a { display: block; min-height: var(--target); padding-block: var(--sp-03); border-bottom: var(--rule) solid var(--kusa); color: var(--sumi); text-decoration: none; }
.news-alert-kind { font-weight: var(--fw-strong); margin-inline-end: var(--sp-03); }
.news-alert .news-original { margin-inline-end: var(--sp-03); }
.news-all { display: inline-flex; align-items: center; min-height: var(--target); color: var(--koke); }
.news-preview-list, .news-archive-list { border-top: var(--rule) solid var(--sumi); }
.news-card { border-bottom: var(--rule) solid var(--line); }
.news-card-link { display: grid; gap: var(--sp-02); padding-block: var(--sp-05); text-decoration: none; }
.news-card-link:hover :is(h2, h3) { text-decoration: underline; text-decoration-color: var(--kusa); }
.news-card :is(h2, h3) { font-family: var(--font-display-system); font-size: var(--fs-h4); line-height: var(--lh-h4); }
.news-excerpt { color: var(--nezumi); }
.news-read { color: var(--koke); }
.news-meta { display: flex; flex-wrap: wrap; gap: var(--sp-03); align-items: baseline; color: var(--nezumi); font-variant-numeric: tabular-nums; }
.news-priority { color: var(--tsuchi); font-weight: var(--fw-strong); }
.news-original { border: var(--rule) solid var(--line); padding-inline: var(--sp-02); }
.news-unavailable { padding-block: var(--sp-05); color: var(--nezumi); }
.page-content { padding-block: var(--sp-09) var(--sp-11); }
.news-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-03); color: var(--nezumi); margin-bottom: var(--sp-07); }
.news-breadcrumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); min-width: var(--target); }
.news-page-heading { margin-bottom: var(--sp-07); }
/* The list heading is fixed copy (Shippori Mincho); an article title is posted text (system serif, DESIGN.md §2-2). */
.news-page-heading h1, .news-article-header h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
.news-page-heading h1 { font-family: "Shippori Mincho News", var(--font-display); }
.news-article-header h1 { font-family: var(--font-display-system); }
.news-page-heading p { color: var(--nezumi); margin-top: var(--sp-03); }
.news-article { max-width: var(--measure); }
.news-article-header { display: grid; gap: var(--sp-04); margin-bottom: var(--sp-07); }
.news-article-body { display: grid; gap: var(--sp-05); }
.news-article-body :is(ul, ol) { padding-inline-start: var(--list-indent); list-style: revert; }
.news-pagination { display: flex; justify-content: space-between; gap: var(--sp-05); margin-top: var(--sp-07); }
.news-pagination a, .news-back { display: inline-flex; align-items: center; min-height: var(--target); color: var(--koke); }
.news-back { margin-top: var(--sp-07); }
.news-pagination .disabled { color: var(--nezumi); }

/* ---------- access (deep moss band) ---------- */
.access { margin-top: var(--section-gap); padding-block: var(--sp-11); background: var(--koke-deep); color: var(--kinari); }
.access .section-title { color: var(--washi); }
.access-lead { max-width: var(--measure); color: var(--kinari); }
.access-actions { display: grid; gap: var(--sp-03); margin-block: var(--sp-07) var(--sp-09); max-width: var(--actions-max); }
.access-tel {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--sp-04); min-height: var(--target-primary);
  padding: var(--sp-04) var(--sp-05); background: var(--kinari); color: var(--sumi); border-radius: var(--radius-1); text-decoration: none;
}
.access-tel .icon { grid-row: 1 / 3; color: var(--koke); }
.access-label { color: var(--nezumi); }
.access-number { font-size: var(--fs-h3); line-height: var(--lh-number); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-number); }
.access-link {
  display: flex; align-items: center; gap: var(--sp-03); min-height: var(--target-primary); padding: var(--sp-03) var(--sp-05);
  border: var(--rule) solid var(--kusa-light); border-radius: var(--radius-1); color: var(--kinari); text-decoration: none;
}
.access-link:hover { background: var(--hover-on-dark); }
.access-note { max-width: var(--measure); color: var(--kinari); margin-block: var(--sp-01) var(--sp-03); }
.access-facts { display: grid; border-top: var(--rule) solid var(--rule-on-dark); }
.access-facts > div { display: grid; gap: var(--sp-02); padding-block: var(--sp-05); border-bottom: var(--rule) solid var(--rule-on-dark); }
.access-facts > div > dt { color: var(--kusa-light); }
.access .hours-list dt, .access .hours-lo { color: var(--hai); }
.access-reviews { margin-top: var(--sp-06); }
.access .text-link { color: var(--kusa-light); }
@media (min-width: 42em) {
  .access-facts > div { grid-template-columns: var(--term) 1fr; gap: var(--grid-gap); }
}
@media (min-width: 66em) {
  .access .section-inner { display: grid; grid-template-columns: var(--cols-split); column-gap: var(--grid-gap); }
  .access .section-title, .access-lead, .access-actions { grid-column: 1; }
  .access-facts { grid-column: 2; grid-row: 1 / span 4; align-self: start; }
  .access-reviews { grid-column: 1; }
}

/* ---------- sister ---------- */
.sister { padding-bottom: var(--section-gap); }
.sister-inner { display: grid; gap: var(--sp-04); }
.sister-heading { font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--nezumi); }
.sister-body { border-inline-start: var(--rule) solid var(--kusa); padding-inline-start: var(--sp-05); }
.sister-name { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.sister-lead { color: var(--nezumi); }
@media (min-width: 42em) { .sister-inner { grid-template-columns: var(--term) 1fr; gap: var(--grid-gap); align-items: baseline; } }

/* ---------- footer ---------- */
.site-footer { background: var(--sumi); color: var(--hai); padding-block: var(--sp-10); }
.footer-inner { display: grid; gap: var(--sp-05); }
.footer-logo { width: auto; height: var(--logo-h-lg); }
.footer-links { display: flex; flex-wrap: wrap; column-gap: var(--sp-05); }
.footer-links li:has(> [hidden]) { display: none; } /* the analytics setting appears only with a measurement ID */
.footer-address { font-style: normal; }
.footer-tel { display: inline-flex; align-items: center; min-height: var(--target); color: var(--kinari); font-variant-numeric: tabular-nums; }
.footer-meta { font-size: var(--fs-note); }
.footer-link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); min-width: var(--target); padding: 0; border: 0; background: none; color: var(--kinari); text-decoration: underline; cursor: pointer; }

/* ---------- sticky bar (phones) ---------- */
.sticky-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-sticky);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rule);
  min-height: calc(var(--sticky-height) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--line); border-top: var(--rule) solid var(--line);
}
.sticky-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-01);
  min-height: var(--sticky-height); background: var(--washi); color: var(--koke); text-decoration: none;
}
.sticky-action--primary { background: var(--koke); color: var(--washi); }
/* Focus rings inside the bar: drawn inward so screen edges never cut them, in a colour that contrasts with each button. */
.sticky-action:focus-visible { outline-color: var(--sumi); outline-offset: calc(var(--focus-ring) * -2); }
.sticky-action--primary:focus-visible { outline-color: var(--washi); }
.sticky-action:active { background: var(--kinari); }
.sticky-action--primary:active { background: var(--koke-deep); }
body { padding-bottom: calc(var(--sticky-height) + env(safe-area-inset-bottom)); }
/* While the consent banner is open, the end of the page can scroll above it too. */
html[data-consent-open] body { padding-bottom: calc(var(--sticky-height) + var(--consent-h) + env(safe-area-inset-bottom)); }
/* Very short screens (400% zoom): the bar stops being fixed so it never covers most of the screen. */
@media (max-height: 20em) { .sticky-bar { position: static; } body { padding-bottom: 0; } html[data-consent-open] body { padding-bottom: var(--consent-h); } }
@media (min-width: 66em) {
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
  html[data-consent-open] body { padding-bottom: var(--consent-h); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ---------- privacy and 404 ---------- */
.privacy { max-width: var(--measure); display: grid; gap: var(--sp-05); }
.privacy h1, .not-found h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
.not-found-lead { margin-block: var(--sp-05); color: var(--nezumi); }
.not-found-links { display: grid; gap: var(--sp-02); }
