/* まるっとヘルスラボ — 3つのチェック画面（js/ui-checks.js）。クラスは checks- ではじめる */
.checks { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.checks-head { display: flex; flex-direction: column; gap: 6px; }
.checks-kind { font-size: 14px; font-weight: 800; color: var(--ink-2); letter-spacing: .02em; }
.checks-prog { display: flex; align-items: center; gap: 10px; }
.checks-prog-bar { flex: 1; min-width: 0; }
.checks-prog-num { flex: 0 0 auto; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.checks-prog-num strong { font-size: 20px; color: var(--ink); }
.checks-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.checks-title { font-size: 21px; font-weight: 800; line-height: 1.45; margin: 0; }
.checks-title:focus { outline: none; }
.checks-title:focus-visible { outline: 3px solid var(--miso); outline-offset: 2px; }
.checks-lead { font-size: 16px; margin: 0; }
.checks-body > p { margin: 0; }
.checks-body > .muted { line-height: 1.65; }
.checks-note { line-height: 1.65; }

/* はじめの説明 */
.checks-facts { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.checks-fact { display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; align-items: baseline; }
.checks-fact-k { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.checks-fact-v { font-size: 15px; line-height: 1.55; }

/* 図 */
.checks-illust { display: flex; justify-content: center; }
.checks-illust svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.checks-illust-ph {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 96px;
  padding: 12px 14px; border: 2px dashed var(--line); border-radius: var(--radius-s); background: var(--paper);
}
.checks-illust-ph-label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.checks-illust-desc { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* やり方 */
.checks-sec { display: flex; flex-direction: column; gap: 6px; }
.checks-sec-label { font-size: 15px; font-weight: 800; color: var(--ink-2); margin: 0; }
.checks-how { margin: 0; padding-left: 1.6em; display: flex; flex-direction: column; gap: 8px; }
.checks-how li { line-height: 1.65; padding-left: 2px; }
.checks-how li::marker { font-weight: 800; color: var(--fumi); }
.checks-caution { line-height: 1.6; }
.checks-details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 14px; }
.checks-details summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; cursor: pointer; list-style: none; color: var(--miso); }
.checks-details summary::-webkit-details-marker { display: none; }
.checks-details summary::before { content: "＋"; display: inline-block; width: 1.4em; font-weight: 800; }
.checks-details[open] summary::before { content: "−"; }
.checks-details p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; }

/* 問い */
.checks-ask { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.checks-q { font-size: 18px; font-weight: 800; line-height: 1.5; margin: 0; }
.checks-choices .choice { min-height: 54px; font-size: 16px; }
.checks-yn .choice { justify-content: center; text-align: center; }
.checks-yn .choice-text { align-items: center; }
.checks-help { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.checks-qcard { display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.checks-qcard .checks-q { font-size: 17px; }
.checks-qhead { display: flex; gap: 10px; align-items: flex-start; }
.checks-qnum {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fumi-soft); color: #9a5208; font-weight: 800; font-size: 15px; margin-top: 1px;
}
.checks-qtext { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.checks-qcard.checks-missing { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(194, 65, 58, .14); }

/* 今はできない・あとで */
.checks-skip {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; text-align: left;
  border: 2px dashed var(--line); border-radius: var(--radius-s); background: transparent; color: var(--ink-2);
}
.checks-skip-box {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--ink-2); background: var(--paper);
  display: grid; place-items: center; font-size: 15px; font-weight: 900; line-height: 1; color: transparent;
}
.checks-skip-text { display: flex; flex-direction: column; min-width: 0; }
.checks-skip-label { font-weight: 800; font-size: 16px; line-height: 1.4; }
.checks-skip-sub { font-size: 13px; line-height: 1.5; }
.checks-skip[aria-pressed="true"] { border-style: solid; border-color: var(--ink-2); background: var(--paper-2); color: var(--ink); }
.checks-skip[aria-pressed="true"] .checks-skip-box { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }

/* 数字の入力・2ステップ値 */
.checks-field .field-label { font-size: 16px; }
.checks-field .field-input { max-width: 220px; }
.checks-calc { background: var(--miso-soft); border-radius: var(--radius-s); padding: 12px 14px; color: #1f4f85; display: flex; flex-direction: column; gap: 2px; }
.checks-calc-k { font-size: 13px; font-weight: 800; }
.checks-calc-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.checks-calc-f { font-size: 16px; font-variant-numeric: tabular-nums; }
.checks-calc-n { font-size: 28px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.checks-calc-wait { font-size: 15px; }
.checks-calc-formula { font-size: 13px; opacity: .85; margin-top: 2px; }
.checks-calc-lv { font-size: 16px; font-weight: 800; line-height: 1.5; margin-top: 2px; }
.checks-calc-odd { margin-top: 6px; font-size: 15px; line-height: 1.6; }
.checks-height { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 2px 0; }
.checks-height-k { font-size: 16px; font-weight: 800; }
.checks-height-v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.checks-height-note { font-size: 13px; color: var(--ink-2); line-height: 1.5; flex-basis: 100%; }

/* 目立つ注意 */
.checks-alert { background: var(--warn-soft); border: 2px solid #efb877; border-radius: var(--radius); padding: 14px 16px; color: #6e3510; display: flex; flex-direction: column; gap: 8px; }
.checks-alert-title { font-size: 17px; font-weight: 800; line-height: 1.45; }
.checks-alert-text { font-size: 16px; font-weight: 700; line-height: 1.65; margin: 0; }
.checks-alert-sub { font-size: 13px; font-weight: 800; opacity: .9; }
.checks-alert-list { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.6; }
.checks-pain, .checks-ack-info, .checks-untested { line-height: 1.6; }

/* 根拠 */
.checks-refrow { display: flex; justify-content: flex-end; margin-top: -6px; }
.checks-refrow .ref-btn { min-height: 44px; padding: 8px 4px; font-size: 14px; }
.checks-res-item .checks-refrow, .checks-res-act .checks-refrow, .checks-res-tips .checks-refrow, .checks-l25 .checks-refrow { margin-top: 0; }

/* 結果 */
.checks-res-head { font-size: 17px; font-weight: 800; margin: 4px 0 0; }
.checks-res-item { display: flex; flex-direction: column; gap: 6px; border-left: 5px solid var(--fumi); }
.checks-res-name { font-size: 17px; font-weight: 800; line-height: 1.45; }
.checks-res-ans { font-size: 14px; color: var(--ink-2); }
.checks-res-ans span { font-weight: 700; color: var(--ink); }
.checks-res-meaning { margin: 0; font-size: 15px; line-height: 1.7; }
.checks-res-care { display: flex; gap: 8px; align-items: baseline; background: var(--ok-soft); color: #1f5c38; border-radius: var(--radius-s); padding: 10px 12px; font-size: 15px; line-height: 1.6; }
.checks-res-care-k { flex: 0 0 auto; font-size: 13px; font-weight: 800; background: #fff; border-radius: 999px; padding: 1px 8px; }
.checks-res-good { display: flex; flex-direction: column; gap: 8px; }
.checks-res-good-title, .checks-res-skip-title { font-weight: 800; font-size: 16px; }
.checks-res-skip { display: flex; flex-direction: column; gap: 8px; }
.checks-res-skip .muted { margin: 0; }
.checks-res-blocked { display: flex; flex-direction: column; gap: 6px; }
.checks-res-blocked p { margin: 0; line-height: 1.65; }
.checks-from-consent { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.checks-consent-note { line-height: 1.65; }
.checks-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.checks-chip { background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 14px; white-space: normal; line-height: 1.4; padding: 4px 10px; }
.card .checks-chip { background: var(--paper-2); }
.checks-res-warn { line-height: 1.65; }
.checks-res-act { display: flex; flex-direction: column; gap: 4px; }
.checks-res-k { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.checks-res-v { font-size: 18px; font-weight: 800; line-height: 1.5; }
.checks-res-tips { display: flex; flex-direction: column; gap: 8px; }
.checks-tips { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
.checks-foot-note { font-size: 13px; }

/* ロコモの結果 */
.checks-level { border-radius: var(--radius); padding: 16px; text-align: center; background: var(--miso-soft); color: #1f4f85; }
.checks-level-2, .checks-level-3 { background: var(--warn-soft); color: #6e3510; border: 2px solid #efb877; }
.checks-level-k { font-size: 14px; font-weight: 800; opacity: .85; }
.checks-level-v { font-size: 28px; font-weight: 800; line-height: 1.3; margin: 2px 0 8px; }
.checks-level-msg { margin: 0; text-align: left; font-size: 15px; line-height: 1.7; color: var(--ink); }
.checks-table { display: flex; flex-direction: column; padding: 4px 16px; }
.checks-tr { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.checks-tr:last-child { border-bottom: 0; }
.checks-td-k { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.checks-td-v { font-size: 15px; line-height: 1.55; }
.checks-td-lv { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.checks-l25 { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.checks-l25 p { margin: 0; font-size: 15px; line-height: 1.65; }
.checks-l25-link { min-height: 44px; }
.checks-l25 .checks-refrow { align-self: stretch; }

/* 下の帯（もどる・つぎへ）。画面の下にはりつく */
.checks-foot {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 12px -10px rgba(110, 70, 20, .18);
}
.checks-over-tabs .checks-foot { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
.checks-in-sheet .checks-foot { bottom: 0; padding-bottom: 10px; }
.checks-foot-row { display: flex; gap: 10px; }
.checks-back { flex: 0 0 auto; min-width: 104px; }
.checks-next { flex: 1; min-width: 0; }
.checks-err { color: var(--danger); font-size: 15px; font-weight: 700; line-height: 1.5; }
.checks-err:empty { display: none; }

/* まとめのカード */
.checks-sum { display: flex; flex-direction: column; gap: 8px; }
.checks-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.checks-sum-title { font-size: 16px; font-weight: 800; margin: 0; }
.checks-sum-date { background: var(--ok-soft); color: #256b40; }
.checks-sum-date.is-none { background: var(--paper-2); color: var(--ink-2); }
.checks-sum-body { display: flex; flex-direction: column; gap: 6px; }
.checks-sum-body p { margin: 0; }
.checks-sum-p { font-size: 15px; line-height: 1.6; }
.checks-sum-line { display: grid; grid-template-columns: 8.6em 1fr; gap: 8px; align-items: baseline; font-size: 15px; line-height: 1.55; }
.checks-sum-k { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.checks-sum-line.is-warn .checks-sum-v { color: var(--warn); font-weight: 800; }
.checks-sum-warn { font-size: 14px; padding: 8px 12px; }

@media (min-width: 560px) {
  .checks-title { font-size: 22px; }
  .checks-illust-ph { min-height: 110px; }
}
