/* ==========================================================================
   Finance Lab - Modern Fintech Design System
   ========================================================================== */

:root {
  --primary: #1d4ed8;         /* Royal Blue */
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --accent-green: #059669;    /* Trust Emerald */
  --accent-green-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-red: #dc2626;
  --accent-red-light: #fef2f2;
  
  --text-main: #0f172a;       /* Deep Slate */
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-inner: #f1f5f9;
  
  --border: #e2e8f0;
  --border-focus: #bfdbfe;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px -4px rgba(29, 78, 216, 0.08);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta-btn {
  background: var(--primary);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 40px 0;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-focus);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.hero-stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.hero-stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

.hero-stat-value.green { color: var(--accent-green); }
.hero-stat-value.blue { color: var(--primary); }

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--text-light);
}

/* ==========================================================================
   Interactive Simulator Section (目玉機能)
   ========================================================================== */
.simulator-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.simulator-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

/* ==========================================================================
   3-Mode Scenario Switcher (前提条件の切り替えタブ)
   ========================================================================== */
.mode-switcher-container {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.mode-switcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mode-switcher-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.mode-switcher-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.mode-tab-btn {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: var(--transition);
  font-family: inherit;
}

.mode-tab-btn:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.mode-tab-btn.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary);
}

.mode-btn-icon {
  font-size: 22px;
  line-height: 1;
}

.mode-btn-text {
  display: flex;
  flex-direction: column;
}

.mode-btn-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.mode-tab-btn.active .mode-btn-name {
  color: var(--primary);
}

.mode-btn-rate {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.mode-desc-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-main);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 30px;
}

/* Gacha Arena Section */
.gacha-arena {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 24px;
  color: #ffffff;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

.gacha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.gacha-title-group h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gacha-badge-tag {
  background: rgba(37, 99, 235, 0.3);
  border: 1px solid #3b82f6;
  color: #93c5fd;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.gacha-actions {
  display: flex;
  gap: 10px;
}

.btn-gacha {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gacha:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-gacha:active {
  transform: scale(0.98);
}

.btn-share-x {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-share-x:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Interactive Canvas Tooltip (マウス追従) */
.chart-canvas-container {
  width: 100%;
  height: 280px;
  position: relative;
  background: #090d16;
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  margin-bottom: 16px;
  cursor: crosshair;
}

.canvas-tooltip {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #38bdf8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
}

.tooltip-col {
  display: flex;
  flex-direction: column;
}

.tooltip-lbl {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}

.tooltip-val {
  font-size: 14px;
  font-weight: 800;
}

/* Gacha Journey Story Card (途中経過ドラマ分析) */
.gacha-journey-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 14px;
}

.journey-header {
  font-size: 14px;
  font-weight: 800;
  color: #93c5fd;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.journey-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.journey-item-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.journey-item-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.journey-item-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .journey-grid { grid-template-columns: 1fr; }
  .canvas-tooltip { flex-direction: column; gap: 6px; align-items: flex-start; }
}

canvas#gacha-chart {
  width: 100%;
  height: 100%;
  display: block;
}

/* Gacha Result Banner */
.gacha-result-banner {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.result-rarity-pill {
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rarity-ssr { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #ffffff; box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
.rarity-sr  { background: linear-gradient(135deg, #10b981, #059669); color: #ffffff; }
.rarity-r   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #ffffff; }
.rarity-n   { background: #475569; color: #f1f5f9; }
.rarity-ur  { background: #dc2626; color: #ffffff; animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.result-stat-text {
  font-size: 14px;
  color: #cbd5e1;
}

.result-stat-text strong {
  font-size: 20px;
  color: #ffffff;
  margin-left: 6px;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.slider-val-display {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sim-results-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 28px;
}

.results-header-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.result-block {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}

.res-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.res-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.res-val.highlight {
  color: var(--primary);
}

.loss-risk-banner {
  background: #ffffff;
  border-left: 4px solid var(--accent-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.risk-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.risk-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-green);
}

/* ==========================================================================
   Evidence & Charts Section (レポート)
   ========================================================================== */
.report-section {
  padding: 60px 0;
}

.card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.card-wrapper h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.card-wrapper p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.chart-frame {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.chart-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.chart-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* ==========================================================================
   Step-by-step Guide Section
   ========================================================================== */
.steps-section {
  padding: 60px 0;
  background: #f1f5f9;
}

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

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.step-num-pill {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Multi-Category Action Hub (目的別マネタイズ：クレカ積立 & FP相談 & 名著)
   ========================================================================== */
.action-hub-section {
  padding: 70px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border);
}

.action-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.action-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.card-top-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.tag-card-nl {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tag-fp {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.tag-books {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.action-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 12px;
}

.action-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.action-benefits {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-benefits li {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.btn-action-cta {
  display: block;
  text-align: center;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-card-nl {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
}

.btn-card-nl:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: var(--shadow-md);
}

.btn-fp {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
}

.btn-fp:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  box-shadow: var(--shadow-md);
}

/* Books Mini Grid */
.book-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.book-item-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.book-cover-mock {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 14px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.book-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}

.book-author {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-book-link {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.btn-book-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

/* ==========================================================================
   Broker Affiliate Cards (証券会社比較)
   ========================================================================== */
.brokers-section {
  padding: 80px 0;
}

/* ==========================================================================
   Sponsor / Google AdSense Ad Slot Placeholder (クリック報酬型広告枠)
   ========================================================================== */
.ad-slot-container {
  margin: 28px 0;
  padding: 16px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
}

.ad-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.ad-placeholder-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 90px;
}

.ad-placeholder-text {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.ad-placeholder-sub {
  font-size: 11px;
  color: var(--text-light);
}

/* ==========================================================================
   Multi-Category Action Hub (目的別マネタイズセクション)
   ========================================================================== */
.action-hub-section {
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.action-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.action-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-top-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.tag-card-nl   { background: #dbeafe; color: #1d4ed8; }
.tag-fp        { background: #fef3c7; color: #b45309; }
.tag-books     { background: #e0e7ff; color: #4338ca; }
.tag-broker    { background: #ecfdf5; color: #047857; }

.action-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.action-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.action-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.action-benefits li {
  font-size: 13.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-card-nl {
  background: #1e40af;
  color: #ffffff;
}
.btn-card-nl:hover { background: #172554; }

.btn-fp {
  background: #d97706;
  color: #ffffff;
}
.btn-fp:hover { background: #b45309; }

/* Book Showcase Mini Grid */
.book-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.book-item-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-item-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.book-cover-mock {
  width: 50px;
  height: 68px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  line-height: 1.2;
  padding: 4px;
}

.book-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.4;
}

.book-author {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.btn-book-link {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  background: #eff6ff;
  padding: 5px 8px;
  border-radius: 4px;
  display: block;
}

.btn-book-link:hover {
  background: #dbeafe;
}

.broker-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.broker-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.broker-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.broker-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}

.broker-icon-box.sbi {
  background: #e0f2fe;
  color: #0369a1;
}

.broker-icon-box.rakuten {
  background: #fee2e2;
  color: #b91c1c;
}

.broker-title-group h4 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
}

.broker-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.broker-points-list {
  list-style: none;
  margin: 20px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.broker-points-list li {
  font-size: 14.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.broker-points-list li span.check {
  color: var(--accent-green);
  font-weight: 800;
}

.broker-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.broker-btn.sbi-btn {
  background: var(--primary);
  color: #ffffff;
}

.broker-btn.sbi-btn:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.broker-btn.rakuten-btn {
  background: #dc2626;
  color: #ffffff;
}

.broker-btn.rakuten-btn:hover {
  background: #b91c1c;
  box-shadow: var(--shadow-md);
}

.micro-note {
  display: block;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 10px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.faq-answer {
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 40px 0;
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.footer-disclaimer {
  max-width: 780px;
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   Image Zoom & Lightbox Modal (スマホ写真拡大)
   ========================================================================== */
.chart-frame[data-zoomable] {
  position: relative;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chart-frame[data-zoomable]:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.chart-zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.96);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 16px;
  backdrop-filter: blur(8px);
  touch-action: pan-x pan-y pinch-zoom;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8);
  border: 1px solid #334155;
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: center;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Responsive Breakpoints (スマホ縦画面最適化・モバイルファースト)
   ========================================================================== */
@media (max-width: 868px) {
  .hero-title { font-size: 26px; line-height: 1.35; }
  .hero-stats-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .broker-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }

  /* 1. シミュレーター：スライダーと統計予測レンジを上下列に分割 */
  .simulator-box {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  .sim-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 20px;
  }

  .sim-controls {
    gap: 22px;
  }

  .slider-label-row {
    margin-bottom: 4px;
  }

  .slider-label {
    font-size: 15px;
    font-weight: 700;
  }

  .slider-val-display {
    font-size: 22px;
    font-weight: 800;
  }

  /* スマホの指操作に最適化した太いスライダー */
  input[type="range"] {
    height: 10px;
    margin: 8px 0;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  /* 統計予測レンジカード：スマホで大きく見やすく */
  .sim-results-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }

  .results-header-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .result-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .result-block {
    padding: 12px 10px;
  }

  .res-lbl {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .res-val {
    font-size: 19px;
  }

  .loss-risk-banner {
    padding: 12px 14px;
  }

  .risk-label {
    font-size: 12.5px;
  }

  .risk-val {
    font-size: 16px;
  }

  /* 2. ガチャアリーナ：画面いっぱいに横幅を確保し、推移図をシャープに */
  .gacha-arena {
    padding: 16px 12px;
    margin-top: 18px;
    border-radius: var(--radius-sm);
  }

  .gacha-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .gacha-title-group h3 {
    font-size: 16px;
  }

  .gacha-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-gacha {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  .btn-share-x {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
  }

  .chart-canvas-container {
    height: 210px;
    margin-bottom: 12px;
  }

  .gacha-result-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 12px;
    gap: 10px;
  }

  .result-rarity-pill {
    width: 100%;
    justify-content: center;
    font-size: 12.5px;
    padding: 7px 12px;
  }

  .result-stat-text {
    width: 100%;
    text-align: center;
    font-size: 13px;
  }

  .result-stat-text strong {
    font-size: 21px;
  }

  .gacha-journey-card {
    padding: 14px 12px;
  }

  .journey-header {
    font-size: 13px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .journey-item {
    padding: 10px 12px;
  }

  .journey-item-val {
    font-size: 16px;
  }

  /* 3. エビデンス画像（写真）：パディングを最小化して横幅100%に広げる */
  .card-wrapper {
    padding: 20px 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }

  .card-wrapper h3 {
    font-size: 17px;
    line-height: 1.45;
  }

  .card-wrapper p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .chart-frame {
    padding: 6px;
    margin: 16px 0;
    border-radius: var(--radius-sm);
  }

  .chart-note {
    font-size: 11.5px;
    margin-top: 6px;
  }
  /* 4. アクションハブ：クレカ積立 & FP相談をスマホでも綺麗な2列に分割 */
  .action-categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .action-card {
    padding: 18px 14px;
    border-radius: var(--radius-sm);
  }

  .action-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .action-card-desc {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .action-benefits {
    gap: 6px;
    margin-bottom: 16px;
  }

  .action-benefits li {
    font-size: 11.5px;
    line-height: 1.4;
  }

  /* 5. 試算モード切替スイッチのスマホ最適化 */
  .mode-switcher-container {
    padding: 16px 14px;
    margin-bottom: 20px;
  }

  .mode-switcher-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mode-tab-btn {
    padding: 10px 12px;
  }

  .mode-btn-icon {
    font-size: 20px;
  }

  .mode-btn-name {
    font-size: 13px;
  }

  .mode-desc-card {
    padding: 10px 12px;
    font-size: 11.5px;
  }

  .btn-action-cta {
    font-size: 13px;
    padding: 11px 12px;
  }

  .book-mini-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 23px; }
  .result-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .res-val { font-size: 17px; }
  .chart-canvas-container {
    height: 195px;
  }
  .action-categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .action-card {
    padding: 14px 10px;
  }
  .action-card h3 {
    font-size: 13.5px;
  }
  .card-top-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .btn-action-cta {
    font-size: 12px;
    padding: 9px 8px;
  }
}
