/* ── board_path_moves_1（マスの みちを すすんだり もどったりしよう、単元仕様書 v1.2）── */
/* 画面：問題文、盤面（5列3行のマスのボタンとあいだの矢印）、開始番号と指示カード、案内。回答後は正答・誤答の印、答え・解説（§5-3・§7）。 */
#question-text .bpm-q{display:block;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
.bpm-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
.bpm-board{display:grid;grid-template-columns:minmax(44px,60px) 18px minmax(44px,60px) 18px minmax(44px,60px) 18px minmax(44px,60px) 18px minmax(44px,60px);grid-template-rows:52px 20px 52px 20px 52px;justify-content:center;max-width:100%}
.bpm-cell{position:relative;box-sizing:border-box;min-width:44px;min-height:44px;width:100%;height:100%;padding:0;border:2px solid #475569;border-radius:8px;background:#fff;color:#111827;font-family:inherit;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;cursor:pointer}
button.bpm-cell:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.bpm-cell .bpm-label{font-size:1.25rem}
.bpm-cell .bpm-start-tag{font-size:12px;font-weight:800;color:#1e3a8a;white-space:nowrap}
.bpm-cell.bpm-start{border:3px double #1e3a8a;background:#eff6ff}
.bpm-cell.bpm-sel{border:4px solid #2563eb;background:#dbeafe}
.bpm-cell .bpm-mark{position:absolute;top:-10px;right:-9px;font-size:17px;font-weight:900;line-height:1;background:#fff;border-radius:50%;padding:1px 2px}
.bpm-cell.bpm-correct{border:4px solid #15803d;background:#dcfce7}
.bpm-cell.bpm-correct .bpm-mark{color:#15803d}
.bpm-cell.bpm-wrong{border:3px dashed #b91c1c;background:#fff1f2}
button.bpm-cell:disabled{cursor:default;opacity:1;color:#111827}
.bpm-gap{display:flex;align-items:center;justify-content:center;color:#334155}
.bpm-gap .bpm-arrow{width:100%;max-width:18px;height:18px}
.bpm-gap-v .bpm-arrow{width:20px;max-width:20px;height:20px}
.bpm-cards{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:100%}
.bpm-start-line{margin:0;font-weight:800;font-size:1.05rem;white-space:nowrap}
.bpm-card-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.bpm-card{box-sizing:border-box;padding:6px 10px;border-radius:8px;font-weight:800;font-size:1.05rem;white-space:nowrap;background:#fff}
.bpm-card-f{border:3px solid #15803d}
.bpm-card-b{border:3px dashed #c2410c}
.bpm-msg{word-break:keep-all;min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.bpm-msg:empty{min-height:0;margin:0}
.feedback.has-text.bpm-feedback{display:block;height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.bpm-answer{margin:4px 0;font-weight:800;word-break:keep-all}
.bpm-expl-text{margin:4px 0 6px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
.bpm-example{display:flex;flex-direction:column;align-items:center;gap:8px}
.bpm-example .bpm-ex{margin:6px 0 8px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.bpm-board-ex{grid-template-columns:minmax(40px,52px) 12px minmax(40px,52px) 12px minmax(40px,52px) 12px minmax(40px,52px) 12px minmax(40px,52px);grid-template-rows:46px 18px 46px 18px 46px}
.bpm-board-ex .bpm-cell{cursor:default}
/* 狭い画面では学習内容の例の盤面を小さくし、わくからはみ出さないようにする（押すマスではないので44pxは要らない。独立検査 r3）。 */
@media (max-width:420px){.bpm-board.bpm-board-ex{grid-template-columns:29px 6px 29px 6px 29px 6px 29px 6px 29px;grid-template-rows:42px 12px 42px 12px 42px}.bpm-board-ex .bpm-cell{min-width:0;min-height:0}.bpm-board-ex .bpm-label{font-size:1rem}.bpm-board-ex .bpm-start-tag{font-size:11px;letter-spacing:-1.5px}.bpm-board-ex .bpm-gap .bpm-arrow{width:7px;height:12px}}
#page-quiz.active:has(.bpm-main) #hint-area .kp-body{word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
@media (max-width:360px){.bpm-board{grid-template-columns:44px 12px 44px 12px 44px 12px 44px 12px 44px;grid-template-rows:48px 18px 48px 18px 48px}.bpm-card{font-size:.98rem;padding:5px 8px}}

/* 印刷：A4横・1ページ（§7。v1.2）。見出し行（題名の枠と記入らん。共通仕様 CP-08a・CP-08b）、共通の問い1回、2列×5段の各問（問番号と答えの欄、盤面、開始番号と指示カード）、破線、解答2列。 */
.bpm-pr-page{width:277mm;height:190mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0.8mm 0 0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.bpm-pr-top{flex:none}
.bpm-pr-title{box-sizing:border-box;width:100%;margin:0;height:8mm;padding:0 3mm;font-size:14pt;font-weight:700;line-height:calc(8mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.bpm-pr-top .pp-fields{height:8mm;margin:1mm 0 0;gap:5mm;font-size:12pt!important}
.bpm-pr-top .pp-fields-group{gap:3mm}
.bpm-pr-top .pp-field{gap:1mm}
.bpm-pr-top .pp-field-line{width:14.5mm;height:6.5mm}
.bpm-pr-top .pp-field-name .pp-field-line{min-width:40mm}
.bpm-pr-top hr.pp-fields-solid{display:none}
.bpm-pr-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm;padding:0;border:0;border-top:1.5pt solid #333}
.bpm-pr-inst{margin:0 0 0.3mm;font-size:12.6pt;line-height:6.2mm;flex:none}
.bpm-pr-problems{flex:none;display:grid;grid-template-columns:137.5mm 137.5mm;column-gap:2mm}
.bpm-pr-col{display:flex;flex-direction:column;gap:0.4mm}
.bpm-pr-cell{box-sizing:border-box;height:27.1mm;border:2px solid transparent;border-radius:1mm;padding:0 0.3mm;overflow:hidden;display:flex;align-items:center;gap:0}
.bpm-pr-left{flex:none;width:16mm;display:flex;flex-direction:column;align-items:flex-start;gap:0.6mm}
.bpm-pr-num{margin:0;font-size:12.6pt;font-weight:700;line-height:5.2mm}
.bpm-pr-anslabel{margin:0;font-size:9pt;line-height:3.8mm;white-space:nowrap}
.bpm-pr-frame{display:block;box-sizing:border-box;width:12mm;height:8mm;border:0.4mm solid #000;border-radius:1mm}
.bpm-pr-fig{flex:none;width:80mm;height:26mm}
.bpm-pr-board{display:block;width:80mm;height:26mm}
.bpm-pr-cards{flex:none;width:39mm;margin-left:0.8mm;display:flex;flex-direction:column;gap:0.6mm}
.bpm-pr-cards .bpm-start-line{margin:0;font-size:9.5pt;line-height:4.2mm;font-weight:700;white-space:nowrap}
.bpm-pr-cards .bpm-card-list{display:flex;flex-direction:column;gap:0.8mm;margin:0;padding:0;list-style:none}
.bpm-pr-cards .bpm-card{box-sizing:border-box;width:39mm;height:6.4mm;padding:0 1.2mm;border-radius:1mm;font-size:9pt;font-weight:700;line-height:calc(6.4mm - 0.8mm);white-space:nowrap;overflow:hidden}
.bpm-pr-page[lang=en] .bpm-pr-cards .bpm-card{font-weight:400;padding:0 0.8mm}
.bpm-pr-cards .bpm-card-f{border:0.4mm solid #15803d}
.bpm-pr-cards .bpm-card-b{border:0.4mm dashed #c2410c}
.bpm-pr-answers{flex:none;box-sizing:border-box;width:277mm;margin-top:auto;margin-bottom:0.4mm}
.bpm-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.bpm-pr-ansbody{display:flex;gap:2mm}
.bpm-pr-anshead{flex:none;width:18mm;font-weight:700;font-size:10.5pt;line-height:4.8mm;white-space:nowrap}
.bpm-pr-anscols{flex:1;display:grid;grid-template-columns:1fr 1fr;column-gap:4mm}
.bpm-pr-anscol{display:flex;flex-direction:column}
.bpm-pr-answer{margin:0;font-size:10.5pt;line-height:4.8mm}
.bpm-pr-ansnum{font-weight:700}
.bpm-pr-page[lang=en] .bpm-pr-inst,.bpm-pr-page[lang=en] .bpm-pr-answer,.bpm-pr-page[lang=en] .bpm-pr-anshead,.bpm-pr-page[lang=en] .bpm-pr-cards,.bpm-pr-page[lang=en] .bpm-pr-anslabel{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.bpm-app-pdf-page .bpm-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="board_path_moves_1"]{width:277mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="board_path_moves_1"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="board_path_moves_1"]>#pr-problems{display:block}
#pr-sheet[data-unit="board_path_moves_1"] .bpm-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="board_path_moves_1"]{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="board_path_moves_1"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="board_path_moves_1"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="board_path_moves_1"] .bpm-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
