/* ============================================================
   E-計算！ Fortune — 四柱推命の命式（shichu-suimei.html）だけで使う見た目
   共通（../assets/css/ek.css・css/fortune.css）の上に重ねる。色は変数だけを使う。クラス名は sc- で始める。
   ============================================================ */

.sc-quick { margin: 4px 0 20px; }
.sc-quick ul { margin: 2px 0 0; }
.sc-quick li { margin: 2px 0; }

/* ---- 入力 ---- */
#form .field { min-width: 0; }
.sc-lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.sc-lbl .hint { display: block; font-weight: 400; }
.sc-sub { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 6px; color: var(--ink); }
.sc-sub .hint { display: block; font-weight: 400; }
.sc-date { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
html[data-ui="v2"] .sc-date input[type="text"], html[data-ui="v2"] input.sc-text {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; padding: 0 12px; font-size: 15px; font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
}
html[data-ui="v2"] .sc-date input[type="text"]:focus, html[data-ui="v2"] input.sc-text:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
html[data-ui="v2"] .sc-date input.bad, html[data-ui="v2"] input.sc-text.bad, html[data-ui="v2"] select.bad { border-color: var(--s2); border-width: 2px; }
.sc-pick {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.sc-pick:hover { background: var(--accent-soft); color: var(--accent); }
.sc-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sc-pick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sc-native { position: absolute; right: 0; bottom: 0; width: 44px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
@media (max-width: 560px) { html[data-ui="v2"] .sc-date input[type="text"], html[data-ui="v2"] input.sc-text { font-size: 16px; } }
html[data-ui="v2"] select.sc-sel { width: 100%; max-width: 100%; min-width: 0; }
html[data-ui="v2"] .radio-row.sc-gen label { min-width: 0; text-align: center; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
html[data-ui="v2"] .radio-row.sc-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
html[data-ui="v2"] .radio-row.sc-col label { min-width: 0; justify-content: flex-start; text-align: left; line-height: 1.5; overflow-wrap: anywhere; }
details.sc-more { margin: 4px 0 14px; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); padding: 2px 0; }
details.sc-more > summary { cursor: pointer; padding: 10px 2px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
details.sc-more[open] > summary { margin-bottom: 4px; }
.sc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.6; cursor: pointer; }
.sc-check input { margin-top: 4px; flex: none; }
.vp-samples .vp-sample { max-width: 100%; white-space: normal; text-align: left; }

/* ---- 結果 ---- */
#result { min-height: 0; }
#resultPanel [hidden] { display: none !important; }
html[data-ui="v2"] .sc-out .res-hero .big { flex-wrap: wrap; row-gap: 4px; }
html[data-ui="v2"] .sc-out .res-hero .big b { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: clamp(26px, 8vw, 40px); overflow-wrap: normal; }
.sc-pil { display: inline-block; white-space: nowrap; margin-right: 12px; font-size: 17px; font-weight: 700; }
.sc-pil small { font-size: 11px; font-weight: 600; color: var(--muted); margin-right: 2px; vertical-align: 0.6em; letter-spacing: 0; }
html[data-ui="v2"] .sc-out .res-mini .v { overflow-wrap: normal; word-break: normal; }
html[data-ui="v2"] .sc-out .res-mini .s { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  html[data-ui="v2"] .sc-out .res-mini .v { font-size: 15px; }
  html[data-ui="v2"] .sc-out .res-mini .v.text { font-size: 13.5px; }
}
.sc-rule { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); margin: 12px 0 0; padding: 8px 10px; border-radius: var(--r); background: var(--page); overflow-wrap: anywhere; }

/* 命式の表 */
.sc-mwrap { margin-top: 16px; }
table.data.sc-meishiki { width: 100%; table-layout: fixed; }
table.data.sc-meishiki th, table.data.sc-meishiki td { text-align: center; padding: 6px 2px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
table.data.sc-meishiki th[scope="row"] { width: 4.6em; font-size: 12px; color: var(--ink-2); text-align: left; padding-left: 4px; }
table.data.sc-meishiki td small { display: block; font-size: 10.5px; color: var(--muted); }
.sc-big { display: block; font-size: 22px; line-height: 1.2; }
.sc-me { font-size: 12px; color: var(--accent); font-weight: 600; }
.sc-na { color: var(--muted); }
.sc-zk { display: inline-block; margin: 1px; padding: 0 4px; border-radius: 4px; }
.sc-zk small { display: inline; font-size: 9.5px; color: var(--muted); margin-left: 1px; }
.sc-zk.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.sc-legend { font-size: 12px; color: var(--ink-2); line-height: 1.7; margin: 6px 0 0; }

/* 知らせ */
.sc-alert, .sc-info { margin-top: 14px; font-size: 13.5px; line-height: 1.8; }
.sc-alert b, .sc-info b { display: block; margin-bottom: 2px; }
.sc-setsu { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.sc-p { font-size: 13.5px; line-height: 1.8; margin: 10px 0 0; }
.sc-fl { line-height: 1.8; }

/* 五行の数 */
.sc-gogyo { margin: 18px 0 0; padding: 14px; border: 1px solid var(--grid); border-radius: var(--r); background: var(--surface); min-width: 0; }
.sc-gogyo figcaption { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.sc-gogyo ul { list-style: none; margin: 0; padding: 0; }
.sc-gogyo li { display: grid; grid-template-columns: 2em minmax(0, 1fr) 2em; gap: 8px; align-items: center; margin: 4px 0; }
.sc-gname { font-weight: 700; text-align: center; }
.sc-track { display: block; height: 10px; border-radius: 3px; background: var(--page); overflow: hidden; }
.sc-fill { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.sc-gogyo b { text-align: right; font-variant-numeric: tabular-nums; }

/* 大運 */
.sc-sec { margin-top: 18px; }
.sc-sec h3 { font-size: 15px; margin: 0; }
table.data.sc-daiun td { white-space: nowrap; }

/* 本文の表 */
table.data.sc-month-t td, table.data.sc-zokan-t td, table.data.sc-gogyo-t td { white-space: nowrap; }
.sc-disclaimer { margin: 20px 0 0; text-align: center; }

/* 方式ごとの比較 */
.sc-cmp { margin-top: 14px; }
.sc-cmp h4 { font-size: 13.5px; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sc-same { font-size: 12px; font-weight: 400; color: var(--muted); }
table.data.sc-cmpt td, table.data.sc-cmpt th { font-size: 12.5px; white-space: nowrap; }
table.data.sc-cmpt td.sc-mname { white-space: normal; min-width: 11em; max-width: 16em; line-height: 1.5; }
table.data.sc-cmpt tr.sc-diff td { background: var(--accent-soft); }
table.data.sc-cmpt tr.sc-diff td:not(.sc-mname) { color: var(--accent); font-weight: 700; }
table.data.sc-cmpt tr.sc-cur td.sc-mname { font-weight: 700; }

/* 解釈（本に書かれている性格・運勢の読み方）。計算と見た目で分ける */
.sc-kai { margin-top: 16px; padding: 14px 14px 10px; border: 1px solid var(--grid); border-left: 4px solid var(--accent); border-radius: var(--r); background: var(--surface); min-width: 0; }
.sc-kai h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-kaitag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.sc-kai h4 { font-size: 13.5px; margin: 14px 0 4px; }
.sc-kl { margin: 4px 0 0; padding-left: 1.1em; font-size: 13.5px; line-height: 1.8; }
.sc-kl li { margin: 2px 0; }
.sc-bk { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 1.7; background: var(--page); color: var(--ink-2); white-space: nowrap; }
.sc-kd { margin: 4px 0 0; }
.sc-kd dt { font-weight: 700; font-size: 14px; margin-top: 8px; }
.sc-kd dt small { font-weight: 400; font-size: 11.5px; color: var(--muted); margin-left: 8px; }
.sc-kd dd { margin: 0; }
.sc-stat { padding: 8px 10px; border-radius: var(--r); background: var(--page); }
table.data.sc-daiun tr.sc-now td { background: var(--accent-soft); font-weight: 600; }

/* 本文の解釈の表・統計 */
table.data.sc-kai-t td { white-space: normal; min-width: 9em; line-height: 1.6; font-size: 13px; vertical-align: top; }
table.data.sc-kai-t td:first-child { min-width: 4.5em; white-space: nowrap; }
table.data.sc-un-t td:nth-child(n+4) { min-width: 3.5em; white-space: nowrap; }
table.data.sc-hu-t td { white-space: nowrap; }
table.data.sc-hu-t tr.sc-hu td { background: var(--accent-soft); font-weight: 600; }
.sc-srch { font-size: 14px; margin: 14px 0 4px; }
.sc-grade { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 11.5px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
