/* ============================================================
   Mix Bar 華 - Kobe, Kano-cho

   DESIGN RATIONALE. 華 means flower, and the shop opens at eight in
   the evening and runs to five in the morning at around ten thousand
   yen a head. So the ground is black cherry, a very dark red-purple
   that reads as evening rather than as nightclub, and the single
   accent is champagne. Grown up, warm, and deliberately unlike the
   two neighbouring bars in this project: 10-bar-honor is plum with
   rose gold, 12-bar-sky is a cool predawn blue-charcoal with
   silver-blue. Nothing here is pink, and nothing is suggestive.

   Display face Hina Mincho, a delicate mincho that suits the single
   character 華 at large size. It ships ONLY weight 400, verified
   against the Google Fonts API before writing the link, so no rule
   below ever asks for more: the project has shipped smeared synthetic
   bold twice by requesting weights a family does not have. Where a
   heading needs more presence it gets size and letter-spacing, never
   a weight that does not exist.

   Body M PLUS 1, a separate family from the M PLUS 1p on sites 07 and
   14 and the M PLUS 2 on site 06. Clean modern gothic against the
   delicate display.

   Radius lock 5px. Wrap 1060px.
   Chrome variants: NAV-C minimal rail, RES-B centred column,
   FOOT-B centred block. Combination CBB, unused elsewhere.

   All thirteen colour pairings computed before writing: worst 7.10:1.
   ============================================================ */

:root {
  --bg: #1a0e14;
  --bg-2: #261520;
  --bg-3: #321c2a;
  --line: rgba(242, 233, 228, 0.13);
  --text: #f2e9e4;
  --muted: #c0a8b2;
  --accent: #e0c9a0;
  --accent-hover: #efdcb8;
  --accent-ink: #14090e;
  --warn: #e8a58c;
  --r: 5px;
  --font-display: "Hina Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "M PLUS 1", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-h: 62px;
  --wrap: 1060px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- NAV-C: minimal rail ----------
   The brand is divided off by a rule and the booking action is an
   underlined text link rather than a filled button. The quietest of
   the three nav variants, which suits a bar rather than a shop. */

.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(26, 14, 20, 0.9);
  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: 1.1rem; }

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

.nav-links { display: flex; gap: 1.5rem; 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; margin-left: auto; font-size: 0.78rem; font-weight: 700; }
.lang a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0.3rem 0.5rem;
  color: var(--muted);
  border: 1px 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-color: var(--line); }

.nav .nav-cta {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.88rem; font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
}
.nav .nav-cta:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.7rem;
  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: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero: centred copy, full-width band beneath ----------
   Deliberately not 12-bar-sky's vertical hours rail and not a split. */

.hero {
  padding: calc(var(--nav-h) + clamp(3rem, 9vw, 5.5rem)) 0 0;
  text-align: center;
}
.eyebrow {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.24em; color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  margin-bottom: 1.3rem;
}
.hero-sub {
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.closed-flag {
  margin-top: 1.5rem;
  font-size: 0.86rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.hero-band { margin-top: clamp(2.5rem, 7vw, 4rem); }

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

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

/* ---------- Cast: horizontal scroll-snap rail of tall cards ----------
   12-bar-sky uses an image-top card grid, so this one moves sideways
   with a thumb instead. */

.cast-rail {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.75rem;
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.75rem));
  padding-left: clamp(1.25rem, 4vw, 2.75rem);
  padding-right: clamp(1.25rem, 4vw, 2.75rem);
}
.cast-rail::-webkit-scrollbar { display: none; }
.cast-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 224px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.cast-card .m-ph { border-radius: 0; }
.cast-body { padding: 0.9rem 1rem 1.1rem; }
.cast-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.cast-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.sample-note { margin-top: 1.1rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- Charge: a bordered ledger ----------
   12-bar-sky uses an asymmetric big-figure split; this is a plain
   ruled table, which is what a price list actually is. */

.charge { background: var(--bg-2); border-block: 1px solid var(--line); }
.charge-lead {
  display: flex; align-items: baseline; gap: 0.8rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.4rem;
}
.charge-lead .figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.02em;
  color: var(--accent);
}
.charge-lead .cap { color: var(--muted); font-size: 0.9rem; }
.charge-rows { list-style: none; }
.charge-rows li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.charge-rows .k { font-weight: 700; }
.charge-rows .dots { flex: 1; border-bottom: 1px dotted rgba(242,233,228,0.22); transform: translateY(-4px); }
.charge-rows .tbc { color: var(--muted); white-space: nowrap; }
.charge-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.88rem; }

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

.info-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.steps { list-style: none; counter-reset: s; }
.step {
  counter-increment: s;
  display: grid; grid-template-columns: 40px 1fr;
  gap: 1rem; align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.step .n {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.85rem; font-weight: 700;
}
.step .n::before { content: counter(s); }
.step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left; padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem; font-weight: 400;
}
.hours-table th { color: var(--muted); width: 7em; }
.hours-table td.closed { color: var(--accent); font-weight: 700; }

.info-list { list-style: none; }
.info-list li { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.info-list .label {
  display: block;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 0.2rem;
}
.info-list a.link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent); font-weight: 700; text-decoration: underline;
}
.info-actions { margin-top: 1.5rem; }

/* ---------- RES-B: centred narrow column ---------- */

.reserve { background: var(--bg-2); border-top: 1px solid var(--line); }
.reserve .wrap { max-width: 620px; }
.reserve-copy { text-align: center; margin-bottom: 2rem; }
.reserve-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.reserve-copy p { color: var(--muted); }
.reserve-alt { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted); }
.reserve-alt a { color: var(--accent); font-weight: 700; text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.form-note {
  padding: 0.8rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  color: var(--accent);
  font-size: 0.88rem; font-weight: 700;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 700; }
.field input, .field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  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='%23c0a8b2' 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); border-color: var(--accent); }
.field input::placeholder { color: var(--muted); opacity: 1; }

.form-error, .form-ok { display: none; font-size: 0.9rem; }
.form-error { color: var(--warn); }
.form-error.show, .form-ok.show { display: block; }
.form-ok {
  color: var(--text); background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.9rem 1.1rem;
}
.form .btn { justify-self: stretch; }

/* ---------- FOOT-B: centred block ---------- */

footer {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
  text-align: center;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.foot-links { display: flex; gap: 1.3rem; justify-content: center; margin-top: 1.2rem; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px;
}
.foot-links a:hover { color: var(--text); }
.demo-note { margin-top: 1.6rem; font-size: 0.79rem; max-width: 60ch; margin-inline: auto; }

/* ---------- 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; }
  .btn, .lang a, .nav-links a { transition: none; }
}

/* ---------- Wider screens ----------
   Written mobile first: everything above is the phone layout and only
   widens here. Scoped with min-width so an appended rule can never
   silently kill the mobile collapse, which is what happened on site 04. */

@media (min-width: 760px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr 1fr; }
  .form-note, .form-error, .form-ok, .form .btn { grid-column: 1 / -1; }
  .cast-card { width: 248px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

@media (max-width: 430px) {
  /* Keep the brand, the languages and the booking link on one line. */
  .nav .wrap { gap: 0.6rem; }
  .brand { font-size: 1.15rem; letter-spacing: 0.18em; padding-right: 0.7rem; }
  .lang { gap: 0.1rem; }
  .lang a { padding: 0.3rem 0.34rem; font-size: 0.7rem; }
  .nav .nav-cta { font-size: 0.8rem; }
}
