.course-chapter>p,.practice-chapter>p{font-size:.93rem}.quiz-course{margin-top:25px}.course-progress{padding:20px;background:#e7eddb;border:1px solid #cbd5b7;border-radius:9px;display:flex;gap:20px;align-items:center;justify-content:space-between}.course-progress label{font-size:.78rem;flex:1}.course-count{margin-left:8px;color:#49684c}.course-score{font-size:.72rem;color:#78805d}.course-progress progress{display:block;appearance:none;width:100%;height:7px;margin-top:12px;border:0;border-radius:20px;overflow:hidden;background:#ccd5b9}.course-progress progress::-webkit-progress-bar{background:#ccd5b9}.course-progress progress::-webkit-progress-value{background:#2b6950}.question-nav{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;margin:18px 0 25px}.question-nav button{padding:9px 0;font-family:Georgia,serif;color:#8a7747;border:1px solid #d2d6bf;font-size:.9rem;min-height:44px}.question-nav button[aria-current=step]{outline:2px solid #b99140;background:#faf0cc}.question-nav button.correct{background:#d8e9cf;color:#1d6341}.question-nav button.retry{background:#f4e7c6;color:#906423}.course-question{border:0;padding:0;margin:0 0 24px;min-width:0}.course-question legend{font-weight:700;font-size:1.2rem;line-height:1.8;padding:0;width:100%;margin-bottom:22px}.course-question legend>span{display:block;font-size:.66rem;color:#9c8958;letter-spacing:.1em;font-weight:500;margin-bottom:12px}.course-options{display:grid;gap:12px}.course-choice{display:flex;gap:19px;align-items:center;text-align:left;padding:17px 20px;font-size:.95rem;line-height:1.7;background:#f0f3e5;border-color:#c5d0b4;min-height:62px}.course-choice b{font-family:Georgia,serif;font-size:1.1rem;color:#a0894f;flex-shrink:0}.course-choice:disabled{cursor:default;opacity:1}.course-choice.answer-correct{color:#135734;background:#ddebce;border-color:#8ab18a}.course-choice.answer-wrong{background:#f6e7cd;border-color:#cba275;color:#89582f}.course-choice[aria-pressed=true]{box-shadow:inset 4px 0 #be9346}.course-feedback{background:#eef1e5;color:#768568;padding:17px 20px;border-radius:7px;font-size:.9rem;margin:18px 0 0;min-height:65px}.course-feedback.correct{background:#e1f0d9;color:#22653d}.course-feedback.retry{background:#f7edda;color:#94672b}.course-actions{display:flex;flex-wrap:wrap;gap:12px}.course-next{background:#20533f;border-color:#20533f;color:#fff0c9;padding:13px 20px}.course-next:disabled{opacity:.5;cursor:default}.course-reset{font-size:.76rem;background:transparent}.course-result{background:#1d5140;color:#f8e6b8;padding:27px;font-size:1.05rem;line-height:1.9;border-radius:10px;border:1px solid #b69b57;margin-top:25px}.enhanced .quiz-solution{display:none}.quiz-solution{font-size:.85rem;margin:12px 0}.quiz-solution summary{cursor:pointer}.quiz-course:not(.enhanced) .question-nav,.quiz-course:not(.enhanced) .course-actions,.quiz-course:not(.enhanced) .course-progress{display:none}
.practice-host{border:1px solid #b6c8a7;border-radius:13px;background:radial-gradient(ellipse at center,#f6f7e9,#e6edda);padding:25px;margin:25px 0 15px;min-width:0}.practice-message{margin:0 0 20px;padding:17px 19px;border-left:3px solid #b8964e;background:#ffffff8c;color:#315c40;font-size:.96rem;line-height:1.9}.practice-setup{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:22px}.practice-select{display:flex;flex:1;min-width:190px;flex-direction:column;gap:10px;font-size:.78rem;color:#6d7b60}.practice-select select{width:100%;padding:12px 14px;color:#214731;border:1px solid #b5c6a4;background:#fffcf2;border-radius:7px;font-size:.9rem;max-width:100%}.practice-scope{width:100%;font-size:.78rem;line-height:1.8;margin:0;color:#8a7845}.practice-primary{background:#245c43;color:#fff0c6;border-color:#245c43;padding:13px 20px;font-size:.88rem}.practice-primary:hover{background:#31734f}.practice-group{margin:23px 0}.practice-group h3{font-size:.75rem;font-weight:500;letter-spacing:.05em;color:#748064;margin:0 0 15px}.practice-pieces{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.practice-card{position:relative;width:66px;height:96px;border:1px solid #c7b57f;border-radius:7px;background:#fffced;color:#173e34;box-shadow:2px 4px 0 #b6be9e50;display:flex;align-items:center;justify-content:center;flex-shrink:0}.practice-card>small{position:absolute;top:5px;left:7px;font-family:Georgia,serif;font-size:.9rem;font-weight:700}.practice-card>small:last-child{top:auto;left:auto;bottom:5px;right:7px;transform:rotate(180deg)}.practice-card>strong{font-size:2rem;font-family:Georgia,serif;font-weight:400}.practice-card.red{color:#b24943}.practice-card.face-down{background:repeating-linear-gradient(45deg,#195642 0,#195642 6px,#23664a 6px,#23664a 7px);color:#ecd184;font-size:1.8rem;border:4px solid #fff5d6}.piece-button{padding:4px;background:transparent;border:2px solid transparent;border-radius:11px;min-height:0}.piece-button.selected{background:#d9bb70;border-color:#a37b31}.piece-button.selected:after{content:'選';display:block;color:#6c5127;font-size:.56rem;text-align:center;padding-top:4px}.practice-die{display:inline-block;position:relative;width:67px;height:67px;background:#fff6d7;border:2px solid #b59c5a;border-radius:12px;box-shadow:4px 5px 0 #b89d5b5c;flex-shrink:0}.practice-die i{position:absolute;width:9px;height:9px;border-radius:50%;background:#24563d;transform:translate(-50%,-50%)}.practice-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.practice-actions:empty{display:none}.practice-actions>button{font-size:.86rem;padding:13px 18px}.practice-reset{font-size:.7rem;padding:8px 12px;background:transparent;margin-top:14px;color:#7f855f}.practice-result{background:#174b37;border-radius:10px;padding:23px;color:#f5e8c5;margin-top:23px}.practice-result h3{font-family:var(--serif);font-size:1.25rem;font-weight:700}.practice-result p{font-size:.9rem;line-height:1.9}.practice-result button{border-color:#c6aa62;color:#f7e9bf;background:#285c41}.practice-number{font-family:Georgia,serif;font-size:3.3rem;color:#947032;text-align:center;background:#fff8de;border:1px solid #c8b47b;border-radius:12px;padding:25px;margin:23px auto;max-width:300px}.practice-total{font-size:1.1rem;color:#7a6835;border-top:1px solid #c9d1b7;padding-top:18px}.practice-small{font-size:.78rem;overflow-wrap:anywhere;line-height:2;color:#71815f}.practice-note{font-size:.76rem!important;color:#849170}.practice-number-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:20px 0}.number-choice{font-size:.76rem;padding:8px 0;border-color:#c4cfb1;min-height:39px}.number-choice.selected{background:#d9ba68;color:#3a5639}.number-choice.called{box-shadow:inset 0 0 0 2px #30724e}.number-choice.selected.called{background:#225d3d;color:#fff2c3}.number-choice:disabled{opacity:1;cursor:default}.practice-bingo{max-width:360px;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:20px auto}.practice-bingo>span{padding:14px 4px;border:1px solid #c4cba9;border-radius:6px;background:#fff7de;text-align:center;font-family:Georgia,serif;color:#68724c}.practice-bingo .marked{background:#275f3f;color:#f8edc6;border-color:#275f3f}.practice-cups{display:flex;gap:20px;margin:25px auto;justify-content:center}.cup-choice{padding:40px 25px;background:linear-gradient(120deg,#b79e58,#e4cb86,#b49c57);color:#55462a;border:2px solid #9a7e3a;border-radius:40px 40px 6px 6px;min-width:110px}.large-type .course-choice,.large-type .course-feedback,.large-type .practice-message{font-size:1.12rem}
@media(max-width:540px){.course-progress{padding:17px;display:block}.course-score{display:block;margin-top:13px}.question-nav{gap:6px;grid-template-columns:repeat(5,minmax(0,1fr))}.course-question legend{font-size:1.15rem}.course-choice{padding:14px;font-size:.98rem;gap:15px}.course-feedback{padding:16px;font-size:.93rem}.course-actions{gap:12px}.course-next,.course-reset{flex:1;min-width:120px}.course-result{padding:21px;font-size:1rem}.practice-host{padding:18px 13px;margin-left:-5px;margin-right:-5px}.practice-message{padding:14px;font-size:.95rem}.practice-select{min-width:160px}.practice-pieces{gap:6px}.practice-card{width:47px;height:72px;border-radius:6px}.practice-card>small{font-size:.7rem;top:3px;left:4px}.practice-card>small:last-child{bottom:3px;right:4px}.practice-card>strong{font-size:1.5rem}.piece-button{padding:3px;border-width:2px}.practice-die{width:47px;height:47px;border-radius:8px;box-shadow:3px 3px 0 #b89d5b5c}.practice-die i{width:7px;height:7px}.practice-actions>button{font-size:.88rem;padding:13px}.practice-number-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.number-choice{font-size:.75rem;min-height:37px;padding:7px 0}.practice-result{padding:18px}.practice-result p{font-size:.88rem}.practice-small{font-size:.82rem}.practice-note{font-size:.8rem!important}.practice-cups{gap:16px}.cup-choice{min-width:95px;padding:35px 16px}}
@media print{.quiz-course .course-question{display:block!important}.course-question{break-inside:avoid}.course-options button{display:block;width:100%;text-align:left;padding:4mm;margin:1mm 0;color:black!important;background:white!important;box-shadow:none!important}.course-options button:disabled{opacity:1}.enhanced .quiz-solution{display:block}.course-progress,.question-nav,.course-actions,.course-result,.course-feedback,.practice-host{display:none!important}.practice-chapter>p{font-size:10pt}}
