/* ============================================================
   理論株価：配当割引・DCF（money/dcf.html）だけの見た目
   色は共通の変数だけを使う
   ============================================================ */

/* 計算のしかたの切り替え：狭い画面では縦に並べる */
.dcf-modes { flex-wrap: wrap; }

/* 結果の下の小見出し */
.dcf-h { font-size: 15px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; line-height: 1.6; }

/* 感応度の表 */
table.data.dcf-sens th { white-space: nowrap; }
table.data.dcf-sens tbody th { text-align: right; font-variant-numeric: tabular-nums; }
table.data.dcf-sens td small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
table.data.dcf-sens td.dcf-base { font-weight: 700; color: var(--accent); background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; }
table.data.dcf-sens td.na { color: var(--muted); }

/* 逆算 */
.dcf-imp { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.9; }
.dcf-imp b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* 年ごとの内訳 */
.dcf-years { margin-top: 16px; }
.dcf-years summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); }
.dcf-years .table-scroll { max-height: 420px; overflow-y: auto; margin-top: 8px; }
.dcf-sm { display: block; font-size: 11px; color: var(--muted); }

/* 狭い画面で横にはみ出さない */
#formula .fl { overflow-wrap: anywhere; }
html[data-ui="v2"] #result .res-hero .sub, html[data-ui="v2"] #result .res-mini .s { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  table.data.dcf-sens { font-size: 12px; }
  table.data.dcf-sens td, table.data.dcf-sens th { padding-left: 4px; padding-right: 4px; }
}
