/* ============================================================
   BAR 歌舞喜兆 (バーカブキチョウ) - kabuki-themed bar, 5F Kitanagasa
   VARIANCE 7 / MOTION 3 / DENSITY 3

   PALETTE RATIONALE. The one thing verifiably known about this bar
   is its kabuki identity: the single review describes a flamboyant
   kabuki master, and the name puns on 歌舞伎町. So the palette is
   the stage: kuroko black ground (the stagehand's black, #101014,
   neutral, near 06-inoue's off-black but paired with a completely
   different accent, which is the axis that matters) and ONE beni
   crimson accent. Beni #c3243c fails as text on black (2.4:1), so
   the accent is split the way site 03 split it: --accent is the
   SURFACE colour and always takes near-white ink; --accent-text
   #ef8194 is the tint that passes on black (computed 6.2:1) and is
   what links and highlights use. No gold: one accent per site.

   TYPE. Display Reggae One, a brush-built display face in the
   spirit of theatrical billing lettering; it ships WEIGHT 400 ONLY
   (verified against the Fonts API: wght@700 returns 400), so every
   display rule in this file and the portal pins 400, and presence
   comes from size. Body BIZ UDMincho (400/700 verified), a
   Universal Design mincho that stays legible as light text on
   black. Radius 0: stage edges are hard.
   ============================================================ */

:root {
  --bg: #101014;
  --bg-2: #17171d;
  --bg-3: #1f1f27;
  --line: rgba(240, 236, 227, 0.16);
  --text: #f0ece3;
  --muted: #b1ac9f;
  --accent: #c3243c;          /* surface only: always carries --accent-ink */
  --accent-ink: #fdf9f2;
  --accent-text: #ef8194;     /* the beni tint that passes on black */
  --warn: #f0a08c;
  --font-display: "Reggae One", "Hiragino Mincho ProN", serif;
  --font-body: "BIZ UDMincho", "Hiragino Mincho ProN", serif;
  --nav-h: 64px;
  --r: 0;
}

* { 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: 1.02rem;
  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-text); outline-offset: 3px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Navigation: thin rail, beni underline on the current page ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(16, 16, 20, 0.92);
  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;               /* Reggae One ships 400 only */
  font-size: 1.22rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.brand .beni { color: var(--accent-text); }

.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.9rem; }
.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-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); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.98rem; font-weight: 700;
  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: #d63550; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { padding: 0.45rem 0.95rem; font-size: 0.85rem; }

/* ---------- Hero: centred billing, beni rule like a stage curtain edge ---------- */

.hero {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  border-bottom: 4px solid var(--accent);
  position: relative;
}
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em;
  color: var(--accent-text);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
  max-width: 16em;
}
.hero-sub { color: var(--muted); max-width: 30em; margin: 0 auto 2.2rem; padding: 0 1.25rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; padding: 0 1.25rem; }

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

section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sec-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
}
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.8rem; }

/* ---------- The master: split with a tall portrait slot ---------- */

.master-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.master-grid .m-ph { border: 1px solid var(--line); }
.master-copy p + p { margin-top: 1rem; }
.master-copy .quote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: var(--text);
  margin: 1.4rem 0;
}
.master-copy .quote-src { color: var(--muted); font-size: 0.85rem; }

/* ---------- Charge ledger: honest 確認中 rows ---------- */

.charge { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger { max-width: 560px; }
.ledger-row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.ledger-row .k { font-weight: 700; }
.ledger-row .dots { flex: 1; border-bottom: 1px dotted rgba(240, 236, 227, 0.3); transform: translateY(-4px); }
.ledger-row .v { color: var(--muted); white-space: nowrap; }
.ledger-row .v.real { color: var(--text); font-weight: 700; }
.ledger-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.88rem; max-width: 36em; }

/* ---------- 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-text);
  font-size: 0.85rem; letter-spacing: 0.08em;
}
.hours dt:first-child { margin-top: 0; }
.hours dd { font-size: 1.12rem; }

.steps { list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s;
  padding: 0.9rem 0 0.9rem 2.6rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0.95rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700; font-size: 0.9rem;
}
.info-actions { margin-top: 1.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

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

.reserve .wrap { max-width: 620px; }
.reserve .sec-head { text-align: center; }
.form { display: grid; grid-template-columns: 1fr 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: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0;
  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='%23b1ac9f' 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-text); outline-offset: 0;
  border-color: var(--accent-text);
}
.field input::placeholder { color: rgba(177, 172, 159, 0.85); }

.form-error { grid-column: 1 / -1; display: none; color: var(--warn); font-weight: 700; font-size: 0.92rem; }
.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.95rem;
}
.form-ok.show { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: center; }
.reserve-alt { margin-top: 1.4rem; text-align: center; font-size: 0.92rem; color: var(--muted); }
.reserve-alt a { color: var(--accent-text); font-weight: 700; text-decoration: underline; }

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

footer {
  padding: 2.6rem 0 3rem;
  border-top: 4px solid var(--accent);
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-grid { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: baseline; }
.foot-brand {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.05rem; color: var(--text);
}
.foot-links { display: flex; gap: 1.3rem; }
.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.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 ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .master-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 a { padding: 0.25rem 0.35rem; font-size: 0.7rem; }
  .brand { font-size: 1rem; letter-spacing: 0.05em; }
  .hero-ctas .btn { width: 100%; }
}
