/* ============================================================
   鮨 たかはま - washi and lacquer.

   DESIGN RATIONALE. A ¥10,000+ omakase counter whose own reviewer
   said the EXTERIOR undersells the food (「店構えで少し損をしている」).
   This page therefore has one job: be the first impression the
   storefront is not. Quiet, food-first, nothing loud.

   Palette: washi off-white ground #f6f3ec, sumi ink #26221c, ONE
   accent of deep lacquer crimson #8e2f28 (shu-urushi). Distinct from
   01-tsubaki (DARK warm charcoal ground, ember-ORANGE #e2593a) by
   ground lightness and hue, and from every other light site: 02 bone
   +forest green, 03 cream+amber, 21 paper+shoyu brown.

   Type: New Tegomin display (hand-carved mincho; ships 400 ONLY,
   verified against the Fonts API, so every display rule pins 400 and
   hierarchy comes from size, never from a faked bold) over Kaisei
   Tokumin body 400/700. All-mincho is the high-end washoku register.
   Note: the Kaisei superfamily appears as DISPLAY on 03 (Opti) and
   16 (HarunoUmi); Tokumin here is a different member in a different
   role, taken because the pool of JP body faces with a real 700 on
   Google Fonts is exhausted (documented trade-off, not an oversight).

   Radius lock: 0 everywhere, like the edge of a hinoki counter.
   Accent rules: #8e2f28 passes as text on bg (7.32) and bg-2 (6.64);
   buttons take --accent-ink #faf7f0 (7.59). All computed, not eyeballed.

   Chrome variant: minimal-rail nav / split reserve / strip footer.
   Checked against the ledger: 03 rail+band+strip, 06 rail+split+
   centred, 09 rail+centred+2col, 19 rail+centred+centred. This
   combination (rail+split+strip) is unused.
   ============================================================ */

:root {
  --bg: #f6f3ec;
  --bg-2: #ede8dc;
  --bg-3: #e4ddcd;
  --line: rgba(38, 34, 28, 0.16);
  --text: #26221c;
  --muted: #655e51;
  --accent: #8e2f28;
  --accent-ink: #faf7f0;
  --warn: #8e4a1c;
  --font-display: "New Tegomin", "Hiragino Mincho ProN", serif;
  --font-body: "Kaisei Tokumin", "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: 1rem;
  line-height: 1.95;
  -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, 3rem); }

/* ---------- Nav: minimal rail ---------- */

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

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

.nav-links { display: flex; gap: 1.4rem; font-size: 0.9rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }

.nav .langsw { margin-left: auto; }

.btn-nav {
  min-height: 44px;
  display: inline-flex; align-items: center;
  font-size: 0.92rem; font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.8rem;
  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;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7c2721; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero: copy left, tall photo slot right ---------- */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 6fr) auto minmax(0, 5fr);
  align-items: stretch;
  max-width: 1096px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) clamp(1rem, 3vw, 2.5rem) 2.5rem 0;
}

.eyebrow {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 1.3rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.42;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}

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

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

/* Vertical divider between copy and photo, with the shop name written
   the way a sushi shop writes it. Decorative: hidden from readers. */
.hero-rail {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding: calc(var(--nav-h) + 3rem) 0.9rem 3rem 0.9rem;
  align-self: stretch;
  display: flex; align-items: flex-start;
}

.hero-media {
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem clamp(1rem, 3vw, 2.5rem);
}
.hero-media .m-ph { width: 100%; }

/* ---------- 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: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
}
.sec-head p { color: var(--muted); max-width: 38em; margin-top: 0.9rem; }

/* Counter section: text beside a wide slot */
.counter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.counter-grid .body p + p { margin-top: 1rem; }

/* お品書きより: three dishes, names only, no prices exist to show */
.dishes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}
.dish h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  margin-top: 0.85rem;
  line-height: 1.6;
}
.dish p { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

.sample-note { color: var(--muted); font-size: 0.87rem; margin-top: 1.6rem; }

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

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

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.hours dt {
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: 1.3rem;
}
.hours dt:first-child { margin-top: 0; }
.hours dd { font-size: 1.1rem; }

.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.78rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--muted);
}
.info-list a.link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.info-actions { margin-top: 1.6rem; }

/* ---------- Reserve: split ---------- */

.reserve-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.reserve-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.reserve-copy p { color: var(--muted); max-width: 32em; }
.reserve-alt { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.reserve-alt a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.05em; }
.field input, .field select {
  background: #fdfbf6;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  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='%23655e51' 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); outline-offset: 0; border-color: var(--accent); }
.field input::placeholder { color: #857d6e; }

.form-error { grid-column: 1 / -1; display: none; color: var(--warn); font-size: 0.9rem; font-weight: 700; }
.form-error.show { display: block; }
.form-ok {
  grid-column: 1 / -1; display: none;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1rem 1.2rem; font-size: 0.95rem;
}
.form-ok.show { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form .sample-note { grid-column: 1 / -1; margin-top: 0.2rem; }

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

footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.8rem; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; align-items: baseline; }
.foot-brand { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); letter-spacing: 0.1em; }
.foot-links { display: flex; gap: 1.4rem; margin-left: auto; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--text); }
.demo-note { flex-basis: 100%; font-size: 0.8rem; line-height: 1.9; }

/* ---------- 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; } }

/* ---------- Mobile (all overrides scoped max-width, placed LAST,
   and no unscoped layout rules follow them: the 04-eyelit cascade
   trap was an unscoped rule after this block) ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-rail { display: none; }
  .hero-copy { padding: calc(var(--nav-h) + 2.2rem) 0 0.5rem; }
  .hero-media { padding: 1.5rem 0 2.2rem; }
  .counter-grid, .access-grid, .reserve-inner { grid-template-columns: 1fr; }
  .dishes { grid-template-columns: 1fr; gap: 1.6rem; }
  .form { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .nav .wrap { gap: 0.6rem; }
  .brand { font-size: 1.08rem; padding-right: 0.7rem; letter-spacing: 0.08em; }
  .btn-nav { font-size: 0.84rem; }
  .hero-ctas .btn { width: 100%; }
}
