/* ============================================================
   麺屋 鯖の上にも三年 - mackerel-broth ramen, 9 counter seats,
   予約不可: this site has NO reservation form and NO owner portal,
   by design (see the comment in index.html).
   Saba theme: cool silver paper ground (mackerel skin), blue-black
   ink, ONE deep mackerel-blue accent. LIGHT theme, which is what
   separates it from 09 (slate+cyan, dark) and 12 (predawn, dark);
   separated from 28-kaikatei (warm buckwheat beige + slate blue)
   by ground temperature: this ground is COOL silver.
   Display: Yuji Boku (ships 400 ONLY, verified via the Fonts API
   2026-09-13; display rules pin 400) - fish-market brush lettering.
   Body: Zen Kaku Gothic Antique, reused (16/20) under catalogue
   exhaustion; gestalt shares nothing with either.
   Radius 0 (sharp counter). Wrap 960px. VARIANCE 5 / MOTION 2 /
   DENSITY 3. Contrast, computed before writing: text/bg 13.66,
   muted/bg 6.43, muted/bg-2 5.9, accent-as-text 7.09,
   ink-on-accent 6.99, warn/bg 7.4. All AA.
   ============================================================ */
:root {
  --bg: #f4f6f7; --bg-2: #e8edef; --bg-3: #dde4e8;
  --line: rgba(35, 40, 48, 0.16);
  --text: #232830; --muted: #525a66;
  --accent: #23577d; --accent-hover: #2c6b99; --accent-ink: #eef5fa;
  --warn: #8c3418;
  --nav-bg: rgba(244, 246, 247, 0.9);
  --font-display: "Yuji Boku", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-h: 60px; --r: 0; --wrap: 960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 1rem; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.6rem); }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; background: var(--nav-bg);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { width: 100%; display: flex; align-items: center; gap: 0.9rem; }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem;
  letter-spacing: 0.06em; white-space: nowrap; }
.lang { display: flex; gap: 0.2rem; margin-left: auto; font-size: 0.78rem; font-weight: 700;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.lang::-webkit-scrollbar { display: none; }
.lang a { padding: 0.3rem 0.5rem; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--muted); border: 1px solid transparent; white-space: nowrap; flex: 0 0 auto; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); border-color: var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.4rem; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 700; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  border-radius: var(--r); transition: transform 0.15s, background 0.25s, border-color 0.25s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.82rem; }

.hero { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.2rem) 0 2.4rem; }
.eyebrow { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; color: var(--accent-text, var(--accent));
  margin-bottom: 1.1rem; }
.hero h1 { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 6.4vw, 3.1rem); line-height: 1.32; letter-spacing: 0.02em;
  margin-bottom: 1.2rem; }
.hero-sub { color: var(--muted); max-width: 36em; margin-bottom: 1.9rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-media { margin-top: 2rem; }

section { padding: clamp(3.6rem, 8vw, 6rem) 0; }
.sec-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-head h2 { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.35; }
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.8rem; }
.note { margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }

.menu-list { list-style: none; }
.menu-row { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.9rem 0;
  border-bottom: 1px solid var(--line); }
.menu-row .name { font-weight: 700; }
.menu-row .kana { color: var(--muted); font-size: 0.8rem; }
.menu-row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.menu-row .price { font-weight: 700; white-space: nowrap; }
.price-hold { color: var(--muted); font-weight: 700; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.hours dt { font-weight: 700; margin-top: 1.1rem; color: var(--accent-text, var(--accent));
  font-size: 0.82rem; letter-spacing: 0.08em; }
.hours dt:first-child { margin-top: 0; }
.hours dd { font-size: 1.08rem; font-weight: 500; }
.info-list { list-style: none; }
.info-list li { padding: 0.95rem 0; display: flex; flex-direction: column; gap: 0.1rem;
  border-bottom: 1px solid var(--line); }
.info-list .label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.info-list a.link { color: var(--accent-text, var(--accent)); font-weight: 700; min-height: 44px;
  display: inline-flex; align-items: center; }
.info-list a.link:hover { text-decoration: underline; }
.steps { list-style: none; counter-reset: st; }
.steps li { counter-increment: st; display: flex; gap: 0.9rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li::before { content: counter(st); font-family: var(--font-display); font-size: 1.15rem;
  color: var(--accent-text, var(--accent)); min-width: 1.4rem; }

.reserve { background: var(--bg-2); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.84rem; font-weight: 700; }
.field input, .field select { background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 1rem; padding: 0.8rem 0.95rem;
  border-radius: var(--r); appearance: none; -webkit-appearance: none; min-height: 48px; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field input::placeholder { color: var(--muted); }
.form-error { display: none; color: var(--warn); font-size: 0.9rem; font-weight: 500; }
.form-error.show { display: block; }
.form-ok { display: none; color: var(--text); background: var(--bg-3); border: 1px solid var(--line);
  padding: 0.95rem 1.1rem; font-size: 0.93rem; border-radius: var(--r); }
.form-ok.show { display: block; }
.form .btn { justify-self: start; }

footer { padding: 2.6rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted);
  font-size: 0.86rem; }
.foot-brand { font-family: var(--font-display); color: var(--text); margin-bottom: 0.3rem; }
.demo-note { margin-top: 1.3rem; font-size: 0.77rem; }

.rv { opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

@media (min-width: 720px) {
  .info-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .form { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .form-error, .form-ok { grid-column: 1 / -1; }
  .form .btn { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); }
}

/* Chrome: inline nav; NO reserve section (予約不可); footer centred. */
footer .wrap { text-align: center; }
.fact-rail { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; padding: 1rem 0;
  border-top: 2px solid var(--text); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 0.95rem; }

/* LANGUAGE LINKS WERE SCROLLED OUT OF VIEW ON PHONES. The .lang rail is
   scrollable, so nothing "overflowed", but EN/ES were simply invisible at
   390px: a visitor who cannot read Japanese could not see the switcher at
   all, which defeats its purpose. Verified by screenshot, not by metrics:
   every scroll/overflow check passed while the links were hidden. Compact
   header below 430px makes all three fit. Scoped max-width block at the end
   of the file (the earlier cascade trap was an UNSCOPED rule, not this). */
@media (max-width: 430px) {
  .nav .wrap { gap: 0.45rem; }
  .nav .btn { padding: 0.45rem 0.65rem; font-size: 0.76rem; min-width: 0; }
  .lang { gap: 0.05rem; }
  .lang a { padding: 0.3rem 0.3rem; font-size: 0.7rem; }
  .brand { font-size: 0.98rem; letter-spacing: 0.02em; }
}
