/* ============================================================
   為替ヘッジのコストの計算（money/fx-hedge.html）だけの見た目
   色は共通の変数だけを使う（money.css・ek.css の v2 層の上に重ねる）
   ============================================================ */

/* 「円」「ドル」の札 */
html[data-ui="v2"] .input-unit .unit.fh-tag { min-width: 0; font-weight: 700; color: var(--ink-2); max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-days { margin: 8px 0 0; }

html[data-ui="v2"] #form select {
  width: 100%; height: 44px; padding: 0 10px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
}
@media (max-width: 560px) { html[data-ui="v2"] #form select { font-size: 16px; } }

/* 比べる表 */
table.data.fh-tbl td.n .sub { font-size: 11.5px; }
table.data tr.hit td { background: var(--accent-soft); font-weight: 700; }
table.data td.down { color: var(--s2, #B4442C); }
.formula code, #formula code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; background: var(--page); padding: 1px 5px; border-radius: 4px; color: var(--ink); overflow-wrap: anywhere; }
#formula .fl { overflow-wrap: anywhere; }
html[data-ui="v2"] #result .res-hero .big b, html[data-ui="v2"] #result .res-hero .sub, html[data-ui="v2"] #result .res-mini .v { overflow-wrap: anywhere; }
table.data.fh-tbl th:first-child, table.data.fh-tbl td:first-child { text-align: left; }
@media (max-width: 560px) { table.data.fh-tbl th, table.data.fh-tbl td { padding-left: 6px; padding-right: 6px; } }

/* 過去の為替の値動き（参考） */
.fh-hist-mode { margin: 4px 0 10px; max-width: 520px; }
table.data.fh-hist caption { caption-side: top; text-align: left; font-size: 13px; color: var(--ink-2); padding: 0 0 6px; }
table.data.fh-hist td .sub { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 400; white-space: nowrap; }
@media (max-width: 560px) { html[data-ui="v2"] .fh-hist-mode label { padding: 9px 4px; font-size: 13px; } }
