/* ============================================================
   snack VieVie - 神戸・中山手通のスナック
   Lamp-lit conversation bar. VARIANCE 6 / MOTION 3 / DENSITY 3

   Theme lock: warm plum-brown dark, whole page. One accent:
   lamp-glow amber. Radius lock: 14px.

   WHY THIS LOOK. A snack bar is a small counter lit warm against
   a dark room, hosted by the mama. The ground is a plum-BROWN
   (#241819, warmer and browner than 19-mixbar-hana's black cherry
   #1a0e14 and clearly apart from 10-bar-honor's aubergine #1d1620),
   and the single accent is lamp amber #e5a44d, more saturated and
   orange than 06-inoue's pale tan #d9bd92. Nothing seductive,
   nothing cold: the palette of a lit doorway on a dark street.

   TYPE. Display: Zen Kurenaido, a pen-drawn sans that reads like a
   handwritten sign by the door; it ships WEIGHT 400 ONLY (verified
   against the Google Fonts API: wght@700 returns HTTP 400), so every
   display rule pins font-weight:400 and hierarchy comes from size
   and colour. Synthetic bold has shipped twice in this project;
   never request a weight the family lacks.
   Body: Kiwi Maru 400/500 only (real weights, verified; de-duped from Tokumin 2026-09-13), a
   newspaper-heritage text mincho that reads warm at 16px. The Kaisei
   superfamily appears elsewhere only as DISPLAY on light/navy sites
   (03 Opti, 16 HarunoUmi); as the body of a dark lamp-lit page it
   shares nothing visible with either.

   Contrast, computed before writing (WCAG AA needs 4.5):
   text/bg 14.34, muted/bg 8.88 (7.27 on bg-3), accent-as-text/bg
   7.99, ink-on-accent 8.38, ink-on-accent-hover(#d99539) 7.14,
   warn/bg 8.29. Zero failures, hover states included.
   ============================================================ */

:root {
  --bg: #241819;
  --bg-2: #2e1f20;
  --bg-3: #382728;
  --line: rgba(242, 233, 223, 0.14);
  --text: #f2e9df;
  --muted: #c9b7a9;
  --accent: #e5a44d;
  --accent-hover: #d99539;
  --accent-ink: #241205;
  --warn: #f0a08c;
  --r: 14px;
  --font-display: "Zen Kurenaido", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Kiwi Maru", "Hiragino Maru Gothic ProN", sans-serif;  /* de-duped from Kaisei Tokumin (kept by 23); Kiwi Maru ships ONLY 400/500 (API-verified), so every body font-weight is capped at 500 below; role-reuse with 07 display */
  --nav-h: 64px;
}

* { 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.9;
  -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 clamp(1.25rem, 4vw, 2.75rem);
}

/* ---------- Navigation: inline, brand left, filled CTA ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(36, 24, 25, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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.3rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lang {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: calc(var(--r) / 2);
  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-color: var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--r);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-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 1rem; font-size: 0.88rem; }

/* ---------- Hero: copy beside a portrait slot ---------- */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
}

.hero-copy { display: flex; flex-direction: column; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 3.4rem);
  line-height: 1.35;
  margin-bottom: 1.3rem;
}

.hero-sub {
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 2rem;
}

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

.hero-media { border-radius: var(--r); overflow: hidden; }

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

section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

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

/* What-is-a-snack explainer: three lamp cards */

.how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.how article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
}
.how h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}
.how p { color: var(--muted); font-size: 0.95rem; }

/* Set price: the page's centrepiece */

.set { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.set-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.set-main {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  padding: 2rem 1.6rem;
  text-align: center;
}
.set-main .label { font-size: 0.85rem; letter-spacing: 0.14em; color: var(--muted); }
.set-main .price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  color: var(--accent);
  line-height: 1.2;
  margin: 0.4rem 0;
}
.set-main .per { color: var(--text); font-size: 1.05rem; }
.set-main .women { margin-top: 0.8rem; font-size: 1rem; color: var(--text); }
.set-main .women b { color: var(--accent); font-weight: 500; }

.set-rows { display: grid; gap: 0.6rem; align-content: start; }
.set-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.3rem;
}
.set-row .k { font-weight: 500; }
.set-row .v { color: var(--muted); }
.set-note { margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }

/* Entry steps */

.steps { list-style: none; display: grid; gap: 0.9rem; max-width: 42em; }
.steps li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.3rem;
}
.steps .n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--accent);
  flex: 0 0 auto;
}

/* Hours + info */

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

.hours { list-style: none; display: grid; gap: 0.4rem; 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: 500; }
.hours .t { color: var(--muted); }
.hours .closed .t { color: var(--accent); }

.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: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.info-actions { margin-top: 1.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

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

.reserve { background: var(--bg-2); border-top: 1px solid var(--line); }

.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.7rem, 4vw, 2.3rem);
  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: 500; text-decoration: underline; }

.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: 500; letter-spacing: 0.05em; }

.field input,
.field select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: calc(var(--r) / 2);
  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='%23c9b7a9' 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: 500; }
.form-error.show { display: block; }
.form-ok {
  display: none;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) / 2);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}
.form-ok.show { display: block; }

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

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

footer {
  padding: 2.75rem 0 3.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.foot-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.9rem;
}
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--text); }
.demo-note { margin-top: 1.4rem; font-size: 0.78rem; }

/* ---------- Reveal (guarded by <noscript> on every page) ---------- */

.rv {
  opacity: 0;
  transform: translateY(18px);
  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 { transition: none; }
}

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

@media (max-width: 430px) {
  /* COMPACT HEADER. Measured at a 360px iframe: the nav CTA's right edge
     sat past the viewport (ctaClipped=true) because brand + three language
     labels + button exceed 360px at full size. Same defect class as the
     eleven-site clip found earlier; same fix: the header keeps all three
     elements, they just stop competing for room. */
  .nav .wrap { gap: 0.5rem; }
  .nav .btn { padding: 0.4rem 0.6rem; font-size: 0.78rem; min-width: 0; }
  .lang { gap: 0.1rem; }
  .lang a { padding: 0.3rem 0.35rem; font-size: 0.7rem; }
  .brand { font-size: 1.05rem; letter-spacing: 0.03em; }
}

@media (min-width: 700px) {
  .how { grid-template-columns: repeat(3, 1fr); }
  .set-panel { grid-template-columns: 5fr 4fr; }
  .form { grid-template-columns: 1fr 1fr; }
  .field.full, .form-note, .form-error, .form-ok { grid-column: 1 / -1; }
  .form .btn { grid-column: 1 / -1; }
}

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