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

/* 印刷：A4縦・2列×5段・1ページ（§7。用紙の余白10mm、本文190×277mm、列90mm・列の間6mm）。
   上部46mm（題名の枠10mm・間1mm・記入欄8mm・間1mm・実線・間1mm・共通の問い4行24.5mm）、
   各問36mm（番号9mm・図48×30mm・間2mm・答え欄）×5段＝180mm、間隔3mm、答え：破線・見出し6mm・1件5mm×5段。 */
.sfm-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}
.sfm-pr-head{display:flex;flex-direction:column;height:46mm;flex:none;box-sizing:border-box;font-size:12.5pt}
.sfm-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}
.sfm-pr-head .pp-fields{margin:1mm 0 0;height:8mm;line-height:8mm!important}
.sfm-pr-head hr.pp-fields-solid{margin:1mm 0 1mm!important}
.sfm-pr-inst{margin:0;white-space:pre-wrap;height:24.5mm;max-height:24.5mm;line-height:6.1mm;overflow:hidden;overflow-wrap:break-word;word-break:normal;line-break:strict}
.sfm-pr-problems{display:grid;grid-template-columns:90mm 90mm;column-gap:6mm;flex:none;height:180mm}
.sfm-pr-col{display:grid;grid-template-rows:repeat(5,36mm)}
.sfm-pr-cell{display:flex;align-items:center;height:36mm;overflow:hidden;box-sizing:border-box;font-size:12.5pt}
.sfm-pr-num{flex:none;width:9mm;align-self:flex-start;margin-top:2mm;font-weight:700;white-space:nowrap}
.sfm-pr-fig{flex:none;line-height:0;width:48mm;height:30mm}
.sfm-pr-fig .sfm-fig{display:block;max-width:none}
.sfm-pr-fig text{fill:#000}
.sfm-pr-box{display:flex;align-items:flex-end;gap:0.5mm;white-space:nowrap;flex:none;margin-left:2mm}
.sfm-pr-paren{font-size:14pt;line-height:9mm}
.sfm-pr-blank{display:inline-block;width:14mm;height:9mm}
.sfm-pr-unit{line-height:9mm;padding-left:0.5mm}
.sfm-pr-answers{flex:none;box-sizing:border-box;margin-top:3mm}
.sfm-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0;padding:0;border:0;border-top:2pt dashed #aaa}
.sfm-pr-answers-title{height:6mm;line-height:6mm;font-weight:700;font-size:12.5pt}
.sfm-pr-ans-grid{display:grid;grid-template-columns:90mm 90mm;column-gap:6mm}
.sfm-pr-ans-col{display:grid;grid-template-rows:repeat(5,5mm)}
.sfm-pr-ans{margin:0;font-size:10pt;line-height:5mm;white-space:nowrap;overflow:hidden}
.sfm-app-pdf-page .sfm-pr-page{box-shadow:none;margin:0}

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