/* ============================================================
   BAR根性 - 神戸三宮・北長狭通
   Wet-asphalt theme. VARIANCE 7 / MOTION 4 / DENSITY 3
   Theme lock: dark, whole page. Accent lock: signal yellow.
   Radius lock: 5px everywhere.

   WHY THIS PALETTE. The shop is open 21:00 to 06:00 every single
   day and gives a free drink when it rains. So the ground is wet
   asphalt at night, and the single accent is the yellow of a
   raincoat or a road sign: the colour you actually see in the rain
   after dark. 根性 means grit, and a signal yellow on grey is a
   working colour rather than a luxury one, which suits a bar whose
   charm is that it stays open and rewards you for turning up wet.

   Deliberately unlike 12-bar-sky, the project's other late-night
   bar: that one is a cold blue-charcoal with a pale silver accent
   for the hour before sunrise. This one is warmer in its greys and
   carries a hot accent.
   ============================================================ */

:root {
  --bg: #232629;
  --bg-2: #2b2f33;
  --bg-3: #343a3e;
  --line: rgba(230, 233, 234, 0.14);
  --text: #e6e9ea;
  --muted: #a3acb2;
  --accent: #f0c020;
  --accent-hover: #f7cf4a;
  --accent-ink: #1a1508;
  --warn: #ef9a7a;
  --r: 5px;
  /* RocknRoll One ships weight 400 ONLY. Every rule that uses it pins
     font-weight:400, because asking for 700 makes the browser fake bold
     by smearing the glyphs. Two sites in this project shipped that bug
     before it was caught by rendering them. */
  --font-display: "RocknRoll One", "Hiragino Sans", sans-serif;
  /* Zen Kaku Gothic Antique: a little warmer and more humanist than the
     plain gothics used elsewhere, which suits a shop with a friendly
     master. Ships 400/500/700. */
  --font-body: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", sans-serif;
  --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.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: 1090px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.brand, h1, h2, h3, .plate-figure, .charge-figure {
  font-family: var(--font-display);
  font-weight: 400;   /* single-weight face: never synthesise bold */
}

/* ---------- Navigation: inline, brand boxed under a rule ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(35, 38, 41, 0.93);
  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.5rem; }

.brand {
  font-size: 1.35rem; letter-spacing: 0.16em;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent);
}

.nav-links { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.88rem; }
.nav-links a { color: var(--muted); transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }

.lang { display: flex; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; }
.lang a {
  padding: 0.3rem 0.5rem; color: var(--muted);
  border: 1px solid transparent; border-radius: var(--r);
  transition: color 0.25s, border-color 0.25s;
}
.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; padding: 0.85rem 1.6rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r);
  transition: transform 0.15s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.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.5rem 1.05rem; font-size: 0.86rem; }

/* ---------- Hero: copy beside a facts plate ----------
   The plate is the layout's whole idea. Most bars in this set hide
   their money information; this shop has two real, checkable facts
   (a 1,000 yen charge and a free drink in the rain), so they get a
   bordered plate in the first screen instead of a photograph. No
   other site in the project opens on a facts panel. */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
}
.hero > .wrap { max-width: none; padding: 0; }

.eyebrow {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 1.2rem;
}
.hero h1 {
  /* Capped at 3.3rem rather than sized purely from the viewport: the
     copy sits in the wider of two grid columns, not the full width, so
     a vw-driven maximum overshoots and wraps a two-line headline into
     four. Measured, not guessed. */
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.32; letter-spacing: 0.01em; margin-bottom: 1.3rem;
}
.hero-sub { color: var(--muted); max-width: 30em; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.plate {
  border: 2px solid var(--accent);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.plate-row + .plate-row { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.plate-label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 0.5rem;
}
.plate-figure { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.2; color: var(--accent); }
.plate-note { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; line-height: 1.7; }

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

section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sec-head { margin-bottom: clamp(2rem, 4.5vw, 3.2rem); }
.sec-head h2 { font-size: clamp(1.6rem, 3.1vw, 2.3rem); line-height: 1.38; }
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.8rem; }

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

/* ---------- Rain: the promotion, given room ---------- */

.rain-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center;
}
.rain-card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-3); padding: clamp(1.5rem, 3vw, 2.2rem);
}
.rain-card h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.rain-card p { color: var(--muted); font-size: 0.94rem; }
.rain-media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }

/* ---------- Charge ---------- */

.charge-list { list-style: none; max-width: 34rem; }
.charge-list li {
  display: grid; grid-template-columns: 1fr auto;
  column-gap: 1.25rem; align-items: baseline;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.charge-list .k { font-weight: 700; }
.charge-list .v { white-space: nowrap; font-weight: 700; color: var(--accent); }
.charge-list .tbc {
  white-space: nowrap; font-size: 0.86rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r); padding: 0.15rem 0.6rem;
}
.sample-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.85rem; }

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

.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
.access-col h3 { font-size: 1.1rem; margin-bottom: 0.9rem; letter-spacing: 0.06em; }
.access-col p, .access-col li { color: var(--muted); }
.access-col .strong { color: var(--text); }
.access-col .strong a { color: var(--accent); font-weight: 700; }

.hours-line {
  display: inline-block; margin-top: 0.6rem;
  border: 1px solid var(--accent); border-radius: var(--r);
  padding: 0.5rem 0.9rem; color: var(--text); font-weight: 700;
}
.hours-note { margin-top: 0.9rem; font-size: 0.9rem; }

.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 2.3rem; margin-bottom: 0.9rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.1rem;
  width: 1.6rem; height: 1.6rem; border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.82rem; font-weight: 700;
  display: grid; place-items: center;
}
.access-actions { margin-top: 1.5rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Reservation: full-width band, form in three columns ---------- */

.reserve { background: var(--bg-2); border-top: 1px solid var(--line); }
.reserve-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
.reserve-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.9rem; }
.reserve-copy p { color: var(--muted); max-width: 60ch; }
.reserve-alt {
  margin-top: 1.5rem; 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; }
.reserve-alt a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.field input, .field select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.85rem 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='%23a3acb2' 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 tone, not a faded wash: measured 5.13:1 on the input ground. */
.field input::placeholder { color: #8e979d; }

.form-error { grid-column: 1 / -1; display: none; color: var(--warn); font-size: 0.9rem; font-weight: 500; }
.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); border-radius: var(--r);
  padding: 1rem 1.15rem; font-size: 0.95rem;
}
.form-ok.show { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: center; min-width: 15rem; }

/* ---------- Footer: two columns ---------- */

footer { padding: 2.6rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--text); margin-bottom: 0.35rem; }
.foot-links { display: flex; gap: 1.3rem; 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.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s 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; }
}

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 2.2rem; }
  .rain-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .form { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

@media (max-width: 520px) {
  .lang { font-size: 0.72rem; }
  .nav .wrap { gap: 0.8rem; }
}

/* ============================================================
   MOBILE HEADER RULES
   Carried deliberately from the repair made across the first
   fifteen sites on 2026-09-13. A shop's own name must never break
   character by character in its own header, and 日本語 must not
   stack vertically in the switcher. Both were found only by
   rendering at a true 390px viewport; no code-level check can see
   them. Written in from the start here rather than repaired later.
   ============================================================ */

.brand { white-space: nowrap; }
.lang a { white-space: nowrap; }

@media (max-width: 430px) {
  /* The booking button ran off the screen on eleven of the first
     fifteen sites, invisibly, because a fixed nav reports no document
     overflow. The header keeps brand, languages and the CTA; they just
     stop competing for room. */
  .nav .wrap { gap: 0.5rem; }
  .nav .btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; min-width: 0; }
  .lang { gap: 0.1rem; }
  .lang a { padding: 0.3rem 0.35rem; font-size: 0.68rem; }
  .brand { font-size: 1.08rem; letter-spacing: 0.04em; }
}
