/* ============================================================
   seminar0721 カスタムテーマ（Reveal.js 6 / 1280x720）
   ダーク基調・日本語システムフォント・CDN 非依存
   ============================================================ */

:root {
  --bg: #0b1020;
  --bg-soft: #131a2e;
  --panel: #1a2238;
  --panel-edge: #2a3554;
  --text: #e8ecf4;
  --muted: #8a94a8;
  --accent: #5eead4;   /* teal — 主アクセント（数字・強調） */
  --accent2: #f5a623;  /* amber — 副アクセント（警告・対比） */
  --accent3: #7aa2ff;  /* blue — 図中の第3系列 */
  --danger: #ff7a7a;
  --r-main-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", system-ui, sans-serif;
}

.reveal-viewport { background: var(--bg); }

.reveal {
  font-family: var(--r-main-font);
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
}

.reveal .slides section {
  text-align: left;
  padding: 26px 44px;
  box-sizing: border-box;
  height: 100%;
}

/* ---------- 見出し ---------- */
.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--r-main-font);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 24px 0;
}
.reveal h1 { font-size: 1.9em; line-height: 1.25; }
.reveal h2 { font-size: 1.35em; line-height: 1.3; border-bottom: 2px solid var(--panel-edge); padding-bottom: 12px; }
.reveal h3 { font-size: 1.05em; color: var(--accent); }

.reveal .kicker {
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 10px 0;
}

/* ---------- 表紙 ---------- */
.reveal .title-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #16234a 0%, var(--bg) 60%);
}
.reveal .title-slide h1 { font-size: 2.1em; margin-bottom: 10px; }
.reveal .title-slide .subtitle { font-size: 1.05em; color: var(--accent); font-weight: 600; margin-bottom: 48px; }
.reveal .title-slide .speaker { font-size: 0.75em; color: var(--muted); }
.reveal .title-slide .speaker strong { color: var(--text); font-size: 1.2em; }

/* ---------- パート扉 ---------- */
.reveal .part-divider {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(135deg, #101735 0%, var(--bg) 70%);
}
.reveal .slides section.part-divider::before {
  content: "PART " attr(data-part);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 18px;
}
.reveal .part-divider h2 { font-size: 1.85em; border: none; }
.reveal .part-divider .lede { color: var(--muted); font-size: 0.8em; margin-top: 6px; }

/* ---------- 縦センター（内容が少ないスライド用） ---------- */
.reveal .slides section.v-center {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

/* ---------- 大メッセージ ---------- */
.reveal .big-statement {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}
.reveal .big-statement p.main {
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

/* ---------- カード ---------- */
.reveal .cards { display: grid; gap: 20px; margin: 10px 0; }
.reveal .cards.cols-2 { grid-template-columns: 1fr 1fr; }
.reveal .cards.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.reveal .cards.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.reveal .card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 0.72em;
  line-height: 1.5;
}
.reveal .card .card-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.0em;
  margin: 0 0 8px 0;
  display: block;
}
.reveal .card p { margin: 0 0 6px 0; }
.reveal .card.warn { border-color: var(--accent2); }
.reveal .card.warn .card-title { color: var(--accent2); }

/* ---------- 統計 ---------- */
.reveal .stat { display: inline-flex; flex-direction: column; align-items: flex-start; margin: 6px 26px 6px 0; }
.reveal .stat .stat-num {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.reveal .stat .stat-label { font-size: 0.62em; color: var(--muted); margin-top: 2px; }
.reveal .stat.amber .stat-num { color: var(--accent2); }

/* ---------- 2カラム ---------- */
.reveal .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.reveal .two-col.w64 { grid-template-columns: 6fr 4fr; }
.reveal .two-col.w46 { grid-template-columns: 4fr 6fr; }

/* ---------- 画像額装 ---------- */
.reveal figure.framed { margin: 0; }
.reveal figure.framed img {
  max-width: 100%;
  max-height: 480px;
  border-radius: 12px;
  border: 1px solid var(--panel-edge);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.reveal figure.framed figcaption { font-size: 0.55em; color: var(--muted); margin-top: 10px; }

/* ---------- リスト・テーブル ---------- */
.reveal ul, .reveal ol { margin: 0 0 0 1.1em; }
.reveal li { margin-bottom: 10px; font-size: 0.85em; }
.reveal li li { font-size: 0.92em; }
.reveal table { font-size: 0.62em; border-collapse: collapse; margin: 12px 0; width: 100%; }
.reveal th { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--panel-edge); padding: 8px 14px; text-align: left; }
.reveal td { border-bottom: 1px solid var(--panel-edge); padding: 8px 14px; }

/* ---------- 強調・出典 ---------- */
.reveal .hl { color: var(--accent); font-weight: 700; }
.reveal .hl2 { color: var(--accent2); font-weight: 700; }
.reveal .src {
  position: absolute;
  bottom: 14px;
  left: 44px;
  right: 44px;
  font-size: 0.42em;
  color: var(--muted);
  margin: 0;
}
.reveal .note-inline { font-size: 0.6em; color: var(--muted); }

/* ---------- コード風表示（ログ演出用） ---------- */
.reveal pre.log {
  background: #060a14;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.5em;
  line-height: 1.6;
  color: #9fe8d9;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-all;
  width: 100%;
  box-shadow: none;
  margin: 12px 0;
}

/* ---------- デモ埋め込み ---------- */
.reveal .demo-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px 0; }
.reveal .btn {
  display: inline-block;
  font-size: 0.52em;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--r-main-font);
}
.reveal .btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.reveal .btn.amber { background: var(--accent2); color: var(--bg); }
.reveal .demo-frame {
  width: 100%;
  height: 520px;
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

/* ---------- SVG 図 ---------- */
.reveal svg { max-width: 100%; height: auto; }
.reveal svg text { font-family: var(--r-main-font); }

/* ---------- 進捗バー・ページ番号 ---------- */
.reveal .progress { color: var(--accent); height: 4px; }
.reveal .slide-number {
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  right: 18px;
  bottom: 12px;
}
