/* =============================================
   TASTE: スタイリッシュ
   ベース: ディープネイビー / アクセント: スカイブルー
   配布・自己完結型
   ============================================= */

:root {
  --c-base:         #0F172A;
  --c-main:         #F1F5F9;
  --c-accent:       #38BDF8;
  --c-sub:          #94A3B8;
  --c-border:       rgba(255, 255, 255, 0.10);
  --c-surface:      #1E293B;
  --c-surface-alt:  #263349;
  --c-bridge-bg:    #38BDF8;
  --c-bridge-text:  #0F172A;
  --c-success:      #4ADE80;
  --card-radius:    16px;
  --font-head:      'Noto Sans JP', 'Inter', sans-serif;
  --font-body:      'Noto Sans JP', 'Inter', sans-serif;
}

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

* {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3C!-- モニター本体 --%3E%3Crect x='3' y='3' width='30' height='20' rx='3' fill='%2338BDF8' stroke='%230F172A' stroke-width='2'/%3E%3C!-- 画面 --%3E%3Crect x='6' y='6' width='24' height='14' rx='1.5' fill='%230F172A'/%3E%3C!-- カーソルドット --%3E%3Ccircle cx='18' cy='13' r='2' fill='%2338BDF8'/%3E%3C!-- スタンド --%3E%3Crect x='15' y='23' width='6' height='5' fill='%2338BDF8' stroke='%230F172A' stroke-width='2'/%3E%3C!-- ベース --%3E%3Crect x='10' y='28' width='16' height='3' rx='1.5' fill='%2338BDF8' stroke='%230F172A' stroke-width='2'/%3E%3C/svg%3E") 18 10, auto !important;
}

html, body {
  width: 100%; height: 100%;
  background: var(--c-base);
  font-family: var(--font-body);
  color: var(--c-main);
  overflow: hidden;
}

/* ── Nav Bar ────────────────────────────── */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 44px;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  backdrop-filter: blur(8px);
}
.hamburger {
  background: none; border: none; color: var(--c-main);
  font-size: 18px; cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--c-surface); }
.nav-title {
  flex: 1; font-size: 13px; color: var(--c-sub);
  letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-counter { font-size: 13px; color: var(--c-sub); white-space: nowrap; }

/* ── Sidebar ────────────────────────────── */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
}
.sidebar-backdrop.open { display: block; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 300;
  width: 280px;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  transform: translateX(-280px);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
  padding: 16px 20px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--c-accent);
  border-bottom: 1px solid var(--c-border);
  text-transform: uppercase;
}
.agenda-list { list-style: none; padding: 8px 0; }
.agenda-list li {
  padding: 10px 20px;
  font-size: 13px; color: var(--c-sub);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.agenda-list li:hover { background: rgba(56,189,248,0.08); color: var(--c-main); }
.agenda-list li.active {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  background: rgba(56,189,248,0.10);
}

/* ── Slide Stage ────────────────────────── */
.slide-stage {
  position: fixed;
  top: 44px; left: 0; right: 0; bottom: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-base);
  overflow: hidden;
}

/* ── Slide Base ─────────────────────────── */
.slide {
  container-type: size;
  container-name: slide;
  /* 16:9 を確実に保つ: 幅と高さのどちらかが先に制約に当たる小さい方に合わせる */
  width: min(100vw, calc((100vh - 140px) * 16 / 9));
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--c-base);
  color: var(--c-main);
  display: none;
  flex-direction: column;
}
.slide.active {
  display: flex;
}

/* ── Slide Content Wrapper ──────────────── */
.slide-content {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 5cqw 7cqw;
  gap: 2.2cqw;
  position: relative;
}

/* ── Typography ─────────────────────────── */
.slide-hero   { font-family: var(--font-head); font-size: 7.5cqw; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; color: var(--c-main); }
.slide-title  { font-family: var(--font-head); font-size: 5cqw;   font-weight: 700; line-height: 1.25; letter-spacing: 0.02em; color: var(--c-main); }
.slide-h1     { font-family: var(--font-head); font-size: 4.4cqw; font-weight: 700; line-height: 1.3;  letter-spacing: 0.02em; color: var(--c-main); }
.slide-h2     { font-family: var(--font-head); font-size: 3.2cqw; font-weight: 700; line-height: 1.4;  letter-spacing: 0.02em; color: var(--c-main); }
.slide-h3     { font-family: var(--font-head); font-size: 2.5cqw; font-weight: 700; line-height: 1.5;  letter-spacing: 0.02em; color: var(--c-main); }
.slide-body   { font-family: var(--font-body); font-size: 2.2cqw; font-weight: 400; line-height: 1.7;  letter-spacing: 0.04em; color: var(--c-main); }
.slide-caption{ font-family: var(--font-body); font-size: 1.7cqw; font-weight: 400; line-height: 1.6;  letter-spacing: 0.04em; color: var(--c-sub); }

/* ── Accent Elements ────────────────────── */
.accent-bar {
  width: 5cqw; height: 0.35cqw;
  background: var(--c-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.accent-line-top {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0.35cqw; background: var(--c-accent);
}
.text-accent { color: var(--c-accent); }
.text-sub    { color: var(--c-sub); }

/* ── Section Label ──────────────────────── */
.section-label {
  font-size: 1.6cqw; font-weight: 700;
  letter-spacing: 0.12em; color: var(--c-accent);
  text-transform: uppercase;
}

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

/* ── Grid Layouts ───────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2cqw; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1.8cqw; }
.grid-lf{ display: grid; grid-template-columns: 5fr 7fr; gap: 3cqw; align-items: center; }
.grid-fl{ display: grid; grid-template-columns: 7fr 5fr; gap: 3cqw; align-items: center; }

/* ── Steps ──────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 1.6cqw; }
.step {
  display: flex; align-items: flex-start; gap: 2cqw;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 2cqw 2.5cqw;
}
.step-num {
  width: 4cqw; height: 4cqw; flex-shrink: 0;
  background: var(--c-accent);
  color: var(--c-base);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2cqw; font-weight: 700;
}
.step-body { flex: 1; }
.step-title { font-size: 2.4cqw; font-weight: 700; color: var(--c-main); margin-bottom: 0.5cqw; }
.step-desc  { font-size: 2cqw; color: var(--c-sub); line-height: 1.6; }

/* ── PREP Steps ─────────────────────────── */
.prep-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8cqw; }
.prep-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 2.5cqw 2cqw;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1cqw;
  position: relative;
}
.prep-step::after {
  content: '→';
  position: absolute; right: -1.2cqw; top: 50%; transform: translateY(-50%);
  color: var(--c-accent); font-size: 2cqw; z-index: 1;
}
.prep-step:last-child::after { display: none; }
.prep-letter {
  font-size: 4.5cqw; font-weight: 700;
  color: var(--c-accent); line-height: 1;
}
.prep-word   { font-size: 1.8cqw; font-weight: 700; color: var(--c-main); }
.prep-desc   { font-size: 1.7cqw; color: var(--c-sub); line-height: 1.5; }
.prep-step.last { border: 2px solid var(--c-accent); }

/* ── Before / After ─────────────────────── */
.ba-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2cqw; }
.ba-arrow { font-size: 3cqw; color: var(--c-accent); text-align: center; flex-shrink: 0; }
.ba-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 2.5cqw;
}
.ba-label {
  font-size: 1.6cqw; font-weight: 700; letter-spacing: 0.1em;
  margin-bottom: 1.2cqw;
  padding: 0.4cqw 1.2cqw;
  border-radius: 8px;
  display: inline-block;
}
.ba-label.bad  { background: rgba(248,113,113,0.15); color: #F87171; }
.ba-label.good { background: rgba(74,222,128,0.15);  color: #4ADE80; }
.ba-text { font-size: 2.1cqw; line-height: 1.7; color: var(--c-main); }
.ba-note { font-size: 1.8cqw; color: var(--c-sub); margin-top: 0.8cqw; line-height: 1.5; }

/* ── Color Swatches ─────────────────────── */
.swatches { display: flex; gap: 1.5cqw; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 0.8cqw;
}
.swatch-box {
  width: 6cqw; height: 6cqw;
  border-radius: 12px;
  border: 1px solid var(--c-border);
}
.swatch-label { font-size: 1.6cqw; color: var(--c-sub); }
.swatch-role  { font-size: 1.5cqw; color: var(--c-sub); }

/* ── Table ──────────────────────────────── */
.slide-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.slide-table thead tr { background: var(--c-accent); color: var(--c-base); }
.slide-table th {
  padding: 1.5cqw 2cqw;
  font-size: 2cqw; font-weight: 700;
  text-align: left; letter-spacing: 0.04em;
}
.slide-table td {
  padding: 1.5cqw 2cqw;
  font-size: 2cqw; color: var(--c-main); line-height: 1.6;
  border-bottom: 1px solid var(--c-border);
}
.slide-table tbody tr { background: var(--c-surface); }
.slide-table tbody tr:nth-child(even) { background: var(--c-surface-alt); }

/* ── Checklist ──────────────────────────── */
.checklist      { display: flex; flex-direction: column; gap: 1.1cqw; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; }
.check-item {
  display: flex; align-items: center; gap: 1.2cqw;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1.1cqw 1.6cqw;
}
.check-box {
  width: 2.2cqw; height: 2.2cqw; flex-shrink: 0;
  border: 2px solid var(--c-accent);
  border-radius: 5px;
}
.check-text { font-size: 1.95cqw; line-height: 1.5; color: var(--c-main); }
.check-text strong { color: var(--c-accent); }

/* ── Cover Specific ─────────────────────── */
.cover-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
}
.cover-grid-lines {
  position: absolute; inset: 0; opacity: 0.05;
  background-image:
    linear-gradient(rgba(56,189,248,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.8) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cover-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  width: 100%; height: 100%;
  padding: 7cqw;
}
.cover-tag {
  font-size: 1.8cqw; font-weight: 700;
  letter-spacing: 0.15em; color: var(--c-accent);
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.3);
  padding: 0.5cqw 1.5cqw;
  border-radius: 100px;
  display: inline-block; width: fit-content;
  margin-bottom: 2.5cqw;
}
.cover-tag-row { display: flex; gap: 1cqw; margin-bottom: 2.5cqw; }
.cover-main { margin-bottom: 2cqw; }
.cover-main .slide-hero { display: block; }
.cover-sub {
  font-size: 2.6cqw; color: var(--c-sub); line-height: 1.6;
  margin-bottom: 4cqw;
}
.cover-divider {
  width: 6cqw; height: 0.3cqw;
  background: var(--c-accent);
  margin-bottom: 2.5cqw;
}
.cover-meta { font-size: 1.8cqw; color: var(--c-sub); }

/* ── Statement (F1) ─────────────────────── */
.statement-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  width: 100%; height: 100%;
  padding: 6cqw;
  gap: 2.5cqw;
}
.statement-kicker {
  font-size: 1.8cqw; font-weight: 700;
  letter-spacing: 0.15em; color: var(--c-accent);
}
.statement-main {
  font-size: 4.5cqw; font-weight: 700;
  line-height: 1.35; color: var(--c-main);
}
.statement-sub {
  font-size: 2.2cqw; color: var(--c-sub); line-height: 1.7;
  max-width: 70%;
}

/* ── Overview Cards (Slide2) ────────────── */
.overview-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5cqw;
}
.ov-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--card-radius);
  padding: 1.8cqw 1.6cqw;
  display: flex; flex-direction: column; gap: 0.7cqw;
}
.ov-num  { font-size: 2.8cqw; font-weight: 700; color: var(--c-accent); line-height: 1; }
.ov-title{ font-size: 2cqw;   font-weight: 700; color: var(--c-main); line-height: 1.4; }
.ov-desc { font-size: 1.75cqw; color: var(--c-sub); line-height: 1.55; }

/* ── Split Left/Right ───────────────────── */
.split-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
  align-items: start;
}
.split-col { display: flex; flex-direction: column; gap: 1.5cqw; }

/* ── Tip Box ────────────────────────────── */
.tip-box {
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 12px;
  padding: 1.8cqw 2.5cqw;
  font-size: 2cqw; line-height: 1.7;
  color: var(--c-main);
}
.tip-box strong { color: var(--c-accent); }

/* ── Process Steps (Slide8) ─────────────── */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4cqw; align-items: start;
}
.proc-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 1.8cqw 1.5cqw;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.9cqw;
  position: relative;
}
.proc-step::after {
  content: '→';
  position: absolute; right: -1cqw; top: 38%;
  color: var(--c-accent); font-size: 1.7cqw; z-index: 1;
}
.proc-step:last-child::after { display: none; }
.proc-num {
  width: 3.8cqw; height: 3.8cqw;
  background: var(--c-accent); color: var(--c-base);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2cqw; font-weight: 700;
}
.proc-title { font-size: 2cqw; font-weight: 700; color: var(--c-main); line-height: 1.4; }
.proc-desc  { font-size: 1.7cqw; color: var(--c-sub); line-height: 1.5; }

/* ── Tempo Cards (Slide9) ───────────────── */
.tempo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.tempo-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 2.2cqw 2.5cqw;
  display: flex; flex-direction: column; gap: 1cqw;
}
.tempo-card.highlight { border-color: rgba(56,189,248,0.4); }
.tempo-tag {
  font-size: 1.5cqw; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.35cqw 1.1cqw; border-radius: 100px;
  display: inline-block; width: fit-content;
}
.tempo-tag.fast { background: rgba(251,191,36,0.15); color: #FBB724; }
.tempo-tag.slow { background: rgba(56,189,248,0.15); color: var(--c-accent); }
.tempo-time { font-size: 4cqw; font-weight: 700; color: var(--c-main); line-height: 1; }
.tempo-title{ font-size: 2.1cqw; font-weight: 700; color: var(--c-main); }
.tempo-desc { font-size: 1.85cqw; color: var(--c-sub); line-height: 1.6; }

/* ── Notes Panel ────────────────────────── */
.notes-panel {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(15,23,42,0.96);
  border-top: 1px solid var(--c-border);
  padding: 10px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  max-height: 96px; overflow-y: auto;
  backdrop-filter: blur(8px);
}
.notes-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--c-accent);
  text-transform: uppercase; white-space: nowrap; padding-top: 2px;
}
.notes-text {
  font-size: 13px; line-height: 1.7; color: var(--c-sub);
}

/* ── Slide Nav Arrow Hint ────────────────── */
.nav-hint {
  position: fixed; bottom: 108px; right: 24px; z-index: 60;
  display: flex; gap: 8px;
}
.nav-hint button {
  width: 40px; height: 40px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-sub); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.nav-hint button:hover { background: var(--c-accent); color: var(--c-base); }
