/* ============================================================
   E-計算！ Fortune — 二十四節気・七十二候（nijushisekki.html）だけで使う見た目
   共通（../assets/css/ek.css・css/fortune.css）の上に重ねる。色は変数だけを使う。クラス名は sk- で始める。
   ============================================================ */

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

/* 調べること（3つの切り替え） */
html[data-ui="v2"] .radio-row.sk-seg3.sk-seg3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  background: var(--page); border-radius: var(--r); padding: 3px;
}
html[data-ui="v2"] .radio-row.sk-seg3.sk-seg3 label {
  flex: none; justify-content: center; text-align: center; padding: 9px 4px; font-size: 13.5px; line-height: 1.4; min-width: 0;
  background: transparent; color: var(--ink-2); border-radius: 8px; overflow-wrap: anywhere;
}
html[data-ui="v2"] .radio-row.sk-seg3.sk-seg3 label:has(input:checked) {
  background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent);
}
@media (max-width: 400px) {
  html[data-ui="v2"] .radio-row.sk-seg3.sk-seg3 label { padding: 8px 2px; font-size: 12.5px; }
}
#form .field { min-width: 0; }

/* 日付の欄（文字で入れる欄 ＋ カレンダーのボタン） */
.sk-date { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
html[data-ui="v2"] .sk-date input[type="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"] .sk-date input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
html[data-ui="v2"] .sk-date input.bad { border-color: var(--s2); border-width: 2px; }
.sk-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;
}
.sk-pick:hover { background: var(--accent-soft); color: var(--accent); }
.sk-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sk-pick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sk-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"] .sk-date input[type="text"] { font-size: 16px; } }
.sk-sel { width: 100%; max-width: 100%; min-width: 0; }

/* くわしい条件 */
details.sk-more { margin: 4px 0 14px; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); padding: 2px 0; }
details.sk-more > summary { cursor: pointer; padding: 10px 2px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.sk-lbl { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 6px; color: var(--ink); }
.sk-rule { display: grid; gap: 6px; }
.sk-rule label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.6; cursor: pointer; min-width: 0; }
.sk-rule input { margin-top: 5px; flex: none; }
.sk-hint { margin: 6px 0 0; }

/* ---- 結果 ---- */
#result { min-height: 236px; }
html[data-ui="v2"] .sk-out .res-hero .big { flex-wrap: wrap; row-gap: 0; }
html[data-ui="v2"] .sk-out .res-hero .big b { font-size: clamp(32px, 10vw, 48px); overflow-wrap: anywhere; }
html[data-ui="v2"] .sk-out .res-mini .v { overflow-wrap: anywhere; word-break: normal; min-width: 0; }
html[data-ui="v2"] .sk-out .res-mini .v.text { font-size: 16px; line-height: 1.35; }
html[data-ui="v2"] .sk-out .res-mini .s { overflow-wrap: anywhere; }
html[data-ui="v2"] .sk-out .res-mini > div { min-width: 0; }
@media (max-width: 400px) {
  html[data-ui="v2"] .sk-out .res-mini .v { font-size: 15px; }
  html[data-ui="v2"] .sk-out .res-mini .v.text { font-size: 13.5px; }
}
.sk-p { font-size: 13.5px; line-height: 1.8; margin: 12px 0 0; }
.sk-h3 { font-size: 15px; margin: 18px 0 8px; }

/* 季節のことば（解釈）の箱 */
.sk-interp { margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--grid); border-radius: var(--r); background: var(--page); min-width: 0; }
.sk-tag { display: inline-block; margin: 0 0 8px; padding: 1px 10px; border-radius: 999px; font-size: 12px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--grid); }
.sk-interp dl { margin: 0; }
.sk-interp dt { font-weight: 700; margin-top: 8px; }
.sk-interp dt:first-child { margin-top: 0; }
.sk-interp dt small { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.sk-interp dd { margin: 2px 0 0; line-height: 1.8; font-size: 14px; }
.sk-src { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 今の節気の3つの候 */
.sk-three { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.sk-three li { min-width: 0; padding: 8px 6px; border: 1px solid var(--grid); border-radius: 8px; background: var(--surface); text-align: center; }
.sk-three li.sk-now { border: 2px solid var(--accent); background: var(--accent-soft); }
.sk-three .p { display: block; font-size: 11.5px; color: var(--ink-2); }
.sk-three b { display: block; font-size: 14px; margin: 2px 0; overflow-wrap: anywhere; }
.sk-three .y { display: block; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.35; }
.sk-three .d { display: block; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); margin-top: 2px; }

/* 表 */
table.data tr.sk-on td { background: var(--accent-soft); font-weight: 600; }
table.data td.sk-diff { color: var(--accent); font-weight: 600; }
table.data.sk-list td, table.data.sk-cmp td { white-space: nowrap; }
table.data.sk-list td .sub, table.data.sk-cmp td .sub { white-space: normal; }
table.data.sk-k72 td:nth-child(3), table.data.sk-z td:nth-child(4) { white-space: normal; min-width: 10em; }
table.data.sk-z td { white-space: nowrap; }
table.data.sk-z td .sub { white-space: normal; }
table.data.sk-names tr.sk-first td { border-top: 2px solid var(--grid); }
table.data.sk-names td:nth-child(4) { min-width: 9em; }
table.data.sk-mean td:nth-child(5) { min-width: 14em; }
table.data.sk-mean td.n { text-align: right; }
.sk-legend { font-size: 12px; color: var(--ink-2); line-height: 1.7; margin: 8px 0 0; }
.sk-mark { color: var(--accent); font-weight: 600; }
.sk-disclaimer { margin: 20px 0 0; text-align: center; }

/* 0時に近い時刻の注意 */
.sk-near { margin-top: 14px; font-size: 13.5px; line-height: 1.8; }
.sk-near b { display: block; margin-bottom: 2px; }
