/* ============================================================
   BEST SPORTSBOOK SIGN UP BONUS — Main Stylesheet
   Swiss Grid · Noto Serif JP · Black/White · Zero Radius
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #555555;
  --max-w: 1200px;
  --header-h: 64px;
  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --transition: 200ms ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.65; transition: opacity var(--transition); }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.875rem); margin-bottom: 0.25rem; }
h3 { font-size: clamp(1rem, 2vw, 1.375rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* ── Layout Wrapper ── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--black);
  color: var(--white);
  padding: 4px 8px;
}

/* Nav (desktop) */
.primary-nav {
  flex: 1;
  overflow: hidden;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 0.75rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--gray-200);
  transition: background var(--transition);
}

.nav-links a:first-child { border-left: 1px solid var(--gray-200); }
.nav-links a:hover { background: var(--gray-100); opacity: 1; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 2px solid var(--black);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
}

/* CTA Buttons */
.header-ctas {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.cta-signup {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}
.cta-signup:hover { background: var(--gray-600); border-color: var(--gray-600); opacity: 1; }

.cta-login {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}
.cta-login:hover { background: var(--gray-100); opacity: 1; }

/* ── Hero (Home) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 3fr 2fr;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-img-1 { grid-column: 1; }
.hero-img-2 { grid-column: 2; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }

.hero-band {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 2rem 1.5rem;
  color: var(--white);
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Main Layout (shared) ── */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1.5rem;
}

/* Inner page grid: content + sidebar */
.main-ranking,
.main-review,
.main-compare,
.main-faq,
.main-about,
.main-privacy {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto;
  gap: 3rem;
  align-items: start;
}

/* Home is different */
.main-home {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

/* ── Page Header Section ── */
.page-header-section {
  grid-column: 1 / -1;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-header-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.page-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--black);
  padding: 2px 8px;
  font-family: var(--font-sans);
}

.page-type-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--gray-400);
  color: var(--gray-600);
}

.byline {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-family: var(--font-sans);
}

.author-name { font-weight: 600; color: var(--black); }

/* ── Content Section ── */
.content-section {
  grid-column: 1;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0 1.5rem;
}

.section-figure { grid-column: 1; }
.figure-rule { width: 4px; background: var(--black); height: 100%; min-height: 60px; }
.figure-chip {
  width: 48px;
  height: 48px;
  border: 3px solid var(--black);
  border-radius: 50%;
  position: relative;
}
.figure-chip::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed var(--black);
  border-radius: 50%;
}

.content-body { grid-column: 2; }

/* ── Prose ── */
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.125rem; }
.prose li { margin-bottom: 0.375rem; }
.prose a { color: var(--black); text-decoration: underline; font-weight: 500; }
.prose strong { font-weight: 700; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.prose table th, .prose table td {
  border: 1.5px solid var(--black);
  padding: 0.625rem 0.875rem;
  text-align: left;
}
.prose table th { background: var(--black); color: var(--white); font-weight: 600; }
.prose table tr:nth-child(even) td { background: var(--gray-100); }

/* ── Subtitle (heading decoration) ── */
p.subtitle, .subtitle {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  font-family: var(--font-sans);
}

/* ── Sidebar ── */
.sidebar {
  grid-column: 2;
  grid-row: 2 / span 10;
  border: 2px solid var(--black);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
}

.sidebar h2 { font-size: 1rem; margin-bottom: 0.125rem; }

.sidebar-link {
  display: block;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: padding-left var(--transition);
}
.sidebar-link:hover { padding-left: 0.5rem; opacity: 1; }
.sidebar-link:last-child { border-bottom: none; }

.sidebar-cta-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--black);
}
.sidebar-cta-block p { font-size: 0.875rem; margin-bottom: 0.75rem; }

/* ── Home layout specifics ── */
.main-home .content-section { grid-column: 1; }
.main-home .children-section { grid-column: 1; }
.main-home .sidebar { grid-column: 2; grid-row: 2 / span 5; }

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  border: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-3px); }

.card-img { overflow: hidden; border-bottom: 2px solid var(--black); }
.card-img img { width: 100%; height: 180px; object-fit: cover; }

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.card-body h3 a { text-decoration: none; }
.card-desc { font-size: 0.875rem; color: var(--gray-600); flex: 1; }
.read-more { font-size: 0.875rem; font-weight: 700; margin-top: 1rem; text-decoration: none; display: inline-block; min-height: 44px; display: flex; align-items: center; }

/* ── Ranking DL ── */
.ranking-dl {
  margin-top: 1.5rem;
  border-top: 2px solid var(--black);
}

.ranking-dl dt {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.875rem 0 0;
}

.ranking-dl dt a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  transition: padding-left var(--transition);
}
.ranking-dl dt a:hover { padding-left: 0.5rem; opacity: 1; }

.ranking-dl dd {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 0.375rem 0 0.875rem;
  border-bottom: 1px solid var(--gray-200);
}

/* ── Review Hero ── */
.review-hero-figure {
  grid-column: 1 / -1;
  border: 2px solid var(--black);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.review-hero-img { width: 100%; height: auto; display: block; }

/* ── Compare Banner ── */
.compare-banner {
  grid-column: 1 / -1;
  border: 2px solid var(--black);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.compare-vs { display: flex; align-items: center; justify-content: center; }
.vs-label {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* ── Author Section ── */
.author-section {
  grid-column: 1;
  border-top: 2px solid var(--black);
  padding-top: 2rem;
  margin-top: 1rem;
}

.author-card {
  border: 2px solid var(--black);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.author-name-display {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 0.875rem;
}

.author-bio { font-size: 0.9375rem; margin-bottom: 0; }

/* ── FAQ ── */
.faq-body h2 {
  margin-top: 2rem;
  padding: 1rem 0 0.5rem;
  border-top: 2px solid var(--black);
}

/* ── Children Section ── */
.children-section {
  grid-column: 1;
  padding-top: 2rem;
  border-top: 2px solid var(--black);
}

/* ── Footer ── */
.site-footer {
  border-top: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  padding: 2rem 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand { display: flex; align-items: flex-start; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: var(--white);
  color: var(--black);
  padding: 4px 10px;
  display: inline-block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding-top: 0.25rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); opacity: 1; }

.footer-legal { text-align: right; }

.rg-notice {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.375rem;
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0;
}

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  .stagger-list > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .stagger-list.visible > * { opacity: 1; transform: translateY(0); }
  .stagger-list.visible > *:nth-child(1) { transition-delay: 0ms; }
  .stagger-list.visible > *:nth-child(2) { transition-delay: 80ms; }
  .stagger-list.visible > *:nth-child(3) { transition-delay: 160ms; }
  .stagger-list.visible > *:nth-child(4) { transition-delay: 240ms; }
  .stagger-list.visible > *:nth-child(5) { transition-delay: 320ms; }
  .stagger-list.visible > *:nth-child(n+6) { transition-delay: 400ms; }
}

/* ── Mobile ── */
@media (max-width: 768px) {

  :root { --header-h: 60px; }

  .nav-toggle { display: flex; order: 3; }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    z-index: 99;
  }

  .primary-nav.is-open { display: block; }

  .nav-links {
    flex-direction: column;
    overflow-x: hidden;
  }

  .nav-links a {
    height: auto;
    min-height: 52px;
    padding: 0 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    white-space: normal;
    font-size: 0.9375rem;
  }
  .nav-links a:first-child { border-left: none; }

  .header-inner {
    padding: 0 1rem;
    flex-wrap: nowrap;
  }

  .primary-nav { order: 4; width: 100%; flex: none; }

  .header-ctas { order: 2; gap: 0.375rem; }
  .cta { padding: 0 0.625rem; font-size: 0.75rem; min-height: 40px; }

  /* Inner pages: single column */
  .main-ranking,
  .main-review,
  .main-compare,
  .main-faq,
  .main-about,
  .main-privacy,
  .main-home {
    grid-template-columns: 1fr;
  }

  .content-section { grid-column: 1; }
  .sidebar { grid-column: 1; grid-row: auto; position: static; max-height: none; }
  .review-hero-figure { grid-column: 1; }
  .compare-banner { grid-column: 1; }
  .children-section { grid-column: 1; }
  .author-section { grid-column: 1; }

  /* Hero */
  .hero-collage { grid-template-columns: 1fr; }
  .hero-img-2 { display: none; }
  .hero-h1 { font-size: clamp(1.5rem, 6vw, 2.5rem); }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-legal { text-align: left; }
  .rg-notice { margin-left: 0; max-width: 100%; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main { padding: 2rem 1rem; }
  .header-inner { padding: 0 0.75rem; }
  .brand-text { font-size: 0.875rem; padding: 3px 6px; }
  .footer-inner { padding: 0 1rem 1.25rem; }
}

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}