/* ── operation_order_trace3_3（計算するじゅん番をえらんで式をかんせいしよう、単元仕様書 v1.3）── */
/* 画面：問題文（式と問い）、3択、式の答えの欄、案内、共通のテンキー。回答後は正誤・それぞれの正誤・正しい答え・解説（§5-3・§7）。 */
#question-text .oot-q{display:block;overflow-wrap:normal}
.oot-nb{white-space:nowrap}
.oot-phrase-group{display:inline;min-width:0}
.oot-expr{font-weight:800;font-size:1.3em;letter-spacing:.02em;margin-right:.1em}
.oot-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.oot-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:100%;padding:6px 0}
.oot-choice{position:relative;box-sizing:border-box;min-width:84px;min-height:52px;padding:8px 10px;border:2px solid #64748b;border-radius:12px;background:#fff;color:#111827;font-family:inherit;font-size:1.05rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.oot-choice .oot-check{position:absolute;top:0;right:4px;font-size:14px;line-height:1;color:#1d4ed8;visibility:hidden}
.oot-choice.oot-sel{border:4px solid #1d4ed8;background:#dbeafe;padding:6px 8px}
.oot-choice.oot-sel .oot-check{visibility:visible}
.oot-choice:disabled{cursor:default;opacity:1;color:#111827}
.oot-choice .oot-ring{position:absolute;inset:-7px;border:3px solid #15803d;border-radius:16px;pointer-events:none}
.oot-choice.oot-miss{border:4px dashed #b91c1c;background:#fff1f2}
.oot-choice.oot-miss .oot-check{color:#b91c1c;font-size:17px;font-weight:900}
.oot-field-row{display:flex;align-items:center;gap:8px}
.oot-input{width:6.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}
.oot-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.oot-input.oot-ok,.oot-input.oot-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.oot-input.oot-ng,.oot-input.oot-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.oot-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.oot-guide[hidden]{display:none}
.oot-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.oot-msg:empty{min-height:0;margin:0}
.oot-msg-line{display:block}
.oot-main .ufk-keypad{margin-top:4px}
.feedback.has-text.oot-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.oot-part{margin:2px 0;font-weight:800;font-size:16px;line-height:1.7}
.oot-part-ok{color:#15803d}
.oot-part-ng{color:#b91c1c}
.oot-part-ok::before{content:"○ "}
.oot-part-ng::before{content:"× "}
.oot-correct{margin:4px 0 6px;font-weight:800;font-size:17px;line-height:1.9}
.oot-expl-text{margin:4px 0 6px;line-height:2;overflow-wrap:normal;word-break:normal;line-break:strict}
.oot-example .oot-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.oot-example .oot-ex-a{margin:4px 0 14px;line-height:2}
.oot-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.oot-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.oot-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.oot-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.oot-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.oot-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="operation_order_trace3_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="operation_order_trace3_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
/* 結果画面の単元名：狭い幅でも省略せず、文節で折り返す */
.result-unit-badge.oot-badge{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;height:auto;border-radius:14px;line-height:1.5}
.result-unit-badge.oot-badge .rub-name{white-space:normal;overflow:visible;text-overflow:clip}
@media (max-width:400px){
  #page-lesson:has(.oot-example) .lesson-point,#page-lesson:has(.oot-example) .lesson-point *{font-size:15px}
  #page-lesson:has(.oot-example) .lesson-point{padding-left:10px;padding-right:10px;gap:6px}
  #page-lesson:has(.oot-example) .lesson-point .pt-icon{display:none}
  #page-lesson .lesson-example:has(.oot-example){padding-left:8px;padding-right:8px}
  #page-lesson .lesson-example div:has(>.oot-example){padding-left:6px!important;padding-right:6px!important}
  .oot-example .oot-ex-q,.oot-example .oot-ex-a{font-size:14px}
  .oot-choices{gap:10px}
  .oot-choice{min-width:64px;padding:8px 5px;font-size:.9rem}
  .oot-choice.oot-sel,.oot-choice.oot-miss{padding:6px 3px}
  .oot-guide,.oot-msg{font-size:15px}
  .oot-expr{font-size:1.15em}
}
@media (max-width:340px){
  .oot-example .oot-ex-q,.oot-example .oot-ex-a{font-size:13px}
}

/* 印刷（プリント共通仕様書のひな型P・P-標準：A4縦・2列×5行・1ページ。§7・確定表 OTK-10） */
.oot-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}
.oot-pr-headrow{display:flex;flex-direction:column;gap:0}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入欄と実線は共通の .pp-fields（CP-08b）。 */
.oot-pr-title{box-sizing:border-box;width:100%;height:9mm;margin:0;padding:0 2mm;border:1.5pt solid #666;background:#ffffcc;font-size:13pt;line-height:calc(9mm - 3pt);text-align:center;font-weight:700;white-space:nowrap;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.oot-pr-headrow .pp-fields{margin:1mm 0 0}
.oot-pr-headrow .pp-field-name .pp-field-line{min-width:40mm}
.oot-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:1.5mm 0 1.5mm!important}
.oot-pr-inst{font-size:12.5pt;line-height:6mm;height:6mm;margin:0 0 2mm;padding:0 1mm;white-space:nowrap}
.oot-pr-problems{display:flex;gap:4mm;justify-content:center}
.oot-pr-col{width:93mm;display:flex;flex-direction:column;gap:3mm}
.oot-pr-cell{box-sizing:border-box;width:93mm;height:35mm;padding:0 0.5mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.oot-pr-q{font-size:12.5pt;font-weight:700;height:12mm;flex:none;display:flex;align-items:center;white-space:nowrap;word-spacing:-0.4mm}
.oot-pr-num{font-size:12.5pt;margin-right:1mm}
.oot-pr-eqsign{margin:0 0.3mm}
.oot-pr-blank{display:inline-block;width:16mm;height:10mm;vertical-align:middle;white-space:pre;overflow:hidden}
.oot-pr-paren{font-size:14pt;font-weight:400;line-height:10mm}
.oot-pr-choices{flex:none;height:7mm;margin-top:1mm;display:flex;align-items:center;gap:7mm;padding-left:3mm;font-size:12.5pt;white-space:nowrap}
.oot-pr-choice{white-space:nowrap}
.oot-pr-work{box-sizing:border-box;width:100%;flex:none;height:13mm;margin-top:1mm;border:2px solid #999;border-radius:1mm;padding:0.4mm 1mm}
.oot-pr-worklabel{font-size:9pt;color:#333}
.oot-pr-answers{margin-top:3mm}
.oot-pr-fold{width:100%;height:0;border-top:2px dotted #333;margin:0 0 1.5mm}
.oot-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.oot-pr-acols{display:flex;gap:4mm}
.oot-pr-acol{width:93mm}
.oot-pr-answer{margin:0 0 0.5mm;font-size:10pt;line-height:4.4mm}
#pr-sheet[data-unit="operation_order_trace3_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="operation_order_trace3_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="operation_order_trace3_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="operation_order_trace3_3"] .oot-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="operation_order_trace3_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="operation_order_trace3_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="operation_order_trace3_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="operation_order_trace3_3"] .oot-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.oot-app-pdf-page .oot-pr-page{box-shadow:none;margin:0}
