/* ── large_num_card_rank3_3（数字カードでじゅんいと近さを考えよう、単元仕様書 v1.4）── */
/* 画面：問題文、カード5まい（数字・枠・左からの番号。ドラッグと左右のキーで入れかえ）、回答欄（§5-3・§7・LCK-05・06）。 */
#question-text .lcr-q{display:block;overflow-wrap:normal}
.lcr-nb{white-space:nowrap}
.lcr-phrase-group{display:inline;min-width:0}
.lcr-main{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px auto 2px;max-width:600px;width:100%;box-sizing:border-box}
.lcr-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.lcr-slot{display:flex;flex-direction:column;align-items:center;gap:2px}
.lcr-card{width:54px;height:64px;min-width:44px;min-height:44px;border:3px solid #1f2937;border-radius:10px;background:#fffbea;color:#111827;font-family:var(--font-ui),sans-serif;font-size:2rem;font-weight:800;display:flex;align-items:center;justify-content:center;cursor:grab;box-shadow:0 2px 0 #9ca3af;padding:0}
.lcr-card:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.lcr-card-drag{opacity:.5}
.lcr-card-no{font-size:13px;font-weight:700;color:#374151;border:1.5px solid #6b7280;border-radius:4px;min-width:18px;text-align:center;line-height:16px}
.lcr-howto{margin:0;font-size:14px;color:#374151;text-align:center}
.lcr-guide{margin:2px auto;font-weight:700;text-align:center;max-width:32em}
.lcr-guide[hidden]{display:none}
.lcr-answer-row{display:flex;justify-content:center}
.lcr-input{width:7em;min-width:44px;min-height:46px;font-size:1.4rem;font-weight:800;padding:2px 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;box-sizing:border-box;letter-spacing:.08em}
.lcr-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.lcr-input.lcr-input-ok{border:3px solid #15803d;background:#dcfce7}
.lcr-input.lcr-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.lcr-msgs{display:flex;flex-direction:column;align-items:center}
.lcr-msgs:empty{display:none}
.lcr-msg{margin:0;color:#b45309;font-weight:700;text-align:center;max-width:32em;line-height:1.6}
.feedback.has-text.lcr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.lcr-correct{margin:2px 0 6px;font-weight:800}
.lcr-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:normal;word-break:normal;line-break:strict}
.lcr-example .lcr-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.lcr-example .lcr-ex-a{margin:4px 0 14px;line-height:2.1}
.lcr-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.lcr-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.lcr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.lcr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.lcr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.lcr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="large_num_card_rank3_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="large_num_card_rank3_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){
  .lcr-cards{gap:6px}
  .lcr-card{width:48px;height:58px;font-size:1.8rem}
  #page-quiz.active:has(.lcr-main) #question-text{font-size:16px}
  #page-lesson .lesson-point:has(.lcr-nb),#page-lesson .lesson-point:has(.lcr-nb) *{font-size:15px}
  .lcr-example .lcr-ex-q{font-size:15px}
  .lcr-example .lcr-ex-a{font-size:14px}
  #page-lesson .lesson-example:has(.lcr-example){padding-left:8px;padding-right:8px}
  #page-lesson .lesson-example:has(.lcr-example) div:has(> .lcr-example){padding-left:6px!important;padding-right:4px!important}
  #lesson-card-content h3:has(.lcr-nb){font-size:22px!important}
}

/* 印刷（A4縦・2列・1ページ。§7・確定表 LCK-07）。列は各92mm・間6mm。各問の領域39.5mm（番号と条件の1行6.2mm・カード13mm角5まい・記入欄10mm角5つ）。 */
.lcr-pr-page{width:190mm;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.lcr-pr-headrow{display:flex;flex-direction:column;gap:0}
.lcr-pr-title{font-size:14.5pt;margin:0;height:7mm;line-height:7mm;text-align:center;font-weight:700}
.lcr-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.lcr-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.5mm 0 1mm!important;border:0;border-top:2px solid #333}
.lcr-pr-inst{font-size:12.5pt;line-height:6mm;margin:0 0 3mm;padding:0 1mm}
.lcr-pr-problems{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.lcr-pr-col{display:flex;flex-direction:column}
.lcr-pr-cell{height:39.5mm;box-sizing:border-box;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.lcr-pr-line{font-size:12.5pt;line-height:6.2mm;font-weight:700;word-break:normal;overflow-wrap:normal;line-break:strict}
.lcr-pr-cards{display:flex;gap:2mm;margin:2mm 0 0}
.lcr-pr-card{width:13mm;height:13mm;box-sizing:border-box;border:0.5mm solid #000;border-radius:1.2mm;display:flex;align-items:center;justify-content:center;font-size:20pt;font-weight:700;background:#fff}
.lcr-pr-ansrow{display:flex;align-items:center;gap:2mm;margin-top:2.5mm}
.lcr-pr-anslabel{font-size:12.5pt;font-weight:700}
.lcr-pr-boxes{display:flex}
.lcr-pr-box{width:10mm;height:10mm;box-sizing:border-box;border:0.35mm solid #000;margin-left:-0.35mm}
.lcr-pr-box:first-child{margin-left:0}
.lcr-pr-answers{margin-top:3mm;border-top:2px dashed #666;padding-top:0.5mm}
.lcr-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.lcr-pr-acols{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.lcr-pr-ans{margin:0;font-size:10pt;line-height:6mm}
#pr-sheet[data-unit="large_num_card_rank3_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="large_num_card_rank3_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="large_num_card_rank3_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="large_num_card_rank3_3"] .lcr-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="large_num_card_rank3_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="large_num_card_rank3_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="large_num_card_rank3_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="large_num_card_rank3_3"] .lcr-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.lcr-app-pdf-page .lcr-pr-page{box-shadow:none;margin:0}
.lcr-card-selected{border-color:#1d4ed8;box-shadow:0 0 0 3px #93c5fd;background:#eff6ff}
