/* ============================================
   平成26年度 市民の社会貢献に関する実態調査
   Analysis Report — Stylesheet
   ============================================ */

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

/* ── CSS Variables ─────────────────────────── */
:root {
  --navy-900: #0a1628;
  --navy-800: #0d2137;
  --navy-700: #132a4a;
  --navy-600: #1e3a5f;
  --navy-400: #2c5282;
  --navy-200: #4a90a4;

  --red-700:  #9b1a1a;
  --red-600:  #c1121f;
  --red-400:  #e63946;
  --red-200:  #f4a5a5;

  --blue-500: #4361ee;
  --blue-300: #7b9af0;
  --teal-500: #2a9d8f;
  --amber-500: #e9c46a;
  --green-600: #2d6a4f;

  --bg-base:  #f0f2f5;
  --bg-white: #ffffff;
  --bg-card:  #ffffff;
  --bg-alt:   #f8f9fb;

  --text-primary:   #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted:     #718096;
  --text-white:     #ffffff;

  --border-light: #e2e8f0;
  --border-mid:   #cbd5e0;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-card: 0 2px 20px rgba(13,33,55,.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1160px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.nav-brand-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.nav-brand-sub {
  font-size: 9px;
  color: var(--red-400);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: block;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
}

.nav-links a.active {
  background: rgba(193, 18, 31, 0.25);
  color: var(--red-400);
}

/* ── Hero ──────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-800) 40%, #1a1a3e 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Geometric background pattern */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(193,18,31,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(67,97,238,0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(42,157,143,0.05) 0%, transparent 60%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(193,18,31,0.15);
  border: 1px solid rgba(193,18,31,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-400);
  animation: pulse 2s ease infinite;
}

.hero-badge-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--red-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.4s forwards;
}

.hero-title span {
  color: var(--red-400);
}

.hero-subtitle {
  font-size: clamp(13px, 2vw, 16px);
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.6s forwards;
}

/* Hero KPI cards */
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.8s forwards;
}

.kpi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--kpi-accent, var(--red-400));
}

.kpi-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}

.kpi-card.accent-blue::before  { background: var(--blue-500); }
.kpi-card.accent-teal::before  { background: var(--teal-500); }
.kpi-card.accent-amber::before { background: var(--amber-500); }

.kpi-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.kpi-value {
  font-family: 'BIZ UDPGothic', 'Noto Sans JP', monospace;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.kpi-unit {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

.kpi-desc {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* Hero gap visualization */
.hero-gap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 1.0s forwards;
}

.gap-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  min-width: 80px;
}

.gap-bar-wrap {
  flex: 1;
  position: relative;
}

.gap-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.gap-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s;
}

.gap-bar-interest {
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  width: 0;
}
.gap-bar-interest.animated { width: 62%; }

.gap-bar-experience {
  background: linear-gradient(90deg, var(--teal-500), #4ecdc4);
  width: 0;
}
.gap-bar-experience.animated { width: 27%; }

.gap-pct {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'BIZ UDPGothic', monospace;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  padding-right: 4px;
}

.gap-annotation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.gap-arrow {
  font-size: 20px;
  color: var(--amber-500);
}

.gap-text {
  font-size: 12px;
  color: var(--amber-500);
  font-weight: 600;
}

/* ── Layout containers ─────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section styles ────────────────────────── */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--navy-800);
  color: var(--text-white);
}

.section-header {
  margin-bottom: 48px;
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-600);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'BIZ UDPGothic', monospace;
  flex-shrink: 0;
}

.section-num-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--red-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-dark .section-num-text { color: var(--red-400); }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.section-dark .section-title { color: var(--text-white); }

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.8;
}

.section-dark .section-desc { color: rgba(255,255,255,0.6); }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  padding: 24px 28px 0;
}

.card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.card-body {
  padding: 24px 28px 28px;
}

/* ── Chart containers ──────────────────────── */
.chart-wrap {
  position: relative;
  width: 100%;
}

.chart-wrap canvas {
  width: 100% !important;
}

/* ── Grid layouts ──────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Insight boxes ─────────────────────────── */
.insight-box {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.insight-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--red-400);
}

.insight-box.blue::before  { background: var(--blue-500); }
.insight-box.teal::before  { background: var(--teal-500); }
.insight-box.amber::before { background: var(--amber-500); }

.insight-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--red-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.insight-box.blue  .insight-label { color: var(--blue-300); }
.insight-box.teal  .insight-label { color: #4ecdc4; }
.insight-box.amber .insight-label { color: var(--amber-500); }

.insight-text {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.insight-text strong {
  color: white;
  font-weight: 700;
}

/* ── Finding cards ─────────────────────────── */
.finding-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.finding-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fc-color, var(--blue-500));
}

.finding-card.red::before   { background: var(--red-600); }
.finding-card.teal::before  { background: var(--teal-500); }
.finding-card.amber::before { background: var(--amber-500); }
.finding-card.green::before { background: var(--green-600); }

.finding-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.finding-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.finding-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.finding-num {
  font-family: 'BIZ UDPGothic', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.finding-num-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ── Big comparison (volunteer×donation) ───── */
.comparison-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.comparison-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.comparison-item.exp::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
}

.comparison-item.noexp::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--border-mid);
}

.comparison-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.comparison-donut {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.comparison-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.comparison-big-num {
  font-family: 'BIZ UDPGothic', monospace;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.comparison-big-num.exp-color  { color: var(--blue-500); }
.comparison-big-num.noexp-color { color: var(--text-muted); }

.comparison-big-unit {
  font-size: 14px;
  color: var(--text-muted);
}

.comparison-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comparison-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vs-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-800);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.vs-diff {
  text-align: center;
}

.vs-diff-num {
  font-family: 'BIZ UDPGothic', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--red-600);
  display: block;
}

.vs-diff-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Summary table ─────────────────────────── */
.summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.summary-table thead tr th {
  background: var(--navy-800);
  color: white;
  font-weight: 600;
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.summary-table thead tr th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.summary-table thead tr th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.summary-table tbody tr td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.6;
}

.summary-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  background: var(--bg-alt);
}

.summary-table tbody tr:last-child td {
  border-bottom: none;
}

.summary-table tbody tr:hover td {
  background: #f8f9fb;
}

.summary-table tbody tr:hover td:first-child {
  background: #eef0f5;
}

/* ── Policy pillar cards ───────────────────── */
.pillar-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
}

.pillar-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-800);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'BIZ UDPGothic', monospace;
}

.pillar-content {}

.pillar-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pillar-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.pillar-body ul {
  margin: 8px 0 0 16px;
}

.pillar-body li {
  margin-bottom: 4px;
}

/* ── Data note chips ───────────────────────── */
.data-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.data-source-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  flex-shrink: 0;
}

/* ── Legend ────────────────────────────────── */
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Tabs (for gender comparison) ─────────── */
.tab-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans JP', sans-serif;
}

.tab-btn.active {
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Stat rows ─────────────────────────────── */
.stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-600);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'BIZ UDPGothic', monospace;
}

.stat-rank.gold   { background: #d4a017; }
.stat-rank.silver { background: #8c9ba8; }
.stat-rank.bronze { background: #a0684a; }

.stat-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.stat-bar-wrap {
  width: 180px;
  background: var(--border-light);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--blue-500);
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill.red   { background: var(--red-600); }
.stat-bar-fill.teal  { background: var(--teal-500); }
.stat-bar-fill.amber { background: var(--amber-500); }

.stat-pct {
  width: 44px;
  text-align: right;
  font-family: 'BIZ UDPGothic', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* ── Age matrix ─────────────────────────────── */
.age-matrix {
  overflow-x: auto;
}

.age-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.age-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 12px;
  white-space: nowrap;
}

.age-table th:first-child {
  text-align: left;
}

.age-table td {
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  position: relative;
}

.age-table td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.age-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'BIZ UDPGothic', monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

/* ── Footer ────────────────────────────────── */
#footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-info h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-info p {
  font-size: 11px;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

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

.footer-meta p {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

/* ── Scroll animations ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Animations ─────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Divider ───────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
  margin: 0;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .comparison-wrap { grid-template-columns: 1fr; }
  .comparison-vs { flex-direction: row; }
}

@media (max-width: 600px) {
  .hero-kpis { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 56px 0; }
  .hero-gap { flex-direction: column; align-items: flex-start; }
}

/* ── Interest stacked bars ─────────────────── */
.stacked-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.stacked-bar-label {
  width: 72px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.3;
}

.stacked-bar-track {
  flex: 1;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  background: var(--border-light);
  position: relative;
}

.stacked-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  min-width: 0;
}

.stacked-seg.seg-1 { background: #1A237E; }
.stacked-seg.seg-2 { background: #5C6BC0; }
.stacked-seg.seg-3 { background: #EF9A9A; color: #4a1a1a; }
.stacked-seg.seg-4 { background: #B71C1C; }

.stacked-bar-n {
  width: 44px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: left;
  flex-shrink: 0;
  font-family: 'BIZ UDPGothic', monospace;
}

/* ── Top insight callout ───────────────────── */
.callout-box {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 2px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-content {}

.callout-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.callout-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Data tag */
.data-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'BIZ UDPGothic', monospace;
  background: var(--navy-800);
  color: white;
  margin: 0 2px;
}

.data-tag.red    { background: var(--red-600); }
.data-tag.blue   { background: var(--blue-500); }
.data-tag.teal   { background: var(--teal-500); }
.data-tag.amber  { background: #b8860b; }
