/* ============================================================
   BootyHeroes — promo site theme
   "Treasure & heroines": cream map-paper base, deep navy ink,
   gold treasure accents, coral pirate-flag CTA.
   Light scheme, mobile-first. External only — no inline styles.
   ============================================================ */

:root {
  --paper: #faf5ec;
  --paper-2: #f3ead9;
  --ink: #22304f;
  --ink-soft: #4a5878;
  --gold: #c89b2c;
  --gold-deep: #a87c17;
  --coral: #d9503f;
  --coral-dark: #b83d2f;
  --line: #e2d5bd;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(34, 48, 79, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; margin-top: 1em; }

p { margin: 0 0 1.1em; }

a { color: var(--coral-dark); }

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(34, 48, 79, 0.35);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand small { display: block; font-size: 0.62rem; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(250, 245, 236, 0.4);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-play {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(217, 80, 63, 0.35);
}
.btn-play:hover { background: var(--coral-dark); }

.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: transparent;
}
.btn-ghost:hover { background: rgba(200, 155, 44, 0.12); }

.btn-solid {
  background: var(--gold);
  color: var(--ink);
}
.btn-solid:hover { background: var(--gold-deep); color: var(--white); }

/* ---------- Hero (index) ---------- */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 20px 30px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--gold);
}
.hero-art img { width: 100%; }

/* ---------- Hero (sub-pages) ---------- */
.hero-subpage {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 20px 16px;
  text-align: center;
}
.hero-subpage .lede {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 20px 20px 60px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 20px 20px 60px; }

section + section { margin-top: 8px; }

/* ---------- Facts table ---------- */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 30px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.facts th, .facts td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.facts th { background: var(--ink); color: var(--paper); font-size: 0.95rem; }
.facts td:first-child { font-weight: 700; color: var(--gold-deep); width: 34%; white-space: nowrap; }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--ink-soft); }

.card-icon {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 44, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.quote-card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 5px solid var(--gold);
}
.quote-card blockquote { margin: 0 0 10px; font-style: italic; color: var(--ink); }
.quote-card footer { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #33456e 60%, var(--gold-deep) 130%);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 42px 34px;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--paper); margin: 0 0 8px; }
.cta-banner p { margin: 0; color: rgba(250, 245, 236, 0.85); }

/* ---------- Cast cards (characters) ---------- */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.cast-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--coral);
}
.cast-card h3 { margin-bottom: 2px; }
.cast-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.cast-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Tables (guide) ---------- */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.guide-table th, .guide-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.guide-table th { background: var(--ink); color: var(--paper); }
.guide-table tr:nth-child(even) td { background: var(--paper-2); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- Screenshot blocks on sub-pages ---------- */
.shot {
  margin: 26px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.shot figcaption {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  padding: 10px 16px;
}
.shot-left { float: left; width: 42%; margin: 8px 26px 14px 0; }
.shot-right { float: right; width: 42%; margin: 8px 0 14px 26px; }

/* ---------- Lang switch / footer ---------- */
.lang-switch {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.lang-switch a {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-deep);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(200, 155, 44, 0.08);
}
.lang-switch a:hover { background: var(--gold); color: var(--white); }

.site-footer {
  background: var(--ink);
  color: rgba(250, 245, 236, 0.8);
  text-align: center;
  padding: 36px 20px 28px;
  margin-top: 40px;
  font-size: 0.92rem;
}
.site-footer .lang-switch a { border-color: rgba(200, 155, 44, 0.6); color: var(--gold); }
.site-footer .lang-switch a:hover { background: var(--gold); color: var(--ink); }
.copyright { margin: 0; font-size: 0.85rem; color: rgba(250, 245, 236, 0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 28px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .shot-left, .shot-right { float: none; width: 100%; margin: 22px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(34, 48, 79, 0.4);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 6px; border-bottom: 1px solid rgba(250, 245, 236, 0.15); }
  .main-nav .btn { text-align: center; margin-top: 10px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .features-grid, .cast-grid, .gallery { grid-template-columns: 1fr; }
  .brand span { font-size: 1.05rem; }
  .hero { padding-top: 28px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-banner { padding: 30px 22px; text-align: center; justify-content: center; }
  .facts td:first-child { white-space: normal; }
}
