/* =====================================
   Pop / Zine テイスト（2026-06-07 surflab 系統）
   ライト基調・黒太枠・黄色マーカー・オフセット影
===================================== */

:root {
  --ink: #1f2528;
  --muted: #667078;
  --paper: #fffdf7;
  --blue: #dff3ff;
  --blue-strong: #2c91bd;
  --yellow: #fff1a7;
  --yellow-strong: #c59716;
  --pink: #ffe3ed;
  --pink-strong: #d2527f;
  --purple: #ede7ff;
  --purple-strong: #7965c9;
  --green: #dff5df;
  --green-strong: #388a45;
  --red: #ffe5df;
  --red-strong: #c85e45;
  --shadow: 0 24px 60px rgba(28, 38, 48, 0.18);
  --hard: 8px 8px 0 rgba(31, 37, 40, 0.12);
  --font-main: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
}

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

html {
  font-size: 18px;
}

body {
  font-family: var(--font-main);
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(223, 243, 255, 0.72), rgba(255, 241, 167, 0.42) 38%, rgba(255, 227, 237, 0.46) 72%, rgba(237, 231, 255, 0.62)),
    #f3f5f1;
  overflow: hidden;
  word-break: auto-phrase;
}

/* =====================================
   ローディング
===================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border: 5px solid rgba(31, 37, 40, 0.12);
  border-top-color: var(--blue-strong);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--muted);
  font-weight: 700;
}

.loading-count {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.loading-bar-track {
  width: 260px;
  height: 12px;
  margin: 0.7rem auto 0;
  background: rgba(31, 37, 40, 0.08);
  border: 2px solid rgba(31, 37, 40, 0.5);
  border-radius: 999px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-strong), var(--green-strong));
  border-radius: 999px;
  transition: width 0.25s ease-out;
}

.loading-pct {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue-strong);
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}

/* =====================================
   スクロール機構（script.js 依存）
===================================== */
.slides-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.slide {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 78px);
  background: var(--paper);
  overflow: hidden;
}

/* 紙の内側に手描き風の二重枠 */
.slide::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 3px solid rgba(31, 37, 40, 0.12);
  pointer-events: none;
  z-index: 0;
}

/* 背景の淡いバリエーション */
.slide:nth-child(4n+2) { background: linear-gradient(160deg, #fffdf7 0%, #fef6ee 100%); }
.slide:nth-child(4n+3) { background: linear-gradient(160deg, #fffdf7 0%, #f4faff 100%); }
.slide:nth-child(4n) { background: linear-gradient(160deg, #fffdf7 0%, #fbf4ff 100%); }

.slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1340px, 90vw);
  margin: 0 auto;
  text-align: left;
}

/* =====================================
   キッカー（黄色マーカーのラベル）
===================================== */
.kicker {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.9rem;
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 22px);
  background: var(--yellow);
  border: 2px solid rgba(31, 37, 40, 0.78);
  box-shadow: 5px 5px 0 rgba(31, 37, 40, 0.12);
}

.kicker.blue { background: var(--blue); }
.kicker.pink { background: var(--pink); }
.kicker.green { background: var(--green); }
.kicker.purple { background: var(--purple); }
.kicker.center { display: table; margin-left: auto; margin-right: auto; }

/* =====================================
   タイポグラフィ
===================================== */
h1 {
  font-size: clamp(46px, 5.6vw, 86px);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

h3 {
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.25;
}

p {
  font-size: clamp(18px, 1.7vw, 27px);
  line-height: 1.5;
  font-weight: 600;
  color: #344047;
}

.lead {
  max-width: 1100px;
  margin: 1.4rem 0 0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.45;
  font-weight: 700;
  color: #344047;
}

.center .lead,
.slide-title .lead,
.slide-ending .lead {
  margin-left: auto;
  margin-right: auto;
}

/* 強調表現 */
.accent { color: var(--blue-strong); font-weight: 800; }
.accent-pink { color: var(--pink-strong); font-weight: 800; }
.accent-green { color: var(--green-strong); font-weight: 800; }
.accent-purple { color: var(--purple-strong); font-weight: 800; }

/* 蛍光ペン風ハイライト */
.hl {
  font-weight: 800;
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hl-pink { background: linear-gradient(transparent 55%, var(--pink) 55%); }
.hl-green { background: linear-gradient(transparent 55%, var(--green) 55%); }

/* =====================================
   カード（point-box）
===================================== */
.cols {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.box {
  padding: 1.5rem 1.6rem;
  border: 3px solid rgba(31, 37, 40, 0.78);
  background: #fff;
  box-shadow: var(--hard);
}

.box h3 { margin-bottom: 0.6rem; }

.box p {
  font-size: clamp(16px, 1.5vw, 23px);
  line-height: 1.45;
}

.box.blue { background: var(--blue); }
.box.yellow { background: var(--yellow); }
.box.pink { background: var(--pink); }
.box.green { background: var(--green); }
.box.purple { background: var(--purple); }
.box.red { background: var(--red); }

/* 番号バッジ */
.box .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 1.1rem;
}

/* =====================================
   画像フレーム
===================================== */
.frame {
  margin: 1.4rem auto 0;
  border: 3px solid rgba(31, 37, 40, 0.82);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(1180px, 86%);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.frame.narrow { width: min(880px, 72%); }

/* =====================================
   キャプション
===================================== */
.caption {
  max-width: 1100px;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}

/* =====================================
   リンク
===================================== */
a {
  color: var(--blue-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

a:hover { color: var(--pink-strong); }

/* =====================================
   注目ボックス（黄色の太枠）
===================================== */
.cue {
  width: fit-content;
  max-width: 92%;
  margin: 1.6rem auto 0;
  padding: 1.2rem 1.6rem;
  background: var(--yellow);
  border: 4px solid rgba(31, 37, 40, 0.86);
  box-shadow: 10px 10px 0 rgba(31, 37, 40, 0.13);
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 800;
  text-align: center;
}

/* =====================================
   フロー（横並び）
===================================== */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.flow-item {
  padding: 0.7rem 1.1rem;
  background: #fff;
  border: 2px solid rgba(31, 37, 40, 0.78);
  box-shadow: 4px 4px 0 rgba(31, 37, 40, 0.1);
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 21px);
}

.flow-item.hl { background: var(--yellow); }
.flow-arrow {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

/* 「人が用意した部分」を枠で囲んでラベルを付ける（06） */
.flow-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.2rem 0.85rem;
  border: 3px dashed rgba(31, 37, 40, 0.5);
  background: rgba(255, 255, 255, 0.55);
}

.flow-group-label {
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 800;
  color: var(--muted);
}

.flow-group-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

/* =====================================
   P3: Anthropic公式context図
===================================== */
.p3-context-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: 1.4rem;
  margin-top: 0.7rem;
}

.p3-context-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.p3-context-copy .lead,
.p3-context-copy .caption { margin: 0; }

.p3-context-figure { margin: 0; }

.p3-context-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: var(--hard);
}

.p3-context-figure figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 700;
  line-height: 1.35;
}

/* =====================================
   コードブロック（ライト用）
===================================== */
code {
  background: rgba(31, 37, 40, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  font-family: "SF Mono", "Monaco", "Menlo", monospace;
  font-size: 0.9em;
  color: var(--pink-strong);
  font-weight: 700;
}

pre {
  width: min(900px, 92%);
  margin: 1.2rem auto 0;
  padding: 1.4rem 1.7rem;
  border-radius: 0.4rem;
  background: #1f2528;
  border: 3px solid rgba(31, 37, 40, 0.86);
  box-shadow: var(--hard);
  text-align: left;
  overflow-x: auto;
}

pre code {
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: "SF Mono", "Monaco", "Menlo", monospace;
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.6;
  color: #f3f5f1;
  font-weight: 500;
  white-space: pre;
}

pre code .cmt { color: #8a98a0; }
pre code .str { color: #ffd479; }

/* =====================================
   タイトルスライド
===================================== */
.slide-title { justify-content: center; }
.slide-title .slide-content { text-align: center; }

.slide-title .logo {
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 800;
  line-height: 1.08;
}

.slide-title .sub {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.6rem 1.2rem;
  background: var(--yellow);
  border: 3px solid rgba(31, 37, 40, 0.82);
  box-shadow: 6px 6px 0 rgba(31, 37, 40, 0.13);
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 800;
}

.slide-title .info {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 24px);
}

/* =====================================
   締めスライド
===================================== */
.slide-ending { justify-content: center; }
.slide-ending .slide-content { text-align: center; }

.slide-ending h2 {
  font-size: clamp(40px, 4.8vw, 76px);
}

.ending-thanks {
  margin-top: clamp(3.5rem, 10vh, 7rem);
}

.ending-thanks-main {
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 800;
}

.ending-thanks-next {
  margin-top: 0.25rem;
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--muted);
}

/* =====================================
   中央寄せモディファイア
===================================== */
.center { text-align: center !important; }
.center .flow { justify-content: center; }

/* =====================================
   ナビゲーション
===================================== */
.slide-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 84vh;
  overflow-y: auto;
  z-index: 1000;
}

.slide-nav::-webkit-scrollbar { width: 0; }

.nav-btn {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 2px solid rgba(31, 37, 40, 0.4);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-btn:hover { border-color: var(--ink); color: var(--ink); }

.nav-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* =====================================
   ページインジケーター
===================================== */
.page-indicator {
  position: fixed;
  bottom: 26px;
  right: 36px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.5rem 1rem;
  border: 2px solid rgba(31, 37, 40, 0.5);
  z-index: 1000;
}

/* =====================================
   エラー表示
===================================== */
.error {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ink);
}

/* =====================================
   ライトボックス（画像クリックで全画面）
===================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(31, 37, 40, 0.92);
  opacity: 0;
  pointer-events: none;
  cursor: zoom-out;
  transition: opacity 0.22s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* =====================================
   入場アニメーション
===================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-content > * {
  animation: fadeInUp 0.5s ease-out both;
}

.slide-content > *:nth-child(1) { animation-delay: 0.05s; }
.slide-content > *:nth-child(2) { animation-delay: 0.13s; }
.slide-content > *:nth-child(3) { animation-delay: 0.21s; }
.slide-content > *:nth-child(4) { animation-delay: 0.29s; }

/* =====================================
   レスポンシブ
===================================== */
@media (max-width: 768px) {
  .cols.c2, .cols.c3 { grid-template-columns: 1fr; }
  .p3-context-layout { grid-template-columns: 1fr; }
  .slide { padding: 28px; }
  .slide-nav { display: none; }
}

/* =====================================
   Surf Lab vol.38 固有レイアウト
===================================== */
.title-note {
  margin-top: 1rem;
  font-size: clamp(17px, 1.45vw, 23px);
  color: var(--muted);
  font-weight: 700;
}

.big-question {
  margin-top: 1.5rem;
  font-size: clamp(32px, 4vw, 62px);
  line-height: 1.22;
  font-weight: 800;
  text-align: center;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.7rem;
}

.stage-card {
  min-height: 220px;
  padding: 1.35rem;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: var(--hard);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stage-card:nth-child(1) { background: var(--blue); }
.stage-card:nth-child(2) { background: var(--yellow); }
.stage-card:nth-child(3) { background: var(--green); }

.stage-card .stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.stage-card h3 { margin-top: 0.8rem; }
.stage-card p { margin-top: 0.6rem; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.icon-card {
  padding: 1.2rem 1rem;
  background: #fff;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: 5px 5px 0 rgba(31, 37, 40, 0.1);
  text-align: center;
}

.icon-card .emoji {
  display: block;
  font-size: clamp(34px, 4vw, 60px);
  margin-bottom: 0.4rem;
}

.icon-card h3 { font-size: clamp(18px, 1.7vw, 26px); }

.auto-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.auto-node {
  min-height: 145px;
  padding: 1rem;
  background: #fff;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: var(--hard);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(17px, 1.6vw, 25px);
  font-weight: 800;
}

.auto-node.ai { background: var(--blue); }
.auto-node.rule { background: var(--yellow); }
.auto-node.human { background: var(--green); }

.auto-arrow {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.metric {
  padding: 1.2rem 0.8rem;
  border: 3px solid rgba(31, 37, 40, 0.78);
  background: var(--yellow);
  box-shadow: var(--hard);
  text-align: center;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
}

.source-note {
  margin-top: 1rem;
  text-align: center;
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.35;
  color: var(--muted);
  font-weight: 700;
}

.frame.wide {
  width: min(1240px, 92%);
}

.frame.compact {
  width: min(900px, 72%);
}

@media (max-width: 900px) {
  .stage-strip,
  .icon-grid,
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auto-line { grid-template-columns: 1fr; }
  .auto-arrow { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 768px) {
  .cols.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box { padding: 0.8rem; }
  .box p { font-size: 15px; }
  .auto-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .auto-node { min-height: 96px; }
  .auto-arrow { display: none; }
}

@media (max-height: 760px) and (min-width: 769px) {
  .frame.compact {
    width: min(710px, 60%);
    margin-top: 0.8rem;
  }
}


/* =====================================
   番号付き縦リスト（23 キャッシュ5原則など）
===================================== */
.steps {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.62rem 1.1rem;
  background: #fff;
  border: 2px solid rgba(31, 37, 40, 0.78);
  box-shadow: 4px 4px 0 rgba(31, 37, 40, 0.1);
  font-size: clamp(17px, 1.55vw, 25px);
  font-weight: 700;
  line-height: 1.35;
}

.steps li .n {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.95rem;
}

.steps li.key { background: var(--yellow); border-width: 3px; }

/* =====================================
   Before / After 対比（16-18 で多用）
===================================== */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }

.ba .side {
  padding: 1.3rem 1.5rem;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: var(--hard);
}

.ba .side.before { background: rgba(31, 37, 40, 0.05); }
.ba .side.after { background: var(--green); }

.ba .side .tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.75rem;
  border: 2px solid rgba(31, 37, 40, 0.78);
  background: #fff;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 800;
}

.ba .side p { font-size: clamp(17px, 1.55vw, 25px); line-height: 1.45; }

/* =====================================
   数字バッジ（ベンチ結果の強調）
===================================== */
.stat {
  margin-top: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: var(--yellow);
  border: 4px solid rgba(31, 37, 40, 0.86);
  box-shadow: 10px 10px 0 rgba(31, 37, 40, 0.13);
  text-align: center;
}

.stat .big {
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
}

.stat .what {
  margin-top: 0.4rem;
  font-size: clamp(16px, 1.45vw, 23px);
  font-weight: 700;
  color: #344047;
}

/* =====================================
   用語のかみ砕き（初出の説明）
===================================== */
.term {
  margin-top: 1.1rem;
  padding: 0.9rem 1.2rem;
  border-left: 8px solid var(--blue-strong);
  background: rgba(223, 243, 255, 0.55);
  font-size: clamp(17px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1.45;
}

.term b { font-weight: 800; }

/* =====================================
   対応表（08 ハーネス要素 × 普段使うもの）
===================================== */
.cmp {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cmp-row {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: 0.65rem 1.3rem;
  background: #fff;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: var(--hard);
}

.cmp-key {
  padding: 0.5rem 0.8rem;
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 25px);
  border: 2px solid rgba(31, 37, 40, 0.7);
  text-align: center;
}

.cmp-key.blue { background: var(--blue); }
.cmp-key.pink { background: var(--pink); }
.cmp-key.green { background: var(--green); }
.cmp-key.purple { background: var(--purple); }

.cmp-val {
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .cmp-row { grid-template-columns: 1fr; text-align: center; }
}

/* =====================================
   参考リンクカード（28）
===================================== */
.refs { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1.3rem; }

.ref {
  padding: 1.5rem 1.7rem;
  background: #fff;
  border: 3px solid rgba(31, 37, 40, 0.78);
  box-shadow: var(--hard);
}

.ref .ref-title { font-size: clamp(18px, 1.7vw, 26px); font-weight: 800; line-height: 1.35; }
.ref .ref-desc { margin-top: 0.4rem; font-size: clamp(16px, 1.45vw, 23px); font-weight: 700; color: #344047; line-height: 1.4; }

@media (max-width: 768px) {
  .ba { grid-template-columns: 1fr; }
}

/* =====================================
   削減バー図解（05）
===================================== */
.cutbar {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.cutbar-row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  align-items: center;
  gap: 1.2rem;
}

.cutbar-label {
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 25px);
  text-align: right;
}

.cutbar-track {
  position: relative;
  height: 68px;
  border: 3px dashed rgba(31, 37, 40, 0.45);
  display: flex;
  align-items: stretch;
}

.cutbar-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 22px);
  background: var(--blue);
  border: 3px solid rgba(31, 37, 40, 0.78);
  margin: -3px;
  box-shadow: var(--hard);
}

.cutbar-fill.full { width: 100%; }
.cutbar-fill.small { width: 18%; background: var(--pink); }

.cutbar-gone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(31, 37, 40, 0.55);
  font-size: clamp(16px, 1.5vw, 22px);
}
