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

:root {
  --bg:      #08080f;
  --surface: #0f0f1c;
  --border:  rgba(255,255,255,0.08);
  --text:    #e8e8f0;
  --muted:   #6b7280;
  --orange:  #f7931a;
  --gold:    #fbbf24;
  --blue:    #627eea;
  --green:   #00d395;
  --purple:  #8b5cf6;
  --red:     #ef4444;
  --cyan:    #06b6d4;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  color: var(--text);
  overflow: hidden;
  user-select: none;
}

#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--blue), var(--green));
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}

#deck { width: 100vw; height: 100vh; position: relative; }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 36px 48px;
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
}
.slide.active { opacity: 1; pointer-events: auto; }

#nav {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  z-index: 100;
}
.nav-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  color: var(--text); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
#counter {
  font-size: 12px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  min-width: 56px; text-align: center;
}

/* ── 共通コンポーネント ── */
.tag {
  font-size: 22px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.divider { width: 44px; height: 2px; background: var(--orange); margin: 10px 0 22px; }

h2 { font-size: clamp(32px, 4.2vw, 62px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; font-family: 'Space Grotesk', sans-serif; }
h3 { font-size: clamp(18px, 2.2vw, 28px); font-weight: 300; color: var(--muted); }

.o  { color: var(--orange); }
.go { color: var(--gold); }
.b  { color: var(--blue); }
.g  { color: var(--green); }
.p  { color: var(--purple); }
.r  { color: var(--red); }
.c  { color: var(--cyan); }

.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bullets li {
  font-size: clamp(16px, 1.9vw, 22px); line-height: 1.65;
  padding-left: 22px; position: relative;
  color: rgba(232,232,240,.85);
}
.bullets li::before { content: '→'; position: absolute; left: 0; color: var(--orange); }
.bullets.blue li::before  { color: var(--blue); }
.bullets.green li::before { color: var(--green); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.card-icon  { font-size: 34px; margin-bottom: 9px; }
.card-title { font-size: 16.5px; font-weight: 600; margin-bottom: 5px; }
.card-body  { font-size: 15.5px; color: var(--muted); line-height: 1.65; }

.badge {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
}
.badge-o  { background: rgba(247,147,26,.14); color: var(--orange); border: 1px solid rgba(247,147,26,.3); }
.badge-go { background: rgba(251,191,36,.14); color: var(--gold);   border: 1px solid rgba(251,191,36,.3); }
.badge-b  { background: rgba(98,126,234,.14); color: var(--blue);   border: 1px solid rgba(98,126,234,.3); }
.badge-g  { background: rgba(0,211,149,.14);  color: var(--green);  border: 1px solid rgba(0,211,149,.3); }
.badge-p  { background: rgba(139,92,246,.14); color: var(--purple); border: 1px solid rgba(139,92,246,.3); }
.badge-r  { background: rgba(239,68,68,.14);  color: var(--red);    border: 1px solid rgba(239,68,68,.3); }
.badge-c  { background: rgba(6,182,212,.14);  color: var(--cyan);   border: 1px solid rgba(6,182,212,.3); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 880px; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; width: 100%; max-width: 900px; }
.grid4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; width: 100%; max-width: 880px; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 860px; }
.compare-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.compare-box h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 13px; }
.compare-box ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.compare-box li { font-size: 13px; padding-left: 16px; position: relative; line-height:1.5; }
.compare-box li::before { position: absolute; left: 0; }
.box-bad  li::before { content: '✕'; color: var(--red); }
.box-good li::before { content: '✓'; color: var(--green); }

.timeline { display: flex; flex-direction: column; width: 100%; max-width: 760px; }
.tl-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 15px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content:''; position: absolute; left: 44px; top: 23px; bottom: 0; width: 1px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-year { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: var(--orange); width: 40px; flex-shrink: 0; padding-top: 3px; text-align: right; }
.tl-dot  { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); flex-shrink: 0; margin-top: 5px; }
.tl-title { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.tl-desc  { font-size: 15px; color: var(--muted); line-height: 1.6; }

.quote { font-size: clamp(22px, 2.6vw, 34px); font-style: italic; line-height: 1.65; max-width: 700px; text-align: center; color: rgba(232,232,240,.9); font-family: 'Space Grotesk', sans-serif; }
.quote-attr { font-size: 14px; color: var(--muted); margin-top: 16px; font-family: 'JetBrains Mono', monospace; }

.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; width: 100%; max-width: 820px; }
.principle-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid; border-radius: 12px; padding: 18px; }
.principle-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.principle-card p  { font-size: 15.5px; color: var(--muted); line-height: 1.7; }

.step-flow { display: flex; align-items: center; gap: 0; width: 100%; max-width: 920px; flex-wrap: wrap; justify-content: center; }
.step { text-align: center; padding: 0 10px; }
.step-icon  { font-size: 34px; margin-bottom: 7px; }
.step-label { font-size: 15px; font-weight: 600; }
.step-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step-arrow { font-size: 18px; color: var(--muted); flex-shrink: 0; }

.halving-table { width: 100%; max-width: 680px; border-collapse: collapse; }
.halving-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); padding: 9px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.halving-table td { font-size: 16px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.04); }
.halving-table td:first-child { font-family: 'JetBrains Mono', monospace; color: var(--orange); }
.halving-table tr.hl td { background: rgba(247,147,26,.07); }

.s2f-row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 700px; margin-bottom: 10px; }
.s2f-label { font-size: 15.5px; width: 205px; flex-shrink: 0; }
.s2f-bar-wrap { flex: 1; background: rgba(255,255,255,.05); border-radius: 4px; height: 22px; overflow: hidden; }
.s2f-bar { height: 100%; border-radius: 4px; }
.s2f-val { font-size: 14px; font-family: 'JetBrains Mono', monospace; width: 56px; flex-shrink: 0; text-align: right; }

/* ═══ スライド背景 ═══ */
#s1  { background: radial-gradient(ellipse at 15% 55%, rgba(247,147,26,.10) 0%, transparent 55%), radial-gradient(ellipse at 85% 50%, rgba(98,126,234,.09) 0%, transparent 55%), var(--bg); text-align: center; }
#s1b { background: radial-gradient(ellipse at 20% 30%, rgba(247,147,26,.07) 0%, transparent 55%), radial-gradient(ellipse at 80% 70%, rgba(251,191,36,.05) 0%, transparent 55%), var(--bg); text-align: center; }
#s2  { background: radial-gradient(ellipse at 90% 20%, rgba(251,191,36,.07) 0%, transparent 55%), var(--bg); }
#s3  { background: radial-gradient(ellipse at 10% 60%, rgba(251,191,36,.06) 0%, transparent 55%), var(--bg); }
#s3b { background: radial-gradient(ellipse at 80% 20%, rgba(251,191,36,.07) 0%, transparent 55%), var(--bg); }
#s4  { background: radial-gradient(ellipse at center, rgba(239,68,68,.05) 0%, transparent 65%), var(--bg); }
#s5  { background: radial-gradient(ellipse at 5% 50%, rgba(0,211,149,.06) 0%, transparent 55%), var(--bg); }
#s6  { background: radial-gradient(ellipse at 95% 30%, rgba(247,147,26,.10) 0%, transparent 50%), var(--bg); }
#s7  { background: radial-gradient(ellipse at 50% 10%, rgba(247,147,26,.08) 0%, transparent 55%), var(--bg); }
#s8  { background: radial-gradient(ellipse at 80% 70%, rgba(247,147,26,.09) 0%, transparent 55%), var(--bg); }
#s9  { background: radial-gradient(ellipse at 20% 70%, rgba(251,191,36,.07) 0%, transparent 55%), var(--bg); }
#s10 { background: radial-gradient(ellipse at 85% 40%, rgba(6,182,212,.07) 0%, transparent 55%), var(--bg); }
#s11 { background: radial-gradient(ellipse at 50% 80%, rgba(247,147,26,.06) 0%, transparent 55%), var(--bg); }
#s11b { background: radial-gradient(ellipse at 10% 50%, rgba(247,147,26,.08) 0%, transparent 50%), radial-gradient(ellipse at 90% 50%, rgba(98,126,234,.07) 0%, transparent 50%), var(--bg); }
#s12 { background: radial-gradient(ellipse at 90% 60%, rgba(98,126,234,.09) 0%, transparent 50%), var(--bg); }
#s12b { background: radial-gradient(ellipse at 20% 70%, rgba(98,126,234,.09) 0%, transparent 55%), var(--bg); }
#s12c { background: radial-gradient(ellipse at 80% 30%, rgba(98,126,234,.08) 0%, transparent 55%), radial-gradient(ellipse at 20% 70%, rgba(247,147,26,.05) 0%, transparent 50%), var(--bg); }
#s13 { background: radial-gradient(ellipse at 10% 60%, rgba(0,211,149,.07) 0%, transparent 55%), var(--bg); }
#s14 { background: radial-gradient(ellipse at 80% 30%, rgba(139,92,246,.09) 0%, transparent 55%), var(--bg); }
#s15 { background: var(--bg); }
#s16 { background: radial-gradient(ellipse at 50% 40%, rgba(247,147,26,.05) 0%, transparent 65%), var(--bg); }
#s17 { background: radial-gradient(ellipse at center, rgba(247,147,26,.07) 0%, transparent 65%), var(--bg); text-align: center; }
#s18 { background: radial-gradient(ellipse at 20% 50%, rgba(247,147,26,.08) 0%, transparent 55%), radial-gradient(ellipse at 80% 55%, rgba(98,126,234,.08) 0%, transparent 55%), var(--bg); text-align: center; }
