/* その日、大地震が来た 固有スタイル（色は common.css の変数のみ） */
.h-sec { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.jz-hero > * + * { margin-top: 10px; }
.jz-hero { padding: 4px 0 16px; }
.jz-landing { border-color: var(--accent); background: var(--accent-soft); }
.jz-landing-q { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.jz-daily .daily-box b { display: block; line-height: 1.4; }

/* 絵 */
.jz-scene svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.jz-hero-art svg { max-height: 200px; }
.jz-house .jz-sky-day { fill: var(--info-soft); }
.jz-house .jz-sky-night { fill: var(--text); opacity: .85; }
.jz-house .jz-sun { fill: var(--warn); }
.jz-house .jz-moon { fill: var(--surface); }
.jz-house .jz-wall { fill: var(--surface); stroke: var(--text-sub); stroke-width: 2; }
.jz-house .jz-roof { fill: var(--accent); }
.jz-house .jz-win { fill: var(--warn); opacity: .55; }
.jz-house .jz-door { fill: var(--text-sub); }
.jz-house .jz-ground { fill: var(--good); opacity: .35; }
.jz-house.is-small { max-height: 110px; }
.is-quake .jz-quake { animation: jz-quake .18s linear 8; transform-origin: 110px 130px; }
@keyframes jz-quake { 0% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } 100% { transform: translateX(0) rotate(0); } }
.jz-intro { text-align: left; }
.jz-intro > * + * { margin-top: 12px; }
.jz-intro-title { font-size: 22px; font-weight: 900; }

/* 入力 */
.flow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.jz-seg { display: grid; gap: 8px; margin-bottom: 10px; }
.jz-seg.cols-3 { grid-template-columns: repeat(3, 1fr); }
.jz-seg.cols-4 { grid-template-columns: repeat(4, 1fr); }
.jz-seg.cols-5 { grid-template-columns: repeat(5, 1fr); }
.jz-seg.cols-3 .choice, .jz-seg.cols-4 .choice, .jz-seg.cols-5 .choice { padding: 10px 4px; min-height: 48px; text-align: center; font-size: 14px; }
.jz-checks { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 560px) { .jz-checks { grid-template-columns: 1fr 1fr; } }
.jz-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.jz-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.jz-check b { display: block; font-size: 15px; line-height: 1.4; }
.jz-check small { display: block; font-size: 12px; color: var(--text-sub); }

/* プレイ */
.jz-head { margin-bottom: 12px; }
.jz-head .progress { margin: 6px 0 10px; }
.jz-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.jz-timeline { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0; position: relative; }
.jz-timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: var(--line); }
.jz-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1; font-size: 11px; color: var(--text-sub); }
.jz-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); z-index: 1; }
.jz-timeline li.done .jz-dot { background: var(--good); border-color: var(--good); }
.jz-timeline li.now .jz-dot { background: var(--accent); border-color: var(--accent); }
.jz-timeline li.now { color: var(--text); font-weight: 800; }
.jz-tl-label { white-space: nowrap; margin-top: 2px; }
.jz-phase-title { font-size: 22px; font-weight: 900; margin: 6px 0 10px; }
.jz-scene-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
@media (min-width: 560px) { .jz-scene-row { grid-template-columns: 200px 1fr; align-items: center; } }
.jz-meters { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }
.jz-meter { display: grid; grid-template-columns: 64px 1fr 30px 36px; align-items: center; gap: 8px; font-size: 13px; }
.jz-m-label { white-space: nowrap; font-weight: 700; }
.jz-m-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.jz-m-bar > span { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.jz-m-bar.good > span { background: var(--good); }
.jz-m-bar.mid > span { background: var(--warn); }
.jz-m-bar.low > span { background: var(--bad); }
.jz-m-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.jz-m-diff { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jz-m-diff.up { color: var(--good); }
.jz-m-diff.down { color: var(--bad); }
.jz-events { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.jz-ev { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 15px; animation: jz-in .4s ease both; }
.jz-ev.good { border-left-color: var(--good); }
.jz-ev.bad { border-left-color: var(--bad); }
.jz-ev-d { display: block; font-size: 12px; color: var(--text-sub); font-weight: 700; margin-top: 2px; }
@keyframes jz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jz-q-text { font-size: 18px; font-weight: 700; line-height: 1.6; }
.jz-delta { font-weight: 800; color: var(--text-sub); }

/* 結果 */
.jz-res-card { border-color: var(--info); }
.jz-res-line { font-size: 22px; font-weight: 900; line-height: 1.5; margin: 6px 0 12px; }
.jz-miss { color: var(--accent); white-space: nowrap; }
.jz-rank-row { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.jz-rank { width: 76px; height: 76px; flex: none; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; color: var(--accent-ink); background: var(--accent); }
.jz-rank.r-S { background: var(--good); }
.jz-rank.r-A { background: var(--info); }
.jz-rank.r-B { background: var(--warn); }
.jz-rank.r-C, .jz-rank.r-D { background: var(--text-sub); }
.jz-again { margin: 12px 0 16px; }
.jz-again .btn { min-width: 0; }
.jz-todo { border-color: var(--good); }
.jz-todo-row { margin-bottom: 8px; }
.jz-fact { border-left: 3px solid var(--info); padding-left: 10px; margin-top: 10px; }
.jz-titles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jz-title { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 10px; opacity: .6; }
.jz-title.on { border: 1px solid var(--accent); background: var(--accent-soft); opacity: 1; }
.jz-title b { display: block; font-size: 14px; }
.jz-title small { font-size: 11px; color: var(--text-sub); line-height: 1.4; display: block; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.bar-row.is-me .bar-label { font-weight: 800; color: var(--accent); }
.bar-label { width: 64px; flex: none; white-space: nowrap; }
.bar-pct { width: 44px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.src-list { margin: 4px 0 8px; padding-left: 1.2em; }

/* 静的解説 */
.jz-about h2 { font-size: 20px; }
.jz-about h3 { font-size: 16px; margin-top: 14px; }
.jz-about p, .jz-about li { font-size: 14px; }

@media (max-width: 380px) {
  .jz-seg.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .jz-seg.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .jz-meter { grid-template-columns: 58px 1fr 28px 32px; gap: 6px; }
  .jz-tl-label { font-size: 10px; }
}
