/* ============================================================
   Samurai Museum Tokyo — Ink & Vermilion Design System
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --primary:    #1F1416;
  --secondary:  #8A6A60;
  --tertiary:   #C73E2E;
  --neutral:    #F7EFE4;
  --surface:    #FFFFFF;
  --on-primary: #FFFFFF;
  --border:     #EADFCE;
  --border-mid: #D8C6AC;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font:       'Inter', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(31,20,22,.06);
  --shadow-md: 0 6px 24px rgba(31,20,22,.10);
  --shadow-lg: 0 12px 40px rgba(31,20,22,.14);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--primary);
  background: var(--neutral);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; }

/* ── Typography ──────────────────────────────────────────── */
.display {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
h1, .h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
}
h2, .h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.3;
}
h3, .h3 { font-size: 1.05rem; font-weight: 700; }
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font);
}
.caption { font-size: 0.85rem; color: var(--secondary); }

/* ── Layout ──────────────────────────────────────────────── */
.container     { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section       { padding: 72px 0; }
.section--sm   { padding: 48px 0; }
.section--lg   { padding: 96px 0; }
.section--surface { background: var(--surface); }
.section--dark  { background: var(--primary); color: var(--on-primary); }
.section--dark h2 { color: var(--on-primary); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; gap: 8px;
  height: 64px; max-width: 1080px; margin: 0 auto; padding: 0 20px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  margin-right: auto;
  letter-spacing: -0.01em;
}
.nav__logo span { color: var(--tertiary); }
.nav__links {
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 1; min-width: 0;
}
.nav__links a {
  padding: 6px 12px; border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 500; color: var(--secondary);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--primary); background: var(--neutral); }
.nav__links a.active { color: var(--primary); font-weight: 600; }
.nav__cta,
.nav__links a.nav__cta {
  padding: 9px 20px; border-radius: var(--r-md);
  background: var(--tertiary); color: var(--on-primary) !important;
  font-size: 0.875rem; font-weight: 600;
  white-space: nowrap;
  transition: opacity .15s;
}
.nav__cta:hover, .nav__links a.nav__cta:hover { opacity: 0.88; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav__burger span { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 26px; border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: 600;
  transition: opacity .15s, transform .1s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--primary { background: var(--tertiary); color: var(--on-primary); }
.btn--ghost   { background: transparent; border: 1.5px solid var(--border-mid); color: var(--primary); }
.btn--ghost:hover { border-color: var(--primary); opacity: 1; }
.btn--light   { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn--light:hover { background: rgba(255,255,255,0.25); opacity: 1; }
.btn--sm  { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn--lg  { padding: 16px 32px; font-size: 1.05rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 35%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(31,20,22,0.62);
}
.hero > .container { position: relative; z-index: 1; padding: 100px 20px; width: 100%; }
.hero__content { max-width: 640px; color: #fff; }
.hero__content .label { color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.hero__content .display { color: #fff; margin-bottom: 22px; }
.hero__content p { color: rgba(255,255,255,0.80); margin-bottom: 32px; font-size: 1.1rem; max-width: 500px; line-height: 1.65; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero__trust-item .val { font-weight: 700; font-size: 1.05rem; color: #fff; }
.hero__trust-item .lbl { font-size: 0.72rem; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; margin-top: 2px; }

/* ── Show cards ──────────────────────────────────────────── */
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.show-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.show-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.show-card__img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.show-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.show-card:hover .show-card__img img { transform: scale(1.04); }
.show-card__badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: var(--r-sm);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--tertiary); color: #fff;
}
.show-card__badge--gold  { background: #C9993A; }
.show-card__badge--green { background: #2E7D32; }
.show-card__body { padding: 20px; }
.show-card__venue {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--tertiary); margin-bottom: 6px;
}
.show-card__title { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 8px; line-height: 1.3; }
.show-card__desc { font-size: 0.875rem; color: var(--secondary); margin-bottom: 14px; line-height: 1.55; }
.show-card__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.show-card__rating { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.show-card__rating .star { color: #D4780A; }
.show-card__reviews { font-size: 0.78rem; color: var(--secondary); }
.show-card__price { margin-left: auto; font-weight: 700; font-size: 1rem; }
.show-card__price .from { font-size: 0.72rem; font-weight: 400; color: var(--secondary); }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.gallery-grid__main { grid-row: 1 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery-grid img:hover { opacity: 0.88; }

/* ── Comparison table ────────────────────────────────────── */
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.compare-table th {
  background: var(--neutral);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--secondary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr.featured td { background: #FBF5EA; }
.compare-table tr.featured td:first-child { color: var(--tertiary); font-weight: 700; }
.compare-table .stars { color: #D4780A; letter-spacing: -1px; }
.compare-table .book-link {
  display: inline-flex; padding: 6px 16px;
  background: var(--tertiary); color: #fff;
  border-radius: var(--r-sm); font-size: 0.82rem; font-weight: 600;
  transition: opacity .15s;
}
.compare-table .book-link:hover { opacity: 0.85; }

/* ── Review cards ────────────────────────────────────────── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
}
.review-card__stars { color: #D4780A; font-size: 0.9rem; margin-bottom: 10px; letter-spacing: -1px; }
.review-card__body { font-size: 0.9rem; line-height: 1.65; margin-bottom: 14px; color: var(--primary); font-style: italic; }
.review-card__author { font-size: 0.78rem; font-weight: 600; color: var(--secondary); }
.review-card__venue  { font-size: 0.72rem; color: var(--tertiary); margin-top: 3px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer;
  font-weight: 600; gap: 16px; font-size: 0.95rem;
}
.faq-q .icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--border-mid); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--secondary); transition: all .2s;
}
.faq-item.open .faq-q .icon { background: var(--tertiary); border-color: var(--tertiary); color: #fff; transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 20px; color: var(--secondary); line-height: 1.75; font-size: 0.9rem; }
.faq-item.open .faq-a { display: block; }

/* ── Section headers ─────────────────────────────────────── */
.section-header { margin-bottom: 48px; }
.section-header .label { color: var(--tertiary); margin-bottom: 10px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { color: var(--secondary); max-width: 560px; font-size: 1.05rem; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header--center p { margin: 12px auto 0; }

/* ── Show type cards (3 types) ───────────────────────────── */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.type-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: box-shadow .2s;
}
.type-card:hover { box-shadow: var(--shadow-md); }
.type-card__icon { font-size: 2rem; margin-bottom: 14px; }
.type-card__label { color: var(--tertiary); margin-bottom: 8px; }
.type-card h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 10px; }
.type-card p  { font-size: 0.875rem; color: var(--secondary); line-height: 1.6; margin-bottom: 16px; }
.type-card__meta { font-size: 0.82rem; color: var(--secondary); }
.type-card__meta strong { color: var(--primary); }

/* ── Guide / ranking cards ───────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
}
.guide-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 10px;
  padding-top: 4px;
}
.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.3;
}
.guide-card p {
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.72;
  margin-bottom: 10px;
  flex: 1;
}
.guide-card p:last-child { margin-bottom: 0; }
.guide-card strong { color: var(--primary); }
.guide-card .btn { margin-top: auto; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { padding: 14px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { font-size: 0.82rem; color: var(--secondary); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--primary); font-weight: 500; }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band { background: var(--primary); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,0.65); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Trust strip ─────────────────────────────────────────── */
.trust-strip {
  background: var(--primary); border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}
.trust-strip__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px; border-right: 1px solid rgba(255,255,255,0.1);
  flex: 1; min-width: 150px;
}
.trust-item:last-child { border-right: none; }
.trust-item__icon { color: var(--tertiary); font-size: 1.1rem; flex-shrink: 0; }
.trust-item__val { font-weight: 700; font-size: 0.9rem; color: #fff; line-height: 1.2; }
.trust-item__lbl { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

/* ── Callout box ─────────────────────────────────────────── */
.callout {
  background: var(--neutral);
  border-left: 4px solid var(--tertiary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 22px 26px;
}
.callout .label { color: var(--tertiary); margin-bottom: 8px; }
.callout p { margin: 0; line-height: 1.7; }

/* ── Prose ───────────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 28px 0 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); }
.prose p  { margin-bottom: 16px; line-height: 1.78; color: #3A2420; }
.prose ul { margin: 0 0 16px 20px; list-style: disc; }
.prose ul li { margin-bottom: 6px; color: #3A2420; }

/* ── Two-col ─────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col--70-30 { grid-template-columns: 7fr 3fr; }
.sticky-col { position: sticky; top: 80px; }

/* ── Booking card ────────────────────────────────────────── */
.booking-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.booking-card .price { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 4px; }
.booking-card .price .from { font-family: var(--font); font-size: 0.85rem; font-weight: 400; color: var(--secondary); }
.booking-card .rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.booking-card .stars { color: #D4780A; }
.booking-card ul { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.booking-card ul li { font-size: 0.875rem; display: flex; gap: 8px; }
.booking-card ul li::before { content: "✓"; color: #2E7D32; font-weight: 700; flex-shrink: 0; }
.booking-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--primary); color: rgba(255,255,255,0.5); padding: 56px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand .logo { font-family: var(--font-serif); color: #fff; font-size: 1.1rem; margin-bottom: 10px; display: block; }
.footer__brand p { font-size: 0.82rem; line-height: 1.6; max-width: 240px; }
.footer__col h4 { color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a  { font-size: 0.82rem; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__bottom p, .footer__bottom a { font-size: 0.78rem; }
.footer__bottom a:hover { color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 4px; }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }
  .hero { min-height: 520px; }
  .hero > .container { padding: 72px 20px; }
  .type-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid__main { grid-row: auto; }
  .two-col, .two-col--70-30 { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); min-width: 50%; }
  .section { padding: 48px 0; }
}
@media (max-width: 640px) {
  .pick-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .trust-item { min-width: 100%; }
}
