/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 * Hallmark · genre: editorial · macrostructure: Photographic
 * H6 photographic-fold knobs: image=full-bleed, caption=lower-left, text=overlaid
 * nav: N9 edge-aligned-minimal (knobs: CTA=outlined, wordmark=serif, padding=spacious)
 * footer: Ft1 mast-headed (knobs: wordmark=display 2xl, tagline=roman, links=inline)
 * also: S2 hanging heads · T4 numbered stat strip · F6 product card grid · C3 typographic link
 * theme: custom (tuned) · vibe: "阿蘇の夜、金と墨、静けさ"
 * paper: oklch(13% 0.010 70) · accent: oklch(74% 0.120 82)
 * display: Cormorant Garamond · body: Sawarabi Mincho / Noto Serif SC (language-scoped)
 * axes: dark / classical-serif / chromatic-amber ~82
 * enrichment: none (real photography) · studied: no · context: user-provided
 */

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* gate 34 — clip, never hidden. `hidden` on the root kills position:sticky
     inside the document on iOS Safari, which is why the old nav drifted. */
  overflow-x: clip;
}
html { scroll-behavior: smooth; }

body {
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-loose);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Language-scoped reading face. The Latin wordmark register stays Cormorant
   in every language — that contrast is what stops the page reading un-branded. */
/* CJK has no spaces to break on; auto-phrase breaks at phrase boundaries so
   a line doesn't end with a single orphaned kana. Ignored where unsupported. */
html[lang="ja"] body { font-family: var(--font-ja); word-break: auto-phrase; line-break: strict; }
html[lang="zh"] body { font-family: var(--font-zh); line-break: strict; }
html[lang="en"] body { font-family: var(--font-latin); line-height: var(--leading-body); }

/* Single warm veil. No aurora blobs, no floating orbs — one two-stop wash
   that lifts the paper off flat black, at 4 % so it never becomes decoration. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-base);
  background:
    radial-gradient(70rem 46rem at 50% -8%, oklch(var(--ch-accent) / 0.045), transparent 62%),
    radial-gradient(52rem 52rem at 50% 108%, oklch(var(--ch-accent) / 0.035), transparent 58%);
}

a {
  color: var(--color-accent-hi);
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--color-ink); }
}

img { display: block; max-width: 100%; height: auto; border: 0; }

h1, h2, h3, h4 {
  font-weight: 400;
  font-style: normal;          /* gate 38a — display type is always roman */
  color: var(--color-ink);
  margin: 0;
  letter-spacing: var(--track-display);
  /* gate 51 — long unbroken CJK / URLs must wrap inside the word, not overflow */
  overflow-wrap: anywhere;
  min-width: 0;
}
/* Display-size text that isn't a heading element still needs the same
   long-word wrap guard (gate 51) — CJK strings have no break opportunities. */
.hero-block .cap .title,
.page-hero .cap .en,
.fade-title,
.room-label .kanji {
  overflow-wrap: anywhere;
  min-width: 0;
}
h1.seo { position: absolute; left: -9999px; font-size: 1px; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* Focus is a first-class state — visible, high-contrast, and never animated.
   The old sheet set `outline:none` on every field with nothing in its place. */
:focus-visible {
  outline: var(--rule-bold) solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

.shell { width: var(--shell); max-width: 100%; margin: 0 auto; position: relative; z-index: var(--z-raised); }
.inner { width: 71rem; max-width: 100%; margin: 0 auto; padding-inline: var(--page-gutter); }

/* Skip link — the page opens with a full-bleed video; keyboard users need out. */
.skip {
  position: absolute; left: var(--space-sm); top: var(--space-sm);
  z-index: var(--z-modal);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-accent); color: var(--color-accent-ink);
  font-size: var(--text-sm); letter-spacing: var(--track-label);
  text-transform: uppercase; white-space: nowrap;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: translateY(0); }

/* ============================================================
   Nav — N9 edge-aligned minimal
   Wordmark hard-left, controls hard-right, the span between left empty.
   The eight destinations live in a full-screen index behind one disclosure;
   filling the middle with a link row would make this N1 with extra steps.
   ============================================================ */
/* ヘッダは site.js が body 末尾で組み立てて #siteHeader と差し替える。
   素だと 高さ 0 の空 div が 104px のヘッダになり、main が 104px 押し下げられて
   CLS 0.072 が毎回発生していた (2026-08-25 実測)。
   同じ高さを先に確保して、差し替わっても動かないようにする。
   値は実測: 320-360px=77 / 361-767px=84 / 768px 以上=104。 */
#siteHeader { min-height: 5.25rem; }                                   /* 84px */
@media (max-width: 22.5rem) { #siteHeader { min-height: 4.8125rem; } } /* 77px */
@media (min-width: 48rem)   { #siteHeader { min-height: 6.5rem; } }    /* 104px */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(var(--ch-paper) / 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: var(--rule-hair) solid transparent;
  transition:
    background-color var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
}
.nav.scrolled {
  background: oklch(var(--ch-paper) / 0.97);
  border-bottom-color: var(--color-rule-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--page-gutter);
}

.nav .brand { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.nav .brand img {
  height: 2.75rem; width: auto;
  /* The mark ships light-on-transparent (mean luminance 190/255). The old
     sheet inverted it, which turned it near-black on near-black paper. */
  transition: height var(--dur-med) var(--ease-out);
}
.nav.scrolled .brand img { height: 2.25rem; }
.nav .brand .txt {
  font-family: var(--font-wordmark);
  font-size: var(--text-md);
  letter-spacing: 0.3em;
  color: var(--color-accent-hi);
  line-height: 1.1;
}
.nav .brand .txt small {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.44em;
  color: var(--color-muted);
  margin-top: var(--space-3xs);
}

.nav-right { display: flex; align-items: center; gap: var(--space-sm); }

/* Language switch — three states, one active */
.langs {
  display: flex;
  gap: 0;
  border: var(--rule-hair) solid var(--color-rule-strong);
}
.langs a,
.langs button {
  background: none;
  border: 0;
  color: var(--color-muted);
  padding: var(--space-2xs) var(--space-xs);
  min-height: 2.75rem;
  cursor: pointer;
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  white-space: nowrap;
  transition:
    color var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out);
}
/* a は inline なので min-height が効かない。44px の当たり判定を保つため
   flex にして中央寄せする (design.md の非交渉項目)。 */
.langs a { display: inline-flex; align-items: center; text-decoration: none; }
.langs a.active,
.langs button.active { background: var(--color-accent); color: var(--color-accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .langs a:hover:not(.active),
  .langs button:hover:not(.active) { color: var(--color-ink); background: oklch(var(--ch-accent) / 0.14); }
}
.langs a:active:not(.active),
.langs button:active:not(.active) { background: oklch(var(--ch-accent) / 0.22); }

/* C1 outlined chip — the one CTA that survives N9's silence. Eight states. */
.reserve-btn,
.form-wrap button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-xs) var(--space-md);
  background: transparent;
  color: var(--color-accent-hi);
  font-family: var(--font-wordmark);
  font-size: var(--text-sm);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  white-space: nowrap;              /* gate 49 — affordances never wrap */
  border: var(--rule-hair) solid var(--color-accent);
  border-radius: var(--radius-none);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition:
    color var(--dur-med) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}
.reserve-btn::before,
.form-wrap button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateY(101%);
  transition: transform var(--dur-med) var(--ease-out);
  z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
  .reserve-btn:hover,
  .form-wrap button:hover { color: var(--color-accent-ink); }
  .reserve-btn:hover::before,
  .form-wrap button:hover::before { transform: translateY(0); }
}
.reserve-btn:active,
.form-wrap button:active { transform: translateY(1px); }
.form-wrap button[disabled],
.form-wrap button[aria-busy="true"] { opacity: 0.5; cursor: not-allowed; }
.form-wrap button[aria-busy="true"]::after {
  content: '';
  width: 0.75em; height: 0.75em;
  margin-inline-start: var(--space-2xs);
  border: var(--rule-bold) solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Menu disclosure — the only middle-of-nav element N9 permits */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  padding: var(--space-2xs) var(--space-sm);
  background: none;
  border: var(--rule-hair) solid var(--color-rule-strong);
  color: var(--color-ink-2);
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-toggle:hover { color: var(--color-ink); border-color: var(--color-accent); }
}
.nav-toggle .bars { display: grid; gap: 3px; width: 1rem; }
.nav-toggle .bars i {
  display: block; height: 1px; background: currentColor;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Full-screen index — the eight destinations, set as a list, not a bar */
.nav-index {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: oklch(var(--ch-paper) / 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  align-content: center;
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
  overflow-y: auto;
  isolation: isolate;
  contain: layout style;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.nav-index[data-open="true"] { opacity: 1; visibility: visible; }
/* The bar rides above the panel so its ✕ stays reachable — otherwise the
   only way out is Escape, which touch users don't have. */
body[data-nav-open="true"] .nav { z-index: var(--z-modal); }
.nav-index .langs { display: none; margin-top: var(--space-lg); align-self: start; }
.nav-index ol { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.nav-index li { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.nav-index a {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
html[lang="ja"] .nav-index a { font-family: var(--font-ja); }
html[lang="zh"] .nav-index a { font-family: var(--font-zh); }
.nav-index a .idx {
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .nav-index a:hover { color: var(--color-accent-hi); }
  .nav-index a:hover .idx { color: var(--color-accent); }
}
.nav-index a[aria-current="page"] { color: var(--color-accent-hi); }
body[data-nav-open="true"] { overflow: hidden; }

/* ============================================================
   Hero — H6 photographic fold
   Full-bleed frame; the caption sits lower-left as annotation.
   Centring the copy here is gate 6; the photograph is the subject.
   ============================================================ */
.hero-block { position: relative; overflow: hidden; background: var(--color-paper); }
.hero-block .video-wrap {
  position: relative;
  width: 100%;
  height: 86svh;
  min-height: 32rem;
  max-height: 58rem;
}
.hero-block video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-block .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    oklch(var(--ch-shade) / 0.30) 0%,
    oklch(var(--ch-shade) / 0.10) 38%,
    oklch(var(--ch-shade) / 0.82) 100%
  );
}
.hero-block .cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;         /* lower-left, not centred */
  text-align: start;
  color: var(--color-ink);
  padding: 0 var(--page-gutter) var(--space-2xl);
  z-index: var(--z-raised);
}
.hero-block .cap > * {
  opacity: 0;
  animation: heroRise var(--dur-entrance) var(--ease-out) forwards;
}
.hero-block .cap .eyebrow {
  font-family: var(--font-wordmark);
  font-size: var(--text-sm);
  letter-spacing: 0.5em;
  color: var(--color-accent-hi);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  animation-delay: 240ms;
}
.hero-block .cap .title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--track-display);
  color: var(--color-ink);
  /* flex-start children size to content — cap against the container or a
     long CJK line runs straight off the right edge on a phone */
  max-width: min(18ch, 100%);
  animation-delay: 400ms;
}
html[lang="ja"] .hero-block .cap .title,
html[lang="zh"] .hero-block .cap .title {
  font-family: var(--font-ja);
  letter-spacing: 0.12em;
  font-size: var(--text-display-s);
}
html[lang="zh"] .hero-block .cap .title { font-family: var(--font-zh); }
.hero-block .cap .sub {
  max-width: min(42ch, 100%);
  margin-top: var(--space-md);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-ink-2);
  animation-delay: 560ms;
}
.hero-block .cap .scroll {
  position: absolute;
  left: var(--page-gutter);
  bottom: var(--space-md);
  color: var(--color-accent);
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  animation-delay: 780ms;
}
.hero-block .cap .scroll::after {
  content: '';
  display: block;
  margin-top: var(--space-2xs);
  width: 1px; height: 2rem;
  background: linear-gradient(180deg, var(--color-accent), transparent);
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}

/* Sub-page hero — same fold, still photograph */
.page-hero {
  position: relative;
  /* Source mains are 1200×300 (4:1) after the baked-title crop. Matching the
     ratio means no upscaling on desktop; min-height keeps the fold on phones,
     where object-fit crops the sides instead. */
  aspect-ratio: 4 / 1;
  min-height: 18rem;
  max-height: 60svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--z-raised);
  background: linear-gradient(180deg, oklch(var(--ch-shade) / 0.34), oklch(var(--ch-shade) / 0.80));
}
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: var(--z-base); }
.page-hero .cap {
  position: relative;
  z-index: var(--z-overlay);
  color: var(--color-ink);
  padding: 0 var(--page-gutter) var(--space-xl);
}
.page-hero .cap .en {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.12em;
  color: var(--color-ink);
  line-height: var(--leading-display);
}
html[lang="ja"] .page-hero .cap .en { font-family: var(--font-ja); letter-spacing: 0.24em; }
html[lang="zh"] .page-hero .cap .en { font-family: var(--font-zh); letter-spacing: 0.2em; }
.page-hero .cap .ja {
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.46em;
  color: var(--color-accent-hi);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

/* Typographic page head — for pages where no photograph earns its place.
   The Photographic macrostructure says avoid the image fold without real
   photography; FAQ has none at usable resolution, so it opens on type. */
.page-head {
  padding: calc(var(--space-2xl) + var(--space-lg)) var(--page-gutter) var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  position: relative;
  z-index: var(--z-raised);
}
.page-head .ja {
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.46em;
  color: var(--color-accent-hi);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.page-head .en {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-display);
  letter-spacing: 0.12em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}
html[lang="ja"] .page-head .en { font-family: var(--font-ja); letter-spacing: 0.24em; }
html[lang="zh"] .page-head .en { font-family: var(--font-zh); letter-spacing: 0.2em; }

/* ============================================================
   Sections — S2 hanging heads
   The heading hangs in negative space at the start of the measure.
   No kicker, no centred column, no rule: eyebrows are default-off.
   ============================================================ */
section.block { padding: var(--space-2xl) 0; position: relative; z-index: var(--z-raised); }

.section-title {
  max-width: 52rem;
  margin: 0 0 var(--space-xl);
  padding-inline: var(--page-gutter);
}
/* S2 の見出しから、そのまま該当ページへ渡す小さな導線。
   以前は温泉・料理・施設を散文で説明していたが、説明を読ませるより
   その場から行かせるほうが早い。 */
.s2-links { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: var(--space-md) 0 0; }
.s2-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--color-accent-hi); text-decoration: none; white-space: nowrap;
  font-family: var(--font-wordmark); font-size: var(--text-xs);
  letter-spacing: var(--track-label);
  /* 当たり判定を 44px 取ると枠が文字より高くなるので、border-bottom だと
     線が文字から離れて浮く (2026-08-25 に実測して気付いた)。
     線は文字側に付ける。 */
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
  transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .s2-links a:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
}

.section-title h2 {
  font-family: var(--font-ja);
  font-size: var(--text-xl);
  letter-spacing: 0.14em;
  line-height: 1.35;
  color: var(--color-ink);
}
html[lang="en"] .section-title h2 { font-family: var(--font-latin); letter-spacing: 0.03em; font-size: var(--text-2xl); }
html[lang="zh"] .section-title h2 { font-family: var(--font-zh); }
.section-title p {
  margin: var(--space-md) 0 0;
  color: var(--color-muted);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  max-width: var(--measure);
}
/* Legacy kicker slot — retained so old markup doesn't break, but the
   uppercase eyebrow-per-section pattern is off by default (gate 54). */
.section-title .kicker { display: none; }

.divider { width: 3.75rem; height: 1px; background: var(--color-accent); margin: var(--space-md) 0; opacity: 0.8; }

/* Was an inline style at 12px with a hard-coded hex — too small to read in
   Cormorant, and outside the token system (gate 48). */
.strapline {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: var(--space-lg) auto;
  letter-spacing: 0.14em;
  line-height: var(--leading-body);
  max-width: var(--measure);
}

/* Poetic caesura — one per page, deliberately centred against the
   left-biased rhythm. One exception is a device; every section would be a tic. */
.fade { padding: var(--space-2xl) var(--page-gutter); text-align: center; position: relative; }
.fade-title {
  font-family: var(--font-ja);
  font-style: normal;              /* gate 38a — no italic display, any language */
  font-size: var(--text-lg);
  line-height: 1.75;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-lg);
  color: var(--color-ink);
}
html[lang="en"] .fade-title { font-family: var(--font-latin); letter-spacing: 0.03em; font-size: var(--text-xl); }
html[lang="zh"] .fade-title { font-family: var(--font-zh); letter-spacing: 0.12em; }
.fade-body {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  letter-spacing: 0.1em;
  color: var(--color-ink-2);
  max-width: var(--measure);
  margin: 0 auto;
}
html[lang="en"] .fade-body { letter-spacing: 0.01em; line-height: var(--leading-body); }
.fade .divider { margin: 0 auto var(--space-lg); }

/* ============================================================
   T4 · numbered stat strip
   Real figures only — 12 villas, 4,000 tsubo, 1,000 m, est. 2023.
   ============================================================ */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: var(--space-xl) var(--page-gutter);
  border-block: var(--rule-hair) solid var(--color-rule-2);
  background: oklch(var(--ch-shade) / 0.28);
  position: relative;
  z-index: var(--z-raised);
}
.numbers .n { text-align: center; padding-inline: var(--space-sm); position: relative; min-width: 0; }
.numbers .n:not(:last-child)::after {
  content: '';
  position: absolute; inset-inline-end: 0; top: 20%;
  height: 60%; width: 1px;
  background: var(--color-rule);
}
.numbers .n .k {
  font-family: var(--font-wordmark);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-accent-hi);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.numbers .n .k sup { font-size: 0.4em; color: var(--color-accent); margin-inline-start: 0.25em; }
.numbers .n .l {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* ============================================================
   Image strips — the image edge is the divider (Photographic)
   Hover is a bloom, not a JS src swap. The old inline
   onmouseover/onmouseout left the B-image stuck on touch devices.
   ============================================================ */
/* Typographic section index. Set in the reading face of the active language
   so the label is the same size in every language — the old baked-in JPEGs
   put Japanese first and left the English at roughly 10px. */
.menu4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-rule-2);
  margin: var(--space-lg) 0;
  border-block: var(--rule-hair) solid var(--color-rule-2);
}
.menu4 a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 8.5rem;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  background: var(--color-paper);
  transition: background-color var(--dur-med) var(--ease-out);
}
.menu4 a .t {
  font-family: var(--font-ja);
  font-size: var(--text-md);
  letter-spacing: 0.28em;
  color: var(--color-ink);
  line-height: 1.3;
  transition: color var(--dur-short) var(--ease-out);
}
html[lang="en"] .menu4 a .t { font-family: var(--font-latin); letter-spacing: 0.14em; }
html[lang="zh"] .menu4 a .t { font-family: var(--font-zh); }
.menu4 a .s {
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--color-muted);
  line-height: 1.4;
  max-width: 22ch;
}
@media (hover: hover) and (pointer: fine) {
  .menu4 a:hover { background: var(--color-paper-2); }
  .menu4 a:hover .t { color: var(--color-accent-hi); }
}
.menu4 a:focus-visible { background: var(--color-paper-2); }
.menu4 img,
.bottom-menu img {
  width: 100%;
  transition:
    opacity var(--dur-long) var(--ease-out),
    transform var(--dur-long) var(--ease-out),
    filter var(--dur-long) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .menu4 a:hover img,
  .bottom-menu a:hover img { opacity: 0.62; transform: scale(1.06); filter: saturate(1.1); }
}

.bottom-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); margin: var(--space-md) 0; }
.bottom-menu.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 76%; margin-inline: auto; }
.bottom-menu a { position: relative; display: block; overflow: hidden; background: var(--color-paper); }
/* Label bars used to be baked into the JPEGs (Japanese large, English tiny).
   Cropped off the source; this renders them as real, translatable type. */
.bm-label {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-paper-2);
  font-family: var(--font-ja);
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  color: var(--color-ink);
  text-align: center;
  transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
html[lang="en"] .bm-label { font-family: var(--font-latin); letter-spacing: 0.1em; }
html[lang="zh"] .bm-label { font-family: var(--font-zh); }
@media (hover: hover) and (pointer: fine) {
  .bottom-menu a:hover .bm-label { color: var(--color-accent-hi); background: var(--color-paper-3); }
}
.bottom-menu a:focus-visible .bm-label { color: var(--color-accent-hi); background: var(--color-paper-3); }

/* Notice band */
.notice {
  background: oklch(var(--ch-shade) / 0.42);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  border: var(--rule-hair) solid var(--color-rule-2);
}
.notice ul { list-style: none; margin: 0; padding: 0; }
.notice li {
  color: var(--color-ink-2);
  padding: var(--space-2xs) 0 var(--space-2xs) var(--space-sm);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  border-bottom: var(--rule-hair) dotted var(--color-rule-2);
  position: relative;
}
.notice li::before { content: '◆'; position: absolute; inset-inline-start: 0; color: var(--color-accent); font-size: 0.5em; top: 1em; }
.notice li:last-child { border-bottom: 0; }
.notice li a { color: var(--color-accent-hi); text-decoration: underline; text-underline-offset: 0.2em; }

/* Main image + thumbs */
.main-img { margin: var(--space-xl) auto var(--space-md); }
.main-img img { width: 100%; cursor: zoom-in; transition: opacity var(--dur-med) var(--ease-out); }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xs); margin-bottom: var(--space-lg); }
.thumbs a { display: block; overflow: hidden; position: relative; }
.thumbs img { width: 100%; transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-long) var(--ease-out); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .main-img img:hover { opacity: 0.9; }
  .thumbs a:hover img { opacity: 0.68; transform: scale(1.05); }
}

/* ============================================================
   F6 · product card grid — the twelve villas
   ============================================================ */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin: var(--space-lg) 0 var(--space-xl); }
.room {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-paper);
  aspect-ratio: 1 / 1;
  text-decoration: none;
  isolation: isolate;
}
.room::after {
  content: '';
  position: absolute; inset: 0;
  border: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-med) var(--ease-out);
  pointer-events: none;
  z-index: var(--z-raised);
}
.room img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .room:hover::after { border-color: var(--color-accent); }
  .room:hover img { opacity: 0.6; transform: scale(1.06); }
  .room:hover .hover-hint { opacity: 1; transform: translateY(0); }
}
.room:focus-visible::after { border-color: var(--color-focus); }
.room-label {
  position: absolute; inset: auto 0 0 0;
  padding: var(--space-md);
  background: linear-gradient(180deg, transparent, oklch(var(--ch-shade) / 0.92));
  color: var(--color-ink);
  z-index: var(--z-raised);
}
.room-label .kanji { font-family: var(--font-ja); font-size: var(--text-md); letter-spacing: 0.3em; color: var(--color-ink); }
.room-label .roman {
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  color: var(--color-accent-hi);
  margin-top: var(--space-3xs);
  text-transform: uppercase;
}
html[lang="en"] .room-label { display: flex; flex-direction: column-reverse; align-items: flex-start; }
html[lang="en"] .room-label .kanji { font-size: var(--text-sm); letter-spacing: 0.22em; opacity: 0.6; }
html[lang="en"] .room-label .roman { font-size: var(--text-md); letter-spacing: 0.16em; margin-top: 0; color: var(--color-ink); }
.room .hover-hint {
  position: absolute; top: var(--space-md); inset-inline-end: var(--space-md);
  padding: var(--space-3xs) var(--space-xs);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  z-index: var(--z-raised);
}

/* ============================================================
   Info tables & pricing
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); margin: var(--space-lg) 0; }
.info-block h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--color-accent-hi);
  margin: 0 0 var(--space-md);
  letter-spacing: 0.06em;
  padding-bottom: var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
html[lang="ja"] .info-block h4 { font-family: var(--font-ja); letter-spacing: 0.16em; }
html[lang="zh"] .info-block h4 { font-family: var(--font-zh); letter-spacing: 0.16em; }
.info-block table { width: 100%; border-collapse: collapse; }
.info-block td {
  padding: var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  font-size: var(--text-base);
  color: var(--color-ink-2);
  vertical-align: top;
  line-height: var(--leading-body);
}
.info-block td:first-child {
  width: 9rem;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  padding-inline-end: var(--space-md);
}

.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin: var(--space-lg) 0; }
.price-card {
  background: oklch(var(--ch-shade) / 0.55);
  border: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-lg);
  transition: border-color var(--dur-med) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .price-card:hover { border-color: var(--color-accent); }
}
.price-card h4 { font-family: var(--font-display); color: var(--color-accent-hi); font-size: var(--text-md); letter-spacing: 0.06em; margin-bottom: var(--space-3xs); }
html[lang="ja"] .price-card h4 { font-family: var(--font-ja); letter-spacing: 0.14em; }
html[lang="zh"] .price-card h4 { font-family: var(--font-zh); letter-spacing: 0.14em; }
.price-card .sub { font-family: var(--font-wordmark); font-size: var(--text-xs); color: var(--color-accent); letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: var(--space-md); }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li {
  display: flex; justify-content: space-between; gap: var(--space-xs);
  padding: var(--space-xs) 0;
  border-bottom: var(--rule-hair) dotted var(--color-rule-2);
  font-size: var(--text-base);
  color: var(--color-ink-2);
}
.price-card li span:last-child {
  color: var(--color-accent-hi);
  font-family: var(--font-wordmark);
  font-size: var(--text-md);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin: var(--space-lg) 0; }
.gallery a { display: block; overflow: hidden; background: var(--color-paper); aspect-ratio: 4 / 3; cursor: zoom-in; position: relative; }
.gallery a::after { content: ''; position: absolute; inset: 0; border: var(--rule-hair) solid transparent; transition: border-color var(--dur-med) var(--ease-out); pointer-events: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-long) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gallery a:hover::after { border-color: var(--color-accent); }
  .gallery a:hover img { opacity: 0.6; transform: scale(1.05); }
}
.gallery a:focus-visible::after { border-color: var(--color-focus); }

/* ============================================================
   Reservation form
   ============================================================ */
.form-section {
  background: oklch(var(--ch-shade) / 0.55);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-2xl);
  border-block: var(--rule-hair) solid var(--color-rule-2);
  position: relative;
  z-index: var(--z-raised);
}
/* The section sits in .shell but outside .inner, so it needs .inner's geometry
   to share the page's content column. The form itself is only 42rem wide, so
   left-aligning it inside a full-bleed band left a large void on the right and
   read as broken — centre the 42rem column and let heading, lede and fields
   share one left edge. */
.form-section .form-wrap {
  width: 71rem;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.form-wrap > * {
  max-width: 42rem;
  margin-inline: auto;
}
.form-section h3 {
  font-family: var(--font-ja);
  font-size: var(--text-xl);
  color: var(--color-ink);
  letter-spacing: 0.14em;
  margin-bottom: var(--space-xs);
}
html[lang="en"] .form-section h3 { font-family: var(--font-latin); letter-spacing: 0.03em; font-size: var(--text-2xl); }
html[lang="zh"] .form-section h3 { font-family: var(--font-zh); }
.form-sub { color: var(--color-muted); font-size: var(--text-base); margin-bottom: var(--space-lg); line-height: var(--leading-loose); }

/* Enquiry standby — the online endpoint is not wired yet, so this slot offers
   the one channel that actually reaches the ryokan. A form that accepts input
   it cannot deliver is worse than no form. Remove when /api/enquiry is live. */
.standby { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.standby-hours { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }

/* 404 — 任意の深さの URL で出るページ。トークンだけで組み、既存の意匠に合わせる。
   数字は装飾なので --color-neutral (テキストの下限を下回る) を使わず、
   面としての大きさで見せて彩度は accent の一点に寄せる。 */
.nf { padding: var(--space-3xl) 0; max-width: 42rem; }
.nf-code {
  margin: 0;
  font-family: var(--font-wordmark);
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}
.nf-lead { margin: var(--space-lg) 0 0; color: var(--color-ink); font-size: var(--text-lg); line-height: var(--leading-loose); }
.nf-sub  { margin: var(--space-xs) 0 0; color: var(--color-muted); font-size: var(--text-base); line-height: var(--leading-loose); }
.nf-acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

/* 客室詳細の前後送り。12 室を一巡できるようにして行き止まりを作らない。
   狭い幅では 3 つ並べると溢れるので折り返す (affordance 自体は nowrap のまま)。 */
.room-nav {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule-2);
}
/* 注記 (プールは水着持参、など)。本文より弱く、しかし読める階調で。 */
.fine-note { margin: var(--space-sm) 0 0; color: var(--color-muted); font-size: var(--text-sm); line-height: var(--leading-loose); }

/* 送信結果。成功・注意・失敗を色で分ける。
   「受け付けたが通知に失敗」を成功と同じ見た目にしない。 */
.form-note[data-state="sent"]  { color: var(--color-accent-hi); }
.form-note[data-state="warn"]  { color: var(--color-ink); }
.form-note[data-state="error"] { color: var(--color-invalid); }
.form-note:empty { display: none; }

/* Turnstile。iframe が入るので上下に余白を取る。 */
.cf-turnstile { margin: var(--space-md) 0; min-height: 65px; }

/* ── 読み物 ──────────────────────────────────────────────
   既存のトークンだけで組む。この 1 ページのために新しい意匠を作らない。 */
.jl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.jl-card a {
  display: block; text-decoration: none; color: inherit;
  padding: var(--space-lg) 0;
  border-top: var(--rule-hair) solid var(--color-rule-2);
  transition: border-color var(--dur-short) var(--ease-out);
}
.jl-card a:hover, .jl-card a:focus-visible { border-color: var(--color-accent); }
.jl-card time { display: block; font-family: var(--font-wordmark); font-size: var(--text-xs);
  letter-spacing: var(--track-label); color: var(--color-muted); }
.jl-card h3 { margin: var(--space-2xs) 0 0; font-size: var(--text-xl); font-weight: 400; color: var(--color-ink); }
.jl-card p  { margin: var(--space-xs) 0 0; color: var(--color-ink-2); line-height: var(--leading-loose); }
.jl-date { font-family: var(--font-wordmark); font-size: var(--text-xs);
  letter-spacing: var(--track-label); color: var(--color-muted); margin: 0 0 var(--space-sm); }

/* 広い順の一覧。番号は装飾なので、読み上げの邪魔にならない ol を使う。 */
.jl-rank { margin: 0; padding-left: 1.6em; color: var(--color-ink-2); line-height: var(--leading-loose); }
.jl-rank a { color: var(--color-ink); }

.jl-groups { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.jl-group h4 { margin: 0 0 var(--space-2xs); font-family: var(--font-wordmark); font-size: var(--text-xs);
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--color-accent); }
.jl-group p { margin: 0; color: var(--color-ink-2); line-height: var(--leading-loose); }

/* 一覧表は狭い幅で必ず溢れるので、**表だけ**を横スクロールさせる。
   ⚠ overflow-x:auto は overflow-y を **仕様上 auto に格上げする**。
     visible と書いても効かない (2026-08-25 に computed で実測して確認)。
     縦を奪われていないことは CSS では保証できないので、
     scripts/check-chrome-widths.mjs が表の上に本物のホイールを投げて測る。 */
.jl-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jl-table table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.jl-table th, .jl-table td {
  text-align: left; padding: var(--space-xs) var(--space-sm) var(--space-xs) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule-2); vertical-align: top;
  font-size: var(--text-sm); line-height: var(--leading-loose); color: var(--color-ink-2);
}
.jl-table th { color: var(--color-accent); font-family: var(--font-wordmark);
  font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.jl-table td a { color: var(--color-ink); white-space: nowrap; }
.field { margin-bottom: var(--space-md); }
.field label {
  display: block;
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.26em;
  color: var(--color-accent);
  margin-bottom: var(--space-2xs);
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  min-height: 2.75rem;
  border: var(--rule-hair) solid var(--color-rule-strong);
  background: oklch(var(--ch-shade) / 0.5);
  color: var(--color-ink);
  font-family: inherit;
  font-size: var(--text-base);      /* 16px — iOS must not zoom on focus */
  border-radius: var(--radius-none);
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--color-accent);
  background: oklch(var(--ch-shade) / 0.7);
}
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--color-invalid); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.form-wrap button { width: 100%; margin-top: var(--space-xs); }
/* Reserve the slot (gate 39) so an appearing message doesn't push the page. */
.form-note {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
  letter-spacing: 0.08em;
  min-height: 1lh;
}
.form-note[data-state="sent"] { color: var(--color-accent-hi); }

/* ============================================================
   Footer — Ft1 mast-headed
   Wordmark anchors one horizontal band; tagline + small links beside.
   Not four columns of links with a social row (the AI footer).
   ============================================================ */
footer {
  padding: var(--space-2xl) var(--page-gutter) var(--space-lg);
  color: var(--color-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  background: oklch(var(--ch-shade) / 0.6);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  position: relative;
  z-index: var(--z-raised);
}
.foot-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xl);
  align-items: end;
  max-width: var(--shell);
  margin: 0 auto;
  padding-bottom: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
footer .foot-logo { max-width: 15rem; margin: 0 0 var(--space-md); }
footer .foot-logo img { width: 100%; opacity: 0.9; }
footer .addr { margin: 0; line-height: var(--leading-loose); color: var(--color-muted); font-size: var(--text-sm); font-style: normal; }
footer nav.fmenu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin: 0;
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  justify-content: flex-end;
}
/* 実測 33x25px で、design.md の「Hit targets ≥ 44px」を満たしていなかった
   (2026-08-25)。socials 側には min-height があったのにこちらには無く、
   同じフッタの中で当たり判定が食い違っていた。 */
footer nav.fmenu a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  color: var(--color-accent-hi);
  white-space: nowrap;
}
footer .socials { display: flex; gap: var(--space-2xs); margin-top: var(--space-md); justify-content: flex-end; }
footer .socials a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule-strong);
  font-family: var(--font-wordmark);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  color: var(--color-accent-hi);
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  footer .socials a:hover { background: var(--color-accent); color: var(--color-accent-ink); }
}
footer .fine {
  max-width: var(--shell);
  margin: var(--space-md) auto 0;
  /* --color-neutral (L48) measured 3.13:1 here — below the 4.5:1 floor for
     12px text. --color-muted (L62) clears it. Neutral is for rules, not copy. */
  color: var(--color-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
}

/* ============================================================
   Language visibility
   ============================================================ */
html:not([lang="ja"]) [data-ja],
html:not([lang="en"]) [data-en],
html:not([lang="zh"]) [data-zh] { display: none; }
option [data-en], option [data-zh], option [data-ja] { display: inline; }

/* ============================================================
   Reveal — one quiet settle, opacity only.
   The old sheet translated every section 40px on intersection; the page
   never stopped performing. Content should be there, not arrive.
   ============================================================ */
.anim { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.anim.on { opacity: 1; }

/* Lightbox */
.lb {
  position: fixed; inset: 0;
  background: oklch(var(--ch-shade) / 0.96);
  display: none;
  align-items: center; justify-content: center;
  z-index: var(--z-modal);
  cursor: zoom-out;
  padding: var(--space-lg);
  isolation: isolate;
  contain: layout style;
}
.lb.on { display: flex; animation: lbIn var(--dur-med) var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); max-width: 100%; max-height: 100%; }
.lb img { max-width: 100%; max-height: calc(100% - 2.5rem); display: block; }
.lb-count {
  font-family: var(--font-wordmark); font-size: var(--text-xs);
  letter-spacing: var(--track-label); color: var(--color-muted);
}
/* 前後送り。写真の上に重ねるので、当たり判定を大きく取りつつ
   見た目は控えめにする (accent の面積は viewport の 5% 以内)。 */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 4.5rem;
  background: none; border: 0; cursor: pointer;
  color: var(--color-accent-hi); font-size: var(--text-2xl); line-height: 1;
  transition: color var(--dur-short) var(--ease-out);
}
.lb-prev { inset-inline-start: var(--space-2xs); }
.lb-next { inset-inline-end: var(--space-2xs); }
@media (hover: hover) and (pointer: fine) {
  .lb-nav:hover { color: var(--color-ink); }
}
/* 背面のスクロールを止める。⚠ body ではなく html に付ける。
   body に overflow:hidden を付けると sticky なヘッダが横にずれる。 */
html.lb-open { overflow: hidden; }

/* 狭い幅では余白が写真を食う (390px で写真が 310px まで縮んでいた)。
   余白を詰めて、送りボタンは写真の上に重ねる。
   重ねても当たり判定は 3.25rem x 4.5rem のまま保つ。 */
@media (max-width: 40rem) {
  .lb { padding: var(--space-2xs); }
  .lb img { max-height: calc(100% - 3rem); }
  .lb-nav { width: 2.75rem; }
  .lb-prev { inset-inline-start: 0; }
  .lb-next { inset-inline-end: 0; }
  /* 写真に重なるので、輪郭を付けて読めるようにする */
  .lb-nav { text-shadow: 0 1px 6px oklch(var(--ch-shade) / 0.9); }
}
.lb .lb-close {
  position: absolute; top: var(--space-md); inset-inline-end: var(--space-md);
  z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 0;
  color: var(--color-accent-hi);
  font-size: var(--text-xl);
  cursor: pointer;
  line-height: 1;
  transition: color var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .lb .lb-close:hover { color: var(--color-ink); }
}

/* ============================================================
   Responsive — verified at 320 / 375 / 414 / 768
   ============================================================ */
@media (max-width: 60rem) {
  /* The bitmap mark needs ~11rem of width to read; below this the
     typographic wordmark carries the brand on its own. */
  .nav .brand img { display: none; }
  .nav .brand .txt { font-size: var(--text-base); letter-spacing: 0.2em; }
  .hero-block .video-wrap { height: 72svh; min-height: 26rem; }
  /* clear the absolutely-positioned SCROLL rule beneath the copy */
  .hero-block .cap { padding-bottom: calc(var(--space-2xl) + var(--space-md)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) 0; padding: var(--space-lg) var(--page-gutter); }
  .numbers .n:not(:last-child)::after { display: none; }
  .menu4, .bottom-menu, .bottom-menu.three { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .rooms, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid, .price-cards, .row2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  /* gate 52 — the mast collapses to one column, links re-align left */
  .foot-mast { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
  footer nav.fmenu, footer .socials { justify-content: flex-start; }
}

@media (max-width: 40rem) {
  section.block { padding: var(--space-xl) 0; }
  .section-title { margin-bottom: var(--space-lg); }
  .fade { padding: var(--space-xl) var(--page-gutter); }
  .nav-inner { padding: var(--space-sm) var(--page-gutter); gap: var(--space-2xs); }
  .nav .brand .txt small { display: none; }
  .nav-index a { font-size: var(--text-md); gap: var(--space-sm); }
  .numbers .n .k { font-size: var(--text-xl); }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-block td:first-child { width: 6.5rem; }
  /* padding-inline stays 0 — .form-wrap already carries the gutter, and
     re-adding it here indented the form 40px against the page's 20px. */
  .form-section { padding-block: var(--space-xl); }
  /* Three language chips + Reserve + Menu will not fit a phone bar without
     colliding with the wordmark. The language switch moves into the index
     panel, where it has room; the bar keeps wordmark · Reserve · Menu. */
  .nav-inner > .nav-right > .langs { display: none; }
  .nav-index .langs { display: flex; }
  .reserve-btn { padding-inline: var(--space-sm); font-size: var(--text-xs); }
}

@media (max-width: 22.5rem) {
  /* 320px — the reserve chip yields to the menu; both stay tappable.
     Scoped to the nav on purpose: the unscoped selector also hid the in-body
     "Reserve" CTA on all 8 pages, so at <=360px the site had no reservation
     affordance at all (measured 2026-08-24: 0 of 17 visible). */
  .nav-right > .reserve-btn { display: none; }
  .nav-index a { font-size: var(--text-base); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .anim { opacity: 1; }
  .hero-block .cap > * { opacity: 1; animation: none; }
}
