/* onboarding-master-plan-2026-05.html 専用の追加スタイル
 * nanco.css + overview.css の上に重ねる。
 * 設計方針:
 *   - 情報量が多いので、視覚的階層を強くつける
 *   - 重要度: alert(74%脱落・ブロッカー) > warn(未実施) > ok(完了) > neutral(参考)
 *   - セクションごとに「読み物 / 数字 / 議論 / アクション」の見せ方を変える
 */

/* ============================================================
   1. KPI スナップショット (ページ冒頭の特大カード群)
   ============================================================ */

.kpi-snapshot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 40px;
}
@media (max-width: 800px) { .kpi-snapshot { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-snapshot { grid-template-columns: 1fr; } }

.kpi-big {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.kpi-big::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
}
.kpi-big.is-alert::before { background: var(--bad); }
.kpi-big.is-warn::before { background: var(--warn); }
.kpi-big.is-ok::before { background: var(--good); }
.kpi-big.is-confirmed::before { background: var(--teal); }

.kpi-big-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

.kpi-big-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.kpi-big.is-alert .kpi-big-value { color: var(--bad); }
.kpi-big.is-ok .kpi-big-value { color: var(--good); }
.kpi-big.is-confirmed .kpi-big-value { color: var(--teal-dark); }

.kpi-big-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0;
}

.kpi-big-sub {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.kpi-big-delta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* テキストベースの kpi-big（値ではなく方針を載せる）*/
.kpi-big.is-text .kpi-big-value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.kpi-big.is-text .kpi-big-value code {
  font-size: 14px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   2. ステータス対比 (確定 vs 未決) の 2カラムブロック
   ============================================================ */

.status-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 24px;
}
@media (max-width: 700px) { .status-split { grid-template-columns: 1fr; } }

.status-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.status-box.is-confirmed {
  background: rgba(74, 143, 106, 0.04);
  border-color: rgba(74, 143, 106, 0.25);
}
.status-box.is-pending {
  background: rgba(180, 134, 42, 0.04);
  border-color: rgba(180, 134, 42, 0.25);
}

.status-box-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.status-box.is-confirmed .status-box-eyebrow { color: var(--good); }
.status-box.is-pending .status-box-eyebrow { color: var(--warn); }

.status-box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li {
  font-size: 13px;
  line-height: 1.65;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.status-list li:last-child { border-bottom: 0; }
.status-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.status-box.is-confirmed .status-list li::before { background: var(--good); }
.status-box.is-pending .status-list li::before { background: var(--warn); }

/* ============================================================
   3. 縦タイムライン (議論の流れ)
   ============================================================ */

.timeline-v {
  position: relative;
  padding-left: 24px;
  margin: 0 0 20px;
}

.timeline-v::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: var(--line-strong);
}

.timeline-v-item {
  position: relative;
  padding: 0 0 20px;
}
.timeline-v-item:last-child { padding-bottom: 0; }

.timeline-v-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 3px var(--surface);
}

.timeline-v-item.is-pivot::before {
  background: var(--teal);
  width: 14px;
  height: 14px;
  top: 7px;
  left: -23px;
}

.timeline-v-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.timeline-v-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.45;
}

.timeline-v-output {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.timeline-v-pivot-note {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   4. レビュー結果グリッド (5名の意見)
   ============================================================ */

.review-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px;
  position: relative;
}

.review-card.is-majority {
  border-color: var(--teal);
  background: linear-gradient(180deg, var(--teal-tint) 0%, var(--surface) 50%);
}
.review-card.is-dissent {
  border-color: var(--warn);
  background: linear-gradient(180deg, rgba(180, 134, 42, 0.08) 0%, var(--surface) 50%);
}

.review-role {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  font-family: var(--font-mono);
}

.review-vote {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.review-card.is-majority .review-vote { color: var(--teal-dark); }
.review-card.is-dissent .review-vote { color: var(--warn); }

.review-vote-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.review-rationale {
  font-size: 11px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.55;
}

.review-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.review-card.is-majority .review-tag {
  background: var(--teal);
  color: #fff;
}
.review-card.is-dissent .review-tag {
  background: var(--warn);
  color: #fff;
}

/* ============================================================
   5. CEO 裁定ボックス
   ============================================================ */

.ceo-verdict {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.ceo-verdict::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.ceo-verdict-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 8px;
  position: relative;
}

.ceo-verdict-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  position: relative;
}

.ceo-verdict-body {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.95;
  margin: 0;
  position: relative;
}

.ceo-verdict-body code {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.ceo-verdict-points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.ceo-verdict-points li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.92;
}
.ceo-verdict-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   6. 決定事項テーブル (TTV ゴール定義)
   ============================================================ */

.decision-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 20px;
}
@media (max-width: 600px) { .decision-grid { grid-template-columns: 1fr; } }

.decision-grid > dt {
  background: var(--bg);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.decision-grid > dd {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink);
  margin: 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}
.decision-grid > dt:nth-last-of-type(1),
.decision-grid > dd:nth-last-of-type(1) { border-bottom: 0; }
@media (max-width: 600px) {
  .decision-grid > dt { border-right: 0; padding-bottom: 4px; }
  .decision-grid > dd { padding-top: 4px; }
}

.decision-grid .highlight {
  font-weight: 700;
  color: var(--teal-dark);
}

/* ============================================================
   7. ボトルネックリスト (重要度ラベル付き)
   ============================================================ */

.bottleneck-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
}

.bottleneck-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.bottleneck-item.is-critical { border-left-color: var(--bad); background: rgba(199, 90, 74, 0.03); }
.bottleneck-item.is-high { border-left-color: var(--warn); background: rgba(180, 134, 42, 0.03); }
.bottleneck-item.is-resolved { border-left-color: var(--good); background: rgba(74, 143, 106, 0.03); opacity: 0.85; }

.bottleneck-level {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-mono);
}
.bottleneck-item.is-critical .bottleneck-level { background: var(--bad); color: #fff; }
.bottleneck-item.is-high .bottleneck-level { background: var(--warn); color: #fff; }
.bottleneck-item.is-resolved .bottleneck-level { background: var(--good); color: #fff; }
.bottleneck-item:not(.is-critical):not(.is-high):not(.is-resolved) .bottleneck-level { background: var(--teal); color: #fff; }

.bottleneck-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}
.bottleneck-body b { color: var(--ink); font-weight: 700; }
.bottleneck-item.is-resolved .bottleneck-body { text-decoration: line-through; text-decoration-color: var(--good); text-decoration-thickness: 1px; }
.bottleneck-item.is-resolved .resolved-update {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--good);
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================
   8. アクションボード (担当軸カンバン)
   ============================================================ */

.action-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}
@media (max-width: 800px) { .action-board { grid-template-columns: 1fr; } }

.action-column {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  border: 1px solid var(--line);
}

.action-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--line);
}

.action-column-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.action-column-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--teal);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.action-column.is-blocker .action-column-count { background: var(--bad); }
.action-column.is-engineer .action-column-count { background: var(--ink-mute); }

.action-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  position: relative;
}
.action-card:last-child { margin-bottom: 0; }

.action-card.is-priority { border-left: 3px solid var(--bad); }
.action-card.is-soon { border-left: 3px solid var(--warn); }

.action-num {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.action-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 30px 6px 0;
  line-height: 1.45;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--ink-mute);
  margin: 0;
}

.action-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.action-meta-item.due {
  font-weight: 700;
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   9. KPI 進捗バー
   ============================================================ */

.kpi-progress-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 20px;
}

.kpi-progress {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.kpi-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.kpi-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.kpi-progress-label .badge { margin-left: 6px; vertical-align: middle; }

.kpi-progress-values {
  font-size: 12px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.kpi-progress-track {
  position: relative;
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.kpi-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--teal-light) 0%, var(--teal) 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.kpi-progress-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  background: var(--ink-faint);
}
.kpi-progress-marker.target-near { background: var(--warn); }
.kpi-progress-marker.target-far { background: var(--good); }

.kpi-progress-targets {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   10. セクション区切り (大型ヘッダー)
   ============================================================ */

.major-section {
  position: relative;
  margin: 64px 0 24px;
  padding-top: 24px;
  border-top: 2px solid var(--teal);
}

.major-section-num {
  position: absolute;
  top: -16px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--teal);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.major-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 6px;
  letter-spacing: -0.02em;
}

.major-section-desc {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 24px;
  max-width: 680px;
  line-height: 1.7;
}

/* ============================================================
   11. SoT カードリスト (5番目以降の用途)
   ============================================================ */

.sot-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}
@media (max-width: 700px) { .sot-cards { grid-template-columns: 1fr; } }

.sot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}

.sot-card-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--teal-tint);
  color: var(--teal-dark);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.sot-card-text { display: block; }

.sot-card-purpose {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 600;
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}

.sot-card-file {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.4;
}

/* ============================================================
   12. 観測値 vs ゴール (旧定義 / 新定義の対比)
   ============================================================ */

.compare-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 8px;
}
@media (max-width: 600px) { .compare-row { grid-template-columns: 1fr; } }

.compare-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.compare-side-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.compare-side-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.compare-side-detail {
  font-size: 11px;
  color: var(--ink-mute);
}
.compare-side.is-old .compare-side-value { color: var(--ink-mute); text-decoration: line-through; text-decoration-thickness: 1px; }
.compare-side.is-new .compare-side-value { color: var(--teal-dark); }
.compare-side.is-new .compare-side-detail { color: var(--teal-dark); font-weight: 600; }

.compare-arrow {
  text-align: center;
  font-size: 18px;
  color: var(--teal);
  font-weight: 700;
}
@media (max-width: 600px) { .compare-arrow { transform: rotate(90deg); margin: 4px auto; } }

/* ============================================================
   13. インライン強調
   ============================================================ */

.inline-key {
  background: var(--teal-tint);
  color: var(--teal-dark);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  font-weight: 700;
}

.inline-warn {
  background: rgba(180, 134, 42, 0.15);
  color: var(--warn);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  font-weight: 700;
}

.inline-alert {
  background: rgba(199, 90, 74, 0.15);
  color: var(--bad);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  font-weight: 700;
}

/* ============================================================
   14. メタフッター
   ============================================================ */

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-grid > div {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.foot-grid h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.foot-grid p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ============================================================
   15. アンカーリンク (h2/h3 にホバー時表示)
   ============================================================ */

.anchor-link {
  color: var(--ink-faint);
  text-decoration: none;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.15s;
  font-weight: 400;
}
h2:hover .anchor-link, h3:hover .anchor-link { opacity: 1; }
