/* ── composite_solid_surface_area2_3（組み合わせた立体の外がわの広さを見つけよう、単元仕様書 v1.4）── */
/* 画面：問題文、図と印の説明、回答欄（欄の名前・数の欄・単位）、案内、共通のテンキー。回答後は正誤・正しい答え・解説（§5-3・§7・確定表 SAK-04〜07） */
#question-text .jsa-q{display:block;overflow-wrap:normal}
.jsa-nb{white-space:nowrap}
.jsa-phrase-group{display:inline;min-width:0}
.jsa-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.jsa-data{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:640px}
.jsa-fig{width:100%;max-width:320px}
.jsa-fig-svg{display:block;width:100%;height:auto;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-sizing:border-box}
@media (min-width:700px){
  .jsa-fig{width:340px;max-width:340px}
}
.jsa-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;font-size:15px;font-weight:700;color:#111827;line-height:1.5}
.jsa-leg{display:inline-flex;align-items:center;gap:6px}
.jsa-leg-svg{flex:none}
.jsa-ex-line{margin:2px 0}
.jsa-note{margin:0;font-size:14px;font-weight:700;color:#374151;text-align:center;line-height:1.6}
.jsa-note-line{display:block}
.jsa-legend:empty{display:none}
.jsa-list-fig{display:block}
.jsa-list-expr{display:block;white-space:nowrap}
.jsa-choices{display:grid;grid-template-columns:repeat(2,auto);justify-content:center;gap:8px;max-width:100%}
.jsa-clabel{grid-column:1/-1}
.jsa-choice{min-height:48px;padding:6px 12px;border:2px solid #64748b;border-radius:10px;background:#fff;color:#111827;font-family:inherit;font-size:17px;font-weight:700;text-align:left;cursor:pointer}
.jsa-c-t{white-space:nowrap}
.jsa-c-m{margin-right:.45em}
.jsa-choice.jsa-c-on{border:3px solid #1d4ed8;background:#dbeafe;padding:5px 11px}
.jsa-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.jsa-choice:disabled{opacity:1;color:#111827;cursor:default}
.jsa-choice.jsa-c-ok{border:3px solid #15803d;background:#dcfce7;padding:5px 11px}
.jsa-choice.jsa-c-ng{border:3px dashed #b91c1c;background:#fff1f2;padding:5px 11px}
.jsa-fields{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:100%}
.jsa-field{display:flex;flex-direction:column;align-items:center;gap:3px}
.jsa-flabel{font-size:15px;font-weight:800;color:#111827;line-height:1.5;text-align:center}
.jsa-frow{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.jsa-funit{font-size:1.2rem;font-weight:800;color:#111827}
.jsa-input{width:5.6em;min-height:48px;font-size:1.35rem;padding:0 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.jsa-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.jsa-input.jsa-ok,.jsa-input.jsa-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.jsa-input.jsa-ng,.jsa-input.jsa-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.jsa-input.jsa-bad{border:3px dashed #b45309;background:#fffbeb}
.jsa-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.jsa-guide[hidden]{display:none}
.jsa-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.jsa-msg:empty{min-height:0;margin:0}
.jsa-msg-line{display:block}
.jsa-main .ufk-keypad{margin-top:4px}
.feedback.has-text.jsa-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.jsa-correct{margin:4px 0 6px;font-weight:800;font-size:17px;line-height:1.9}
.jsa-expl-text{margin:4px 0 8px;line-height:2;overflow-wrap:normal;word-break:normal;line-break:strict}
.jsa-example .jsa-ex-q,.jsa-example .jsa-ex-a{margin:6px 0 8px;line-height:2}
.jsa-example .jsa-data{margin:0 auto;flex-direction:column;align-items:center;gap:10px}
#page-quiz.active:has(.jsa-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.jsa-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.jsa-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.jsa-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.jsa-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="composite_solid_surface_area2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="composite_solid_surface_area2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
/* 結果画面の単元名：狭い幅でも省略せず、文節で折り返す */
.result-unit-badge.jsa-badge{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;height:auto;border-radius:14px;line-height:1.5}
.result-unit-badge.jsa-badge .rub-name{white-space:normal;overflow:visible;text-overflow:clip}
@media (max-width:480px){
  .jsa-choices{grid-template-columns:auto;gap:8px}
}
@media (max-width:400px){
  #page-lesson:has(.jsa-example) .lesson-point,#page-lesson:has(.jsa-example) .lesson-point *{font-size:15px}
  #page-lesson:has(.jsa-example) .lesson-point{padding-left:10px;padding-right:10px;gap:6px}
  #page-lesson:has(.jsa-example) .lesson-point .pt-icon{display:none}
  #page-lesson .lesson-example:has(.jsa-example){padding-left:8px;padding-right:8px}
  #page-lesson .lesson-example div:has(>.jsa-example){padding-left:6px!important;padding-right:6px!important}
  .jsa-example .jsa-ex-q,.jsa-example .jsa-ex-a{font-size:14px}
  .jsa-guide,.jsa-msg{font-size:15px}
  .jsa-funit{font-size:1.05rem}
  .jsa-flabel{font-size:14px}
  .jsa-input{width:5.6em}
}
@media (max-width:340px){
  #page-lesson .lesson-example:has(.jsa-example){margin-left:-14px;margin-right:-14px}
  .jsa-example .jsa-ex-q,.jsa-example .jsa-ex-a{font-size:13px}
  #page-lesson:has(.jsa-example) :is(h1,h2,h3):has(.jsa-phrase){font-size:20px!important}
}

.jsa-expl-s{display:block;margin:0 0 4px}
.jsa-user-long{white-space:normal;overflow-wrap:anywhere;word-break:break-all}

/* 印刷（プリント共通仕様書のひな型P・P-標準：A4縦・2列×5行・1ページ。§7・確定表 SAK-08） */
.jsa-pr-page{width:190mm;height:276mm;box-sizing:border-box;color:#000;background:#fff;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;display:flex;flex-direction:column;overflow:hidden}
.jsa-pr-headrow{flex:none;display:flex;flex-direction:column;gap:0}
.jsa-pr-title{box-sizing:border-box;width:100%;height:8mm;margin:0;padding:0 2mm;border:1.5pt solid #666;background:#ffffcc;font-size:14pt;line-height:calc(8mm - 3pt);text-align:center;font-weight:700;white-space:nowrap;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.jsa-pr-headrow .pp-fields{margin:1mm 0 0}
.jsa-pr-headrow .pp-field-name .pp-field-line{min-width:40mm}
.jsa-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.8mm 0 1mm!important}
.jsa-pr-inst{flex:none;font-size:12.5pt;line-height:5.4mm;margin:0 0 1mm;padding:0 1mm;overflow-wrap:normal;word-break:normal;white-space:pre-wrap}
.jsa-pr-problems{flex:none;display:flex;gap:6mm;justify-content:center}
.jsa-pr-col{width:92mm;display:flex;flex-direction:column;gap:0}
.jsa-pr-cell{position:relative;box-sizing:border-box;width:92mm;flex:none;height:40mm;overflow:hidden;break-inside:avoid;display:flex;align-items:flex-start}
.jsa-pr-no{position:absolute;left:0;top:0;font-size:12.5pt;font-weight:700;line-height:6mm}
.jsa-pr-fig{flex:none;width:44mm;height:36mm;margin-left:5mm;margin-top:2mm;line-height:0}
.jsa-pr-fig svg{display:block}
.jsa-pr-boxes{flex:none;width:42.5mm;height:39mm;margin-left:0;display:flex;flex-direction:column;justify-content:flex-end}
.jsa-pr-row{flex:none;display:flex;align-items:center;height:8mm;line-height:8mm;white-space:nowrap}
.jsa-pr-paren{font-size:13pt;font-weight:400}
.jsa-pr-blank{flex:none;display:inline-block;width:15mm;height:8mm}
.jsa-pr-row-c .jsa-pr-blank{width:9mm;height:7.5mm}
.jsa-pr-pre{white-space:nowrap;margin-right:1mm}
.jsa-pr-choices{display:flex;flex-direction:column}
.jsa-pr-cell[data-jsa-group="C"] .jsa-pr-fig{margin-left:1.5mm}
.jsa-pr-choice .jsa-c-m{margin-right:.2em}
.jsa-pr-page[lang="en"] .jsa-pr-choice{word-spacing:-.07em}
.jsa-pr-choice{white-space:nowrap;font-size:12.5pt;line-height:5.6mm;height:5.6mm}
.jsa-pr-unit{font-size:12.5pt;margin-left:.5mm}
.jsa-pr-answers{flex:none;margin-top:1.5mm;height:32mm;box-sizing:border-box}
.jsa-pr-fold{width:100%;height:0;border-top:2px dotted #333;margin:0 0 1.2mm}
.jsa-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.jsa-pr-agrid{display:grid;grid-template-columns:repeat(2,95mm);grid-template-rows:repeat(5,auto);grid-auto-flow:column}
.jsa-pr-answer{margin:0;font-size:10pt;line-height:4.6mm;white-space:nowrap}
#pr-sheet[data-unit="composite_solid_surface_area2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="composite_solid_surface_area2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="composite_solid_surface_area2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="composite_solid_surface_area2_3"] .jsa-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="composite_solid_surface_area2_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="composite_solid_surface_area2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="composite_solid_surface_area2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="composite_solid_surface_area2_3"] .jsa-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.jsa-app-pdf-page .jsa-pr-page{box-shadow:none;margin:0}
.jsa-learning-focus{word-break:normal;line-break:strict}
