/* ============================================================
   開化亭 - 三宮・中山手通のそば処
   Soba austerity. VARIANCE 5 / MOTION 2 / DENSITY 3

   Theme lock: light buckwheat, whole page. One accent: indigo.
   Radius lock: 2px, near-sharp.

   WHY THIS LOOK. A neighbourhood soba shop is plain wood, an iron
   kettle, and indigo noren. The ground is buckwheat beige #eae4d5
   with a GREY undertone, deliberately apart from 03-crescent's warm
   Showa cream (#f3ecda + burnt amber) and 21-sannomiya-ramen's
   paper white (#f7f4ee + shoyu brown): the third light food site,
   the first with a cool accent. Indigo #35517a is the noren colour
   and nothing like amber or brown. No cards, rule-separated
   sections, sharp corners: austerity is the design.

   TYPE. Display: Sawarabi Mincho, a classic oldstyle mincho; it
   ships WEIGHT 400 ONLY (verified against the Google Fonts API:
   wght@700 returns HTTP 400), so every display rule pins 400 and
   hierarchy comes from size. Body: BIZ UDPMincho 400/700 (real
   weights, verified against the Fonts API: wght@700 returns 200).
   De-dup note (2026-09-13): the body was originally Shippori
   Mincho, duplicating 08-kamakura's body. BIZ UDPMincho resolves
   the duplication while KEEPING this page's differentiator, a
   full mincho page (display and body): it is a Universal Design
   mincho drawn for legibility, fitting a neighbourhood soba shop
   with a base of older regulars. Role-reuse with 15-shikou's
   DISPLAY face, the accepted pattern (used four times now).
   The one former weight-500 rule (.fact-rail .v) is pinned to
   700, since BIZ UDPMincho ships no 500 and the fact rail holds
   the page's key facts.

   Contrast, computed before writing (WCAG AA needs 4.5):
   text/bg 11.76, text/bg-2 12.99, muted/bg 5.86, muted/bg-2 6.46,
   accent-as-text/bg 6.35, light-ink-on-accent 7.19, accent-hover
   #2b4265 as surface 9.06 with ink and 8.0 as text, warn/bg 6.32.
   Zero failures, hover states included.
   ============================================================ */

:root {
  --bg: #eae4d5;
  --bg-2: #f3efe4;
  --line: rgba(41, 39, 34, 0.16);
  --text: #292722;
  --muted: #5a5548;
  --accent: #35517a;
  --accent-hover: #2b4265;
  --accent-ink: #f5f2e9;
  --warn: #8c3418;
  --r: 2px;
  --font-display: "Sawarabi Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "BIZ UDPMincho", "Hiragino Mincho ProN", 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.95;
  -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: 1008px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Navigation: minimal rail, CTA as underlined link ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(234, 228, 213, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.lang {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.nav-cta:hover { color: var(--accent-hover); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, 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(--text); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero: left-aligned type over a heavy rule, facts beneath ---------- */

.hero {
  padding: calc(var(--nav-h) + clamp(3rem, 9vh, 5.5rem)) 0 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  /* Floor lowered from 2.1rem: the second authored line is 10 CJK glyphs,
     and at 2.1rem (33.6px) it needs ~336px while a 360px viewport leaves
     ~320px of content box, so the headline measured 3.56 lines on a phone.
     At 1.9rem (30.4px) the line needs ~304px and fits. Measured, not
     estimated: 2 lines at 360 and 390 after the change. */
  font-size: clamp(1.9rem, 7.6vw, 3.6rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 3px solid var(--text);
}

.hero-sub { color: var(--muted); max-width: 36em; }

.fact-rail {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.6rem;
}
.fact-rail li { display: flex; gap: 0.6rem; align-items: baseline; }
.fact-rail .k { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.fact-rail .v { font-weight: 700; /* BIZ UDPMincho ships 400/700 only; the rail holds the key facts, so up not down */ }

.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-band { margin-top: clamp(2.5rem, 6vw, 4rem); }

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

section { padding: clamp(3.5rem, 7.5vw, 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.6rem, 4vw, 2.2rem);
  letter-spacing: 0.05em;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--text);
}
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.9rem; }

/* Menu: dotted-leader rows, prices pending */

.menu-list { list-style: none; max-width: 44em; }
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-list .name { font-weight: 700; font-size: 1.05rem; }
.menu-list .dots { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); }
.menu-list .price { color: var(--muted); white-space: nowrap; }
.menu-note { margin-top: 1.1rem; color: var(--muted); font-size: 0.85rem; }

/* Takeout strip */

.takeout {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.takeout .inner { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; }
.takeout h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  letter-spacing: 0.05em;
}
.takeout p { color: var(--muted); max-width: 38em; }

/* Hours + info */

.info-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }

.hours { list-style: none; max-width: 26em; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.hours .d { font-weight: 700; }
.hours .t { color: var(--muted); }

.info-list { list-style: none; }
.info-list li { padding: 1rem 0; display: flex; flex-direction: column; gap: 0.15rem; }
.info-list li + li { border-top: 1px solid var(--line); }
.info-list .label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.info-list a.link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.info-list a.link:hover { color: var(--accent-hover); }
.info-actions { margin-top: 1.5rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

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

.reserve { border-top: 1px solid var(--text); }

.reserve-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; align-items: start; }

.reserve-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.reserve-copy p { color: var(--muted); max-width: 34em; }
.reserve-alt {
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.reserve-alt a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; }

.field input,
.field select {
  background: var(--bg-2);
  border: 1px solid var(--muted);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: var(--r);
  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='%235a5548' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
/* Solid muted: alpha-washed placeholders failed AA on other sites. */
.field input::placeholder { color: var(--muted); }

.form-note { font-size: 0.85rem; color: var(--muted); }

.form-error { display: none; color: var(--warn); font-size: 0.92rem; font-weight: 700; }
.form-error.show { display: block; }
.form-ok {
  display: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}
.form-ok.show { display: block; }

.form .btn { justify-self: start; }

/* ---------- Footer: rule-bound strip ---------- */

footer {
  border-top: 3px solid var(--text);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--text);
}
.foot-links { display: flex; gap: 1.25rem; margin-left: auto; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--text); }
.demo-note { margin-top: 1.2rem; font-size: 0.78rem; }

/* ---------- Motion: deliberately none. No .rv on this site;
   austerity means the page simply stands there, like the shop. ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn, .lang a, .nav-cta { transition: none; }
}

/* ---------- Wider screens (mobile-first: min-width only, so no
   late rule can silently kill the phone collapse) ---------- */

@media (min-width: 700px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field.full, .form-note, .form-error, .form-ok { grid-column: 1 / -1; }
  .form .btn { grid-column: 1 / -1; }
  .takeout .inner { grid-template-columns: 3fr 2fr; }
}

@media (min-width: 900px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .reserve-grid { grid-template-columns: 5fr 6fr; }
}
