/* ============================================================
   三宮ラーメン - 神戸三宮・中山手通
   Menu-card theme. VARIANCE 5 / MOTION 2 / DENSITY 4
   Theme lock: light, whole page. Accent lock: shoyu brown.
   Radius lock: 0 everywhere.

   WHY THIS PALETTE AND WHY IT IS PLAIN.
   This shop has the thinnest record in the project: no phone on
   Google, no website, no published menu, no prices, 3.3 from 17
   reviews. It also sits on a street with two ramen shops carrying
   over a thousand reviews each. Dressing it up would be the wrong
   answer twice over: it would invite a comparison it loses, and a
   reviewer has already noted the soup comes from a central kitchen,
   so any craft-ramen storytelling would be contradicted by the
   shop's own customers.

   So the design is a menu card, not a brand. Warm paper ground,
   shoyu brown, zero radius, heavy rules. It reads as something
   printed and pinned up rather than something art-directed, which
   is honest about what the business is: a straightforward bowl by
   the station from 11:30.

   Deliberately unlike 07-kobe-terrace, the project's other light
   ground with a red-family accent: that one is warm white with a
   bright tomato, Kiwi Maru, and 20px radius throughout. This is a
   darker earth brown, a marker-pen display face, and sharp corners.

   TYPE. Yusei Magic ships weight 400 ONLY, so it is requested with
   no wght axis and every rule that uses it pins font-weight:400.
   Asking for 700 makes the browser fake bold by smearing glyphs;
   that shipped twice in this project before rendering caught it.
   It is a marker-pen face, which suits a handwritten shop sign and
   avoids the precious feeling a mincho would add.
   BIZ UDGothic (400/700) is a Universal Design face built for
   legibility. It is a different family from BIZ UDPGothic used on
   04 and 15: that one is proportional, this one is fixed pitch.

   COLOUR RULE: ink on the accent measures 2.12:1 and FAILS. Accent
   surfaces always take white (7.85:1). Never pair --text with
   --accent as a background.
   ============================================================ */

:root {
  --bg: #f7f4ee;
  --bg-2: #efeae1;
  --bg-3: #e6dfd4;
  --line: rgba(36, 29, 24, 0.18);
  --text: #241d18;
  --muted: #6b5f56;
  --accent: #7a4420;
  --accent-hover: #5e3318;
  --accent-ink: #ffffff;   /* white, never --text: see colour rule above */
  --warn: #8c3a1f;
  --r: 0px;
  --font-display: "Yusei Magic", "Hiragino Sans", sans-serif;
  --font-body: "BIZ UDGothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-h: 62px;
}

* { 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: 1010px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.75rem); }

.brand, h1, h2, h3, .rail-fig {
  font-family: var(--font-display);
  font-weight: 400;   /* single-weight face: never synthesise bold */
}

/* ---------- Navigation: rule-bound bar, brand left ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--text);
}
.nav .wrap { width: 100%; display: flex; align-items: center; gap: 1.4rem; }

.brand { font-size: 1.3rem; letter-spacing: 0.1em; white-space: nowrap; }

.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.88rem; }
.nav-links a { color: var(--muted); transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }

.lang { display: flex; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; }
.lang a {
  padding: 0.3rem 0.5rem; color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); border-color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8rem 1.5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.25s, border-color 0.25s, color 0.25s;
}
.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(--text); color: var(--text); }
.btn-ghost:hover { background: var(--bg-3); }
.nav .btn { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* ---------- Hero: a signboard, centred over a heavy rule ----------
   No photograph and no split column. The shop has no menu, no prices
   and no images on record, so a layout that demands them would show
   its own gaps. A printed sign is honest and complete at this size. */

.hero {
  padding: calc(var(--nav-h) + 4rem) 0 0;
  text-align: center;
}
.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--accent); margin-bottom: 1.1rem;
}
.hero h1 {
  /* Capped well below a vw-only maximum: the headline sits in a
     centred measure, not the full viewport, so a purely vw-driven
     size overshoots and wraps two authored lines into four. */
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.3; letter-spacing: 0.02em;
  margin: 0 auto 1.2rem; max-width: 16em;
}
.hero-sub {
  color: var(--muted); max-width: 34em; margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }

/* Fact rail: three plain facts on a heavy rule, the whole of what we
   reliably know about this shop. */
.rail {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 3px solid var(--text);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.rail div { padding: 1.4rem 1rem; text-align: center; }
.rail div + div { border-left: 1px solid var(--line); }
.rail-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 0.35rem;
}
.rail-fig { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; }

/* ---------- Sections: separated by rules, not cards ---------- */

section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.4; }
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.7rem; }

.band { background: var(--bg-2); }

/* ---------- Plain two-column prose ---------- */

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.cols p { color: var(--muted); }
.cols .lead { color: var(--text); font-weight: 700; }

/* ---------- Facts list ---------- */

.facts { list-style: none; max-width: 34rem; }
.facts li {
  display: grid; grid-template-columns: 1fr auto;
  column-gap: 1.25rem; align-items: baseline;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.facts .k { font-weight: 700; }
.facts .v { white-space: nowrap; font-weight: 700; color: var(--accent); }
.facts .tbc {
  white-space: nowrap; font-size: 0.85rem; color: var(--muted);
  border: 1px dashed var(--line); padding: 0.15rem 0.6rem;
}
.sample-note { margin-top: 1.1rem; color: var(--muted); font-size: 0.85rem; }

/* ---------- Access ---------- */

.access-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); }
.access-col h3 { font-size: 1.05rem; margin-bottom: 0.8rem; letter-spacing: 0.05em; }
.access-col p, .access-col li { color: var(--muted); }
.access-col .strong { color: var(--text); }
.hours-line {
  display: inline-block; margin-top: 0.6rem;
  border: 2px solid var(--text); padding: 0.5rem 0.9rem;
  color: var(--text); font-weight: 700;
}
.hours-note { margin-top: 0.85rem; font-size: 0.9rem; }
.access-actions { margin-top: 1.4rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ---------- Reservation: centred narrow column ---------- */

.reserve { background: var(--bg-2); }
.reserve-inner { max-width: 620px; margin: 0 auto; }
.reserve-inner h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); margin-bottom: 0.85rem; }
.reserve-inner > p { color: var(--muted); }
.reserve-alt {
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--muted);
}
.reserve-alt a { color: var(--accent); font-weight: 700; }
.reserve-alt a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.8rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.03em; }
.field input, .field select {
  background: #fffdf9; border: 1px solid var(--text); color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 0.95rem;
  appearance: none; -webkit-appearance: none;
}
.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='%236b5f56' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
/* Solid tone, not a faded wash: measured 4.66:1 on the input ground. */
.field input::placeholder { color: #7d7168; }

.form-error { grid-column: 1 / -1; display: none; color: var(--warn); font-size: 0.9rem; font-weight: 700; }
.form-error.show { display: block; }
.form-ok {
  grid-column: 1 / -1; display: none; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 0.95rem 1.1rem; font-size: 0.94rem;
}
.form-ok.show { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: stretch; }

/* ---------- Footer: single centred block ---------- */

footer {
  padding: 2.4rem 0 2.8rem;
  border-top: 3px solid var(--text);
  color: var(--muted); font-size: 0.87rem; text-align: center;
}
.foot-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--text); margin-bottom: 0.3rem; }
.foot-links { display: flex; gap: 1.2rem; justify-content: center; margin-top: 0.9rem; }
.foot-links a:hover { color: var(--text); }
.demo-note { margin-top: 1.3rem; font-size: 0.79rem; }

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

.rv {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s 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; }
}

/* ---------- Mobile ----------
   Scoped with max-width and placed AFTER the desktop rules. Nothing
   unscoped may be appended below this block: an unscoped layout rule
   after a media query wins on source order, because media queries add
   no specificity, and that silently killed the mobile collapse on
   04-eyelit until it was found by rendering. */

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .rail { grid-template-columns: 1fr; }
  .rail div + div { border-left: none; border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

@media (max-width: 430px) {
  /* The booking button ran off the screen on eleven of the first fifteen
     sites, invisibly, because a fixed nav reports no document overflow.
     The header keeps brand, languages and the CTA; they stop competing. */
  .nav .wrap { gap: 0.5rem; }
  .nav .btn { padding: 0.4rem 0.65rem; font-size: 0.76rem; }
  .lang { gap: 0.1rem; }
  .lang a { padding: 0.3rem 0.34rem; font-size: 0.68rem; }
  .brand { font-size: 1.05rem; letter-spacing: 0.03em; }
}
