/* 理科ラボ 標準問題の型（2026-10-18）。ページの枠は publication.css などを使う */
.pr-lead { max-width: 720px; color: #496373; line-height: 1.7; }
.pr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; margin: 0 0 18px; }
.pr-tlabel { flex-basis: 100%; margin-top: 4px; color: #496373; font-size: .85rem; font-weight: 800; }
.pr-tools button, .pr-dl { min-height: 42px; padding: 9px 16px; border: 1px solid #087c86; border-radius: 10px; color: #087c86; background: #fff; font-weight: 750; text-decoration: none; }
.pr-tools button:hover, .pr-dl:hover { color: #fff; background: #087c86; }
.pr-note { flex-basis: 100%; margin: 2px 0 0; color: #71848d; font-size: .82rem; }
.pr-progress { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 0 18px; padding: 10px 14px; border: 1px solid #d8e3e7; border-radius: 14px; background: rgba(255,255,255,.96); font-weight: 800; }
.pr-progress[hidden] { display: none; }
.pr-pts { margin-left: auto; color: #496373; }
.pr-card { max-width: 760px; margin: 0 0 20px; padding: 20px; border: 1px solid #d8e3e7; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(29,63,78,.08); }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.pr-no { font-weight: 900; color: #087c86; }
.pr-type { padding: 3px 9px; border-radius: 999px; background: #e9f8fa; color: #087c86; font-size: .78rem; font-weight: 800; }
.pr-pt { margin-left: auto; color: #71848d; font-size: .82rem; }
.pr-q { margin: 0 0 14px; font-size: 1.06rem; font-weight: 800; line-height: 1.7; }
.pr-q .num { padding: 0 3px; border-radius: 5px; background: #fff4d6; }
.pr-fig { margin: 0 0 14px; }
.pr-fig > svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.pr-fig.lesson { border: 1px solid #e3ecef; border-radius: 12px; background: #f7fbfc; overflow: hidden; }
.pr-fig.lesson > svg { max-width: none; }
.pr-side:empty { display: none; }
.pr-side svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 10px; }
.pr-choices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pr-choices button { width: 100%; min-height: 48px; text-align: left; color: #173b52; background: #f3fbfc; border: 2px solid #c8e4e7; font-weight: 750; touch-action: manipulation; }
.pr-choices button:hover:not(:disabled) { color: #173b52; background: #e9f8fa; border-color: #087c86; }
.pr-choices button:disabled { opacity: 1; cursor: default; }
.pr-choices .ok { border-color: #2e9d6a; background: #e8f7ef; }
.pr-choices .ng { border-color: #e0894a; background: #fdf1e8; }
.pr-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pr-input input { width: 7.5em; min-height: 48px; padding: 8px 10px; border: 2px solid #b8ced3; border-radius: 10px; font: inherit; font-size: 1.15rem; font-weight: 800; text-align: right; }
.pr-input .unit { font-size: 1.1rem; font-weight: 800; }
.pr-input.ok input { border-color: #2e9d6a; background: #e8f7ef; }
.pr-input.ng input { border-color: #e0894a; background: #fdf1e8; }
.pr-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pr-row .ghost { border: 1px solid #087c86; color: #087c86; background: #fff; }
.pr-row .ghost:hover { color: #fff; }
.pr-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; line-height: 1.7; }
.pr-msg[hidden] { display: none; }
.pr-msg.ok { background: #e8f7ef; border-left: 5px solid #2e9d6a; }
.pr-msg.ng { background: #fdf1e8; border-left: 5px solid #e0894a; }
.pr-msg.hint { background: #fff8e6; border-left: 5px solid #c9962c; }
.pr-msg.ex { background: #f3f7f9; border-left: 5px solid #087c86; }
.pr-msg strong { display: block; margin-bottom: 2px; }
.pr-steps { margin: 6px 0 0; padding-left: 1.3em; }
.pr-steps li { margin: 2px 0; }
.pr-think textarea { width: 100%; min-height: 90px; padding: 10px; border: 1px solid #b8ced3; border-radius: 10px; font: inherit; line-height: 1.6; }
.pr-self { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pr-self button { flex: 1; min-width: 110px; }
.pr-self .b-ok { background: #2e9d6a; } .pr-self .b-mid { background: #b8862a; } .pr-self .b-ng { background: #d9783a; }
.pr-self button[aria-pressed="true"] { outline: 3px solid #173b52; outline-offset: 2px; }
.pr-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-tiles button { min-height: 48px; color: #173b52; background: #f3fbfc; border: 2px solid #c8e4e7; font-weight: 750; }
.pr-tiles button:disabled { opacity: .35; }
.pr-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 52px; margin: 12px 0; padding: 8px 10px; border: 2px dashed #c8e4e7; border-radius: 12px; font-weight: 900; }
.pr-slots .ph { color: #8aa0a8; font-weight: 600; font-size: .9rem; }
/* JavaScript が動かないときは「答えと解説」を開いて読む */
.pr-static summary { min-height: 44px; padding: 10px 0; color: #087c86; font-weight: 800; cursor: pointer; }
.pr-static .pr-ans { padding: 12px 14px; border-radius: 12px; background: #f3f7f9; line-height: 1.7; }
.pr-js .pr-static { display: none; }
.pr-static-list { margin: 0 0 8px; padding-left: 1.4em; }
.pr-score { max-width: 760px; margin: 0 0 24px; padding: 22px; border: 2px solid #087c86; border-radius: 18px; background: #fff; scroll-margin-top: 72px; }
.pr-score[hidden] { display: none; }
.pr-print { display: none; }
@media (max-width: 760px) { .pr-card { padding: 16px; } }

/* ---------- 印刷・PDF（A4） ---------- */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  html, body, main, .page-shell { background: #fff !important; box-shadow: none !important; }
  .page-shell > *:not(.pr-print), .lab-site-header { display: none !important; }
  .page-shell { width: auto; margin: 0; padding: 0; }
  .pr-print { color: #000; font-size: 10.5pt; line-height: 1.55; }
  body[data-print="q"] #print-q, body[data-print="a"] #print-a, body[data-print="e"] #print-e { display: block; }
}
.pr-sheet h1 { margin: 0; font-size: 15pt; }
.pr-sheet .sub { margin: 2px 0 8px; color: #333; font-size: 9pt; }
.pr-namebox { display: flex; gap: 8px; margin: 6px 0 10px; font-size: 10pt; }
.pr-namebox span { flex: 1; min-height: 30px; padding: 6px 8px; border: 1px solid #000; }
.pr-namebox span.score { flex: 0 0 34%; text-align: right; }
.pr-pq { break-inside: avoid; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px dotted #999; }
.pr-pq .qt { margin: 0 0 4px; font-weight: 700; }
.pr-pq .pt { font-size: 9pt; font-weight: 400; }
.pr-pq ol.ch { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 4px; padding-left: 0; list-style: none; }
.pr-ansline { display: flex; justify-content: flex-end; align-items: flex-end; gap: 6px; margin-top: 4px; }
.pr-ansline .box { display: inline-block; min-width: 34mm; height: 9mm; border: 1.2px solid #000; }
.pr-calc { height: 20mm; margin: 4px 0; padding: 2px 6px; border: 1px dashed #999; color: #666; font-size: 8pt; }
.pr-drawbox { height: 55mm; margin: 4px 0; padding: 2px 6px; border: 1px solid #999; color: #666; font-size: 8pt; }
.pr-lines { margin-top: 4px; }
.pr-lines div { height: 8.5mm; border-bottom: 1px solid #666; }
.pr-pfig svg { display: block; width: 120mm; max-height: 70mm; height: auto; margin: 2px 0 4px; }
/* 教材の図は、本体と横のグラフを横にならべて高さをおさえる */
.pr-pfig.wide { display: flex; align-items: flex-start; gap: 4mm; }
.pr-pfig.wide > svg { width: 110mm; max-height: 62mm; }
.pr-pfig .pr-side svg { width: 58mm; max-height: 50mm; margin: 2px 0 4px; }
.pr-atable { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 10.5pt; }
.pr-atable th, .pr-atable td { padding: 5px 8px; border: 1px solid #000; text-align: left; vertical-align: top; }
.pr-atable th { background: #eee; text-align: center; }
.pr-atable td.no { width: 12mm; background: #f4f4f4; font-weight: 700; text-align: center; }
.pr-atable td.pt { width: 14mm; text-align: center; }
.pr-ex { break-inside: avoid; margin: 0 0 10px; padding: 6px 8px; border: 1px solid #999; border-radius: 4px; }
.pr-ex h3 { margin: 0 0 3px; font-size: 11pt; }
.pr-ex p { margin: 2px 0; }
.pr-ex .miss { color: #333; font-size: 9.5pt; }
.pr-foot { margin-top: 8px; color: #555; font-size: 8pt; text-align: right; }
