/* ============================================================
   AI導入戦略提案書 — スタイルシート
   テイスト: スタイリッシュ（ディープネイビー × スカイブルー）
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background: #0F172A;
  color: #F1F5F9;
  -webkit-font-smoothing: antialiased;
}

/* ── Theme ── */
:root {
  --c-base:        #0F172A;
  --c-main:        #F1F5F9;
  --c-accent:      #38BDF8;
  --c-sub:         #94A3B8;
  --c-surface:     #1E293B;
  --c-border:      rgba(255,255,255,0.08);
  --c-bridge-bg:   #38BDF8;
  --c-bridge-text: #0F172A;
  --card-radius:   0.8cqw;
}

/* ── Stage & Slide Base ── */
.slide-stage {
  position: fixed; inset: 0;
  background: var(--c-base);
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  background: var(--c-base);
  color: var(--c-main);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  container-type: inline-size;
}
.slide.active { opacity: 1; pointer-events: auto; }

/* ── Typography ── */
.slide-hero    { font-size: 7.2cqw; font-weight: 900; line-height: 1.1;  letter-spacing: 0.01em; }
.slide-h1      { font-size: 4.8cqw; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
.slide-h2      { font-size: 3.2cqw; font-weight: 700; line-height: 1.2;  letter-spacing: 0.01em; }
.slide-h3      { font-size: 2.2cqw; font-weight: 600; line-height: 1.3;  letter-spacing: 0.01em; }
.slide-title   { font-size: 2cqw;   font-weight: 400; line-height: 1.5;  letter-spacing: 0.02em; }
.slide-body    { font-size: 1.6cqw; font-weight: 400; line-height: 1.6;  letter-spacing: 0.02em; }
.slide-caption { font-size: 1.1cqw; font-weight: 300; line-height: 1.6;  letter-spacing: 0.05em; }
.slide-micro   { font-size: 0.9cqw; font-weight: 300; line-height: 1.6;  letter-spacing: 0.05em; }
.slide-number  { font-size: 9.6cqw; font-weight: 900; line-height: 1;    letter-spacing:-0.02em; }

:lang(ja) { line-break: strict; }
.slide-hero,.slide-h1,.slide-h2,.slide-h3 {
  word-break: normal; overflow-wrap: normal; text-wrap: balance; line-break: strict;
}
.slide-title,.slide-body,.slide-caption,.slide-micro,li,blockquote {
  word-break: normal; overflow-wrap: normal; text-wrap: pretty; line-break: strict;
}

/* ── Accent Bar (top of slide) ── */
.slide-accent-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0.3cqw; background: var(--c-accent); z-index: 2;
}

/* ── Slide Content Wrapper ── */
.slide-content {
  width: 100%; height: 100%;
  padding: 4cqw 7cqw;
  display: flex; flex-direction: column; justify-content: center;
  box-sizing: border-box; position: relative; z-index: 1;
}

/* ── Section Tag ── */
.slide-section-tag {
  font-size: 1.1cqw; font-weight: 700;
  letter-spacing: 0.18em; color: var(--c-accent);
  margin-bottom: 2cqw;
}

/* ── Divider ── */
.divider { width: 4cqw; height: 0.2cqw; background: var(--c-accent); margin: 2cqw 0; }

/* ── Card ── */
.card {
  background: var(--c-surface);
  border: 0.1cqw solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 2.5cqw;
}
.card-accent { border-left: 0.3cqw solid var(--c-accent); }

/* ── Grid Layouts ── */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr;       gap: 3cqw;  }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr;   gap: 2.5cqw;}
.split-55{ display: grid; grid-template-columns: 5fr 5fr;        gap: 4cqw; align-items: center; }
.split-46{ display: grid; grid-template-columns: 4fr 6fr;        gap: 4cqw; align-items: center; }

/* ── Bridge Slide ── */
.slide-bridge { background: var(--c-bridge-bg); color: var(--c-bridge-text); }
.bridge-content {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 6cqw 10cqw; position: relative; overflow: hidden;
}
.bridge-section-num {
  font-size: 1.1cqw; font-weight: 700; letter-spacing: 0.2em;
  opacity: 0.5; margin-bottom: 2.5cqw;
}
.bridge-title { font-size: 6cqw; font-weight: 900; line-height: 1.1; color: var(--c-bridge-text); }
.bridge-sub   { font-size: 1.8cqw; font-weight: 400; margin-top: 2.5cqw; opacity: 0.65; line-height: 1.5; }
.bridge-decor-1,.bridge-decor-2 {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(15,23,42,0.1);
}
.bridge-decor-1 { width: 40cqw; height: 40cqw; right: -8cqw;  top: -10cqw; }
.bridge-decor-2 { width: 24cqw; height: 24cqw; right: 14cqw; bottom: -8cqw; }

/* ── Highlight Box ── */
.highlight-box {
  background: rgba(56,189,248,0.1);
  border-left: 0.3cqw solid var(--c-accent);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: 1.5cqw 2cqw;
}

/* ── Bullet List ── */
.slide-list { list-style: none; display: flex; flex-direction: column; gap: 1.8cqw; }
.slide-list li {
  font-size: 1.6cqw; line-height: 1.55; color: var(--c-main);
  padding-left: 2.2cqw; position: relative;
}
.slide-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55cqw;
  width: 0.55cqw; height: 0.55cqw; background: var(--c-accent); border-radius: 50%;
}

/* ── Metric Card ── */
.metric-card { text-align: center; }
.metric-row  { display: flex; align-items: baseline; justify-content: center; gap: 0.4cqw; }
.metric-value{ font-size: 7.2cqw; font-weight: 900; color: var(--c-accent); line-height: 1; letter-spacing: -0.02em; }
.metric-unit { font-size: 2.8cqw; font-weight: 700; color: var(--c-accent); }
.metric-label{ font-size: 1.3cqw; color: var(--c-sub); margin-top: 1.2cqw; line-height: 1.5; }

/* ── Bar Chart ── */
.bar-chart { width: 100%; display: flex; flex-direction: column; gap: 1.6cqw; }
.bar-row   { display: flex; align-items: center; gap: 1.5cqw; }
.bar-label { width: 16cqw; font-size: 1.4cqw; color: var(--c-main); text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 2.2cqw; background: rgba(255,255,255,0.06); border-radius: 0.3cqw; overflow: hidden; }
.bar-fill  { height: 100%; width: 0; background: var(--c-accent); border-radius: 0.3cqw; transition: width 0.9s ease 0.3s; }
.slide.active .bar-fill { width: var(--bar-w); }
.bar-pct   { width: 4.5cqw; font-size: 1.5cqw; font-weight: 700; color: var(--c-accent); flex-shrink: 0; }

/* ── Phase Card ── */
.phase-card {
  background: var(--c-surface);
  border: 0.1cqw solid var(--c-border);
  border-top: 0.25cqw solid var(--c-accent);
  border-radius: var(--card-radius);
  padding: 2.5cqw 2cqw;
  display: flex; flex-direction: column; gap: 1.5cqw;
}
.phase-num  { font-size: 1.1cqw; font-weight: 700; letter-spacing: 0.12em; color: var(--c-accent); }
.phase-goal { font-size: 1.4cqw; color: var(--c-sub); line-height: 1.5; }

/* ── Initiative Item ── */
.initiative-item {
  background: var(--c-surface);
  border: 0.1cqw solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 1.5cqw 2cqw;
  display: flex; align-items: flex-start; gap: 1.5cqw;
}
.initiative-num  { font-size: 1.6cqw; font-weight: 900; color: var(--c-accent); flex-shrink: 0; line-height: 1.3; }
.initiative-text { font-size: 1.4cqw; color: var(--c-main); line-height: 1.55; }

/* ── Risk Table ── */
.risk-table { width: 100%; border-collapse: collapse; }
.risk-table th {
  background: rgba(56,189,248,0.12); color: var(--c-accent);
  padding: 1.2cqw 1.8cqw; font-size: 1.3cqw; font-weight: 600; text-align: left;
  border-bottom: 0.1cqw solid rgba(255,255,255,0.1);
}
.risk-table td {
  padding: 1.5cqw 1.8cqw; font-size: 1.35cqw;
  border-bottom: 0.1cqw solid rgba(255,255,255,0.05);
  vertical-align: top; line-height: 1.55;
}
.risk-table tr:last-child td { border-bottom: none; }
.risk-badge {
  display: inline-block; padding: 0.3cqw 1cqw;
  border-radius: 100px; font-size: 1.1cqw; font-weight: 600;
}
.risk-h { background: rgba(239,68,68,0.15);  color: #FCA5A5; }
.risk-m { background: rgba(251,191,36,0.15); color: #FDE68A; }

/* ── Compare Cards ── */
.compare-card {
  background: var(--c-surface);
  border: 0.1cqw solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 2.5cqw;
  display: flex; flex-direction: column; gap: 1.8cqw;
}
.compare-header {
  font-size: 1.8cqw; font-weight: 700; padding-bottom: 1.5cqw;
  border-bottom: 0.1cqw solid var(--c-border);
}
.compare-row { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.compare-label{ font-size: 1.3cqw; color: var(--c-sub); }
.compare-val  { font-size: 1.5cqw; font-weight: 600; }

/* ── Cost Card ── */
.cost-card {
  background: var(--c-surface);
  border: 0.1cqw solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 2.5cqw 2cqw; text-align: center;
}
.cost-phase{ font-size: 1.1cqw; font-weight: 700; letter-spacing: 0.12em; color: var(--c-accent); margin-bottom: 1cqw; }
.cost-val  { font-size: 4cqw;   font-weight: 900; color: var(--c-main);   line-height: 1; }
.cost-unit { font-size: 1.6cqw; font-weight: 600; color: var(--c-sub); }
.cost-desc { font-size: 1.2cqw; color: var(--c-sub); margin-top: 1cqw; line-height: 1.5; }

/* ── Decision Item ── */
.decision-item {
  display: flex; align-items: flex-start; gap: 2.5cqw;
  padding: 2cqw 2.5cqw;
  background: var(--c-surface);
  border: 0.1cqw solid var(--c-border);
  border-radius: var(--card-radius);
}
.decision-num  { font-size: 3.6cqw; font-weight: 900; color: var(--c-accent); line-height: 1; flex-shrink: 0; min-width: 4cqw; }
.decision-text { font-size: 1.6cqw; line-height: 1.55; }
.decision-sub  { font-size: 1.3cqw; color: var(--c-sub); margin-top: 0.6cqw; }

/* ── Cover Decor ── */
.cover-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.2cqw); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { opacity: 0; }
.slide.active .anim-fade-up { animation: fadeUp 400ms ease forwards; }
.slide.active .anim-fade-up:nth-child(1) { animation-delay:  40ms; }
.slide.active .anim-fade-up:nth-child(2) { animation-delay: 120ms; }
.slide.active .anim-fade-up:nth-child(3) { animation-delay: 200ms; }
.slide.active .anim-fade-up:nth-child(4) { animation-delay: 280ms; }
.slide.active .anim-fade-up:nth-child(5) { animation-delay: 360ms; }
.slide.active .anim-fade-up:nth-child(6) { animation-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Status Bar ── */
.status-bar {
  position: fixed; top: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  background: rgba(15,23,42,0.75); backdrop-filter: blur(8px);
  border-bottom-left-radius: 10px;
  font-family: 'Noto Sans JP', sans-serif;
}
.status-section{ font-size: 12px; font-weight: 600; color: #F1F5F9; }
.status-time   { font-size: 11px; color: #38BDF8; }
.status-counter{ font-size: 11px; color: #64748B; }
.menu-btn {
  background: none; border: 1px solid rgba(255,255,255,0.15); color: #F1F5F9;
  width: 30px; height: 30px; border-radius: 6px;
  cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms; z-index: 90;
}
.menu-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Sidebar ── */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 300ms;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 260px;
  background: #1E293B; z-index: 400;
  transform: translateX(260px); transition: transform 300ms ease;
  overflow-y: auto; border-left: 1px solid rgba(255,255,255,0.08);
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; font-weight: 600; color: #F1F5F9;
}
.sidebar-close { background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 14px; padding: 4px; }
.agenda-list { list-style: none; padding: 0 0 8px; }

/* Section header */
.agenda-section-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #38BDF8;
}
.agenda-section-header:first-child { border-top: none; margin-top: 0; }
.agenda-section-time { font-size: 10px; font-weight: 400; color: #475569; letter-spacing: 0; text-transform: none; }

/* Individual slide row */
.agenda-slide-item { list-style: none; }
.agenda-slide-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px 18px 6px 18px;
  background: none; border: none; border-left: 3px solid transparent;
  font-family: 'Noto Sans JP', sans-serif; font-size: 12px;
  color: #64748B; cursor: pointer; text-align: left;
  transition: color 180ms, background 180ms, border-color 180ms;
}
.agenda-slide-btn:hover { background: rgba(255,255,255,0.05); color: #CBD5E1; }
.agenda-slide-item.active .agenda-slide-btn {
  color: #F1F5F9; border-left-color: #38BDF8; background: rgba(56,189,248,0.08);
}
.agenda-slide-num {
  flex-shrink: 0; font-size: 10px; font-variant-numeric: tabular-nums;
  color: #475569; min-width: 18px;
}
.agenda-slide-item.active .agenda-slide-num { color: #38BDF8; }
.agenda-slide-label { line-height: 1.4; }

/* ── Notes Panel ── */
.notes-trigger { position: fixed; bottom: 0; left: 0; right: 0; height: 48px; z-index: 100; }
.notes-panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-height: 28vh; background: rgba(15,23,42,0.96);
  border-top: 1px solid rgba(56,189,248,0.25);
  backdrop-filter: blur(8px); z-index: 150;
  transform: translateY(100%); transition: transform 200ms ease;
  overflow-y: auto;
}
.notes-panel.open { transform: translateY(0); }
.notes-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: #38BDF8; padding: 8px 20px 0; }
.notes-content { padding: 6px 20px 14px; font-size: 12px; line-height: 1.7; color: #94A3B8; font-family: 'Noto Sans JP', sans-serif; }
