/* PROJECTOR NOTE（primary_mode throw）の追加スタイル。style.css の上に重ねる。 */
.room-box { margin-top: 22px; background: var(--surface); border: 2px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-1); }
.room-h { font-size: 18px; margin-bottom: 8px; }
.rf { display: grid; gap: 14px; }
.rf-g { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.rf-g[hidden], .rf-row[hidden] { display: none; }
.rf-g legend { font-weight: 800; font-size: 14px; padding: 0; margin-bottom: 4px; font-family: var(--font-head); }
.rf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rf-f { display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rf-f select, .rf-f input[type=number] { min-height: 44px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 8px; min-width: 0; width: 100%; }
.rf-inch { display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: center; }
.rf-inch input[type=range] { width: 100%; accent-color: var(--primary); min-height: 44px; }
.rf-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.rf-place { position: relative; }
.rf-place input { position: absolute; opacity: 0; inset: 0; }
.rf-place span { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 700; background: #fff; line-height: 1.3; }
.rf-place input:checked + span { border-color: var(--primary); background: var(--hl-soft); color: var(--ink); }
.rf-place input:focus-visible + span { outline: 3px solid var(--accent); }
.rf-detail { font-size: 13px; }
.rf-detail summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 32px; }
.rf-detail .rf-row { margin-top: 8px; }
.rf-assume { background: #F3F4FB; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.rf-assume p { margin: 2px 0; }
.card-throw { margin-top: auto; padding-top: 6px; font-size: 12.5px; line-height: 1.6; }
.card-throw p { margin: 0; }
.card-throw.ct-fits p:first-child { color: var(--fit-ink); font-weight: 700; }
.card-throw.ct-maybe p:first-child { color: var(--check-ink); font-weight: 700; }
.card-throw.ct-maybe { border-top: 1px dashed var(--check); margin-top: 6px; }
.card-throw.ct-unknown, .card-throw.ct-no { color: var(--muted); }
.spec-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0; }
.spec-tags li { font-size: 12px; font-weight: 700; background: #E7EDFF; color: #17358F; border-radius: 999px; padding: 1px 10px; }
.f-label { font-size: 12.5px; font-weight: 700; margin: 4px 0 0; }
.f-range { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.f-range .f-label { flex-basis: 100%; }
.f-range input { width: 90px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; }
.f-group select { min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; padding: 0 6px; max-width: 100%; }
.big-n { font-family: var(--font-head); font-size: 26px; color: var(--primary-d); }
.thr-table, .spec-tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.thr-table th, .thr-table td, .spec-tbl th, .spec-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.thr-table thead th, .spec-tbl thead th { background: #F3F4FB; font-size: 12.5px; }
.spec-tbl tbody th { width: 38%; font-weight: 700; color: var(--muted); font-size: 13px; }
.spec-tbl tr.grp th { background: #F3F4FB; color: var(--ink); font-family: var(--font-head); width: auto; }
.src-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 6px; line-height: 1.6; }
.src-table { background: #DDF3E8; color: #0B5A39; }
.src-interp { background: #E7EDFF; color: #17358F; }
.src-calc { background: #FFF1CC; color: #5B3A00; border: 1px dashed var(--check); }
.src-none { background: #EEE; color: #555; }
.thr-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.spec-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.spec-meta a { white-space: nowrap; }
.spec-conf { display: block; font-size: 12px; color: var(--check-ink); background: #FFF6DC; border-radius: 6px; padding: 2px 8px; margin-top: 4px; }
.fit-cols { display: grid; gap: 12px; }
@media (min-width: 720px) { .fit-cols { grid-template-columns: 1fr 1fr; } }
.fit-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.fit-col h3 { font-size: 15px; margin-bottom: 6px; }
.fit-col ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.fit-col.good h3 { color: var(--fit-ink); }
.fit-col.bad h3 { color: var(--ng); }
.assume-box { background: #F3F4FB; border-radius: 12px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.assume-box p { margin: 2px 0; }
.gal-ph { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; aspect-ratio: 4 / 3; width: 100%; border: 1px solid var(--line); border-radius: 18px; background: repeating-linear-gradient(135deg, #F5F6FC 0 14px, #EEF0FA 14px 28px); color: #6A6F9A; text-align: center; font-size: 13px; }
.gal-ph .ph-ic { width: 84px; height: 84px; }
.gal-img { aspect-ratio: 4 / 3; width: 100%; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.gal-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-media .ph .ic.ph-ic { width: 54px; height: 54px; color: #8087B8; }

/* ---- 疑問ページ（/q）と計算ツール（/tools）。SPEC.md §12 ---- */
.q-page { padding-top: 12px; padding-bottom: 32px; max-width: 880px; }
.q-head { margin: 10px 0 14px; }
.q-head h1 { font-size: clamp(22px, 5.2vw, 30px); line-height: 1.4; margin: 4px 0 6px; }
.q-group { display: inline-block; font-size: 12px; font-weight: 800; color: var(--primary-d); background: #E7EDFF; border-radius: 999px; padding: 1px 10px; margin: 0; }
.lead-s { color: var(--muted); margin: 4px 0 0; }
.q-answer { background: #F3F4FB; border: 2px solid var(--primary); border-radius: 18px; padding: 14px 16px; margin: 8px 0 14px; }
.q-answer h2 { font-size: 14px; color: var(--primary-d); margin: 0 0 4px; }
.q-answer-text p { font-size: 17px; font-weight: 700; line-height: 1.7; margin: 0 0 6px; }
.q-answer-src { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.q-body h2, .q-sources h2 { font-size: 19px; margin-top: 22px; }
.q-body p, .q-body li { line-height: 1.8; }
.q-body table.md-table, .q-page table.md-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.md-table th, .md-table td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.md-table thead th { background: #F3F4FB; font-size: 13px; }
.marks { white-space: nowrap; font-size: 12px; }
.mk { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 0 6px; line-height: 1.6; margin-left: 2px; text-decoration: none; }
.mk-src { background: #E7EDFF; color: #17358F; }
.mk-calc { background: #FFF1CC; color: #5B3A00; border: 1px dashed var(--check); }
.mk-site { background: #EEE; color: #444; }
.src-line { margin: 2px 0 8px; font-size: 12px; }
.src-list { padding-left: 1.4em; font-size: 14px; }
.src-list li { margin-bottom: 8px; word-break: break-all; }
.src-type { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.src-claims { font-size: 12.5px; color: var(--muted); }
.src-claims summary { cursor: pointer; min-height: 28px; }
.src-claims ul { margin: 4px 0; padding-left: 1.2em; }
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.q-list a { display: block; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.q-list a:hover { border-color: var(--primary); }
.q-page h2 small { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.tool-card h3 { font-size: 17px; margin: 0 0 4px; }
.tool-card p { margin: 0; font-size: 14px; color: var(--muted); }
.tool-box { display: grid; gap: 14px; margin: 12px 0; }
.tcard { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-1); }
.tcard h2 { font-size: 17px; margin: 0 0 8px; }
.tcard h3 { font-size: 15px; margin: 14px 0 4px; }
.t-out { margin-top: 10px; }
.t-out .v-text { margin: 4px 0 8px; }
.tq-btns { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0; }
.tq-list { padding-left: 1.2em; margin: 4px 0; font-size: 14px; line-height: 1.8; }
.f-hint { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; }
.mtable th, .mtable td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mtable th { width: 32%; color: var(--muted); font-weight: 700; font-size: 13px; }
.qt-box { margin-top: 18px; }
.qt-box h2 { font-size: 18px; margin-bottom: 4px; }
.qt-box .chip-list { margin: 8px 0; }

/* ---- コラム（/guide）。SPEC.md §12-6 ---- */
.guide-points { background: #F3F4FB; border: 2px solid var(--primary); border-radius: 18px; padding: 12px 16px; margin: 8px 0 18px; }
.guide-points h2 { font-size: 15px; color: var(--primary-d); margin: 0 0 4px; }
.guide-points ul { margin: 4px 0 0; padding-left: 1.2em; line-height: 1.8; }
.guide-page .q-body h2 { margin-top: 26px; }
