/* ── growing_shape_count_perimeter3_3（大きくなる図形のこ数とまわりをもとめよう、単元仕様書 v1.7）── */
/* 画面：問題文、成長図（1〜3だん目）と段数表、回答欄と共通のテンキー。回答後は正誤・解説・しるしつきの図と段数表（§5-3・§7）。 */
#question-text .gsc-q{display:block;overflow-wrap:anywhere}
.gsc-nb{white-space:nowrap}
.gsc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.gsc-growth{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;max-width:100%}
.gsc-fig-title{flex-basis:100%;margin:0;font-size:14px;font-weight:700;text-align:center}
.gsc-fig-row{display:flex;align-items:flex-end;gap:12px;max-width:100%;flex-wrap:wrap;justify-content:center}
.gsc-stage{margin:0;display:flex;flex-direction:column;align-items:center;gap:2px}
.gsc-stage figcaption,.gsc-after-fig figcaption{font-size:14px;font-weight:700}
.gsc-shape{display:block;max-width:100%;height:auto}
.gsc-tab{border-collapse:collapse;font-size:16px;font-weight:700}
.gsc-tab th,.gsc-tab td{border:2px solid #334155;padding:3px 6px;min-width:2.4em;height:34px;text-align:center;box-sizing:border-box}
.gsc-tab th[scope=row]{background:#f1f5f9;font-size:14px;white-space:nowrap}
.gsc-tab td.gsc-hit{background:#dcfce7;color:#14532d;border-width:3px}
.gsc-field-row{display:flex;align-items:center;gap:8px}
.gsc-input{width:5em;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}
.gsc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.gsc-input.gsc-ok,.gsc-input.gsc-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.gsc-input.gsc-ng,.gsc-input.gsc-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.gsc-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px}
.gsc-guide[hidden]{display:none}
.gsc-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.5;max-width:560px}
.gsc-msg:empty{min-height:0;margin:0}
.gsc-main .ufk-keypad{margin-top:4px}
.feedback.has-text.gsc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.gsc-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.gsc-after{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:100%}
.gsc-after-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:2px;max-width:100%}
.gsc-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;font-size:14px;font-weight:700}
.gsc-legend li{display:flex;align-items:center;gap:4px}
.gsc-legend svg{flex:none}
.gsc-after-tabs{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:100%}
.gsc-example .gsc-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.gsc-example .gsc-fig-row{margin:4px 0}
.gsc-example .gsc-ex-t{margin:4px 0;line-height:2}
.gsc-example .gsc-ex-a{margin:4px 0 14px;line-height:2.1}
#page-quiz.active:has(.gsc-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.gsc-main) #tts-btn{display:none!important}
#page-quiz.active:has(.gsc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.gsc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.gsc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.gsc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="growing_shape_count_perimeter3_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="growing_shape_count_perimeter3_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){#page-lesson .lesson-point:has(.gsc-nb),#page-lesson .lesson-point:has(.gsc-nb) *{font-size:15px}#page-lesson .lesson-example:has(.gsc-example){padding-left:12px;padding-right:12px}#page-lesson .lesson-example div:has(>.gsc-example){padding-left:8px;padding-right:8px}.gsc-example .gsc-ex-q,.gsc-example .gsc-ex-a,.gsc-example .gsc-ex-t{font-size:15px}.gsc-fig-row{gap:8px}.gsc-tab{font-size:15px}.gsc-tab th,.gsc-tab td{padding:3px 4px;min-width:2em}}

/* 印刷（A4縦・2列・1ページ。§7） */
.gsc-pr-page{width:190mm;box-sizing:border-box;color:#000;background:#fff;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;display:flex;flex-direction:column}
.gsc-pr-headrow{display:flex;flex-direction:column;gap:0}
.gsc-pr-title{box-sizing:border-box;font-size:14pt;margin:0;height:7mm;line-height:6mm;text-align:center;font-weight:700;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.gsc-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.gsc-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.5mm 0 1mm!important;border:0;border-top:2px solid #333}
.gsc-pr-inst{font-size:12.5pt;line-height:6mm;margin:0 0 1.5mm;padding:0 1mm}
.gsc-pr-problems{display:flex;gap:6mm;justify-content:center}
.gsc-pr-col{width:92mm;display:flex;flex-direction:column;gap:0}
.gsc-pr-cell{box-sizing:border-box;width:92mm;height:38.5mm;border:1.5px solid transparent;border-radius:1.5mm;padding:0.8mm 1.4mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column;gap:1mm}
.gsc-pr-q{font-size:12.5pt;line-height:6mm;height:12mm;overflow:hidden;flex:none;line-break:strict;word-break:normal}
.gsc-pr-num{font-weight:700}
.gsc-pr-sp{display:inline-block;width:1.5mm}
.gsc-pr-band{display:flex;gap:3mm;align-items:flex-start;height:20mm;flex:none}
.gsc-pr-figs{width:43mm;flex:none;display:flex;align-items:flex-end;gap:1.5mm;height:20mm}
.gsc-pr-stage{margin:0;min-width:11.5mm;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0.5mm}
.gsc-pr-shape{display:block;flex:none}
.gsc-pr-stage figcaption{font-size:9pt;line-height:3.5mm;white-space:nowrap}
.gsc-pr-right{width:41.5mm;flex:none;display:flex;flex-direction:column;gap:1.5mm}
.gsc-pr-tab{border-collapse:collapse;width:41.5mm;height:11mm;table-layout:fixed}
.gsc-pr-tab th,.gsc-pr-tab td{border:1.5px solid #333;padding:0;height:5.5mm;text-align:center;white-space:nowrap;overflow:hidden}
.gsc-pr-tab th{width:22mm;font-size:9pt;font-weight:700}
.gsc-pr-tab td{width:6.5mm;font-size:10pt;font-weight:700}
.gsc-pr-ansbox{display:flex;align-items:center;justify-content:flex-end;gap:1.5mm;height:7mm}
.gsc-pr-anshead{font-size:10pt;font-weight:700;white-space:nowrap}
.gsc-pr-box{display:inline-block;flex:none;width:14mm;height:7mm;border:1.5px solid #333;box-sizing:border-box}
.gsc-pr-answers{margin-top:1.5mm;border-top:2px dashed #666;padding-top:0.5mm}
.gsc-pr-anshead2{font-size:12.5pt;font-weight:700;line-height:6mm}
.gsc-pr-acols{display:flex;gap:6mm}
.gsc-pr-acol{width:92mm}
.gsc-pr-answer{margin:0;font-size:10pt;line-height:4.5mm}
#pr-sheet[data-unit="growing_shape_count_perimeter3_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="growing_shape_count_perimeter3_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="growing_shape_count_perimeter3_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="growing_shape_count_perimeter3_3"] .gsc-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="growing_shape_count_perimeter3_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="growing_shape_count_perimeter3_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="growing_shape_count_perimeter3_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="growing_shape_count_perimeter3_3"] .gsc-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.gsc-app-pdf-page .gsc-pr-page{box-shadow:none;margin:0}
/* 確定表 GSK-18・GSK-22：単元名・短縮名・説明・学習の焦点は、gscMarkPhraseWrap が文節ごとの折り返さないまとまり（.gsc-phrase）に分ける */
.gsc-phrase{white-space:nowrap}
.gsc-phrase-group{display:inline;min-width:0}
.gsc-learning-focus{word-break:normal;line-break:strict}
