/* ── place_shift_reverse2_3（10倍・100倍・1000倍をくらいからぎゃく算しよう、単元仕様書 v1.2）── */
/* 画面：問題文の下にくらいの表（8列2行）、回答案内、回答らん（テンキー）又は4つの選択肢（§5-3・§7 画面表示）。
   480 CSS px より狭い画面では、表の向きを変えてくらいを上から並べ、横スクロールを出さない。 */
.psr-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.psr-figure{margin:0;width:100%;max-width:640px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center}
.psr-table-svg{display:block;width:100%;height:auto}
.psr-table-wide{max-width:640px}
.psr-table-narrow{display:none;max-width:300px}
@media (max-width:479px){
  .psr-table-wide{display:none}
  .psr-table-narrow{display:block}
}
.psr-svg-cell{fill:#fff;stroke:#334155;stroke-width:1.5}
.psr-svg-cell.psr-row-after{fill:#f8fafc}
.psr-svg-digit{font-size:24px;font-weight:700;fill:#111827;font-variant-numeric:tabular-nums}
.psr-table-narrow .psr-svg-digit{font-size:21px}
.psr-svg-head{fill:#1f2937;font-weight:700}
.psr-svg-rowname{font-size:14px;font-weight:700;fill:#1f2937}
.psr-svg-arrow{stroke:#1f2937;stroke-width:2.5}
.psr-svg-mark{font-size:15px;font-weight:700;fill:#1e3a8a}
.psr-svg-digit-arrow{stroke:#1d4ed8;stroke-width:1.8;stroke-dasharray:5 3}
.psr-done-mark{margin:4px 0 0;font-weight:700;color:#1e3a8a;text-align:center}
.psr-response{margin:6px 0 4px;font-weight:700;text-align:center}
.psr-fields{display:flex;justify-content:center;margin:4px auto 2px}
.psr-input{width:8.5em;max-width:70vw;min-height:44px;font-size:1.4rem;padding:4px 8px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;box-sizing:border-box}
.psr-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.psr-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.psr-input.psr-input-ok{border:3px solid #15803d;background:#dcfce7}
.psr-input.psr-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.psr-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em}
.psr-msg:empty{display:none}
.psr-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:30em;margin:6px auto 4px}
.psr-choice{min-height:48px;padding:6px 10px;border:2px solid #64748b;border-radius:10px;background:#fff;font:inherit;font-size:1.1rem;font-weight:700;color:#111827;cursor:pointer;text-align:left}
.psr-choice:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.psr-choice:disabled{cursor:default;opacity:1;color:#111827}
.psr-choice.psr-choice-correct{border:3px solid #15803d;background:#dcfce7}
.psr-choice.psr-choice-correct::after{content:" ✓"}
.psr-choice.psr-choice-wrong{border:3px dashed #b91c1c;background:#fff1f2}
.psr-choice.psr-choice-wrong::after{content:" ✗"}
.feedback.has-text.psr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.psr-answer-line{margin:4px 0 2px;font-weight:700}
.psr-expl-text{margin:2px 0 6px}
#page-quiz.active:has(.psr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.psr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.psr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.psr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
@media (max-width:380px){
  .psr-choice{font-size:1rem;padding:6px 8px}
}

/* 印刷：A4縦・2列・1ページ（§7。用紙の余白10mm、本文190×277mm、列92mm・列の間6mm）。 */
.psr-pr-page{width:190mm;height:277mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.psr-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box}
.psr-pr-title{box-sizing:border-box;margin:0;height:8mm;font-size:14.3pt;font-weight:700;line-height:6.9mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.psr-pr-fields{display:flex;gap:9mm;align-items:flex-end;height:7mm;margin-top:3mm;font-size:12.5pt;line-height:7mm;white-space:nowrap}
.psr-pr-group{display:inline-flex;align-items:flex-end;gap:4mm;flex:none}
.psr-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.psr-pr-field-line{display:inline-block;box-sizing:border-box;width:13mm;height:5.5mm;border-bottom:1pt solid #555}
.psr-field-name{flex:1;min-width:0}
.psr-field-name .psr-pr-field-line{flex:1;width:auto;min-width:40mm}
.psr-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:2.5mm 0 2mm}
.psr-pr-instruction{margin:0 0 2mm;height:24mm;font-size:12.6pt;line-height:6mm;overflow:hidden}
/* 問題：左列と右列（各92mm）に5問ずつ。各列のいちばん上にくらいの名前の行（17mm）。 */
.psr-pr-problems{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm;flex:none;height:163mm}
.psr-pr-col{display:flex;flex-direction:column;min-width:0}
.psr-pr-legend{display:flex;height:17mm;margin:0 0 1mm 18mm;flex:none}
.psr-pr-lg{box-sizing:border-box;width:9mm;height:17mm;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;font-size:9.2pt;line-height:4mm;white-space:nowrap;font-weight:700}
.psr-pr-lg-in{display:flex;flex-direction:column;align-items:center}
.psr-pr-lg-line{display:block}
/* 英語のくらいの名前は90度回して下から上へ読む。アプリPDF（html2canvas）でもくずれないよう、縦書きの指定ではなく回転で置く。 */
.psr-pr-page[lang="en"] .psr-pr-lg{position:relative;display:block;overflow:visible}
.psr-pr-page[lang="en"] .psr-pr-lg-in{position:absolute;left:0;top:17mm;box-sizing:border-box;width:17mm;height:9mm;padding-left:.3mm;justify-content:center;align-items:flex-start;transform-origin:0 0;transform:rotate(-90deg);font-size:9pt;line-height:3.8mm;white-space:nowrap}
.psr-pr-cell{box-sizing:border-box;height:25mm;flex:none;overflow:hidden;display:flex;flex-direction:column}
.psr-pr-cell.psr-pr-cell-choice{height:31.5mm}
.psr-pr-cell.psr-pr-cell-two{height:38mm}
.psr-pr-main{display:flex;align-items:flex-start;height:20mm}
.psr-pr-side{box-sizing:border-box;width:15.5mm;height:20mm;display:flex;flex-direction:column;align-items:flex-start;flex:none;overflow:hidden}
.psr-pr-num{font-size:12.6pt;font-weight:700;line-height:6.5mm;height:6.5mm}
.psr-pr-mark{display:flex;align-items:center;font-size:12.6pt;font-weight:700;line-height:6.5mm;white-space:nowrap;letter-spacing:-.02em}
.psr-pr-mark-two{flex-direction:column;align-items:flex-start;line-height:6mm}
.psr-pr-box{display:inline-block;margin:0 .5mm;box-sizing:border-box;width:8mm;height:8mm;border:0.35mm solid #000;background:#fff}
.psr-pr-arrow{position:relative;width:2.5mm;height:20mm;flex:none}
.psr-pr-arrow::before{content:"";position:absolute;left:1.05mm;top:5mm;bottom:5.6mm;border-left:0.4mm solid #000}
.psr-pr-arrow::after{content:"";position:absolute;left:0.05mm;bottom:4.2mm;width:0;height:0;border-left:1.2mm solid transparent;border-right:1.2mm solid transparent;border-top:1.8mm solid #000}
.psr-pr-table{display:flex;flex-direction:column;width:72mm;flex:none;border-top:0.3mm solid #000;border-left:0.3mm solid #000}
.psr-pr-row{display:flex;height:10mm}
.psr-pr-td{box-sizing:border-box;width:9mm;height:10mm;border-right:0.3mm solid #000;border-bottom:0.3mm solid #000;display:flex;align-items:center;justify-content:center;font-size:12.6pt;font-weight:700;font-variant-numeric:tabular-nums}
.psr-pr-choices{box-sizing:border-box;height:6.5mm;margin-top:1mm;padding-left:0;font-size:12.6pt;line-height:6.5mm;white-space:pre;overflow:hidden}
.psr-pr-choices-two{height:13mm}
.psr-pr-ch-line{display:block}
.psr-pr-answers{flex:none;box-sizing:border-box;margin-top:1mm}
.psr-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.psr-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.psr-pr-answers-grid{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.psr-pr-answer-col{list-style:none;margin:0;padding:0}
.psr-pr-answer{font-size:10.2pt;line-height:4.6mm;min-height:4.6mm;max-height:9.2mm;overflow:hidden;margin-bottom:1mm}
.psr-app-pdf-page .psr-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="place_shift_reverse2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="place_shift_reverse2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="place_shift_reverse2_3"]>#pr-problems{display:block}
/* 画面のプレビューでは、用紙の余白10mmを白い縁で見せる（印刷の寸法は変えない）。 */
#pr-sheet[data-unit="place_shift_reverse2_3"] .psr-pr-page{box-shadow:0 0 0 10mm #fff,0 0 4px 10mm rgba(0,0,0,.12);margin-bottom:calc(8mm + 10mm)}
@media print{
  #page-print #pr-sheet[data-unit="place_shift_reverse2_3"]{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;transform:none!important;box-shadow:none!important}
  #page-print #pr-sheet[data-unit="place_shift_reverse2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="place_shift_reverse2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="place_shift_reverse2_3"] .psr-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
