:root {
  --main-color: #2d4084;
  --main-soft: #5a6ba8;
  --bg-light: #f7f8fc;
  --bg-main-tint: #eef2ff;
  --text-dark: #2c2c2c;
  --text-muted: #6b7280;
}
.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: #1e293b;
  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;
}
.reveal pre code {
  color: #e2e8f0;
  line-height: 1.6;
}
.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;
}

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

/* 小さい括弧内の補足テキスト */
.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);
}
