/* ============================================================
   中華蕎麦 神山 - site theme
   Nori-stone dark ground with a single kelp-green accent: the shop's
   named specialty is 特製昆布水つけ麺, so the palette is the kelp itself.
   Distinct from every dark site in the project: 01 warm ember, 05 blue
   indigo + karashi gold, 06 neutral black + tan, 08 bottle green GROUND
   (here green is the ACCENT on grey-green stone), 12 predawn + silver.
   Type: New Tegomin display (Google Fonts ships 400 ONLY, verified via
   the CSS API, so no rule below asks for more) over M PLUS 1 Code body
   (400/500/700 real). The code face's slightly technical Latin suits a
   shop whose craft is precision; its JP glyphs share M PLUS metrics,
   which is noted honestly in the build report since M PLUS 1 serves
   elsewhere as a body face.
   Radius lock: 0 (sharp). Wrap: 1096px.
   Contrast, computed not assumed: text/bg 14.78, muted/bg 7.79,
   accent/bg 7.69, ink-on-accent 8.0, hover 9.03/9.4, warn 8.03.
   Mobile-first throughout: base rules are the 360px layout and only
   min-width queries widen it, which structurally avoids the cascade
   trap that silently killed 04-eyelit's mobile collapse.
   ============================================================ 
   de-dup 2026-09-13: same-role font collision fix (verification pass, batch 31-50): now Shippori Antique (unused family; site uses 400 only). */

:root {
  --bg: #191d1a;
  --bg-2: #20261f;
  --bg-3: #2a3128;
  --line: rgba(237, 240, 230, 0.14);
  --text: #edf0e6;
  --muted: #a8b39d;
  --accent: #9db863;
  --accent-hover: #aac774;
  --accent-ink: #141a0e;
  --warn: #e6a37c;
  --font-display: "Shippori Antique", "Hiragino Mincho ProN", serif;
  --font-body: "M PLUS 1 Code", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-h: 64px;
  --r: 0px;
}

* { 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: 1096px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 720px) { .wrap { padding: 0 2.25rem; } }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(25, 29, 26, 0.92);
  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.6rem; }
.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.nav-links { display: none; }
.lang { display: flex; gap: 0.15rem; margin-left: auto; font-size: 0.78rem; font-weight: 700; }
.lang a { padding: 0.3rem 0.45rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
.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.3rem;
  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: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.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 { padding: 0.45rem 0.8rem; font-size: 0.82rem; }

@media (min-width: 860px) {
  .nav-links { display: flex; gap: 1.6rem; margin-left: 2rem; font-size: 0.92rem; }
  .nav-links a { color: var(--muted); transition: color 0.2s; }
  .nav-links a:hover { color: var(--text); }
  .nav .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
}

/* ---------- Hero: the dish is the headline ---------- */

.hero {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  position: relative;
  /* Faint girder rhythm from the JR viaduct the shop sits beside. */
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 калибр,
    transparent 0 96px,
    rgba(237, 240, 230, 0.025) 96px 100px);
}
.hero .eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--accent); margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 7.2vw, 3.9rem);
  line-height: 1.32;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.hero .plate {
  display: inline-flex; align-items: baseline; gap: 0.9rem;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 0.55rem 0.2rem;
  margin-bottom: 1.4rem;
}
.hero .plate .yen {
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.hero .plate .note { font-size: 0.8rem; color: var(--muted); }
.hero-sub { color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-ctas .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .hero-ctas .btn { flex: 0 0 auto; } }

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }
@media (min-width: 860px) { section { padding: 5.5rem 0; } }

.sec-head { margin-bottom: 2rem; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  line-height: 1.4;
}
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.8rem; }

/* Dish block: image beside the how-to. */
.dish { display: grid; gap: 1.5rem; }
.dish .m-ph { border: 1px solid var(--line); }
.dish-copy h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.35rem; margin-bottom: 0.7rem;
}
.dish-copy p { color: var(--muted); max-width: 36em; }
.dish-copy .more { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }
@media (min-width: 860px) {
  .dish { grid-template-columns: 5fr 6fr; gap: 3rem; align-items: center; }
}

/* Seats */
.seats { display: grid; gap: 1rem; }
.seats .m-ph { border: 1px solid var(--line); }
.seats-fact {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1rem;
  color: var(--text);
  font-size: 1.05rem;
}
@media (min-width: 720px) { .seats { grid-template-columns: 1fr 1fr; } .seats-fact { grid-column: 1 / -1; } }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; max-width: 620px; }
.hours th, .hours td {
  text-align: left; padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.hours th { color: var(--muted); font-size: 0.9rem; width: 34%; }
.hours td { font-size: 1.02rem; }
.hours .late td, .hours .late th { color: var(--text); }
.hours-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* Access */
.info-list { list-style: none; max-width: 620px; }
.info-list li { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.info-list .label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.15rem;
}
.info-list a.link { color: var(--accent); font-weight: 700; text-decoration: underline; }
.info-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Reservation ---------- */

.reserve { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reserve-copy { margin-bottom: 2rem; }
.reserve-copy h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 2.2rem); margin-bottom: 0.8rem;
}
.reserve-copy p { color: var(--muted); max-width: 36em; }

.form { display: grid; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; 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.85rem 0.9rem;
  border-radius: var(--r);
  appearance: none; -webkit-appearance: none;
  min-height: 48px;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8b39d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field input::placeholder { color: rgba(168, 179, 157, 0.82); }
.form-note { font-size: 0.85rem; 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: 1rem 1.1rem; font-size: 0.95rem; }
.form-ok.show { display: block; }
.form .btn { justify-self: start; }
@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field.full, .form-note, .form-error, .form-ok, .form .btn { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */

footer { padding: 2.8rem 0 3.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.foot-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--text); margin-bottom: 0.35rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--text); }
.demo-note { margin-top: 1.5rem; font-size: 0.78rem; }

/* ---------- Reveal ---------- */

.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; }
  .btn, .lang a, .nav-links a { transition: none; }
}
