/* ==========================================================================
   style.css — SAAFホールディングス Schoo株式取得問題 株主向けLP
   リデザイン: 親サイト（../style.css）デザイン言語に同化
   作成日: 2026-04-14
   設計方針: 親CSSを継承。ページ固有スタイルのみここに記述。
   ========================================================================== */

/* ------------------------------------------------------------------
   NOTE: 親CSS（../style.css）はindex.htmlの<link>で読み込み済み。
   このファイルはページ固有の追加スタイルのみ。
   Noto Sans JP・カラートークン（--blue, --yellow, --ink 等）・リセット・
   ボタン等はすべて親CSSから継承。
------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   Container（ページ固有）
------------------------------------------------------------------ */
.sp-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .sp-container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .sp-container {
    padding: 0 16px;
  }
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.sp-hero {
  background: var(--gradient-hero);
  color: var(--white);
  /* ヘッダー高さ（~104px）+ 視覚的余白 56px = 160px */
  padding: clamp(120px, 14vh, 160px) 0 clamp(64px, 8vh, 96px);
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
}

.sp-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow-dark) 0%, var(--yellow) 50%, var(--yellow-dark) 100%);
}

/* Eyebrow label */
.sp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
  background: var(--yellow-subtle);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  position: relative;
}

.sp-hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: var(--white);
  position: relative;
}

/* 数字強調（H1内・大サイズ）
   白文字 + 赤マーカー（危機感強調式）。
   青背景 × 赤マーカー × 白文字で問題の深刻さを強める配色。
   linear-gradient で文字下45%に赤マーカーを乗せ、
   ニュース速報的な強い注意喚起を演出。
   box-decoration-break: clone で複数行対応。
*/
.sp-hero-num {
  color: #ffffff;
  font-weight: 900;
  font-style: normal;
  display: inline;
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 0 0.12em;
  background-image: linear-gradient(
    180deg,
    transparent 55%,
    rgba(229, 62, 62, 0.90) 55%,
    rgba(229, 62, 62, 0.75) 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 2px;
}

/* 数字強調（サブリード内・インライン）
   白文字 + 赤マーカー。大サイズと同じ配色ロジックでインライン用に最適化。
   3〜5語以内に限定し、過強調を防ぐ。
*/
.sp-hero-num-inline {
  color: #ffffff;
  font-weight: 700;
  font-style: normal;
  display: inline;
  text-decoration: none;
  padding: 0 0.1em;
  background-image: linear-gradient(
    180deg,
    transparent 55%,
    rgba(229, 62, 62, 0.90) 55%,
    rgba(229, 62, 62, 0.75) 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 2px;
}

/* サブリード内の数値強調（sp-hero-lead内で使用） */
.sp-lead-num {
  color: #ffd633;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* 問題提起内の数値強調（sp-hero-issue内で使用） */
.sp-issue-num {
  color: #ffd633;
  font-weight: 700;
  font-style: normal;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* 問題提起の短文（KPIカード直下）
   ボーダー・背景を黄系アクセントに変更して青背景との整合性を確保。
*/
.sp-hero-issue {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin-top: 40px;
  padding: 16px 22px;
  border-left: 3px solid #ffd633;
  background: rgba(255, 214, 51, 0.07);
  border-radius: 0 6px 6px 0;
  position: relative;
}

.sp-hero-subtitle {
  display: block;
  font-size: clamp(16px, 2.8vw, 26px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
}

/* サブリード（divに変更済み、内部のpを統括） */
.sp-hero-lead {
  max-width: 640px;
  margin-bottom: 48px;
  position: relative;
}

.sp-hero-lead p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.sp-hero-lead p:last-child {
  margin-bottom: 0;
}

/* KPI Grid */
.sp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 840px;
  position: relative;
}

@media (min-width: 640px) {
  .sp-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sp-kpi-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s;
}

.sp-kpi-card:hover {
  box-shadow: var(--glass-shadow);
}

.sp-kpi--alert {
  border-color: rgba(253, 243, 11, 0.35);
  background: rgba(253, 243, 11, 0.07);
}

.sp-kpi--neutral {
  border-color: var(--glass-border);
}

.sp-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.sp-kpi--alert .sp-kpi-label {
  color: var(--yellow-light);
}

.sp-kpi-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 10px;
}

.sp-kpi--alert .sp-kpi-value {
  color: var(--yellow);
}

.sp-kpi-unit {
  font-size: 50%;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 2px;
}

.sp-kpi-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.sp-kpi--alert .sp-kpi-note {
  color: rgba(253, 243, 11, 0.7);
}

/* ------------------------------------------------------------------
   Fact Sections
------------------------------------------------------------------ */
.sp-fact-section {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--ink-10);
}

.sp-fact-section--alt {
  background: var(--off-white);
}

.sp-fact-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.sp-fact-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 18px;
  border-radius: 100px;
  margin-top: 6px;
  white-space: nowrap;
}

.sp-fact-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.sp-section-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.9;
  color: var(--ink-80);
  max-width: 840px;
  margin-bottom: 8px;
}

/* ------------------------------------------------------------------
   Blocks
------------------------------------------------------------------ */
.sp-block {
  margin-bottom: 48px;
}

.sp-block:last-child {
  margin-bottom: 0;
}

.sp-block-heading {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}

/* ------------------------------------------------------------------
   Undecided section intro heading (fact3 専用)
------------------------------------------------------------------ */
.sp-undecided-intro {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 5px solid var(--red, #d63031);
}

.sp-undecided-intro em {
  font-style: normal;
  color: var(--red, #d63031);
}

/* ------------------------------------------------------------------
   Tables
------------------------------------------------------------------ */
.sp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--ink-20);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px var(--ink-10);
}

.sp-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.6;
}

.sp-table caption {
  font-size: 12px;
  color: var(--ink-40);
  text-align: left;
  padding: 8px 12px;
  caption-side: bottom;
  font-style: italic;
}

.sp-table thead tr {
  background: var(--ink);
  color: var(--white);
}

.sp-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sp-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--ink-10);
  color: var(--ink-80);
  vertical-align: top;
}

.sp-table tbody tr:last-child td {
  border-bottom: none;
}

.sp-table tbody tr:nth-child(even) {
  background: var(--off-white);
}

/* alert: 損失・問題数値は danger 色を維持（色以外にも太字・背景で識別可） */
.sp-val-alert {
  color: var(--danger) !important;
  font-weight: 700;
}

.sp-row-alert {
  background: rgba(229, 62, 62, 0.04) !important;
}

.sp-row-alert td {
  color: #b91c1c;
}

.sp-sub {
  font-size: 11px;
  color: var(--ink-40);
  font-weight: 400;
}

.sp-table-note {
  font-size: 11px;
  color: var(--ink-40);
  line-height: 1.7;
  margin-top: 8px;
}

/* ------------------------------------------------------------------
   Charts
------------------------------------------------------------------ */
.sp-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 12px;
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: 8px;
  padding: 24px 16px 16px;
  box-shadow: 0 1px 4px var(--ink-10);
}

.sp-chart-note {
  font-size: 11px;
  color: var(--ink-40);
  line-height: 1.7;
  margin-top: 8px;
  max-width: 680px;
}

/* ------------------------------------------------------------------
   Bar Compare（グラフC 置き換え）— 水平CSSバー比較
------------------------------------------------------------------ */
.sp-bar-compare {
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-bar-compare__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.sp-bar-compare__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-60);
  line-height: 1.5;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.sp-bar-compare__track {
  width: 100%;
  height: 48px;
  background: var(--ink-05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.sp-bar-compare__fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  transition: width 0.6s ease;
  min-width: 40px;
}

.sp-bar-compare__fill--blue {
  background: var(--blue);
}

.sp-bar-compare__fill--red {
  background: #c53030;
}

.sp-bar-compare__inner-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.sp-bar-compare__value {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
  white-space: nowrap;
  min-width: 80px;
  text-align: left;
  margin: 0;
  line-height: 1;
}

.sp-bar-compare__value--blue {
  color: var(--blue-dark);
}

.sp-bar-compare__value--red {
  color: #c53030;
}

.sp-bar-compare__message {
  margin: 8px 0 16px;
  padding: 16px 24px;
  background: #fff5f5;
  border: 1px solid rgba(197, 48, 48, 0.25);
  border-left: 5px solid #c53030;
  border-radius: 0 8px 8px 0;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.sp-bar-compare__message em {
  font-style: normal;
  color: #c53030;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* スクリーンリーダー向け補足テーブル */
.sp-sr-data {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-60);
}

.sp-sr-data summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
  font-size: 11px;
  padding: 4px 0;
}

.sp-sr-data table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 11px;
}

.sp-sr-data th,
.sp-sr-data td {
  border: 1px solid var(--ink-10);
  padding: 6px 8px;
  text-align: left;
}

.sp-sr-data th {
  background: var(--ink-05);
  font-weight: 700;
}

/* 文脈補強テキスト */
.sp-section-context {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.85;
  color: var(--ink-60);
  border-left: 3px solid var(--ink-20);
  padding: 12px 16px;
  margin: 0;
  background: var(--ink-05);
  border-radius: 0 6px 6px 0;
}

.sp-section-context strong {
  color: #c53030;
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Multiplier Cards（グラフD 置き換え）— 超大型数字カード
------------------------------------------------------------------ */
.sp-multiplier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 8px;
}

.sp-multiplier-card {
  background: #fff5f5;
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-top: 5px solid #c53030;
  border-radius: 8px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.sp-multiplier-card--darker {
  background: #fff0f0;
  border-color: rgba(154, 28, 28, 0.25);
  border-top-color: #9a1c1c;
}

.sp-multiplier-card--darker .sp-multiplier-card__num em {
  color: #9a1c1c;
}

.sp-multiplier-card--darker .sp-multiplier-card__loss {
  color: #9a1c1c;
}

.sp-multiplier-card__label {
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 600;
  color: var(--ink-60);
  line-height: 1.5;
  margin: 0 0 8px;
}

.sp-multiplier-card__num {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}

.sp-multiplier-card__num em {
  font-style: normal;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 900;
  color: #c53030;
  letter-spacing: -0.03em;
  line-height: 0.95;
  display: block;
  margin: 2px 0 1px;
}

.sp-multiplier-card__loss {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 900;
  color: #c53030;
  margin: 8px 0 0;
  letter-spacing: -0.01em;
}

.sp-multiplier-card__note {
  font-size: 12px;
  color: var(--ink-40);
  margin: 2px 0 0;
}

.sp-multiplier-card__base {
  font-size: 11px;
  color: var(--ink-40);
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(197, 48, 48, 0.15);
  width: 100%;
}

/* sp-multiplier-cards の figcaption は grid からはみ出させる */
.sp-multiplier-cards > .sp-chart-note {
  grid-column: 1 / -1;
  max-width: 100%;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .sp-bar-compare__row {
    grid-template-columns: 80px 1fr auto;
    gap: 10px;
  }

  .sp-bar-compare__label {
    font-size: 11px;
  }

  .sp-bar-compare__track {
    height: 40px;
  }

  .sp-bar-compare__value {
    min-width: 64px;
    font-size: 14px;
  }

  .sp-multiplier-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sp-multiplier-card__num em {
    font-size: clamp(44px, 11vw, 64px);
  }
}

@media (max-width: 400px) {
  .sp-bar-compare__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sp-bar-compare__label {
    text-align: left;
  }
}

/* ------------------------------------------------------------------
   Equity Bar（Gauge）
------------------------------------------------------------------ */
.sp-equity-wrap {
  margin-bottom: 12px;
}

.sp-equity-bar-outer {
  width: 100%;
  height: 36px;
  background: var(--ink-10);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.sp-equity-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px 0 0 4px;
  position: relative;
}

.sp-equity-fill--invest {
  background: var(--blue);
}

.sp-equity-fill-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-equity-bar-caption {
  font-size: 12px;
  color: var(--ink-40);
  text-align: right;
  margin-bottom: 24px;
}

.sp-equity-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sp-equity-kpi {
  background: var(--off-white);
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}

.sp-equity-kpi--alert {
  background: var(--cream);
  border-color: var(--blue-border);
}

.sp-equity-kpi--loss {
  background: rgba(229, 62, 62, 0.04);
  border-color: rgba(229, 62, 62, 0.2);
}

.sp-equity-kpi-label {
  font-size: 11px;
  color: var(--ink-40);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.5;
}

.sp-equity-kpi-val {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.sp-equity-kpi--alert .sp-equity-kpi-val {
  color: var(--blue-dark);
}

.sp-equity-kpi--loss .sp-equity-kpi-val {
  color: var(--danger);
}

.sp-equity-kpi-sub {
  font-size: 12px;
  color: var(--ink-40);
}

.sp-equity-kpi--alert .sp-equity-kpi-sub strong {
  color: var(--blue);
}

.sp-equity-kpi--loss .sp-equity-kpi-sub strong {
  color: #b91c1c;
}

/* ------------------------------------------------------------------
   Callout
------------------------------------------------------------------ */
.sp-callout {
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 8px;
}

.sp-callout--alert {
  background: var(--cream);
  border: 1px solid var(--blue-border);
  border-left: 5px solid var(--blue);
}

.sp-callout-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.sp-callout-body {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.85;
  color: var(--ink-80);
}

.sp-callout-body strong {
  color: var(--danger);
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Undecided Cards
------------------------------------------------------------------ */
.sp-undecided-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .sp-undecided-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sp-undecided-card {
  background: var(--white);
  border: 1px solid rgba(214, 48, 49, 0.25);
  border-top: 5px solid var(--red, #d63031);
  border-radius: 8px;
  padding: 28px 24px 24px;
  position: relative;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.sp-undecided-card:hover {
  box-shadow: 0 6px 24px rgba(214, 48, 49, 0.12);
  transform: translateY(-3px);
}

/* 「未定」バッジ — カード右上に大きく表示 */
.sp-undecided-card::before {
  content: '未定';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: rgba(214, 48, 49, 0.12);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.sp-undecided-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--red, #d63031);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  border-radius: 50%;
  margin-bottom: 14px;
}

/* 「未定」テキストバッジ（アクセシブル版・カード内下部に表示） */
.sp-undecided-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(214, 48, 49, 0.08);
  border: 1.5px solid rgba(214, 48, 49, 0.4);
  border-radius: 6px;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 900;
  color: var(--red, #d63031);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* アクセシビリティ: 色以外の補助テキスト */
.sp-undecided-status::before {
  content: '●';
  font-size: 0.55em;
  color: var(--red, #d63031);
  aria-hidden: true;
}

.sp-undecided-title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}

.sp-undecided-quote {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-80);
  border-left: 3px solid rgba(214, 48, 49, 0.35);
  background: rgba(214, 48, 49, 0.03);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  margin: 0 0 14px;
  font-style: normal;
}

.sp-undecided-implication {
  font-size: 12px;
  color: var(--ink-60);
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   Timeline
------------------------------------------------------------------ */
.sp-timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
}

.sp-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink-20);
}

.sp-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 20px;
  padding: 0 0 32px 48px;
  align-items: start;
}

.sp-tl-item:last-child {
  padding-bottom: 0;
}

.sp-tl-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--ink-20);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink-20);
}

.sp-tl-dot--alert {
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-border);
}

.sp-tl-dot--current {
  background: var(--yellow-dark);
  box-shadow: 0 0 0 2px rgba(212, 202, 0, 0.4);
}

.sp-tl-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-40);
  letter-spacing: 0.02em;
  padding-top: 2px;
  white-space: nowrap;
}

/* 長い日付テキスト（例：本資料作成日付き）が右カラムに被らないよう、
   --current アイテムの日付カラムを折り返し許可＋幅を自動に広げる */
.sp-tl-item--current {
  grid-template-columns: auto 1fr;
}

.sp-tl-item--current .sp-tl-date {
  white-space: normal;
  max-width: 160px;
  min-width: 140px;
}

.sp-tl-item--alert .sp-tl-date {
  color: var(--blue-dark);
}

.sp-tl-item--current .sp-tl-date {
  color: var(--yellow-deeper);
}

.sp-tl-body {
  padding-bottom: 4px;
}

.sp-tl-title {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}

.sp-tl-item--alert .sp-tl-title {
  color: var(--blue-dark);
}

.sp-tl-item--current .sp-tl-title {
  color: var(--yellow-deeper);
}

.sp-tl-desc {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.75;
}

@media (max-width: 520px) {
  .sp-tl-item {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding-left: 40px;
  }
  .sp-tl-date {
    white-space: normal;
  }
}

/* ------------------------------------------------------------------
   Index Section（ヒーロー直下 早見表）
------------------------------------------------------------------ */
.sp-index-section {
  background: var(--off-white);
  border-top: 1px solid var(--ink-10);
  border-bottom: 3px solid var(--ink-20);
  padding: 56px 0 64px;
}

.sp-index-heading {
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.sp-index-heading-note {
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 500;
  color: var(--ink-40);
  letter-spacing: 0;
}

/* カードをリンク化したときの追加スタイル */
.sp-summary-cards--index {
  /* グリッドは既存の .sp-summary-cards から継承 */
}

/* リンクカード: <a> 要素として振る舞う */
.sp-summary-card--link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  /* ヒーロー直下は白系ベースに反転（ヒーローが濃紺グラデのため視認性確保） */
  background: var(--white);
  border: 1px solid var(--ink-20);
  border-top: 4px solid var(--blue);
  color: inherit;
  /* 既存の backdrop-filter を上書き（白ベースでは不要） */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* フォーカスリング用 */
  outline: none;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.sp-summary-card--link:hover,
.sp-summary-card--link:focus-visible {
  box-shadow: 0 6px 24px rgba(15, 111, 168, 0.15);
  transform: translateY(-3px);
  border-top-color: var(--blue);
  border-color: var(--blue-border);
}

/* WCAG 2.2 focus-visible: 2px以上のフォーカスリング */
.sp-summary-card--link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.sp-summary-card--link .sp-summary-card-title {
  /* 白背景上の文字色：Navy に変更 */
  color: var(--ink);
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
}

.sp-summary-card--link .sp-summary-card-body {
  /* 白背景上の文字色 */
  color: var(--ink-80);
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.8;
  margin: 0;
  flex-grow: 1;
}

.sp-summary-card--link .sp-summary-card-body strong {
  color: var(--blue-dark);
  font-weight: 700;
}

/* 事実番号バッジ（カード上部） */
.sp-summary-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 100px;
  align-self: flex-start;
  line-height: 1.4;
}

/* 「詳細を見る →」テキスト */
.sp-summary-card-arrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-top: 4px;
  transition: color 0.2s;
}

.sp-summary-card--link:hover .sp-summary-card-arrow,
.sp-summary-card--link:focus-visible .sp-summary-card-arrow {
  color: var(--blue-dark);
}

/* ------------------------------------------------------------------
   Conclusion Section（結論セクション）
------------------------------------------------------------------ */
.sp-conclusion-section {
  padding: 80px 0 72px;
}

.sp-conclusion-heading {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 900;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

/* 凝縮総括リスト */
.sp-conclusion-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-conclusion-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 20px 24px;
}

.sp-conclusion-fact-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--danger, #e53e3e);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sp-conclusion-fact-text {
  font-size: clamp(14px, 1.7vw, 16px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  padding-top: 6px;
}

.sp-conclusion-fact-text strong {
  color: #fff;
  font-weight: 700;
}

/* 結論文 */
.sp-conclusion-stmt {
  margin-bottom: 0;
  border: none;
  background: none;
  padding: 0;
}

/* CTA */
.sp-conclusion-cta-wrap {
  display: flex;
  justify-content: center;
}

.sp-conclusion-cta-btn {
  display: inline-block;
  background: var(--danger, #e53e3e);
  color: #fff;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 9999px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.35);
}

.sp-conclusion-cta-btn:hover,
.sp-conclusion-cta-btn:focus-visible {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.45);
}

.sp-conclusion-cta-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* モバイル */
@media (max-width: 768px) {
  .sp-conclusion-section {
    padding: 56px 0 48px;
  }

  .sp-conclusion-fact-item {
    padding: 16px 18px;
    gap: 14px;
  }

  .sp-conclusion-fact-num {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .sp-conclusion-cta-btn {
    padding: 14px 32px;
  }
}

/* ------------------------------------------------------------------
   Summary Section
------------------------------------------------------------------ */
.sp-summary-section {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.sp-summary-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
}

.sp-section-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--yellow-border);
  position: relative;
}

/* 3カラムカードグリッド */
.sp-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
}

@media (max-width: 900px) {
  .sp-summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .sp-summary-cards {
    grid-template-columns: 1fr;
  }
}

.sp-summary-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}

.sp-summary-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.sp-summary-card-title {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
}

.sp-summary-card-body {
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.sp-summary-card-body strong {
  color: var(--yellow-light);
  font-weight: 700;
}

/* 後方互換: 旧 sp-summary-list / sp-summary-item は非表示 */
.sp-summary-list { display: none; }
.sp-summary-num  { display: none; }

.sp-summary-conclusion {
  margin: 32px 0 48px;
  border: none;
  background: none;
  padding: 0;
}

.sp-summary-conclusion p {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: #fff;
  line-height: 1.75;
  letter-spacing: 0.02em;
  border: none;
  background: none;
  padding: 0;
}

/* ------------------------------------------------------------------
   Source Section
------------------------------------------------------------------ */
.sp-source-section {
  background: var(--off-white);
  border-top: 1px solid var(--ink-10);
  padding: 56px 0;
}

.sp-section-heading-sm {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink-20);
}

.sp-source-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.sp-source-list li {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.7;
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--ink-10);
  position: relative;
}

.sp-source-list li:last-child {
  border-bottom: none;
}

.sp-source-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 11px;
  line-height: 2.2;
}

.sp-disclaimer {
  font-size: 12px;
  color: var(--ink-60);
  line-height: 1.8;
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: 8px;
  padding: 16px 20px;
}

/* ------------------------------------------------------------------
   Footer（ページ固有：親より薄くシンプルに）
------------------------------------------------------------------ */
.sp-footer {
  background: var(--ink);
  padding: 32px 0;
  border-top: 3px solid var(--yellow);
}

.sp-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sp-footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  opacity: 0.75;
}

.sp-footer-org {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

.sp-footer-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.sp-footer-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.sp-footer-back:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .sp-footer-inner {
    padding: 0 24px;
  }
}

/* ------------------------------------------------------------------
   Visual Summary Section（ヒーロー直下 ビジュアルサマリーブロック）
------------------------------------------------------------------ */
.sp-visual-summary-section {
  background: var(--white);
  border-top: 1px solid var(--ink-10);
  padding: 64px 0 72px;
}

.sp-vs-heading {
  font-size: clamp(17px, 2.6vw, 24px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink-10);
}

/* KPI 3枚グリッド */
.sp-vs-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .sp-vs-kpi-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.sp-vs-kpi-card {
  background: var(--off-white);
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
}

.sp-vs-kpi-card--alert {
  background: rgba(229, 62, 62, 0.04);
  border-color: rgba(229, 62, 62, 0.2);
}

.sp-vs-kpi-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.sp-vs-kpi-badge--blue {
  background: rgba(15, 111, 168, 0.1);
  color: var(--blue-dark);
}

.sp-vs-kpi-badge--red {
  background: rgba(229, 62, 62, 0.1);
  color: #b91c1c;
}

.sp-vs-kpi-value {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sp-vs-kpi-card--alert .sp-vs-kpi-value {
  color: #b91c1c;
}

.sp-vs-kpi-unit {
  font-size: 55%;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 2px;
}

.sp-vs-kpi-sub {
  font-size: 11px;
  color: var(--ink-40);
  line-height: 1.5;
}

/* チャートブロック（Visual Summary内） */
.sp-vs-chart-block {
  margin-bottom: 48px;
}

.sp-vs-chart-block:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Equity Figure（HTML/CSS スタック型バー）
------------------------------------------------------------------ */
.sp-equity-figure {
  margin: 0;
  padding: 0;
}

/* A. キービジュアル */
.sp-equity-kv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  text-align: center;
}

.sp-equity-kv-num {
  font-size: clamp(60px, 10vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--danger, #e53e3e);
}

.sp-equity-kv-caption {
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--ink-60, #4a5568);
  font-weight: 500;
}

/* B. スタック型バー */
.sp-equity-stack-wrap {
  max-width: 680px;
  margin: 0 auto 8px;
  position: relative;
}

.sp-equity-stack-bar {
  display: flex;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sp-equity-stack-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.sp-equity-seg--invest {
  background: var(--danger, #e53e3e);
}

.sp-equity-seg--rest {
  background: var(--cream, #dce8f5);
}

.sp-equity-seg-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  padding: 0 8px;
  pointer-events: none;
}

.sp-equity-seg-label--invest .sp-equity-seg-amt,
.sp-equity-seg-label--invest .sp-equity-seg-pct {
  color: #fff;
}

.sp-equity-seg-label--rest .sp-equity-seg-amt,
.sp-equity-seg-label--rest .sp-equity-seg-pct {
  color: var(--ink-80, #1a202c);
}

.sp-equity-seg-amt {
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 700;
  white-space: nowrap;
}

.sp-equity-seg-pct {
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 500;
  white-space: nowrap;
}

/* 凡例 */
.sp-equity-legend {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sp-equity-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-60, #4a5568);
  font-weight: 500;
}

.sp-equity-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sp-equity-swatch--invest {
  background: var(--danger, #e53e3e);
}

.sp-equity-swatch--rest {
  background: var(--cream, #dce8f5);
  border: 1px solid var(--ink-20, #e2e8f0);
}

/* 目盛 */
.sp-equity-ticks {
  position: relative;
  width: 100%;
  height: 20px;
  margin-bottom: 16px;
}

.sp-equity-tick {
  position: absolute;
  font-size: 11px;
  color: var(--ink-40, #718096);
  transform: translateX(-50%);
  white-space: nowrap;
}

.sp-equity-tick:first-child {
  transform: translateX(0);
}

.sp-equity-tick:last-child {
  transform: translateX(-100%);
}

/* C. 比較文 */
.sp-equity-summary {
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--ink-80, #1a202c);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 8px;
}

.sp-equity-summary strong {
  color: var(--danger, #e53e3e);
  font-weight: 700;
}

/* D. リスク補足 */
.sp-equity-risk {
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--ink-60, #4a5568);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 16px;
}

.sp-equity-risk-num {
  color: var(--danger, #e53e3e);
  font-weight: 700;
}

/* figcaption */
.sp-equity-figcaption {
  font-size: 11px;
  color: var(--ink-40, #718096);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 8px;
}

/* アクセシビリティ：内訳テーブル */
.sp-equity-details {
  max-width: 680px;
  margin: 8px auto 0;
}

.sp-equity-details summary {
  font-size: 12px;
  color: var(--ink-40, #718096);
  cursor: pointer;
  padding: 4px 0;
}

.sp-equity-a11y-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
  color: var(--ink-80, #1a202c);
}

.sp-equity-a11y-table th,
.sp-equity-a11y-table td {
  border: 1px solid var(--ink-10, #e2e8f0);
  padding: 6px 10px;
  text-align: left;
}

.sp-equity-a11y-table thead th {
  background: var(--off-white, #f7fafc);
  font-weight: 700;
}

/* モバイル対応 */
@media (max-width: 480px) {
  .sp-equity-stack-bar {
    height: 40px;
  }

  .sp-equity-seg-label {
    padding: 0 4px;
  }

  .sp-equity-legend {
    gap: 12px;
  }
}

/* ------------------------------------------------------------------
   Stock Price Chart（株価推移グラフ用 figcaption）
------------------------------------------------------------------ */
.sp-chart-figure {
  margin: 0;
}

.sp-chart-wrap--price {
  max-width: 760px;
}

.sp-chart-figcaption {
  font-size: 11px;
  color: var(--ink-40);
  line-height: 1.7;
  margin-top: 8px;
  max-width: 760px;
  font-style: italic;
}

/* ------------------------------------------------------------------
   Loss Summary Cards（取引別・合計 目減りサマリー）
------------------------------------------------------------------ */
.sp-loss-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  max-width: 680px;
}

/* 見出し直下・全幅配置モード */
.sp-loss-summary--wide {
  max-width: none;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .sp-loss-summary--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sp-loss-summary {
    grid-template-columns: 1fr;
  }

  .sp-loss-summary--wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sp-loss-card {
  background: rgba(229, 62, 62, 0.04);
  border: 1px solid rgba(229, 62, 62, 0.18);
  border-top: 3px solid var(--danger);
  border-radius: 8px;
  padding: 16px 14px;
  text-align: center;
}

.sp-loss-card--total {
  background: rgba(229, 62, 62, 0.08);
  border-color: rgba(229, 62, 62, 0.35);
  border-top-width: 4px;
}

.sp-loss-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-60);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.5;
}

.sp-loss-card-amount {
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 900;
  color: #b91c1c;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.sp-loss-card--total .sp-loss-card-amount {
  font-size: clamp(18px, 2.8vw, 26px);
}

.sp-loss-card-rate {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 8px;
}

.sp-loss-card-sub {
  font-size: 11px;
  color: var(--ink-40);
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   Supporter CTA（ページ固有：.vote の padding を縮小）
------------------------------------------------------------------ */
/* schoo-problems ページ内の支援者登録セクション：親の 160px を縮小 */
#vote-sp.vote {
  padding: 80px 0;
}

/* ------------------------------------------------------------------
   Scroll anchor — アンカージャンプ時の頭切れ対策
   スクロール後ヘッダー高さ ~84px + 余裕 8px = 92px
------------------------------------------------------------------ */
[id^="fact"],
#vote-sp,
#sources,
#summary {
  scroll-margin-top: 92px;
}

/* ------------------------------------------------------------------
   Print Styles
------------------------------------------------------------------ */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header { position: static; display: none; }

  .sp-hero { padding: 40px 0 32px; }
  .sp-hero::after,
  .sp-hero::before { display: none; }

  .sp-fact-section,
  .sp-fact-section--alt { padding: 40px 0; }

  .sp-chart-wrap {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sp-table-wrap { overflow: visible; }
  .sp-table { min-width: 0; }

  .sp-undecided-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sp-tl-item {
    grid-template-columns: 120px 1fr;
  }

  .sp-index-section { padding: 32px 0; }
  .sp-summary-section { padding: 40px 0; }
  .sp-source-section { padding: 32px 0; }

  body { font-size: 11pt; }
  h1 { font-size: 20pt; }
  h2 { font-size: 15pt; }
  h3 { font-size: 12pt; }
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo span { display: none; }

  .nav-links a {
    font-size: 12px;
    padding: 5px 8px;
  }

  /* 768px以下: ヘッダー~84px + 余白40px = 124px */
  .sp-hero { padding: clamp(100px, 14vh, 124px) 0 clamp(48px, 7vh, 72px); }

  .sp-fact-section,
  .sp-fact-section--alt { padding: 48px 0; }

  .sp-block { margin-bottom: 36px; }

  .sp-equity-kpi-row { grid-template-columns: 1fr; }
  .sp-equity-kpi { text-align: left; }

  .sp-index-section { padding: 40px 0 48px; }

  .sp-summary-section,
  .sp-source-section { padding: 48px 0; }

  .sp-fact-header { flex-direction: column; gap: 10px; }
  .sp-fact-badge { margin-top: 0; }

  .sp-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sp-callout { padding: 18px 16px; }
}
