/* ============================================================
   E-計算！ Fortune — マヤ暦（maya-kin.html）だけで使う見た目
   共通（../assets/css/ek.css・css/fortune.css）の上に重ねる。色は変数だけを使う。クラスは my- で始める。
   入力欄・解釈の札・比較表の形は九星気学（kyusei.css）とそろえた。
   ============================================================ */

/* 「まず結論」（解説の最初） */
.my-quick { margin: 4px 0 20px; }
.my-quick ul { margin: 2px 0 0; }
.my-quick li { margin: 2px 0; }

/* ---- 入力 ---- */
.my-date { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
html[data-ui="v2"] .my-date input[type="text"], html[data-ui="v2"] input.my-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"] .my-date input[type="text"]:focus, html[data-ui="v2"] input.my-text:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
html[data-ui="v2"] .my-date input.bad, html[data-ui="v2"] input.my-text.bad { border-color: var(--s2, #B4442C); border-width: 2px; }
.my-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;
}
.my-pick:hover { background: var(--accent-soft); color: var(--accent); }
.my-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.my-pick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.my-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"] .my-date input[type="text"], html[data-ui="v2"] input.my-text { font-size: 16px; } }
html[data-ui="v2"] select.my-sel { width: 100%; max-width: 100%; min-width: 0; }
.my-lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
details.my-more { margin: 4px 0 14px; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); padding: 2px 0; }
details.my-more > summary { cursor: pointer; padding: 10px 2px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
details.my-more[open] > summary { margin-bottom: 4px; }
.my-rule { display: grid; gap: 6px; }
.my-rule label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.6; cursor: pointer; min-width: 0; }
.my-rule input { margin-top: 5px; flex: none; }
.my-hint { margin: 6px 0 0; }
.vp-samples .vp-sample { max-width: 100%; white-space: normal; text-align: left; }

/* ---- 結果 ---- */
html[data-ui="v2"] .my-out .res-hero .big b { font-size: clamp(30px, 8.6vw, 42px); overflow-wrap: normal; }
.my-two { display: inline-block; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.35; }
.my-or { font-size: 0.6em; font-weight: 400; margin: 0 0.4em; color: var(--ink-2); }
html[data-ui="v2"] .my-out .res-mini .v { overflow-wrap: anywhere; word-break: normal; font-size: 16px; line-height: 1.4; }
html[data-ui="v2"] .my-out .res-mini .s { overflow-wrap: anywhere; }
html[data-ui="v2"] .my-out .res-mini > div { min-width: 0; }
@media (max-width: 400px) { html[data-ui="v2"] .my-out .res-mini .v { font-size: 15px; } }
.my-rule-line { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); padding: 8px 10px; background: var(--page); border-radius: var(--r); }
/* 読み込み直後（計算の前）は欄の高さを確保する。計算が最初に外す。入力の前は案内だけなので低め（2026-11-04 たたむ見せ方） */
#resultPanel.my-pending { min-height: 200px; }
#todayOut.my-pending-today { min-height: 420px; }
#resultPanel [hidden] { display: none !important; }
.my-h3 { margin: 18px 0 6px; font-size: 15px; }
.my-detail { margin: 8px 0 10px; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
#interpBox .my-interp-box { margin-top: 6px; }
.my-note { margin-top: 12px; }
.my-fl { display: block; margin: 0 0 6px; overflow-wrap: anywhere; }

/* 方式ごとの比較表（選んでいる方式と違う所に印） */
html[data-ui="v2"] table.data.my-cmp { width: 100%; }
html[data-ui="v2"] table.data.my-cmp td { vertical-align: middle; }
html[data-ui="v2"] table.data.my-cmp td:first-child { min-width: 9em; }
html[data-ui="v2"] table.data.my-cmp td.my-k { white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-ui="v2"] table.data.my-cmp tr.my-sel-row td { background: var(--accent-soft); }
html[data-ui="v2"] table.data.my-cmp td.my-diff { font-weight: 700; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.my-cmp-note { margin: 6px 0 0; }

/* ガイド・類似・反対・神秘（十字の並び。狭い画面は縦に並べる） */
.my-orc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.my-orc > div { min-width: 0; padding: 8px 6px; border: 1px solid var(--grid); border-radius: var(--r); background: var(--surface); text-align: center; }
.my-orc .my-o-k { display: block; font-size: 11.5px; color: var(--muted); }
.my-orc b { display: block; font-size: 15px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.my-orc .my-o-n { display: block; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.my-orc .my-o-c { background: var(--accent-soft); border-color: var(--accent); }
.my-orc .my-o-e { visibility: hidden; }
@media (max-width: 400px) {
  .my-orc { grid-template-columns: minmax(0, 1fr); }
  .my-orc .my-o-e { display: none; }
}

/* 解釈（13の月の暦の言葉の紹介）：計算と見た目で分ける */
.my-interp-tag { display: inline-block; margin: 4px 0 8px; padding: 1px 10px; border-radius: 999px; font-size: 12px; background: var(--page); color: var(--ink-2); border: 1px solid var(--grid); }
.my-interp-box { margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--grid); border-radius: var(--r); background: var(--page); min-width: 0; }
.my-interp-box .my-h3 { margin-top: 10px; }
.my-in-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) { .my-in-grid { grid-template-columns: minmax(0, 1fr); } }
.my-in { min-width: 0; padding: 8px 10px; background: var(--surface); border: 1px solid var(--grid); border-radius: var(--r); }
.my-in b { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 2px; }
.my-in p { margin: 0; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.my-in-note { margin: 4px 0 6px; }
.my-interp-sec .my-interp-tag { margin-top: 0; }

/* 表（計算のしかた・今日の KIN・一覧） */
html[data-ui="v2"] table.data.my-st { width: 100%; }
html[data-ui="v2"] table.data.my-st td { vertical-align: middle; }
html[data-ui="v2"] table.data.my-st td.my-k, html[data-ui="v2"] table.data.my-st td.my-d { white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-ui="v2"] table.data.my-st tr.hit td { background: var(--accent-soft); font-weight: 600; }
html[data-ui="v2"] table.data.my-lt td, html[data-ui="v2"] table.data.my-lt th { vertical-align: top; font-size: 13.5px; line-height: 1.7; }
html[data-ui="v2"] table.data.my-lt td.my-k { white-space: nowrap; }
@media (max-width: 400px) {
  html[data-ui="v2"] table.data.my-st th, html[data-ui="v2"] table.data.my-st td,
  html[data-ui="v2"] table.data.my-lt th, html[data-ui="v2"] table.data.my-lt td { padding-left: 6px; padding-right: 6px; }
}

/* ---- 今日の KIN・早見表 ---- */
.my-ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.my-ctl .field { margin-bottom: 0; flex: 0 1 auto; min-width: 0; max-width: 100%; }
html[data-ui="v2"] .my-ctl select { width: auto; min-width: 8em; max-width: 100%; }
.my-today { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 12px; }
@media (max-width: 560px) { .my-today { grid-template-columns: minmax(0, 1fr); } }
.my-today > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--grid); border-radius: var(--r); background: var(--surface); }
.my-today .my-t-k { display: block; font-size: 12px; color: var(--muted); }
.my-today b { display: block; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.my-today .my-t-s { display: block; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.my-hy-box { max-height: 560px; overflow: auto; }
html[data-ui="v2"] table.data.my-hyt { width: 100%; }
html[data-ui="v2"] table.data.my-hyt td, html[data-ui="v2"] table.data.my-hyt th { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; padding-left: 6px; padding-right: 6px; }
html[data-ui="v2"] table.data.my-hyt th:first-child, html[data-ui="v2"] table.data.my-hyt td:first-child { text-align: left; }
html[data-ui="v2"] table.data.my-hyt td.hit { background: var(--accent-soft); font-weight: 700; color: var(--accent); }

/* ---- 本文 ---- */
.my-formula { padding: 10px 12px; background: var(--page); border-radius: var(--r); overflow-wrap: anywhere; }
