/* ── budget_limit_estimation3_4（予算やじょうげんを安全側のがい算ではんていしよう、単元仕様書 v1.3）── */
/* 画面：問題文、数のカード（見出しつき、1まいに1つの数）、回答案内、三つの判断の選択肢。回答後は結果、正しい答え、下側・上側、解説、たしかめ、ゲージ（§5-3・§7）。 */
#question-text .ble-q{display:block;line-height:1.9}
.ble-nb{white-space:nowrap}
#ble-main,.ble-expl-text,.ble-correct,.ble-fb-text,.ble-q,#hint-area .kp-body,.ble-guide-p,.ble-est,.ble-check-text{line-break:strict}
.ble-main{margin:4px 0 6px;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.ble-cards{width:100%;max-width:640px;display:flex;flex-direction:column;align-items:center;gap:4px}
.ble-cards-title{margin:0;font-size:15px;font-weight:700;color:#334155}
.ble-card-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.ble-card{display:inline-block;min-width:4.5em;padding:8px 12px;border:2px solid #334155;border-radius:8px;background:#fff;font-size:1.35rem;font-weight:800;text-align:center;font-variant-numeric:tabular-nums;box-shadow:0 2px 0 #cbd5e1}
.ble-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
@keyframes ble-flash{0%{background:#fde68a}100%{background:transparent}}
.ble-guide-flash{animation:ble-flash .8s ease-out}
.ble-choices{display:grid;grid-template-columns:1fr;gap:8px;width:100%;max-width:520px}
.ble-choice{position:relative;min-height:48px;padding:8px 26px 8px 12px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;font-size:1.15rem;font-weight:700;color:#111827;cursor:pointer;text-align:left;font-family:inherit;line-height:1.5}
.ble-choice.ble-sel{border:5px double #b45309;background:#fff7ed}
.ble-choice:disabled{cursor:default;opacity:1;color:#111827;border-color:#94a3b8;background:#f8fafc}
.ble-choice.ble-sel:disabled{border:5px double #b45309;background:#fff7ed}
.ble-choice.ble-right:disabled{border:3px solid #15803d;background:#dcfce7}
.ble-choice.ble-wrong:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.ble-check{position:absolute;top:2px;right:6px;font-size:.9rem;font-weight:900;color:#b45309}
.ble-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.45;max-width:560px}
.ble-msg:empty{min-height:0;margin:0}
.feedback.has-text.ble-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.ble-correct{margin:4px 0;font-weight:800}
.ble-est{margin:4px 0;font-weight:700}
.ble-expl-text,.ble-check-text{margin:4px 0 6px;overflow-wrap:anywhere;line-height:1.8}
.ble-gauge{margin:6px 0 4px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}
.ble-gauge-title{margin:0 0 2px;font-weight:700;font-size:15px}
.ble-gauge-line{display:flex;align-items:center;gap:4px}
.ble-gauge-zero{font-weight:700;font-size:14px}
.ble-gauge-svg{display:block;width:100%;height:auto;min-width:0;flex:1}
.ble-gauge-legend{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:15px;font-weight:700}
.ble-sym{display:inline-block;width:1.2em;text-align:center;margin-right:2px}
.ble-sym-lo{color:#1d4ed8}.ble-sym-up{color:#b45309}.ble-sym-limit{color:#b91c1c;font-weight:900}
.ble-example p{margin:6px 0 8px;line-height:1.7}
.ble-example .ble-ex-cards{font-size:1.2rem;font-weight:800}
#page-quiz.active:has(.ble-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.ble-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.ble-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.ble-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.ble-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4横・2列×5段・1ページ（§7、v1.3）。題名の枠と記入らん（共通仕様 CP-08a・CP-08b）18mm、共通の案内（12.5pt・4行まで）と記号の行と余り5mm、
   問題の2列×5段（各列134.5mm、列の間5mm。1問3行16.5mm＋余り5mm）、下に答え（1行に10件）。ゲージは置かない（BC-05）。 */
.ble-pr-page{width:277mm;height:190mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'BIZ UDPGothic','Atkinson Hyperlegible','Yu Gothic','Meiryo',sans-serif}
.ble-pr-headblock{display:block;flex:none}
.ble-pr-title{box-sizing:border-box;margin:0;height:7.5mm;font-size:14pt;font-weight:700;line-height:calc(7.5mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;-webkit-print-color-adjust:exact;print-color-adjust:exact;overflow:hidden}
.ble-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.ble-pr-headblock hr.pp-fields-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm!important;padding:0;border:0!important;border-top:1.5pt solid #333!important}
.ble-pr-inst{flex:none;margin:0;width:274mm;max-height:22mm;font-size:12.5pt;line-height:5.5mm;word-break:normal;overflow-wrap:anywhere;line-break:strict;overflow:hidden}
.ble-pr-legend{flex:none;margin:0 0 5mm;height:5.5mm;font-size:12.5pt;line-height:5.5mm;white-space:nowrap}
.ble-pr-grid{flex:none;display:grid;grid-template-columns:134.5mm 134.5mm;column-gap:5mm;margin-top:3mm}
.ble-pr-col{display:grid;grid-template-rows:repeat(5,21.5mm);row-gap:1.25mm}
.ble-pr-cell{box-sizing:border-box;width:134.5mm;height:21.5mm;overflow:hidden}
.ble-pr-row{margin:0;height:5.5mm;font-size:12.5pt;line-height:5.5mm;white-space:nowrap;display:flex;align-items:center}
.ble-pr-row2,.ble-pr-row3{padding-left:9mm}
.ble-pr-num{display:inline-block;width:9mm;font-weight:700}
.ble-pr-choices{margin-left:auto;padding-right:3.5mm;letter-spacing:.02em}
.ble-pr-answers{flex:none;margin-top:3mm;margin-bottom:5mm;border-top:2pt dashed #aaa;padding-top:1mm}
.ble-pr-anshead{margin:0;font-size:12.5pt;font-weight:700;line-height:6mm}
.ble-pr-arow{display:flex}
.ble-pr-ans{display:inline-block;width:27.4mm;height:5mm;font-size:10pt;line-height:5mm;white-space:nowrap}
.ble-pr-page[lang=en] .ble-pr-inst,.ble-pr-page[lang=en] .ble-pr-row,.ble-pr-page[lang=en] .ble-pr-legend,.ble-pr-page[lang=en] .ble-pr-ans{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.ble-app-pdf-page .ble-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="budget_limit_estimation3_4"]{width:277mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="budget_limit_estimation3_4"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="budget_limit_estimation3_4"]>#pr-problems{display:block}
#pr-sheet[data-unit="budget_limit_estimation3_4"] .ble-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="budget_limit_estimation3_4"]{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="budget_limit_estimation3_4"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="budget_limit_estimation3_4"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="budget_limit_estimation3_4"] .ble-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
/* ○は手でしるしをつけるので、日英とも○が4mm以上になる字体で書く（§7）。 */
.ble-pr-page .ble-pr-choices,.ble-pr-page[lang=en] .ble-pr-choices{font-family:'BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
/* 台帳の区切りの空白（英語の2こ・3こ、日本語の全角の空白）をつぶさない（独立検査 r1 の M-2）。 */
.ble-pr-row,.ble-pr-legend,.ble-pr-cards,.ble-pr-pl,.ble-pr-bounds,.ble-pr-choices{white-space:pre}
.ble-est{white-space:pre-wrap}
/* ○が4mm以上になるよう、記号の行の字を少し大きく（独立検査 r1 の L-1）。 */
.ble-pr-choices{font-size:13.5pt}
/* ゲージの「0」は上の線（0からの線）の左はしにそろえる。上の線の高さはSVGの幅の5%なので、幅に対する%で下げる。 */
.ble-gauge-zero{align-self:flex-start;margin-top:calc(4.8% - .6em);line-height:1.2}
/* A群・C群：下側・上側のがい算を書く欄（v1.3、独立検査 r6 の指摘で4択からテンキーの入力に改めた）。共通テンキー（ufkMount）を欄の下に置く。 */
.ble-est-in{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;width:100%;max-width:560px}
.ble-in-row{display:flex;align-items:center;gap:6px;font-weight:700;font-size:16px}
.ble-in{width:7.5em;min-height:44px;box-sizing:border-box;padding:4px 8px;border:2px solid #334155;border-radius:8px;font-size:1.3rem;font-weight:800;text-align:center;font-variant-numeric:tabular-nums;background:#fff;color:#111827;font-family:inherit}
.ble-in.ufk-input-active{border:3px solid #1d4ed8;background:#eff6ff}
.ble-in:disabled{opacity:1;color:#111827;background:#f8fafc}
.ble-in.ble-in-right:disabled{border:3px solid #15803d;background:#dcfce7}
.ble-in.ble-in-wrong:disabled{border:3px dashed #b91c1c;background:#fff1f2}
#page-quiz:has(#question-text[data-unit="budget_limit_estimation3_4"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="budget_limit_estimation3_4"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
/* 印刷（v1.3、独立検査 r6〜r9 の指摘）：A群・C群の3行目に、作った下側・上側のがい算を書く、わく線つきの箱（日本語32mm・英語26mm、高さ7mm。かっこの文字は台帳どおりに置き、見せずにわく線で示す）。
   各問の領域は23.5mm（A群・C群は3行18mm＋余り5mm以上、B群は3行16.5mm＋余り7mm）にし、段の間のすきまをなくしてページの下の余り5mmを保つ。答えは2行×5件で、A群・C群は下側・上側も書く。 */
.ble-pr-est{white-space:nowrap}
.ble-pr-arow{flex-wrap:wrap}
.ble-pr-ans{width:54.8mm}
.ble-pr-col{grid-template-rows:repeat(5,23.5mm);row-gap:0}
.ble-pr-cell{height:23.5mm}
.ble-pr-cell-A .ble-pr-row3,.ble-pr-cell-C .ble-pr-row3{height:7mm}
.ble-pr-box{display:inline-block;width:32mm;height:7mm;box-sizing:border-box;border:2px solid #000;border-radius:1mm;color:transparent;overflow:hidden;font-size:8pt;line-height:5mm;vertical-align:middle;text-align:left;margin:0 1mm}
.ble-pr-page[lang=en] .ble-pr-box{width:26mm}
