/* ============================================================
   スタンドコービー (STAND COBE) - standing sake bar, Kitanagasa-dori
   VARIANCE 7 / MOTION 3 / DENSITY 4

   PALETTE RATIONALE. The verified identity is a stylish standing
   SAKE bar (review tags: 立ち飲み屋 9, 日本酒 7, 焼売 5, 焼酎 3 —
   beer appears nowhere, whatever the prospect list said). So the
   iconography is sake, not taps: unbleached kinari cloth as the
   ground and one aizome (indigo-dye) accent, the noren palette.
   Ground #efe8d8 is deliberately warmer and darker than 11-mykonos'
   limestone #f4f2ed, and the accent #21374e is a deep iron navy,
   far darker than 11's Aegean #1f5f8b, so neither axis pairs with
   any existing site.

   TYPE. Display Kaisei Tokumin (700/800 verified on the Fonts API),
   a sturdy text-mincho that reads "good sake" without costume.
   Body Kaisei HarunoUmi (400/500/700 verified; de-duped 2026-09-13): its soft literary strokes
   carry the pay-as-you-go casualness of a tachinomi against the
   formal display face. Radius 9px.

   Accent-as-surface takes white ink; accent-as-text is dark enough
   to pass on kinari directly (computed 9.0:1).
   ============================================================ */

:root {
  --bg: #efe8d8;
  --bg-2: #e7dfca;
  --bg-3: #ded4ba;
  --line: rgba(33, 31, 26, 0.16);
  --text: #211f1a;
  --muted: #5b5647;
  --accent: #21374e;
  --accent-ink: #f7f5ef;
  --warn: #8c3a26;
  --font-display: "Kaisei Tokumin", "Hiragino Mincho ProN", serif;
  --font-body: "Kaisei HarunoUmi", "Hiragino Mincho ProN", serif;  /* de-duped from M PLUS Rounded 1c (kept by 30); HarunoUmi 400/500/700 verified; role-reuse with 16 display, precedent OK */
  --nav-h: 66px;
  --r: 9px;
}

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

/* ---------- Navigation: brand left, indigo band bottom edge ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(239, 232, 216, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--accent);
}
.nav .wrap { width: 100%; display: flex; align-items: center; gap: 1.1rem; }

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

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

.lang { display: flex; gap: 0.2rem; font-size: 0.78rem; font-weight: 700; }
.lang a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0.25rem 0.5rem;
  color: var(--muted); border: 1px solid transparent;
  border-radius: var(--r);
  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: 0.98rem; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r);
  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: #2c4763; }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--bg-2); }
.nav .btn { padding: 0.5rem 1rem; font-size: 0.88rem; min-height: 44px; }

/* ---------- Hero: copy left, tall noren band right ---------- */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.25rem, 5vw, 4rem) 2.5rem;
}
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.32;
  margin-bottom: 1.4rem;
}
.hero-sub { color: var(--muted); max-width: 32em; margin-bottom: 2.1rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-noren {
  position: relative;
  border-left: 2px solid var(--accent);
  background: var(--accent);
  display: grid;
  padding: calc(var(--nav-h) + 1.25rem) 1.25rem 1.25rem;
}
.hero-noren .m-ph { border-radius: var(--r); }

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

section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.35;
}
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.8rem; }

/* ---------- How tachinomi works: three plain steps ---------- */

.how { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.how-step { background: var(--bg); padding: 1.6rem 1.4rem; }
.how-step .k {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  margin-bottom: 0.7rem;
}
.how-step p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Sake and plates ---------- */

.fare { }
.fare-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.fare-media .m-ph { border-radius: var(--r); }
.fare-list { list-style: none; }
.fare-list li {
  padding: 1.05rem 0.25rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.9rem;
}
.fare-list .name { font-weight: 700; font-size: 1.05rem; }
.fare-list .desc { color: var(--muted); font-size: 0.9rem; }
.fare-note { margin-top: 1.1rem; color: var(--muted); font-size: 0.85rem; }

/* ---------- Hours / access ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.hours dt {
  font-weight: 700; margin-top: 1.3rem;
  color: var(--accent);
  font-size: 0.85rem; letter-spacing: 0.08em;
}
.hours dt:first-child { margin-top: 0; }
.hours dd { font-size: 1.12rem; font-weight: 500; }

.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.1em; color: var(--muted); }
.info-list a.link { color: var(--accent); font-weight: 700; text-decoration: underline; }
.info-actions { margin-top: 1.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Reservation: full-width indigo band ---------- */

.reserve {
  background: var(--accent);
  color: var(--accent-ink);
}
.reserve .sec-head h2 { color: var(--accent-ink); }
.reserve .sec-head p { color: rgba(247, 245, 239, 0.78); }
.reserve-alt { margin-top: 1.4rem; font-size: 0.92rem; color: rgba(247, 245, 239, 0.78); }
.reserve-alt a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; }

.form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.field input, .field select {
  background: #f7f5ef;
  border: 1px solid rgba(33, 55, 78, 0.4);
  color: #211f1a;
  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 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='%2321374e' 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 #f7f5ef; outline-offset: 0;
}
.field input::placeholder { color: #6b6a63; }

.form-error { grid-column: 1 / -1; display: none; color: #ffd9cc; font-weight: 700; font-size: 0.92rem; }
.form-error.show { display: block; }
.form-ok {
  grid-column: 1 / -1; display: none;
  color: #211f1a; background: #f7f5ef;
  border-radius: var(--r);
  padding: 0.95rem 1.1rem; font-size: 0.95rem;
}
.form-ok.show { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.reserve .btn-primary { background: #f7f5ef; color: #21374e; }
.reserve .btn-primary:hover { background: #ffffff; }

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

footer {
  padding: 2.8rem 0 3.2rem;
  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: 800;
  font-size: 1.1rem; color: var(--text);
  margin-bottom: 0.35rem;
}
.foot-links { display: flex; gap: 1.3rem; justify-content: center; 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.5rem; font-size: 0.8rem; }

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

.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; }
}

/* ---------- Mobile (min-width structure elsewhere; these collapse) ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: calc(var(--nav-h) + 2.2rem); }
  .hero-noren {
    border-left: none; border-top: 2px solid var(--accent);
    min-height: 44vh;
    padding: 1.25rem;
  }
  .how-steps { grid-template-columns: 1fr; }
  .fare-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .nav .wrap { gap: 0.5rem; }
  .nav .btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; min-width: 0; }
  .lang { gap: 0.05rem; }
  .lang a { padding: 0.25rem 0.35rem; font-size: 0.7rem; }
  .brand { font-size: 1.05rem; }
  .hero-ctas .btn { width: 100%; }
}
