:root {
  --main-color: #2d4084;
  --main-soft: #5a6ba8;
  --bg-light: #f7f8fc;
  --bg-main-tint: #eef2ff;
  --text-dark: #2c2c2c;
  --text-muted: #6b7280;
}
strong {
  display: inline-block !important;
}

/* ============================================
   画像クリックで拡大できるライトボックス
   img に `zoomable` クラスを付け、各スライドで
   ../assets/lightbox.js を読み込む
   ============================================ */
.reveal img.zoomable {
  cursor: zoom-in;
  transition: filter 0.15s ease;
  position: relative;
}
.reveal .zoomable-wrap {
  position: relative;
  display: block;
  line-height: 0;
}
.reveal .zoomable-wrap::after {
  content: "🔍 クリックで拡大";
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(20, 23, 34, 0.85);
  color: #fff;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  pointer-events: none;
  letter-spacing: 0.04em;
  line-height: 1;
}
.image-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 12, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 32px;
  cursor: zoom-out;
}
.image-lightbox.is-open {
  display: flex;
}
.image-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.image-lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 12px;
}
.reveal {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 32px;
  color: var(--text-dark);
}
.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  color: var(--main-color);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-break: strict;
  max-width: 100%;
  line-height: 1.35;
}
.reveal h1 {
  font-size: 1.8em;
}
.reveal h2 {
  font-size: 1.25em;
  margin-bottom: 0.6em;
}
.reveal h3 {
  font-size: 1em;
}
.reveal p {
  line-height: 1.7;
}
.reveal code,
.reveal pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.reveal pre {
  background: #272822;
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 1em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 88%;
  margin: 16px auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reveal pre code {
  color: #f8f8f2;
  line-height: 1.6;
  white-space: inherit;
}
.reveal pre code.hljs {
  background: transparent;
  color: #f8f8f2;
}
.reveal .slide-number {
  color: var(--main-color);
  font-family: "Roboto", sans-serif;
}
.reveal section {
  text-align: left;
  padding: 50px 70px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.reveal section > * {
  max-width: 100%;
}
.reveal .title-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
}
.reveal .title-slide h1 {
  font-size: 2.2em;
  line-height: 1.4;
}
.reveal .title-slide .subtitle {
  color: var(--text-muted);
}
.reveal .title-slide .date {
  font-family: "Roboto", sans-serif;
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 30px;
}
.reveal .section-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.reveal .section-slide h1 {
  font-size: 1.8em;
  border-bottom: 4px solid var(--main-color);
  padding-bottom: 8px;
  display: inline-block;
}
.reveal .section-slide p {
  color: var(--text-muted);
}
.highlight-box {
  background: var(--bg-light);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 20px 0;
  line-height: 1.7;
}
.highlight-box.accent {
  background: var(--bg-main-tint);
}
.highlight-box > strong:first-child {
  display: block;
  margin-bottom: 8px;
}
.highlight-box > ul,
.highlight-box > ol {
  margin: 0;
  padding-left: 1.4em;
}
.reveal ul,
.reveal ol {
  line-height: 1.9;
}
.reveal li {
  margin-bottom: 6px;
}
.reveal table {
  font-size: 0.85em;
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}
.reveal table th {
  background: var(--main-color);
  color: white;
  padding: 10px 14px;
  text-align: left;
}
.reveal table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.tag {
  display: inline-block;
  background: var(--main-color);
  color: white;
  font-size: 0.55em;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-family: "Roboto", sans-serif;
}
.tag.orange {
  background: var(--main-soft);
}
.tag.green {
  background: var(--main-soft);
}
.columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.columns > div {
  flex: 1;
}
.reveal .profile-slide {
  display: flex !important;
  align-items: center;
  gap: 48px;
}
.reveal .profile-slide .portrait {
  flex: 0 0 auto;
  width: 30%;
  max-width: 280px;
}
.reveal .profile-slide .portrait img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}
.reveal .profile-slide .bio {
  flex: 1;
  font-size: 0.85em;
}
.reveal .profile-slide .bio h2 {
  margin-top: 0;
}
.reveal .profile-slide .bio .role {
  color: var(--text-muted);
  font-size: 0.9em;
  margin: 0 0 0.8em;
}
.reveal .profile-slide .bio ul {
  line-height: 1.7;
  margin: 0;
  padding-left: 1.2em;
}
.reveal .profile-slide .bio li {
  margin-bottom: 4px;
}
.reveal code:not(pre code) {
  background: #eef2ff;
  color: var(--main-color);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ============================================
   再利用パターン
   ============================================ */

/* チェックアイコン付きのリスト（共通アセット check-icon.svg を弾丸に使う） */
.reveal ul.check-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.reveal ul.check-list > li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.6em;
  line-height: 1.7;
}
.reveal ul.check-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.1em;
  height: 1.1em;
  background: url("common/check-icon.svg") no-repeat center / contain;
}

/* Lucide アイコン（オフライン / SVG スプライト経由） */
.reveal .icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  stroke: currentColor;
}
.reveal .icon-lg {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.3em;
}
.reveal .icon-xl {
  width: 2em;
  height: 2em;
  vertical-align: -0.45em;
}
.reveal .tag .icon {
  width: 0.9em;
  height: 0.9em;
  margin-right: 4px;
  vertical-align: -0.15em;
}

/* 小さい括弧内の補足テキスト */
.reveal .paren-note {
  font-size: 0.75em;
}
.reveal .muted {
  color: var(--text-muted);
}
.reveal .note-caption {
  font-size: 0.9em;
  color: var(--text-muted);
}

/* 2カラム比較（大文字の漢字が背景に透けるやつ） */
.reveal .compare-big {
  display: flex;
  gap: 48px;
  margin-top: 1.4em;
  align-items: stretch;
}
.reveal .compare-big > .side {
  flex: 1;
  position: relative;
  padding-left: 92px;
  min-height: 140px;
}
.reveal .compare-big > .divider {
  width: 1px;
  background: #e5e7eb;
}
.reveal .compare-big .bg-char {
  position: absolute;
  left: -4px;
  top: -16px;
  font-size: 6em;
  font-weight: 900;
  color: var(--main-color);
  opacity: 0.12;
  line-height: 1;
  font-family: "Noto Sans JP", sans-serif;
}
.reveal .compare-big h3 {
  margin: 0 0 8px;
  color: var(--main-color);
  font-size: 1.2em;
}
.reveal .compare-big p {
  margin: 0;
  font-size: 0.85em;
  line-height: 1.85;
}

/* ボックスモデル図解（margin→padding→content の入れ子） */
.reveal .box-model {
  border: 2px dashed var(--main-color);
  padding: 8px;
  border-radius: 4px;
}
.reveal .box-model .bm-label {
  font-family: "Roboto", sans-serif;
  font-size: 0.55em;
  color: var(--main-color);
  margin-bottom: 4px;
}
.reveal .box-model .bm-label.muted {
  color: var(--text-muted);
}
.reveal .box-model .border-layer {
  border: 4px solid var(--main-color);
  padding: 6px;
  border-radius: 4px;
}
.reveal .box-model .border-label {
  color: #fff;
  background: var(--main-color);
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}
.reveal .box-model .padding-layer {
  background: var(--bg-main-tint);
  padding: 14px;
  border-radius: 4px;
}
.reveal .box-model .content-layer {
  background: #fff;
  padding: 12px 14px;
  border-radius: 4px;
}

/* ファイルツリー（黒背景 + 色分けファイル名） */
.reveal pre.file-tree {
  font-size: 0.85em;
  width: auto;
  margin: 0;
  padding: 20px 24px;
}
.reveal .file-tree .dir {
  color: #94a3b8;
}
.reveal .file-tree .html-file {
  color: #fbbf24;
}
.reveal .file-tree .css-file {
  color: #60a5fa;
}

/* コード → 矢印 → コード のフロー */
.reveal .code-flow {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 0.8em;
}
.reveal .code-flow > .code-side {
  flex: 1;
}
.reveal .code-flow .cf-label {
  margin: 0 0 6px;
  font-family: "Roboto", sans-serif;
  font-size: 0.7em;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
.reveal .code-flow .cf-label.html {
  color: #fbbf24;
}
.reveal .code-flow .cf-label.css {
  color: #60a5fa;
}
.reveal .code-flow .arrow {
  flex: 0 0 auto;
  font-size: 2em;
  color: var(--main-color);
  font-weight: 300;
}
.reveal .code-flow .hl {
  background: rgba(251, 191, 36, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Do/Don't 比較（❌ vs ✅ の2カラム） */
.reveal .dodont {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.reveal .dodont > div {
  flex: 1;
}
.reveal .dodont .dd-label {
  font-weight: 700;
  margin: 0 0 6px;
}
.reveal .dodont .dd-note {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* デモ用小さなプレビューカード（ポップ / 業務マニュアル風） */
.reveal .demo-preview {
  font-size: 0.7em;
  padding: 14px;
  border-radius: 8px;
}
.reveal .demo-preview.pop {
  background: #fff8e1;
  border: 3px solid #ff6b9d;
  border-radius: 16px;
}
.reveal .demo-preview.pop .dp-title {
  color: #e91e63;
  font-weight: 900;
  margin: 0 0 6px;
}
.reveal .demo-preview.pop .dp-body {
  color: #ff6b35;
  margin: 0;
}
.reveal .demo-preview.biz {
  background: #fff;
  border-left: 4px solid var(--main-color);
}
.reveal .demo-preview.biz .dp-title {
  color: var(--main-color);
  font-weight: 700;
  margin: 0 0 6px;
}
.reveal .demo-preview.biz .dp-body {
  color: #333;
  margin: 0;
}

/* 素のHTMLプレビュー（ブラウザのデフォルト風・読みにくさを強調） */
.reveal .preview-plain {
  background: #fff;
  padding: 8px 10px;
  font-family: "Times New Roman", "YuMincho", serif;
  color: #000;
  font-size: 0.7em;
  line-height: 1.2;
}
.reveal .preview-plain .pp-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0.3em 0;
}
.reveal .preview-plain .pp-subtitle {
  font-size: 1.3em;
  font-weight: bold;
  margin: 0.4em 0 0.2em;
}
.reveal .preview-plain .pp-body {
  margin: 0 0 0.3em;
}
.reveal .preview-plain .pp-list {
  margin: 0;
  padding-left: 2em;
  line-height: 1.3;
}
.reveal .preview-plain .pp-list li {
  margin: 0;
}

/* 整えた HTML+CSS のプレビュー（対比を強く） */
.reveal .preview-styled {
  background: #fff;
  padding: 18px 22px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 0.72em;
  line-height: 1.7;
  color: #333;
}
.reveal .preview-styled .ps-title {
  color: var(--main-color);
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 0.4em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--bg-main-tint);
}
.reveal .preview-styled .ps-body {
  color: var(--text-muted);
  font-size: 0.92em;
  margin: 0 0 0.8em;
}
.reveal .preview-styled .ps-subtitle {
  color: var(--main-color);
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 0.4em;
}
.reveal .preview-styled .ps-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
}
.reveal .preview-styled .ps-list li {
  margin-bottom: 2px;
}
.reveal .preview-styled .ps-list strong {
  color: var(--main-color);
}

/* Yes/No 判定チャート */
.reveal .yn-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 0.6em;
}
.reveal .yn-flow .yn-q {
  background: var(--bg-main-tint);
  color: var(--main-color);
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 1.05em;
  text-align: center;
}
.reveal .yn-flow .yn-branches {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
}
.reveal .yn-flow .yn-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.reveal .yn-flow .yn-arrow {
  margin: 1em 0;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 0.05em;
}
.reveal .yn-flow .yn-arrow.yes {
  color: #1f9d6c;
}
.reveal .yn-flow .yn-arrow.no {
  color: #b0493e;
}
.reveal .yn-flow .yn-dest {
  background: var(--main-color);
  color: #fff;
  padding: 28px 38px;
  border-radius: 8px;
  text-align: center;
  min-width: 230px;
}
.reveal .yn-flow .yn-dest .yn-dest-id {
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}
.reveal .yn-flow .yn-dest .yn-dest-who {
  margin-top: 1em;
  font-size: 0.8em;
  line-height: 1.75;
  opacity: 0.95;
}

/* BSタイムライン帯（5分独学 + 15分でチューターが5分×3組を巡回） */
.reveal .bs-timeline {
  display: flex;
  gap: 10px;
  margin: 1em 0 0.4em;
  align-items: stretch;
}
.reveal .bs-timeline .bst-slot {
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reveal .bs-timeline .bst-solo {
  flex: 5;
  background: var(--bg-light);
  border: 2px dashed var(--main-color);
}
.reveal .bs-timeline .bst-tutor {
  flex: 15;
  background: var(--bg-main-tint);
}
.reveal .bs-timeline .bst-tutor.r2 {
  flex: 9;
}
.reveal .bs-timeline .bst-time {
  font-family: "Roboto", sans-serif;
  font-size: 0.68em;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.reveal .bs-timeline .bst-label {
  font-size: 0.78em;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.reveal .bs-timeline .bst-tutor-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.reveal .bs-timeline .bst-tutor-cell {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--main-color);
  color: var(--main-color);
  padding: 8px 4px;
  text-align: center;
  font-size: 0.7em;
  font-weight: 700;
  border-radius: 6px;
  line-height: 1.3;
}
.reveal .bs-timeline .bst-tutor-cell small {
  display: block;
  font-weight: 400;
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* フローステップ（縦並びの番号付きステップ、線で繋がる） */
.reveal .flow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: fs;
}
.reveal .flow-steps li {
  counter-increment: fs;

  gap: 12px;
  padding: 0.5em 1em 0.5em 3em;
  font-size: 0.8em;
  margin: 0;
  position: relative;
  line-height: 1.75;
}
.reveal .flow-steps li::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  content: counter(fs);
  flex: 0 0 auto;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--main-color);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 1em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* スマホ画面ワイヤフレーム */
.reveal .wireframe {
  border: 2px solid var(--main-color);
  border-radius: 16px;
  padding: 14px 12px;
  width: 200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}
.reveal .wireframe .wf-header {
  font-size: 0.6em;
  font-weight: 700;
  text-align: center;
  color: var(--main-color);
  border-bottom: 1px solid var(--main-color);
  padding-bottom: 4px;
}
.reveal .wireframe .wf-zone {
  background: var(--bg-main-tint);
  padding: 10px 8px;
  border-radius: 4px;
  font-size: 0.62em;
  color: var(--text-dark);
  border: 1px dashed var(--main-soft);
  text-align: center;
}
.reveal .wireframe .wf-problem {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.reveal .wireframe .wf-input {
  background: #fff;
  border: 1px solid #cfcfd8;
  color: #9aa0a6;
}
.reveal .wireframe .wf-btn {
  background: var(--main-color);
  color: #fff;
  font-weight: 700;
  border: none;
}
.reveal .wireframe .wf-meta {
  text-align: right;
  font-size: 0.58em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 2px 4px;
}
