/* ── NOBUSHI Kitchen Bar — scoped to .nobushi-page ── */
/* Strict monochrome, matching the brand mark. No color anywhere. */

body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%; /* stop iOS inflating text in landscape */
  text-size-adjust: 100%;
  overflow-x: clip; /* safety net against horizontal scroll (clip, not hidden — keeps position:sticky working) */
}

.nobushi-page {
  --nb-black:   #0a0a0a;
  --nb-ink:     #141414;
  --nb-white:   #ffffff;
  --nb-paper:   #f7f7f5;
  --nb-line:    rgba(0, 0, 0, 0.12);
  --nb-line-on-dark: rgba(255, 255, 255, 0.18);
  --nb-muted:   #6b6b68;
  --nb-muted-on-dark: #a8a8a4;
  --nb-radius:  2px;
  background: var(--nb-paper);
  color: var(--nb-black);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.nobushi-page * { box-sizing: border-box; }

.nobushi-page img { filter: grayscale(1); }

/* Monochrome links everywhere — without this, unstyled anchors (e.g. the
   Instagram handle) fall back to the browser's blue/purple visited colors. */
.nobushi-page a { color: inherit; }

.nb-muted a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nb-container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.nb-muted { color: var(--nb-muted); }
.nb-section--dark .nb-muted { color: var(--nb-muted-on-dark); }

/* ── Sticky nav ── */
.nb-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--nb-line-on-dark);
  color: var(--nb-white);
}

.nb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.nb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nb-white);
}

.nb-brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  flex-shrink: 0;
}

.nb-brand-badge picture { display: block; height: 100%; }
.nb-brand-badge img { height: 100%; width: auto; object-fit: contain; display: block; }

.nb-brand-badge-fallback {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nb-white);
}

.nb-brand-badge--fallback .nb-brand-badge-fallback { display: block; }

.nb-brand-word {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

/* Mobile-first: nav collapses behind the hamburger by default */
.nb-nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nb-black);
  border-bottom: 1px solid var(--nb-line-on-dark);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 0 16px;
}

.nb-nav-links.is-open { display: flex; }

.nb-nav-links a {
  color: var(--nb-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  opacity: 0.88;
  width: 100%;
  padding: 13px 1.25rem;
}

.nb-nav-links a:hover { opacity: 1; }

/* Width must be constrained here: `.nb-nav-links a` sets width:100%, and
   adding the 1.25rem side margins on top of that pushed the button past the
   viewport edge (the "Call to Order cut off + sideways scroll" bug). */
.nb-nav-links .nb-nav-cta {
  width: calc(100% - 2.5rem);
}

.nb-nav-cta {
  border: 1px solid var(--nb-white);
  opacity: 1 !important;
  margin: 8px 1.25rem 0;
  text-align: center;
  justify-content: center;
  border-radius: 4px;
}

.nb-nav-cta:hover { background: var(--nb-white); color: var(--nb-black) !important; }

.nb-lang-toggle {
  background: transparent;
  border: 1px solid var(--nb-line-on-dark);
  color: var(--nb-white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  cursor: pointer;
  margin: 8px 1.25rem 0;
  border-radius: 4px;
  width: calc(100% - 2.5rem); /* same constraint as the CTA above */
}

.nb-lang-toggle:hover { border-color: var(--nb-white); }

.nb-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px; /* generous tap target */
}

.nb-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--nb-white);
  display: block;
}

@media (min-width: 781px) {
  .nb-nav-toggle { display: none; }

  .nb-nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    background: transparent;
    border-bottom: none;
    padding: 0;
  }

  .nb-nav-links a {
    width: auto;
    padding: 0;
  }

  .nb-nav-links .nb-nav-cta {
    width: auto;
    padding: 8px 16px;
    border-radius: 999px;
    margin: 0;
  }

  .nb-lang-toggle {
    width: auto;
    padding: 6px 12px;
    border-radius: 999px;
    margin: 0;
  }
}

/* ── Hero ── */
.nb-hero {
  position: relative;
  background: var(--nb-black);
  color: var(--nb-white);
  padding-bottom: 44px;
  overflow: hidden;
}

@media (min-width: 760px) {
  .nb-hero { padding-bottom: 64px; }
}

/* Scrolling marquee band */
.nb-marquee {
  border-bottom: 1px solid var(--nb-line-on-dark);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.nb-marquee-track {
  display: inline-block;
  animation: nb-marquee-scroll 26s linear infinite;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--nb-muted-on-dark);
}

@keyframes nb-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .nb-marquee-track { animation: none; }
}

.nb-hero-inner {
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nb-hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 20px;
}

@media (min-width: 760px) {
  .nb-hero-inner { padding-top: 56px; }
  .nb-hero-badge { height: 140px; margin-bottom: 28px; }
}

.nb-hero-badge picture { display: block; height: 100%; }
.nb-hero-badge img { height: 100%; width: auto; object-fit: contain; display: block; }

.nb-hero-badge-fallback {
  display: none;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--nb-white);
}

.nb-hero-badge--fallback .nb-hero-badge-fallback { display: block; }

.nb-pill {
  display: inline-block;
  border: 1px solid var(--nb-line-on-dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--nb-muted-on-dark);
  margin-bottom: 20px;
}

.nb-hero h1 {
  margin: 0 0 12px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nb-hero-title {
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nb-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nb-muted-on-dark);
}

.nb-lead {
  font-size: 1.1rem;
  color: var(--nb-muted-on-dark);
  max-width: 600px;
  margin: 0 0 36px;
  line-height: 1.7;
}

.nb-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--nb-line-on-dark);
  border-bottom: 1px solid var(--nb-line-on-dark);
  width: 100%;
  margin-bottom: 36px;
}

/* Mobile-first: facts stack with dividers below each row */
.nb-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nb-line-on-dark);
  flex: 1 1 100%;
}

.nb-fact:last-child { border-bottom: none; }

@media (min-width: 621px) {
  .nb-fact {
    flex: 1 1 200px;
    /* Symmetric horizontal padding so text doesn't sit flush against the
       divider lines; first/last facts drop the outer side to stay flush
       with the container edge instead. */
    padding: 22px 32px;
    border-bottom: none;
    border-right: 1px solid var(--nb-line-on-dark);
  }

  .nb-fact:first-child { padding-left: 0; }

  .nb-fact:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.nb-fact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nb-muted-on-dark);
  font-weight: 700;
}

.nb-fact a {
  color: var(--nb-white);
  text-decoration: none;
  font-weight: 600;
}

.nb-fact a:hover { text-decoration: underline; }

.nb-open-status { font-weight: 700; color: var(--nb-white); }

/* Mobile-first: full-width stacked CTAs (thumb-sized tap targets),
   inline pill row from small-tablet up */
.nb-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.nb-hero-ctas .nb-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 560px) {
  .nb-hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .nb-hero-ctas .nb-btn {
    width: auto;
  }
}

/* ── Buttons ── */
.nb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* .nb-btn.nb-btn--primary (not just .nb-btn--primary): `.nobushi-page a`
   sets color:inherit at specificity (0,1,1), which otherwise beats a bare
   .nb-btn--primary (0,1,0) and made the text silently inherit white from
   the dark hero — invisible on a white button until :hover raised the
   specificity enough to win. */
.nb-btn.nb-btn--primary {
  background: var(--nb-white);
  color: var(--nb-black);
  border-color: var(--nb-white);
}

.nb-btn--primary:hover { background: transparent; color: var(--nb-white); }

.nb-section:not(.nb-section--dark) .nb-btn--primary {
  background: var(--nb-black);
  color: var(--nb-white);
  border-color: var(--nb-black);
}

.nb-section:not(.nb-section--dark) .nb-btn--primary:hover {
  background: transparent;
  color: var(--nb-black);
}

/* Same specificity fix as .nb-btn--primary above — was only "correct" by
   coincidence since inherited white matched the intended color here. */
.nb-btn.nb-btn--ghost {
  background: transparent;
  color: var(--nb-white);
  border-color: var(--nb-line-on-dark);
}

.nb-btn--ghost:hover { border-color: var(--nb-white); }

.nb-section:not(.nb-section--dark) .nb-btn--ghost {
  color: var(--nb-black);
  border-color: var(--nb-line);
}

.nb-section:not(.nb-section--dark) .nb-btn--ghost:hover { border-color: var(--nb-black); }

/* ── Sections ── */
.nb-section {
  padding: 52px 0;
  background: var(--nb-paper);
  border-bottom: 1px solid var(--nb-line);
}

@media (min-width: 760px) {
  .nb-section { padding: 76px 0; }
}

.nb-section--dark {
  background: var(--nb-black);
  color: var(--nb-white);
  border-bottom-color: var(--nb-line-on-dark);
}

.nb-section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

/* ── Menu pages (rendered from the restaurant's PDF) ── */
.nb-menu-pages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 24px auto 0;
}

.nb-menu-page {
  display: block;
  padding: 0;
  border: 1px solid var(--nb-line);
  background: var(--nb-black);
  cursor: zoom-in;
  border-radius: var(--nb-radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s;
}

.nb-menu-page:hover,
.nb-menu-page:focus-visible {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

/* display:block above would defeat the hidden attribute (author CSS beats
   the UA's [hidden] rule) — state it explicitly for collapsed pages. */
.nb-menu-page[hidden] { display: none; }

.nb-menu-page picture { display: block; }

.nb-menu-expand {
  text-align: center;
  margin-top: 18px;
}

.nb-menu-page img {
  display: block;
  width: 100%;
  height: auto;
  filter: none; /* the menu must not be grayscaled — it IS the content */
}

/* Two-page menus sit side by side on wide screens */
@media (min-width: 900px) {
  .nb-menu-pages {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
  }
}

/* ── Menu CTA (PDF button) ── */
.nb-menu-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 0 6px;
  text-align: center;
}

.nb-menu-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.nb-menu-cta-row .nb-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 560px) {
  .nb-menu-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 14px;
  }

  .nb-menu-cta-row .nb-btn { width: auto; }
}

/* ── Gallery ── */
.nb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 24px;
}

@media (min-width: 761px) {
  .nb-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
  }
}

.nb-gallery-item {
  aspect-ratio: 1;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--nb-ink);
}

.nb-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none; /* override the site-wide .nobushi-page img grayscale rule — food photos stay in color */
  transition: transform 0.3s;
}

.nb-gallery-item:hover img {
  transform: scale(1.04);
}

.nb-gallery-item--placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 13px),
    var(--nb-ink);
  cursor: default;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--nb-muted-on-dark);
  opacity: 0.55;
}

.nb-gallery-placeholder-icon {
  width: 30px;
  height: 30px;
}

.nb-gallery-placeholder-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

/* ── Hours & Location ── */
.nb-location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 761px) {
  .nb-location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.nb-hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 30px;
}

.nb-hours-table th,
.nb-hours-table td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--nb-line);
  font-size: 0.95rem;
}

.nb-hours-table th { font-weight: 600; color: var(--nb-muted); }
.nb-hours-table td { font-weight: 700; font-variant-numeric: tabular-nums; }

.nb-hours-table tr.is-today th,
.nb-hours-table tr.is-today td { color: var(--nb-black); }

.nb-hours-table tr.is-today th::before {
  content: '\2014\00A0';
}

.nb-location-detail { margin-bottom: 18px; }

.nb-location-detail strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nb-muted);
  margin-bottom: 3px;
}

.nb-location-detail a {
  color: var(--nb-black);
  font-weight: 700;
  text-decoration: none;
}

.nb-location-detail a:hover { text-decoration: underline; }

.nb-map-frame {
  border: 1px solid var(--nb-line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.nb-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.3s;
}

.nb-map-frame:hover iframe,
.nb-map-frame:focus-within iframe { filter: grayscale(0) contrast(1.1); }

/* ── Contact ── */
.nb-contact-inner { text-align: center; }

.nb-contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.nb-contact-links .nb-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 560px) {
  .nb-contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .nb-contact-links .nb-btn { width: auto; }
}

.nb-footer-note {
  margin: 40px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--nb-muted-on-dark);
}

/* ── Lightbox ── */
.nb-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

/* Author CSS overrides the browser's default [hidden]{display:none} rule,
   so this has to be stated explicitly or the overlay never disappears. */
.nb-lightbox[hidden] {
  display: none;
}

.nb-lightbox img {
  max-width: 100%;
  max-height: 100%;
  filter: none;
}

.nb-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid var(--nb-line-on-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--nb-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.nb-lightbox-close:hover { border-color: var(--nb-white); }

/* ── Japanese-set line-height correction ── */
.nobushi-page[data-lang="ja"] .nb-lead {
  line-height: 1.9;
}

/* ═══ Design refinements ══════════════════════════════════════════ */

/* ── Display serif (Zen Old Mincho) — ties typography to the brush mark ── */
.nb-hero-title,
.nb-section-title,
.nb-brand-word,
.nb-hero-kanji,
.nb-brand-badge-fallback,
.nb-hero-badge-fallback {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.nb-hero-title { font-weight: 900; }
.nb-section-title { font-weight: 700; }

/* ── Vertical kanji watermark in the hero (izakaya signage feel) ── */
.nb-hero-kanji {
  position: absolute;
  top: 64px;
  right: clamp(8px, 4vw, 80px);
  writing-mode: vertical-rl;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.08em;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 621px) {
  .nb-hero-kanji {
    top: 96px;
    font-size: clamp(5rem, 13vw, 11rem);
  }
}

/* ── Large button variant (menu PDF / order online CTAs) ── */
.nb-btn--large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ── Password gate (soft preview lock, not real security) ── */
#primary { display: none; }
html.nb-unlocked #primary { display: block; }
html.nb-unlocked .nb-gate { display: none; }

.nb-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0a0a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
}

.nb-gate-form {
  width: 100%;
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nb-gate-kanji {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2.2rem;
  font-weight: 900;
  opacity: 0.7;
}

.nb-gate-title {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0;
}

.nb-gate-sub {
  font-size: 0.85rem;
  color: #a8a8a4;
  margin: 0 0 8px;
}

.nb-gate-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  padding: 12px 20px;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}

.nb-gate-input:focus { border-color: #ffffff; }

.nb-gate-form .nb-btn { width: 100%; justify-content: center; }

.nb-gate-error {
  color: #ffffff;
  font-size: 0.85rem;
  margin: 0;
}
