/* ── area_side_inverse_choice2_3（めんせきから へんのもとめ方をえらぼう、単元仕様書 v1.2）── */
/* 画面：問題文の下に、図、図の注記、回答案内、数値の欄と単位cm、案内、テンキー、「こたえる！」ボタンを上から順に置く（§5-3・§7 画面表示）。 */
.asi-main{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px auto 2px;max-width:560px;width:100%;box-sizing:border-box}
.asi-fig-wrap{width:100%;display:flex;justify-content:center}
.asi-fig{display:block;width:100%;height:auto;overflow:visible;color:#000}
.asi-fig-A{max-width:300px}
.asi-fig-B{max-width:220px}
.asi-fig text{fill:#000;font-family:inherit}
.asi-notes{display:flex;flex-direction:column;align-items:center;gap:2px}
.asi-note{margin:0;font-size:.92rem;color:#334155;text-align:center;overflow-wrap:anywhere}
.asi-guide{margin:4px auto 0;font-weight:700;text-align:center;max-width:32em;overflow-wrap:anywhere}
.asi-field{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:nowrap}
.asi-input{width:5em;min-width:72px;min-height:48px;font-size:1.35rem;font-weight:800;padding:2px 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;box-sizing:border-box}
.asi-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.asi-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.asi-input.asi-input-ok{border:3px solid #15803d;background:#dcfce7}
.asi-input.asi-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.asi-unit{font-size:1.3rem;font-weight:800;white-space:nowrap}
.asi-msg{margin:0;min-height:1.2em;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em;overflow-wrap:anywhere}
.feedback.has-text.asi-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.asi-correct{margin:4px 0 2px;font-weight:700;overflow-wrap:anywhere}
.asi-expl-text{margin:2px 0 6px;overflow-wrap:anywhere}
.asi-lesson-ex{display:inline-block;margin-top:4px;font-weight:700;overflow-wrap:anywhere}
#page-quiz.active:has(.asi-main) #question-text{overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.asi-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.asi-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.asi-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.asi-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}
@media (max-width:400px){
  .asi-input{font-size:1.15rem}
  .asi-unit{font-size:1.15rem}
}

/* 印刷：A4縦・2列×5段・1ページ（§7 v1.2。用紙の余白10mm、本文190×277mm、列90mm・列の間10mm）。
   上部39mm（題名の枠10mm・間1mm・記入欄8mm・間1mm・実線・間1mm・共通の問い2行13mm・間隔4mm）、
   各問39.5mm（112pt以上。番号行5.5mm・図と回答欄の領域29mm〔正方形一辺24mm＋下のラベル行5mm〕・余り5mm）×5段＝197.5mm、
   間隔4mm、答え：見出し6mm・1件5mm×5段＝31mm。合計271.5mm。 */
.asi-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}
.asi-pr-head{display:flex;flex-direction:column;height:39mm;flex:none;box-sizing:border-box;font-size:12.5pt}
.asi-pr-title{box-sizing:border-box;margin:0;height:10mm;font-size:14pt;font-weight:700;line-height:8.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}
.asi-pr-head .pp-fields{margin:1mm 0 0;height:8mm;line-height:8mm!important}
.asi-pr-head hr.pp-fields-solid{margin:1mm 0 1mm!important}
.asi-pr-inst{margin:0;height:13mm;max-height:13mm;line-height:6.5mm;overflow:hidden;overflow-wrap:break-word;word-break:normal;line-break:strict}
.asi-pr-problems{display:grid;grid-template-columns:90mm 90mm;column-gap:10mm;flex:none;height:197.5mm}
.asi-pr-col{display:grid;grid-template-rows:repeat(5,39.5mm)}
.asi-pr-cell{display:flex;flex-direction:column;height:39.5mm;overflow:hidden;box-sizing:border-box;font-size:12.5pt}
.asi-pr-num{margin:0;height:5.5mm;line-height:5.5mm;font-weight:700;white-space:nowrap}
.asi-pr-body{display:flex;align-items:center;gap:2mm;margin-top:0.5mm}
.asi-pr-fig{flex:none;line-height:0}
.asi-pr-fig .asi-fig{display:block}
.asi-pr-fig text{fill:#000}
.asi-pr-box{display:flex;align-items:flex-end;gap:0.5mm;white-space:nowrap;flex:none}
.asi-pr-paren{font-size:14pt;line-height:9mm}
.asi-pr-blank{display:inline-block;width:14mm;height:9mm}
.asi-pr-unit{line-height:9mm;padding-left:0.5mm}
.asi-pr-answers{flex:none;box-sizing:border-box;margin-top:4mm}
.asi-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0;padding:0;border:0;border-top:2pt dashed #aaa}
.asi-pr-answers-title{height:6mm;line-height:6mm;font-weight:700;font-size:12.5pt}
.asi-pr-ans-grid{display:grid;grid-template-columns:90mm 90mm;column-gap:10mm}
.asi-pr-ans-col{display:grid;grid-template-rows:repeat(5,5mm)}
.asi-pr-ans{margin:0;font-size:10pt;line-height:5mm;white-space:nowrap;overflow:hidden}
.asi-app-pdf-page .asi-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="area_side_inverse_choice2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="area_side_inverse_choice2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="area_side_inverse_choice2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="area_side_inverse_choice2_3"] .asi-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="area_side_inverse_choice2_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="area_side_inverse_choice2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="area_side_inverse_choice2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="area_side_inverse_choice2_3"] .asi-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
