/* Standalone shop sites (sites/<slug>/). One stylesheet, eight brand themes (body.t-*),
   with per-shop accent (--accent), hero style (body.h-*) and menu style (body.m-*). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- tokens: defaults (marine-ish) overridden per theme ---------------- */
:root {
  --bg: #F6F4EF; --bg-2: #ECE7DD; --ink: #1D1A16; --muted: #6E665C; --rule: rgba(29, 26, 22, .14);
  --accent: #A8442E; --on-accent: #fff; --hero-ink: #fff; --shade: rgba(10, 8, 6, .55);
  --f-display: "Shippori Mincho B1", serif; --f-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", system-ui, sans-serif; --f-latin: var(--f-display);
  --radius: 4px; --wrap: 1180px; --gut: max(16px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1); --title-ls: .08em; --title-w: 600;
}
.t-washi    { --bg: #F4EFE4; --bg-2: #EAE2D2; --ink: #1E1B17; --muted: #6F665A; --rule: rgba(30, 27, 23, .16); --f-display: "Shippori Mincho B1", serif; --f-latin: "Shippori Mincho B1", serif; --radius: 0px; --title-ls: .18em; }
.t-trattoria{ --bg: #F7F0E3; --bg-2: #EFE3CE; --ink: #2B2118; --muted: #7A6A58; --rule: rgba(43, 33, 24, .15); --f-display: "Playfair Display", "Shippori Mincho B1", serif; --f-latin: "Playfair Display", serif; --f-body: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif; --radius: 18px; --title-ls: .02em; }
.t-noir     { --bg: #0C0E14; --bg-2: #141824; --ink: #ECE6DA; --muted: #9A93A6; --rule: rgba(214, 190, 140, .2); --f-display: "Cormorant Garamond", "Shippori Mincho B1", serif; --f-latin: "Cormorant Garamond", serif; --radius: 2px; --title-ls: .12em; --title-w: 500; --on-accent: #120E06; }
.t-marine   { --bg: #F3F6F7; --bg-2: #E2EBEE; --ink: #0E2A3B; --muted: #557080; --rule: rgba(14, 42, 59, .14); --f-display: "DM Serif Display", "Shippori Mincho B1", serif; --f-latin: "DM Serif Display", serif; --radius: 10px; --title-ls: .03em; --title-w: 400; }
.t-aqua     { --bg: #04171B; --bg-2: #08242A; --ink: #E2F6F4; --muted: #84AFAD; --rule: rgba(120, 230, 220, .18); --f-display: "Unbounded", "Hiragino Sans", "Yu Gothic", sans-serif; --f-latin: "Unbounded", sans-serif; --radius: 22px; --title-ls: .02em; --title-w: 500; --on-accent: #02181B; }
.t-izakaya  { --bg: #16120F; --bg-2: #211B16; --ink: #F3EBDD; --muted: #A99A88; --rule: rgba(243, 235, 221, .14); --f-display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif; --f-latin: "Dela Gothic One", sans-serif; --radius: 6px; --title-ls: .04em; --title-w: 400; }
.t-chuka    { --bg: #FBF5EA; --bg-2: #F3E6CF; --ink: #2A1210; --muted: #7D5A50; --rule: rgba(120, 20, 20, .16); --f-display: "Zen Old Mincho", "Shippori Mincho B1", serif; --f-latin: "Zen Old Mincho", serif; --radius: 3px; --title-ls: .14em; --title-w: 900; }
.t-garden   { --bg: #F2F4EA; --bg-2: #E4E9D6; --ink: #22301F; --muted: #66735F; --rule: rgba(34, 48, 31, .14); --f-display: "Fraunces", "Hiragino Maru Gothic ProN", serif; --f-latin: "Fraunces", serif; --f-body: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif; --radius: 26px; --title-ls: .01em; --title-w: 600; }

/* JP fonts set Cyrillic/Greek/etc. full-width: use system faces there */
:lang(ru) body, :lang(uk) body, :lang(el) body, :lang(bg) body, :lang(hi) body, :lang(th) body, :lang(ar) body, :lang(he) body, :lang(fa) body, :lang(bn) body, :lang(my) body, :lang(ta) body {
  --f-body: system-ui, "Segoe UI", "Noto Sans", sans-serif; --title-ls: .01em;
}
:lang(ru) .t-izakaya, :lang(uk) .t-izakaya, :lang(el) .t-izakaya, :lang(bg) .t-izakaya, :lang(ru) .t-aqua, :lang(uk) .t-aqua, :lang(el) .t-aqua, :lang(bg) .t-aqua { --f-display: system-ui, sans-serif; }
:lang(hi) body, :lang(th) body, :lang(ar) body, :lang(he) body, :lang(fa) body, :lang(bn) body, :lang(my) body, :lang(ta) body { --f-display: var(--f-body); }

body { overflow-wrap: break-word; background: var(--bg); color: var(--ink); font: 400 1rem/1.9 var(--f-body); letter-spacing: .02em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.6em; border-radius: max(var(--radius), 2px); font-weight: 500; letter-spacing: .08em; font-size: .92rem; transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.t-trattoria .btn, .t-garden .btn, .t-aqua .btn { border-radius: 999px; }

/* ---------------- header ---------------- */
.sh { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--hero-ink); transition: background-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
.sh.solid { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--rule); }
.sh.hide { transform: translateY(-105%); }
.sh-in { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.sh-logo { display: grid; line-height: 1.15; margin-inline-end: auto; min-width: 0; }
.sh-name { font: var(--title-w) 1.15rem/1.2 var(--f-display); letter-spacing: var(--title-ls); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-logo small { font-size: .62rem; letter-spacing: .2em; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-nav { display: flex; gap: 1.6rem; font: 500 .8rem/1 var(--f-latin); letter-spacing: .16em; text-transform: uppercase; }
.sh-nav a { position: relative; padding: .4rem 0; opacity: .85; }
.sh-nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease); }
.sh-nav a:hover { opacity: 1; } .sh-nav a:hover::after { transform: scaleX(1); }
.sh-act { display: flex; align-items: center; gap: .6rem; }
.sh-act .btn { min-height: 40px; padding: 0 1.2em; font-size: .82rem; }
.lang { display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 .8rem; border: 1px solid currentColor; border-radius: 999px; background: none; font: 500 .72rem/1 var(--f-body); letter-spacing: .12em; cursor: pointer; opacity: .8; }
.lang svg { width: 15px; height: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 999px; background: none; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease), background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 35; background: var(--bg); color: var(--ink); padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gut) 32px; display: flex; flex-direction: column; gap: 1.6rem; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.nav-open .drawer { opacity: 1; visibility: visible; transition: opacity .4s; }
.nav-open .sh { background: var(--bg); color: var(--ink); }
.drawer nav { display: grid; }
.drawer nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); font: var(--title-w) 1.3rem/1.3 var(--f-display); }
.drawer nav a span { font: 500 .72rem/1 var(--f-body); letter-spacing: .18em; color: var(--accent); }
@media (max-width: 960px) { .sh-nav, .sh-act .lang { display: none; } .burger { display: grid; } }
@media (max-width: 520px) { .sh-act .btn { padding: 0 .9em; } .sh-name { font-size: 1rem; } }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); color: var(--hero-ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #111; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.hero-media img.on { opacity: 1; transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 35%, var(--shade) 100%); }
.hero-copy { min-width: 0; align-self: end; padding: 140px 0 clamp(3rem, 9vh, 6rem); display: grid; gap: 1.1rem; max-width: 760px; }
.hero-area { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .78rem; letter-spacing: .24em; opacity: .85; }
.hero-area span + span::before { content: "／"; margin-inline-end: 1rem; opacity: .6; }
.hero-title { overflow-wrap: anywhere; font: var(--title-w) clamp(2.4rem, 7vw, 5.4rem)/1.12 var(--f-display); letter-spacing: var(--title-ls); text-wrap: balance; }
.hero-title.long { font-size: clamp(2rem, 5vw, 3.8rem); }
.hero-genre { font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .14em; }
.hero-genre::before { content: ""; display: inline-block; width: 2.4rem; height: 1px; background: var(--accent); vertical-align: middle; margin-inline-end: .9rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.hero-dots { position: absolute; inset-inline-end: var(--gut); bottom: 2rem; display: flex; gap: .5rem; }
.hero-dots i { width: 26px; height: 2px; background: currentColor; opacity: .35; transition: opacity .4s, width .4s; }
.hero-dots i.on { opacity: 1; width: 42px; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; font: 500 .6rem/1 var(--f-latin); letter-spacing: .3em; opacity: .7; display: grid; justify-items: center; gap: .5rem; }
.scroll-cue i { width: 1px; height: 38px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* split: photo on one side, copy on a solid panel */
.h-split .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); color: var(--ink); background: var(--bg); }
.h-split .hero-media { position: relative; grid-column: 2; min-height: 100svh; }
.h-split .hero-media::after { background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 40%); }
.h-split .hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 120px clamp(1.5rem, 5vw, 4.5rem) 4rem max(var(--gut), calc((100vw - var(--wrap)) / 2)); }
.h-split .sh:not(.solid) { color: var(--ink); }
.h-split .hero-dots, .h-split .scroll-cue { color: #fff; }
.h-split .scroll-cue { left: 75%; }
/* frame: inset photo with a thick border of page colour */
.h-frame .hero { padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gut) var(--gut); min-height: 100svh; background: var(--bg); }
.h-frame .hero-media { inset: calc(84px + env(safe-area-inset-top, 0px)) var(--gut) var(--gut); border-radius: var(--radius); overflow: hidden; }
.h-frame .sh:not(.solid) { color: var(--ink); }
.h-frame .hero-copy { padding-inline: clamp(1.2rem, 4vw, 3.5rem); padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.h-frame .hero-dots { inset-inline-end: calc(var(--gut) + 1.5rem); bottom: calc(var(--gut) + 1.5rem); }
.h-frame .scroll-cue { display: none; }
/* center: centred monumental title */
.h-center .hero-copy { align-self: center; justify-self: center; justify-items: center; text-align: center; padding-bottom: 6rem; }
.h-center .hero-area, .h-center .hero-btns { justify-content: center; }
.h-center .hero-genre::before { display: none; }
.h-center .hero-genre::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--accent); margin: 1rem auto 0; }
/* vertical (washi): title set top-to-bottom */
@media (min-width: 761px) {
  .h-vert .hero-copy { position: absolute; inset-block: 0; inset-inline-end: max(var(--gut), calc((100vw - var(--wrap)) / 2)); align-content: center; padding: 120px 0 4rem; max-width: none; justify-items: end; }
  .h-vert .hero-title { writing-mode: vertical-rl; font-size: clamp(2rem, 6.4svh, 4.2rem); line-height: 1.4; white-space: nowrap; }
  .h-vert .hero-title.long { font-size: clamp(1.8rem, 4.6svh, 3.2rem); }
  .h-vert .hero-area { writing-mode: vertical-rl; position: absolute; inset-inline-start: 0; top: 50%; translate: -3.2rem -50%; letter-spacing: .4em; }
  :lang(ar) .h-vert .hero-title, :lang(he) .h-vert .hero-title, :lang(hi) .h-vert .hero-title, :lang(th) .h-vert .hero-title { writing-mode: horizontal-tb; max-height: none; }
}
@media (max-width: 760px) {
  .h-split .hero { grid-template-columns: 1fr; grid-template-rows: 56svh auto; }
  .h-split .hero-media { grid-column: 1; grid-row: 1; min-height: 0; }
  .h-split .hero-copy { grid-row: 2; padding: 2rem var(--gut) 3rem; }
  .h-split .sh:not(.solid) { color: #fff; }
  .h-split .scroll-cue { display: none; }
  .h-split .hero-dots { top: calc(56svh - 2rem); bottom: auto; }
}

/* ---------------- sections ---------------- */
.sec { padding: clamp(4.5rem, 11vw, 8.5rem) 0; position: relative; }
.sec-alt { background: var(--bg-2); }
.sec-head { grid-template-columns: minmax(0, 1fr); display: grid; gap: .6rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec-head.center { justify-items: center; text-align: center; }
.eyebrow { font: 500 .78rem/1 var(--f-latin); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; }
.sec-head.center .eyebrow::after { content: ""; width: 1.8rem; height: 1px; background: currentColor; }
.sec-title { overflow-wrap: anywhere; hyphens: auto; max-width: 100%; font: var(--title-w) clamp(1.7rem, 3.6vw, 2.6rem)/1.35 var(--f-display); letter-spacing: var(--title-ls); }
.t-washi .eyebrow, .t-chuka .eyebrow { font-family: var(--f-display); letter-spacing: .4em; }

/* concept */
.concept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.concept-catch { overflow-wrap: anywhere; font: var(--title-w) clamp(1.35rem, 2.6vw, 2rem)/1.75 var(--f-display); letter-spacing: .06em; display: grid; gap: .4rem; margin: 1.4rem 0 1.6rem; }
.concept-catch .cl { display: block; }
.concept-text { color: var(--muted); max-width: 38em; }
.concept-fig { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.concept-fig img { width: 100%; height: 100%; object-fit: cover; }
.concept-fig::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.5); border-radius: max(0px, calc(var(--radius) - 10px)); pointer-events: none; }
.concept.rev .concept-fig { order: -1; }
.t-washi .concept-catch { border-inline-start: 2px solid var(--accent); padding-inline-start: 1.2rem; }
@media (max-width: 860px) { .concept { grid-template-columns: minmax(0, 1fr); } .concept.rev .concept-fig { order: 0; } .concept-fig { aspect-ratio: 4 / 3; } }

/* menu: shared */
.menu { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.mi { position: relative; }
.mi-img { overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.mi-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mi:hover .mi-img img { transform: scale(1.06); }
.mi-name { font: 500 1rem/1.6 var(--f-body); letter-spacing: .04em; }
.mi-price { font: 500 1.02rem/1.35 var(--f-latin); color: var(--accent); max-width: 60%; text-align: end; letter-spacing: .04em; }
.mi-dots { flex: 1; border-bottom: 1px dotted var(--rule); min-width: 1rem; translate: 0 -.3em; }
.mi-body { min-width: 0; display: flex; align-items: flex-end; gap: .8rem; padding-top: .9rem; }
.menu-note { margin-top: 1.6rem; font-size: .78rem; color: var(--muted); }
/* cards */
.m-cards .menu { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.m-cards .mi-img { aspect-ratio: 4 / 3; }
.m-cards .mi { background: var(--bg); padding: .7rem .7rem 1rem; border-radius: calc(var(--radius) + 6px); box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.sec-alt.m-cards .mi { background: var(--bg); }
/* list (お品書き): small square thumbs with dotted leaders, two columns */
.m-list .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); row-gap: 0; }
.m-list .mi { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.m-list .mi-img { aspect-ratio: 1; }
.m-list .mi-body { padding: 0; align-items: center; }
@media (max-width: 760px) { .m-list .menu { grid-template-columns: 1fr; } .m-list .mi { grid-template-columns: 76px minmax(0, 1fr); } }
/* tiles: text over photo */
.m-tiles .menu { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); grid-auto-flow: dense; }
.m-tiles .mi { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; color: #fff; }
.m-tiles .mi:nth-child(5n + 1) { grid-column: span 2; aspect-ratio: auto; }
.m-tiles .mi-img { position: absolute; inset: 0; border-radius: 0; }
.m-tiles .mi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); pointer-events: none; }
.m-tiles .mi-body { position: absolute; inset: auto 0 0; z-index: 1; padding: 1rem 1.1rem; }
.m-tiles .mi-dots { border-color: rgba(255,255,255,.35); }
.m-tiles .mi-price { color: #fff; background: var(--accent); color: var(--on-accent); padding: .35em .6em; border-radius: 999px; font-size: .86rem; }
@media (max-width: 560px) { .m-tiles .mi:nth-child(5n + 1) { grid-column: auto; aspect-ratio: 1; } }
/* board: photo + tag label like a hand-written price card */
.m-board .menu { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1.6rem 1.2rem; }
.m-board .mi-img { aspect-ratio: 1; border-radius: var(--radius); }
.m-board .mi-body { display: block; text-align: center; padding-top: 1rem; }
.m-board .mi-dots { display: none; }
.m-board .mi-name { font-family: var(--f-display); font-weight: var(--title-w); letter-spacing: .06em; }
.m-board .mi-price { position: absolute; top: .7rem; inset-inline-start: .7rem; background: var(--accent); color: var(--on-accent); padding: .45em .7em; border-radius: var(--radius); font-size: .85rem; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); rotate: -4deg; }
/* alt: large alternating rows */
.m-alt .menu { gap: clamp(2.4rem, 6vw, 4.5rem); }
.m-alt .mi { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center; }
.m-alt .mi:nth-child(even) .mi-img { order: 2; }
.m-alt .mi-img { aspect-ratio: 16 / 10; }
.m-alt .mi-body { display: grid; gap: 1rem; padding: 0; align-content: center; }
.m-alt .mi-name { font: var(--title-w) clamp(1.15rem, 2vw, 1.5rem)/1.6 var(--f-display); letter-spacing: .05em; }
.m-alt .mi-dots { width: 3rem; flex: none; border-bottom: 1px solid var(--accent); translate: none; }
.m-alt .mi-price { font-size: 1.2rem; }
@media (max-width: 760px) { .m-alt .mi { grid-template-columns: minmax(0, 1fr); } .m-alt .mi:nth-child(even) .mi-img { order: 0; } }
.m-alt .menu-more, .m-alt .mi:nth-child(n+7) { display: none; }

/* photo-only menus (most opefac.com dishes carry no caption) */
.m-mosaic .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: clamp(.5rem, 1.2vw, 1rem); }
.m-mosaic .mi, .m-mosaic .mi-img { height: 100%; }
.m-mosaic .mi:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.m-mosaic .mi:nth-child(6n + 5) { grid-column: span 2; }
@media (max-width: 700px) { .m-mosaic .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; } .m-mosaic .mi:nth-child(6n + 5) { grid-column: auto; } }
.m-strip .menu { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: thin; }
.m-strip .mi { flex: 0 0 min(340px, 76%); scroll-snap-align: start; }
.m-strip .mi-img { aspect-ratio: 3 / 4; }
.m-strip .mi:nth-child(even) { margin-top: 2.4rem; }
.m-tiles .mi:not(:has(.mi-body))::after { display: none; }
.m-tiles .menu:not(:has(.mi-body)) { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

/* course & news */
.topics { display: grid; gap: 1rem; }
.tp { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.sec-alt .tp { background: var(--bg); }
.tp summary { display: grid; grid-template-columns: 112px auto minmax(0, 1fr) 28px; gap: 1.2rem; align-items: center; padding: .8rem; cursor: pointer; list-style: none; }
.tp summary::-webkit-details-marker { display: none; }
.tp-thumb { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: max(2px, calc(var(--radius) - 6px)); background: var(--bg-2); }
.tp-thumb-none { display: block; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), var(--bg-2); }
.tp-no { font: 500 .8rem/1 var(--f-latin); color: var(--accent); letter-spacing: .1em; }
.tp-title { font: 500 1rem/1.6 var(--f-body); }
.tp-x { width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 50%; position: relative; }
.tp-x::before, .tp-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: currentColor; translate: -50% -50%; transition: rotate .3s; }
.tp-x::after { rotate: 90deg; }
.tp[open] .tp-x::after { rotate: 0deg; }
.tp-body { padding: .4rem clamp(1rem, 3vw, 2rem) 1.8rem; display: grid; gap: 1rem; color: var(--muted); font-size: .94rem; }
.tp-body ul { display: grid; gap: .3rem; padding-inline-start: 1.2em; list-style: disc; }
.tp-fig img { width: min(560px, 100%); border-radius: max(2px, calc(var(--radius) - 6px)); }
.tp-fig figcaption { font-size: .8rem; margin-top: .4rem; }
.tp-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
@media (max-width: 600px) { .tp summary { grid-template-columns: 76px minmax(0, 1fr) 28px; } .tp-thumb { width: 76px; } .tp-no { display: none; } }

/* gallery */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; }
.gallery button:hover img { transform: scale(1.04); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.88); }
dialog.lightbox img { width: auto; height: auto; max-width: 92vw; max-height: 86vh; margin: auto; position: absolute; inset: 0; border-radius: 6px; }
dialog.lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.4); color: #fff; font-size: 1.1rem; cursor: pointer; z-index: 2; }

/* access */
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.profile { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .92rem; }
.profile th, .profile td { text-align: start; vertical-align: top; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.profile th { width: 8.5em; padding-inline-end: 1rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.profile td { overflow-wrap: anywhere; }
.profile a { color: var(--accent); }
.map { aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.t-noir .map iframe, .t-aqua .map iframe, .t-izakaya .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) contrast(.9); }
.reserve { margin-top: 2rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); display: grid; gap: 1rem; }
.reserve h3 { font: var(--title-w) 1.3rem/1.4 var(--f-display); letter-spacing: .06em; }
.reserve .btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.reserve .btn-solid { background: var(--on-accent); color: var(--accent); }
.reserve .btn-ghost { border-color: currentColor; }
.reserve .btn-ghost:hover { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
@media (max-width: 860px) { .access { grid-template-columns: minmax(0, 1fr); } .profile th { width: 6.5em; white-space: normal; } }

/* footer */
.sf { padding: 4rem 0 calc(2.4rem + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); }
.sf-in > * { max-width: 100%; }
.sf-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; justify-items: center; text-align: center; }
.sf-name { font: var(--title-w) 1.6rem/1.3 var(--f-display); letter-spacing: var(--title-ls); }
.sf nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; font-size: .85rem; opacity: .8; }
.sf small { font-size: .72rem; opacity: .6; letter-spacing: .08em; }
.sf .ig { display: inline-flex; align-items: center; gap: .5rem; }
.sf .ig svg { width: 18px; height: 18px; }
.t-noir .sf, .t-aqua .sf, .t-izakaya .sf { background: #000; color: var(--ink); }

/* sticky mobile reserve bar */
.mbar { position: fixed; inset: auto 0 0; z-index: 30; display: none; gap: .6rem; padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .45s var(--ease); }
.mbar.on { transform: none; }
.mbar .btn { flex: 1; min-height: 46px; padding: 0 .6em; font-size: .85rem; }
@media (max-width: 760px) { .mbar { display: flex; } .sf { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); } }

/* language dialog (inserted by the i18n builder) */
dialog.langsw { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--bg) 96%, transparent); color: var(--ink); overflow-y: auto; }
dialog.langsw::backdrop { background: transparent; }
.langsw-in { width: min(1000px, 100% - 32px); margin: 0 auto; padding: clamp(4rem, 10vh, 6rem) 0 4rem; }
.langsw-hd { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.langsw-hd .eyebrow { margin: 0; }
.langsw .x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: none; cursor: pointer; }
.langsw ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem; }
.langsw ul a { display: block; padding: .7rem 1rem; border-radius: var(--radius); border: 1px solid transparent; }
.langsw ul a:hover, .langsw ul a[aria-current] { border-color: var(--accent); color: var(--accent); }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hero-media img { transition: opacity .3s; transform: none; } .scroll-cue i { animation: none; } html { scroll-behavior: auto; } }

/* ---------------- theme ornaments ---------------- */
/* washi: paper grain + seal stamp */
.t-washi body, body.t-washi { background-image: radial-gradient(rgba(120, 100, 70, .06) 1px, transparent 1px); background-size: 4px 4px; }
.t-washi .sec-title::after { content: ""; display: block; width: 14px; height: 14px; background: var(--accent); margin-top: 1rem; rotate: 45deg; }
.t-washi .sec-head.center .sec-title::after { margin-inline: auto; }
/* chuka: lacquer-red section bands with gold */
.t-chuka .sec-alt { background: #7E1717; color: #FBEFD9; --muted: #EBCBB0; --rule: rgba(251, 239, 217, .2); --bg: #8E1F1C; }
.t-chuka .sec-alt .eyebrow { color: #E9B95A; }
.t-chuka .sec-alt .mi-price { color: #E9B95A; }
.t-chuka .sec-alt.m-board .mi-price { background: #E9B95A; color: #3B0C0A; }
.t-chuka .hero-title { text-shadow: 0 4px 30px rgba(0,0,0,.4); }
/* izakaya: lantern-red badges, bold */
.t-izakaya .sec-title { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.t-izakaya .eyebrow::before { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.t-izakaya .hero-title { text-shadow: 0 6px 30px rgba(0,0,0,.5); }
/* noir: gold hairlines */
.t-noir .sec-head .eyebrow { color: var(--accent); }
.t-noir .concept-fig::after { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.t-noir .hero-title { font-style: italic; }
/* aqua: glow */
.t-aqua .sec-title { background: linear-gradient(90deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-aqua .mi-img, .t-aqua .concept-fig, .t-aqua .gallery button { box-shadow: 0 0 0 1px var(--rule), 0 20px 50px -20px color-mix(in srgb, var(--accent) 40%, transparent); }
.t-aqua .sec-alt { background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--bg-2); }
/* marine: rope stripe */
.t-marine .sec-alt::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 30px); opacity: .7; }
/* trattoria: checked tablecloth edge */
.t-trattoria .sec-alt::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: repeating-conic-gradient(var(--accent) 0 25%, transparent 0 50%) 0 0 / 20px 20px; opacity: .55; }
.t-trattoria .sec-title { font-style: italic; }
/* garden: soft leaf blobs */
.t-garden .sec-alt { background: radial-gradient(60% 50% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg-2); }
.t-garden .concept-fig { border-radius: 200px 200px var(--radius) var(--radius); }
.t-garden .concept-fig::after { border-radius: 190px 190px 16px 16px; }

/* ---------------- presentation hub (sites/index.html) ---------------- */
.hub { --bg: #0F0D0B; --bg-2: #1A1612; --ink: #F1EADF; --muted: #A2968A; --rule: rgba(241, 234, 223, .12); --accent: #D6AA60; --on-accent: #1A1209; --f-display: "Cormorant Garamond", "Shippori Mincho B1", serif; --f-latin: "Cormorant Garamond", serif; }
.hub-head { padding: clamp(6rem, 14vh, 9rem) 0 3rem; display: grid; gap: 1.2rem; }
.hub-head h1 { font: 500 clamp(2.4rem, 6vw, 4.6rem)/1.1 var(--f-display); letter-spacing: .04em; }
.hub-head p { color: var(--muted); max-width: 46em; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 1rem; }
.hub-stats b { display: block; font: 500 2.4rem/1 var(--f-latin); color: var(--accent); }
.hub-stats span { font-size: .78rem; letter-spacing: .14em; color: var(--muted); }
.hub-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.hub-filters button { border: 1px solid var(--rule); background: none; border-radius: 999px; padding: .5rem 1.1rem; font-size: .82rem; cursor: pointer; color: var(--muted); }
.hub-filters button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.4rem; padding-bottom: 6rem; }
.hub-card { display: grid; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--bg-2); transition: transform .4s var(--ease), border-color .3s; }
.hub-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.hub-card[hidden] { display: none; }
.hub-card figure { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.hub-card figure img { width: 100%; height: 100%; object-fit: cover; }
.hub-card .sw { position: absolute; top: .8rem; inset-inline-start: .8rem; display: flex; align-items: center; gap: .4rem; padding: .3rem .7rem .3rem .4rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font: 500 .68rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.hub-card .sw i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.hub-card .bd { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.hub-card h2 { font: 500 1.15rem/1.4 var(--f-body); }
.hub-card p { font-size: .8rem; color: var(--muted); }
.hub-area span + span::before { content: " / "; opacity: .6; }
.hub-card .links { display: flex; gap: 1rem; margin-top: .6rem; font-size: .8rem; }
.hub-card .links a:first-child { color: var(--accent); }
.hub-card .links a:last-child { color: var(--muted); }

/* course booking buttons (generator turns TableCheck/食べログ/HotPepper links into these; app.js routes them) */
.tp-body a.tp-book, .tp-body .tp-book-line a { font-size: 0; text-decoration: none; word-break: normal; gap: 0; margin: .3rem 0; padding: 0 1.3rem; min-height: 42px; display: inline-flex; align-items: center; }
.tp-body a.tp-book::before, .tp-body .tp-book-line a::before { text-decoration: none; content: attr(data-label); font-size: .84rem; letter-spacing: .06em; }
.tp-body .tp-book-line { margin-top: -.6rem; }
.btn-sm { min-height: 40px; padding: 0 1.1em; }
.btn-line { background: #06C755; color: #fff; border-color: #06C755; }
.tp-body a.btn { color: inherit; }
.tp-body a.btn-line { color: #fff; }
.tp-body a.tp-book:hover { color: var(--on-accent); }
