/* のれんWeb 見本の骨組み v3（お手本：暖だん）。色と文字は theme-*.css
   スマホ：上に判子のロゴと言葉の切り替え、下に予約の帯。パソコン：左に判子と縦書きの目次を固定（暖だんと同じ）
   見出しは縦書き（日本語・中国語）。写真は大小をずらして重ねる。飾りは凪の筆の線1本だけ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 2; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased; line-break: strict; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ph { display: inline-block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: rgba(42,42,42,.3) transparent; accent-color: var(--accent); }

.notice { margin: 0; padding: 6px 16px; text-align: center; background: var(--bg2); color: var(--muted); font-size: 11.5px; line-height: 1.7; letter-spacing: .02em; }

/* The shop's mark: an indigo square seal with the name set vertically in brush, like 暖だん's red seal */
.seal { display: grid; place-items: center; width: 52px; height: 52px; background: var(--accent); color: #fff; text-decoration: none; flex: none; }
.seal span { writing-mode: vertical-rl; font-family: var(--font-brush); font-size: 15px; line-height: 1.05; letter-spacing: .02em; height: 2.2em; }

/* One "Language" button that opens the list (as on the Marcona draft) */
.lang { position: relative; }
.lang-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 12.5px; letter-spacing: .04em; padding: 6px 10px; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.lang-list { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); min-width: 150px; }
.lang-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 10px; cursor: pointer; }
.lang-list button[aria-current="true"] { font-weight: 700; color: var(--accent); }
/* The approximate amount in the visitor's currency: under a dish price, on the same line inside a sentence */
.fx { display: block; font-size: 12px; color: var(--muted); }
.lead .fx, .qa .fx { display: inline; font-size: .85em; }
.fx-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.fx-note a { color: inherit; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.side { display: none; }

/* First view: one large bright photo, with a single vertical line of copy */
.hero { position: relative; height: 70svh; min-height: 420px; max-height: 760px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 46%; background: linear-gradient(to left, rgba(20,22,26,.42), transparent); pointer-events: none; }
.tagline { position: absolute; z-index: 1; top: 28px; right: 22px; margin: 0; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 25px; line-height: 1.7; letter-spacing: .22em;
  writing-mode: vertical-rl; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.tagline .ln { display: block; }
.tagline .ln + .ln { margin-top: 2.2em; }
html:not(.vert) .tagline { writing-mode: horizontal-tb; top: auto; right: 20px; bottom: 26px; left: 20px; font-size: 22px; line-height: 1.45; letter-spacing: .02em; }
html:not(.vert) .tagline .ln + .ln { margin-top: 0; }
html:not(.vert) .hero::after { inset: auto 0 0 0; width: auto; height: 55%; background: linear-gradient(to top, rgba(20,22,26,.5), transparent); }

/* 11/4 Ichiro「紹介動画に誤字みたいのがある」：LPでは0.72倍に縮むので、12pxだと「店主」の「主」がつぶれた → 14pxに */
.face-slot { margin: 14px 20px 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.face-slot strong { display: block; color: var(--ink); font-size: 15px; }

/* Name and today's usual hours */
.intro { padding: 30px 20px 8px; }
.intro h1 { font-size: 28px; letter-spacing: .14em; line-height: 1.4; }
html:not(.vert) .intro h1 { letter-spacing: .02em; font-size: 26px; }
.intro-place { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.today { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.today-label { margin: 0; font-size: 13px; color: var(--muted); }
.today-hours { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 40px; line-height: 1.25; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.today-note { margin: 2px 0 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.today-note a { color: var(--ink); }
.today-more { margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.9; }
.today-more div { display: grid; grid-template-columns: 4.2em 1fr; gap: 8px; }
.today-more dt { color: var(--muted); font-size: 13px; }
.today-more dd { margin: 0; }

/* Sections: the title stands vertically at the right of the content (暖だん), horizontal for English and Korean */
.sec { overflow-x: clip; padding: 76px max(20px, calc((100% - 880px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; }
/* The title is large brush lettering, as on 暖だん: white on the greige sections, ink on the pale ones */
.sec-title { position: relative; grid-column: 2; grid-row: 1; align-self: start; writing-mode: vertical-rl; font-family: var(--font-brush); font-weight: 400;
  font-size: 40px; letter-spacing: .12em; line-height: 1.2; white-space: nowrap; padding: 6px 4px; }
.sec-word { position: relative; z-index: 1; }
.sec-body { grid-column: 1; grid-row: 1; min-width: 0; }
html:not(.vert) .sec { grid-template-columns: minmax(0, 1fr); }
html:not(.vert) .sec-title { grid-column: 1; writing-mode: horizontal-tb; font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: .02em; margin-bottom: 18px; padding: 0; }
html:not(.vert) .sec-body { grid-row: 2; }
html:lang(zh-Hant) .sec-title, html:lang(zh-Hans) .sec-title { font-family: var(--font-head); font-weight: 700; font-size: 30px; }
.sec.about, .sec.sake, .sec.owner { background: var(--bg-deep); }
.sec.about .sec-title, .sec.sake .sec-title, .sec.owner .sec-title { color: #fff; text-shadow: 0 0 1px rgba(0,0,0,.06); }

/* Ripples on a calm sea around the title: short tapered brush strokes */
.ripple { position: absolute; width: calc(54px * var(--s, 1)); height: auto; fill: var(--ripple, #fff); opacity: .85; pointer-events: none; }
.sec.menu .ripple, .sec.first .ripple, .sec.reserve .ripple { --ripple: var(--accent); opacity: .28; }
.lead { margin: 0 0 1.2em; max-width: 34em; line-height: 2.1; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.sec h3 { font-size: 19px; letter-spacing: .1em; margin: 22px 0 10px; }
.wide { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Photos of different sizes, overlapping and offset, as on 暖だん: the cook's hands large, a dish smaller below */
.collage { margin-top: 30px; }
.collage figure { margin: 0; }
.collage img { width: 100%; object-fit: cover; }
.collage .c1 { width: 100%; }
.collage .c1 img { aspect-ratio: 4 / 3; }
.collage .c2 { width: 58%; margin: -14% 0 0 auto; position: relative; z-index: 1; }
.collage .c2 img { aspect-ratio: 4 / 5; }

/* Menu: one large, two small. Names in brush */
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 14px; margin-top: 8px; }
.dish { margin: 0; }
.dish-main { grid-column: 1 / -1; }
.dish img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dish-main img { aspect-ratio: 4 / 3; }
.dish figcaption { display: grid; gap: 2px; padding-top: 12px; }
.dish-name { font-family: var(--font-brush); font-size: 19px; letter-spacing: .08em; line-height: 1.5; }
.dish-main .dish-name { font-size: 24px; }
.dish-desc { font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.dish-price { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
html:lang(zh-Hant) .dish-name, html:lang(zh-Hans) .dish-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }

.qa { margin: 18px 0 0; }
.qa div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.qa dd { margin: 2px 0 0; color: var(--muted); }

.owner blockquote { margin: 0; font-family: var(--font-head); font-size: 17px; line-height: 2.2; letter-spacing: .06em; }
.owner blockquote p { margin: 0 0 12px; }
.sign { margin: 10px 0 0; text-align: right; font-family: var(--font-brush); font-size: 19px; }
html:lang(zh-Hant) .sign, html:lang(zh-Hans) .sign { font-family: var(--font-head); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 2px; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .12em; }
.btn-main { background: var(--accent); color: #fff; }
.btn-sub { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
html:not(.vert) .btn { letter-spacing: .03em; }
.actions { display: grid; gap: 6px; max-width: 420px; }
.landmark { margin: 28px 0 22px; background: #0B0A08; }
.landmark img { width: 100%; }
.landmark figcaption { padding: 8px 12px 10px; color: #E9E6DF; font-size: 12.5px; letter-spacing: .08em; }
.facts { margin: 0 0 14px; display: grid; gap: 10px; font-size: 14px; line-height: 1.9; }
.facts div { display: grid; grid-template-columns: 5em 1fr; gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

footer { padding: 30px 20px 40px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.8; border-top: 1px solid var(--line); }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.bar .btn { flex: 1; min-height: 48px; padding: 0 10px; white-space: nowrap; }
.bar .btn-main { flex: 1.6; }

/* Motion: only with JS and without reduced motion (render3.js adds html.motion) */
html.motion .collage figure, html.motion .dish, html.motion .wide, html.motion .landmark { opacity: 0; transform: translateY(16px); transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1); }
html.motion .collage .c2 { transition-delay: .2s; }
html.motion .in { opacity: 1 !important; transform: none !important; }
/* The title's brush letters fade in from a soft blur, then each ripple appears and drifts gently sideways */
html.motion .sec-word { display: inline-block; opacity: 0; filter: blur(6px); transition: opacity 1.6s ease, filter 1.6s ease; }
html.motion .sec-title.in .sec-word { opacity: 1; filter: none; }
html.motion .ripple { opacity: 0; transform: translateX(-8px); transition: opacity 1.4s ease var(--d), transform 1.8s cubic-bezier(.16,1,.3,1) var(--d); }
html.motion .sec-title.in .ripple { opacity: .85; transform: none; animation: ripple-drift 7s ease-in-out calc(var(--d) + 1.8s) infinite alternate; }
html.motion .sec.menu .sec-title.in .ripple, html.motion .sec.first .sec-title.in .ripple, html.motion .sec.reserve .sec-title.in .ripple { opacity: .28; }
@keyframes ripple-drift { to { transform: translateX(7px); } }

/* Desktop: the seal and a vertical table of contents stay on the left, as on 暖だん */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .top { display: none; }
  .side { display: flex; flex-direction: column; align-items: center; gap: 36px; position: fixed; top: 0; bottom: 0; left: 0; width: 180px; padding: 40px 0 28px; z-index: 20; }
  .side .seal { width: 92px; height: 92px; }
  .side .seal span { font-size: 26px; }
  .side-nav { display: flex; flex-direction: row-reverse; gap: 10px; }
  .side-nav a { writing-mode: vertical-rl; text-decoration: none; font-family: var(--font-head); font-size: 13.5px; letter-spacing: .26em; line-height: 1.6; color: var(--ink); }
  .side-nav a:hover { color: var(--accent); }
  html:not(.vert) .side-nav { flex-direction: column; }
  html:not(.vert) .side-nav a { writing-mode: horizontal-tb; letter-spacing: .02em; }
  .side .lang { margin-top: auto; }
  .side .lang-list { right: auto; left: 0; top: auto; bottom: calc(100% + 6px); }
  .notice, main, footer { margin-left: 180px; }
  .hero { height: 86vh; max-height: none; }
  .tagline { font-size: 34px; top: 56px; right: 64px; }
  .intro { padding: 44px max(20px, calc((100% - 880px) / 2)) 8px; }
  .collage { display: grid; grid-template-columns: repeat(12, 1fr); }
  .collage .c1 { grid-column: 1 / 10; grid-row: 1; width: auto; }
  .collage .c2 { grid-column: 8 / 13; grid-row: 1; width: auto; margin: 34% 0 0; }
  .sec-title { font-size: 52px; }
  .dishes { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .dish-main { grid-column: 1; grid-row: 1 / 3; }
  .bar { left: auto; right: 24px; bottom: 24px; width: 380px; border: 1px solid var(--line); border-radius: 2px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
