/* ============================================================
   CFD の保有コスト（money/cfd-cost.html）だけの見た目
   色は共通の変数だけを使う（money.css・ek.css の v2 層の上に重ねる）
   ============================================================ */

/* 金利調整：率（または1日の額）＋ 支払う／受け取る */
.cc-rate { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.cc-rate .input-unit { flex: 1 1 auto; min-width: 0; }
.cc-rate .input-unit[hidden] { display: none; }
.cc-rate select { flex: 0 0 7.5em; }
.cc-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);
}
html[data-ui="v2"] #form .cc-rate select { width: auto; }
@media (max-width: 560px) { html[data-ui="v2"] #form select { font-size: 16px; } }

/* 結果のそばの注意 */
.cc-risk { margin-top: 14px; }
.cc-risk[hidden] { display: none; }

/* 内訳の表 */
table.data.cc-tbl th:first-child, table.data.cc-tbl td:first-child { text-align: left; }
table.data tr.hit td { background: var(--accent-soft); font-weight: 700; }
table.data td.down { color: var(--s2, #B4442C); }
#formula code, .article 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 .sub, html[data-ui="v2"] #result .res-mini .s { overflow-wrap: anywhere; }
@media (max-width: 560px) { html[data-ui="v2"] table.data.cc-tbl th, html[data-ui="v2"] table.data.cc-tbl td { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 420px) { html[data-ui="v2"] table.data.cc-tbl th, html[data-ui="v2"] table.data.cc-tbl td { font-size: 12.5px; padding-left: 4px; padding-right: 4px; } }
