/* ── multi_record_union_count3_3（何回かのきろくの重なりからしゅるいの数をもとめよう、単元仕様書 v1.2）── */
/* 画面：問題文、きろくの表、重なりの図、回答欄（数の欄・単位）、案内、共通のテンキー。回答後は正誤・正しい答え・解説・図の区分の数（§5-3・§7） */
#question-text .mru-q{display:block;overflow-wrap:normal}
.mru-nb{white-space:nowrap}
.mru-phrase-group{display:inline;min-width:0}
.mru-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.mru-data{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:640px}
.mru-table-wrap{max-width:100%}
.mru-cap{caption-side:top;text-align:left;font-size:15px;font-weight:800;color:#334155;line-height:1.6;padding:0 0 2px}
.mru-table{border-collapse:separate;border-spacing:0;font-size:16px;line-height:1.6;color:#111827;background:#fff}
.mru-table tbody{outline:2px solid #334155;outline-offset:-1px}
.mru-table{max-width:100%}
.mru-table th,.mru-table td{padding:4px 10px;border-bottom:1px solid #94a3b8;font-weight:700;white-space:nowrap}
.mru-table th{white-space:normal;text-align:left;background:#f1f5f9;border-right:1px solid #94a3b8}
.mru-table td{text-align:right;min-width:3.2em}
.mru-table tr:last-child th,.mru-table tr:last-child td{border-bottom:0}
.mru-fig{margin:0;display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:300px}
.mru-fig .mru-cap{display:block}
.mru-fig-svg{display:block;width:100%;height:auto;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-sizing:border-box}
.mru-reg-list{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:2px 12px;font-size:15px;font-weight:700;line-height:1.6;color:#111827}
.mru-reg{white-space:nowrap}
@media (min-width:700px){
  .mru-data{flex-direction:row;justify-content:center;align-items:flex-start;gap:24px}
  .mru-fig{width:300px}
}
.mru-field{display:flex;flex-direction:column;align-items:center;gap:3px}
.mru-frow{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.mru-funit{font-size:1.25rem;font-weight:800;color:#111827}
.mru-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}
.mru-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.mru-input.mru-ok,.mru-input.mru-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.mru-input.mru-ng,.mru-input.mru-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.mru-input.mru-bad{border:3px dashed #b45309;background:#fffbeb}
.mru-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.mru-guide[hidden]{display:none}
.mru-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.mru-msg:empty{min-height:0;margin:0}
.mru-msg-line{display:block}
.mru-main .ufk-keypad{margin-top:4px}
.feedback.has-text.mru-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.mru-correct{margin:4px 0 6px;font-weight:800;font-size:17px;line-height:1.9}
.mru-expl-text{margin:4px 0 8px;line-height:2;overflow-wrap:normal;word-break:normal;line-break:strict}
.mru-example .mru-ex+.mru-ex{margin-top:14px;padding-top:10px;border-top:1px dashed #94a3b8}
.mru-example .mru-ex-q{margin:6px 0 6px;font-weight:700;line-height:2}
.mru-example .mru-ex-a{margin:8px 0 8px;line-height:2}
.mru-example .mru-data{margin:0 auto;flex-direction:column;align-items:center;gap:10px}
.mru-example .mru-fig{width:100%;max-width:300px}
.mru-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.mru-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.mru-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.mru-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.mru-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.mru-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="multi_record_union_count3_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="multi_record_union_count3_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
/* 結果画面の単元名：狭い幅でも省略せず、文節で折り返す */
.result-unit-badge.mru-badge{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;height:auto;border-radius:14px;line-height:1.5}
.result-unit-badge.mru-badge .rub-name{white-space:normal;overflow:visible;text-overflow:clip}
@media (max-width:400px){
  #page-lesson:has(.mru-example) .lesson-point,#page-lesson:has(.mru-example) .lesson-point *{font-size:15px}
  #page-lesson:has(.mru-example) .lesson-point{padding-left:10px;padding-right:10px;gap:6px}
  #page-lesson:has(.mru-example) .lesson-point .pt-icon{display:none}
  #page-lesson .lesson-example:has(.mru-example){padding-left:8px;padding-right:8px}
  #page-lesson .lesson-example div:has(>.mru-example){padding-left:6px!important;padding-right:6px!important}
  .mru-example .mru-ex-q,.mru-example .mru-ex-a{font-size:14px}
  .mru-guide,.mru-msg{font-size:15px}
  .mru-funit{font-size:1.1rem}
  .mru-table{font-size:15px}
  .mru-table th,.mru-table td{padding:4px 6px}
  .mru-example .mru-table{font-size:14px}
  .mru-example .mru-table th,.mru-example .mru-table td{padding:3px 5px}
  .mru-example .mru-reg-list{font-size:14px}
}
@media (max-width:340px){
  .mru-example .mru-ex-q,.mru-example .mru-ex-a{font-size:13px}
  #page-lesson:has(.mru-example) :is(h1,h2,h3):has(.mru-phrase){font-size:20px!important}
  .mru-table{font-size:14px}
  .mru-example .mru-table{font-size:13px}
  .mru-example .mru-table th,.mru-example .mru-table td{padding:3px 4px}
  .mru-example .mru-reg-list{font-size:13.5px}
}

/* 印刷（プリント共通仕様書のひな型P・P-標準：A4縦・2列×5行・1ページ。§7・確定表 MRK-09） */
.mru-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}
.mru-pr-headrow{flex:none;display:flex;flex-direction:column;gap:0}
.mru-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}
.mru-pr-headrow .pp-fields{margin:1mm 0 0}
.mru-pr-headrow .pp-field-name .pp-field-line{min-width:40mm}
.mru-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:1.5mm 0 1.5mm!important}
.mru-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}
.mru-pr-problems{flex:1 1 0;min-height:0;display:flex;gap:4mm;justify-content:center}
.mru-pr-col{width:93mm;display:flex;flex-direction:column;gap:1mm;min-height:0}
.mru-pr-cell{box-sizing:border-box;width:93mm;flex:1 1 0;min-height:0;padding:0 0.5mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.mru-pr-top{flex:none;display:flex;align-items:flex-start;gap:1mm;height:27.8mm}
.mru-pr-no{flex:none;font-size:12.5pt;font-weight:700;line-height:5.4mm;min-width:7.5mm;margin-right:0.8mm;white-space:nowrap}
.mru-pr-table{flex:none;width:44.5mm;box-sizing:border-box;border:2px solid #000;margin-top:0.4mm}
.mru-pr-row{box-sizing:border-box;height:4.8mm;line-height:4.8mm;font-size:10pt;padding:0 1.2mm;white-space:nowrap;border-bottom:2px solid #000}
.mru-pr-row:last-child{border-bottom:0}
/* B・C群：2列4行。左の列に回の数（1〜3行め）、右の列に2回の数（1〜3行め）、4行めは3回ぜんぶの数 */
.mru-pr-table-2{display:grid;grid-template-columns:22.8mm 1fr;grid-auto-flow:column;grid-template-rows:repeat(4,4.8mm)}
.mru-pr-table-2 .mru-pr-row{border-bottom:2px solid #000}
.mru-pr-table-2 .mru-pr-row:nth-child(-n+3){grid-column:1;border-right:2px solid #000}
.mru-pr-table-2 .mru-pr-row:nth-child(n+4):nth-child(-n+6){grid-column:2}
.mru-pr-table-2 .mru-pr-row:nth-child(7){grid-column:1 / span 2;grid-row:4;border-bottom:0}
.mru-fig-svg.mru-fig-print{border:0;border-radius:0;background:transparent;width:auto}
.mru-pr-fig{flex:none;margin-left:auto;width:34mm;line-height:0}
.mru-pr-fig svg{display:block}
.mru-pr-bottom{flex:1 1 0;min-height:8.4mm;display:flex;align-items:flex-end;gap:1mm}
.mru-pr-work{flex:1 1 0;min-width:0;align-self:stretch}
.mru-pr-field{flex:none;display:flex;align-items:center;height:8.4mm;font-size:12.5pt;line-height:8.4mm;white-space:nowrap}
.mru-pr-lead{flex:none;font-size:12.5pt;white-space:pre}
.mru-pr-paren{font-size:14pt;font-weight:400}
.mru-pr-blank{flex:none;display:inline-block;width:15.4mm;height:8.4mm}
.mru-pr-paren+.mru-pr-lead{margin-left:0.5mm}
.mru-pr-paren+.mru-pr-lead-en{margin-left:.3em}
.mru-pr-lead-en+.mru-pr-paren{margin-left:.25em}
.mru-pr-answers{flex:none;margin-top:1.5mm}
.mru-pr-fold{width:100%;height:0;border-top:2px dotted #333;margin:0 0 1.2mm}
.mru-pr-ansheadrow{display:flex;align-items:baseline;gap:4mm;line-height:5.6mm;white-space:nowrap}
.mru-pr-anshead{font-size:12.5pt;font-weight:700}
.mru-pr-order{font-size:10pt}
.mru-pr-acols{display:flex;gap:4mm}
.mru-pr-acol{width:93mm}
.mru-pr-answer{margin:0 0 0.4mm}
.mru-pr-ans1,.mru-pr-ans2{margin:0;font-size:10pt;line-height:3.9mm;white-space:nowrap}
.mru-pr-ans2{padding-left:5.5mm}
#pr-sheet[data-unit="multi_record_union_count3_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="multi_record_union_count3_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="multi_record_union_count3_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="multi_record_union_count3_3"] .mru-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="multi_record_union_count3_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="multi_record_union_count3_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="multi_record_union_count3_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="multi_record_union_count3_3"] .mru-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.mru-app-pdf-page .mru-pr-page{box-shadow:none;margin:0}
