/* ── digit_code_constraint3_3（数字コードの手がかりをまとめよう、単元仕様書 v1.3）── */
/* 画面：問題文、手がかりの表（題名・見出し・2行）、候補カード（A群・B群は4枚、C群は6枚）、回答案内（§5-3・§7 画面表示）。 */
#question-text .dcc-q{display:block}
.dcc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.dcc-table{width:min(100%,420px);margin:2px auto 8px;border:2px solid #64748b;border-radius:8px;background:#f8fafc;padding:6px 10px;box-sizing:border-box}
.dcc-table-title{font-weight:800;font-size:15px;margin-bottom:2px}
.dcc-table-head{font-size:13px;color:#475569;font-weight:700;margin-bottom:4px}
.dcc-table-row{display:flex;align-items:center;gap:8px;padding:4px 0;border-top:1px solid #cbd5e1;font-size:17px;font-weight:700}
.dcc-clue-no{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#334155;color:#fff;font-size:13px}
.dcc-clue-text{font-variant-numeric:tabular-nums;letter-spacing:.02em}
/* v1.3：きまりの欄（ぴったり・おしいの意味とたとえばの例）と、三つの列の表 */
.dcc-rule{width:min(100%,420px);margin:0 auto 8px;padding:6px 10px;box-sizing:border-box;border-left:5px solid #f59e0b;border-radius:6px;background:#fffbeb;color:#1e293b;text-align:left;line-height:1.5;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.dcc-rule-main{margin:0;font-size:15px;font-weight:700}
.dcc-rule-ex{margin:4px 0 0;font-size:14px;color:#334155}
.dcc-table-grid{display:grid;grid-template-columns:24px 1.3fr 1fr 1fr;align-items:center;column-gap:8px;text-align:center}
.dcc-table-head.dcc-table-grid{font-size:14px;color:#334155;font-weight:800;margin-bottom:0;padding:2px 0}
.dcc-clue-no-pad{visibility:hidden}
.dcc-td{font-variant-numeric:tabular-nums;font-size:18px}
.dcc-td-code{font-family:ui-monospace,'BIZ UDGothic',monospace;letter-spacing:.06em}
.dcc-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,420px);margin:2px auto}
.dcc-cards-6{grid-template-columns:repeat(3,minmax(0,1fr))}
.dcc-card{position:relative;box-sizing:border-box;min-height:52px;padding:6px 4px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.05rem;font-weight:800;font-family:ui-monospace,'BIZ UDGothic',monospace;cursor:pointer;touch-action:manipulation}
.dcc-check{position:absolute;top:1px;left:5px;font-size:18px;font-weight:900;color:#1d4ed8}
.dcc-card.dcc-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.dcc-card:focus-visible,.dcc-clear:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.dcc-card:disabled{cursor:default;opacity:1}
.dcc-card.dcc-ok,.dcc-card.dcc-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.dcc-card.dcc-ng,.dcc-card.dcc-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.dcc-card.dcc-right,.dcc-card.dcc-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.dcc-clear{margin:6px auto 0;min-height:44px;padding:4px 16px;border:2px solid #94a3b8;border-radius:22px;background:#fff;color:#334155;font-weight:700;font-family:var(--font-ui,inherit);cursor:pointer}
.dcc-guide{margin:6px 0 0;font-size:16px;font-weight:700;text-align:center;line-height:1.4}
.dcc-guide[hidden]{display:none}
.dcc-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.dcc-msg:empty{min-height:0;margin:0}
.feedback.has-text.dcc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.dcc-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.dcc-done{margin:4px 0;font-weight:800;color:#1e3a8a}
@media (max-width:400px){.dcc-main .dcc-cards-6{grid-template-columns:repeat(2,minmax(0,1fr))}.dcc-table-row{font-size:15px}.dcc-td{font-size:16px}.dcc-table-grid{column-gap:4px}}
.dcc-example-q{font-weight:700;margin:4px 0}
.dcc-example .dcc-table{margin:4px 0}
.dcc-example-cards{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.dcc-example-card{border:2px solid #64748b;border-radius:8px;padding:2px 8px;font-weight:700;font-family:ui-monospace,monospace}
.dcc-example-answer{margin:4px 0 6px;overflow-wrap:anywhere}
#page-quiz.active:has(.dcc-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.dcc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dcc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dcc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dcc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・1ページ（§7）。題名の枠と記入欄、共通の案内、2列×5段で1問92×33mm、破線、答え2列×5行。 */
.dcc-pr-page{width:190mm;height:277mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.dcc-pr-headblock{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;height:19.5mm}
.dcc-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:15pt;font-weight:700;line-height:8mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.dcc-pr-page[lang="en"] .dcc-pr-title{font-size:14pt}
.dcc-pr-hfields{display:flex;gap:5mm;align-items:flex-end;height:7mm;margin-top:1mm;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.dcc-pr-hgroup{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.dcc-pr-hfield{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.dcc-pr-hfield-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:2px solid #555}
.dcc-hfield-name{flex:1;min-width:0}
.dcc-hfield-name .dcc-pr-hfield-line{flex:1;width:auto;min-width:30mm}
.dcc-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.dcc-pr-rule{flex:none;box-sizing:border-box;width:190mm;margin:1.2mm 0 0;padding:0 2mm;font-size:12.5pt;line-height:5.3mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.dcc-pr-def,.dcc-pr-ex,.dcc-pr-group{margin:0}
.dcc-pr-ex{font-size:12.5pt;line-height:5.3mm}
.dcc-pr-problems{flex:none;display:grid;grid-template-columns:92mm 92mm;column-gap:6mm;width:190mm;margin:1mm 0 0}
.dcc-pr-col{display:grid;grid-template-rows:repeat(5,35.5mm)}
.dcc-pr-cell{box-sizing:border-box;width:92mm;height:35.5mm;overflow:hidden;padding:0.8mm 0 0;border-top:2px solid transparent}
.dcc-pr-row{font-size:12.5pt;line-height:6.5mm;height:6.5mm;white-space:nowrap;font-variant-numeric:tabular-nums}
.dcc-pr-num{display:inline-block;min-width:7mm;font-weight:700}
.dcc-pr-cards{display:grid;grid-template-columns:repeat(3,28mm);column-gap:2mm;row-gap:1mm;margin-top:1mm}
.dcc-pr-card{box-sizing:border-box;height:7mm;line-height:5.9mm;border:2px solid #444;border-radius:2mm;text-align:center;font-size:12.5pt;white-space:nowrap}
.dcc-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:0.5mm}
.dcc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.8mm 0 0.6mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dcc-pr-answers-title{font-weight:700;font-size:12.5pt;line-height:5.5mm;height:5.5mm}
.dcc-pr-anscols{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.dcc-pr-ans{height:4.5mm;line-height:4.5mm;font-size:10pt;white-space:nowrap;overflow:hidden}
.dcc-app-pdf-page .dcc-pr-page{box-shadow:none;margin:0}

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