header nav a{color:white}#review-setup{max-width:620px;border-bottom:1px solid var(--border);padding-bottom:20px;margin-bottom:20px}#review-setup label{display:block;margin-bottom:8px}#history-stats{background:#edf4fc;border-left:4px solid var(--blue);padding:8px 20px;margin:20px 0}#history-list article{border-top:1px solid var(--border);padding:12px 0}#history-list h2{font-size:18px}#question-category{color:#53687e}#review-scope{font-weight:600}#complete{margin-top:24px}
/* Shared learning layout and wrong-answer review. */
body.learning-page{background:#faf9f8;color:#29272b;font-family:AppJapanese,'Noto Sans JP','Yu Gothic',sans-serif;--blue:#d92d27;--border:#e6e1df}
.learning-page header.home-header{height:80px;padding:0 36px;background:white;color:#29272b;border-bottom:1px solid var(--border)}.learning-account{color:#625d61;font-size:12px;text-decoration:none}
.learning-page main{display:block;max-width:1240px;margin:0 0 0 220px;padding:32px 40px}.learning-page main>.panel{padding:0;border:0;background:transparent;box-shadow:none}
.learning-heading .eyebrow{font-size:10px;color:#d92d27;letter-spacing:.13em;margin:0 0 8px}.learning-heading h1{font-size:32px;line-height:1.5;letter-spacing:-.04em;margin:0 0 8px}.learning-heading>p:last-child{font-size:14px;color:#6f6c73;margin:0 0 24px}
.learning-page #review-setup{max-width:none;border:0;margin:0;padding:0}
.review-total-card{display:flex;align-items:center;gap:28px;position:relative;min-height:180px;padding:24px 30px;background:#fff5f0 url('/login-background.png') center bottom/cover no-repeat;border:1px solid #f0ded5;border-radius:12px;box-shadow:0 9px 24px rgba(147,61,43,.055);margin-bottom:24px;overflow:hidden}
.review-total-card>div{min-width:120px;position:relative;z-index:1}.review-total-card>div p{font-size:12px;font-weight:600;margin:0 0 4px}.review-total-card strong{font-size:44px;line-height:1.3;color:#d92d27;font-weight:750}.review-total-card small{font-size:20px;margin-left:3px}.review-total-card>p{font-size:12px;color:#6f6c73;max-width:320px;position:relative;z-index:1}.review-mascot{margin-left:auto;width:150px;height:150px;object-fit:contain;flex-shrink:0}
.review-select-title{font-size:17px;margin:0 0 14px}.review-select-label,.learning-page #review-category{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#review-category-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}#review-category-buttons button{flex:1;white-space:nowrap;background:white;border:1px solid #dcd4d0;border-radius:22px;padding:9px 16px;font-size:12px;min-height:40px;color:#625459;box-shadow:0 2px 5px rgba(55,35,28,.025)}#review-category-buttons button[aria-pressed=true]{background:#d92d27;color:white;border-color:#d92d27;box-shadow:0 4px 10px rgba(176,40,32,.15)}
.review-guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.review-target-card,.review-guide-card{border:1px solid #e6e1df;border-radius:12px;background:white;padding:24px;box-shadow:0 9px 24px rgba(55,35,28,.055),inset 0 1px 0 white}.review-guide-card{background:#fff8f5}.review-guide-grid h2{font-size:19px;letter-spacing:-.025em;margin:0 0 18px}#review-targets>div{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e6e1df;padding:15px 0;font-size:12px}#review-targets>div:last-child{border-bottom:0}#review-targets strong{font-size:18px;color:#d92d27;white-space:nowrap}
.review-guide-card ol{padding-left:22px;margin:0}.review-guide-card li{padding-left:6px;margin:0 0 16px;font-size:13px}.review-guide-card li::marker{color:#d92d27;font-weight:700}.review-guide-card strong{font-size:13px}.review-guide-card p{font-size:11px;color:#6f6c73;margin:5px 0 0;line-height:1.9}
.review-start-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px;background:#fff1eb;border:1px solid #f0d7ce;border-radius:12px;margin-top:22px;box-shadow:0 8px 20px rgba(147,61,43,.05)}.review-start-bar #review-scope{font-size:18px;margin:0 0 6px;font-weight:650;color:#29272b}.review-limit-note{font-size:10px;color:#6f6c73;margin:0}.learning-page #start-review{width:auto;min-width:200px;margin:0;border-radius:7px;font-size:13px;padding:12px 24px;box-shadow:0 5px 12px rgba(176,40,32,.19)}
.learning-page #question,.learning-page #complete,.learning-page #locked{padding:26px;border:1px solid #e6e1df;border-radius:12px;background:white;box-shadow:0 9px 24px rgba(55,35,28,.055);margin-top:20px}.learning-page #question h2{font-size:22px;line-height:1.8}.learning-page #choices label{border-radius:8px;font-size:14px;border-color:#ded6d2;background:white}.learning-page #choices label.selected{background:#fff3f0;border-color:#d92d27}.learning-page #submit{width:auto;margin-top:12px;border-radius:7px;font-size:13px}.learning-page #next{margin-top:20px;background:#d92d27;color:white;border-radius:7px;font-size:13px}.learning-page #error{font-size:12px;border-radius:7px}.learning-page #review-progress{font-size:12px;color:#6f6c73}
@media(max-width:1050px) and (min-width:851px){.learning-page main{margin-left:180px;padding:28px}.review-mascot{width:100px;height:130px}.review-total-card{gap:16px;padding:22px}.review-guide-grid{gap:14px}}
@media(max-width:850px){.learning-page header.home-header{height:68px;padding:0 20px}.learning-page main{margin:0;padding:24px 20px}.learning-heading h1{font-size:28px}.review-guide-grid{grid-template-columns:1fr}.review-start-bar{flex-direction:column;align-items:stretch}.learning-page #start-review{width:100%;min-width:0}.review-total-card{gap:16px;padding:20px}.review-mascot{width:90px;height:130px}.review-total-card>p{font-size:11px}.review-total-card strong{font-size:38px}}
@media(max-width:520px){.review-total-card{flex-wrap:wrap;gap:10px;padding-right:110px}.review-mascot{position:absolute;right:12px;bottom:20px}.review-total-card>p{max-width:180px}.review-total-card>div{min-width:0}#review-category-buttons button{flex:auto;font-size:11px;padding-inline:12px}}
/* History uses real completed attempts and the shared learning shell. */
.history-page .learning-heading{background:#fff8f4 url('/login-background.png') center bottom/cover no-repeat;border:1px solid #f0e5de;border-radius:14px;padding:26px 30px;margin-bottom:24px}
.history-page .learning-heading>p:last-child{margin-bottom:0}
.learning-page #history-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;background:transparent;border:0;padding:0;margin:22px 0 24px}
.history-stat-card{background:white;border:1px solid #e6e1df;border-radius:12px;padding:24px 26px;box-shadow:0 9px 24px rgba(55,35,28,.055),0 2px 5px rgba(55,35,28,.025),inset 0 1px 0 white}
.history-stat-card>p{font-size:12px;font-weight:550;color:#6f6c73;margin:0 0 8px}.history-stat-card strong{font-size:42px;line-height:1.35;font-weight:750;letter-spacing:-.04em}.history-stat-card:first-child strong{color:#d92d27}.history-stat-card small{font-size:17px;margin-left:4px;font-weight:600}.history-stat-note{grid-column:1/-1;font-size:10px;color:#6f6c73;margin:-6px 0 0}
.learning-page #history-summary{font-size:12px;color:#6f6c73;margin:0 0 16px}.learning-page #history>p:not(#history-summary){font-size:11px;color:#6f6c73;margin:12px 0 20px}
.learning-page #history-list{overflow-x:auto;background:white;border:1px solid #e6e1df;border-radius:12px;box-shadow:0 9px 24px rgba(55,35,28,.055)}
#history-list table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:610px}
#history-list caption{text-align:left;font-size:18px;font-weight:650;letter-spacing:-.025em;padding:22px 24px}
#history-list th{font-size:11px;font-weight:600;color:#6f6c73;background:#f7f5f4;padding:13px 20px;border-top:1px solid #e6e1df;border-bottom:1px solid #e6e1df;white-space:nowrap}
#history-list td{padding:20px;border-bottom:1px solid #eee8e4;white-space:nowrap}#history-list tbody tr:last-child td{border-bottom:0}#history-list .history-latest{background:#fff6f2}#history-list .history-score{font-size:20px;font-weight:700;letter-spacing:-.02em}#history-list .history-latest .history-score{color:#d92d27}#history-list a{font-size:11px;color:#d92d27;font-weight:600;text-decoration:none}#history-list a:hover{text-decoration:underline}
.history-bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.history-review-link{font-size:13px;color:#d92d27;text-decoration:none}.history-exam-link{background:#d92d27;color:white;text-decoration:none;font-size:13px;font-weight:600;padding:13px 24px;border:1px solid #c82a23;border-radius:7px;box-shadow:0 5px 12px rgba(176,40,32,.19)}.history-exam-link:hover{background:#c82a24}
@media(max-width:850px){.history-stat-card{padding:20px}.history-stat-card strong{font-size:34px}.learning-page #history-stats{gap:12px}.history-page .learning-heading{padding:24px}}
@media(max-width:520px){.learning-page #history-stats{grid-template-columns:1fr}.history-stat-card{display:flex;justify-content:space-between;align-items:center;padding:18px 22px}.history-stat-card>p{margin:0}.history-stat-note{margin:0}.history-bottom-actions{flex-direction:column;align-items:stretch}.history-exam-link{text-align:center}.history-review-link{text-align:center}}
.learning-page:has(#complete:not([hidden])) .learning-heading,.learning-page:has(#complete:not([hidden])) #review-progress{display:none}.learning-page #complete{padding:32px;background:white;border:1px solid #e6e1df;border-radius:16px;box-shadow:0 3px 6px #34201c04,0 14px 32px #34201c07}.review-complete-heading h2{font-size:30px;letter-spacing:-.035em;line-height:1.5;margin:8px 0 12px}.review-complete-heading>p:last-child{color:#6f6c73;font-size:14px;margin-bottom:24px}.review-complete-scope{font-size:12px;color:#6f6c73}.review-complete-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:16px 0 24px;padding:0;border:0}.review-complete-stats>div{display:block;background:#faf8f7;border:1px solid #e9e1dc;border-radius:12px;padding:22px}.review-complete-stats>div:nth-child(2){background:#f0f8f3;border-color:#cfe4d9}.review-complete-stats dt{font-size:12px;line-height:1.8;color:#6f6c73}.review-complete-stats dd{display:block;margin:12px 0 0;white-space:nowrap}.review-complete-stats strong{font-size:48px;line-height:1.2;font-weight:700;letter-spacing:-.035em;color:#49444a}.review-complete-stats>div:nth-child(2) strong{color:#307452}.review-complete-stats>div:nth-child(3) strong{color:#c5332c}.review-complete-stats dd span{font-size:14px;margin-left:8px;color:#6f6c73}.review-complete-note{display:flex;gap:16px;align-items:flex-start;padding:22px 24px;background:#fff8f4;border:1px solid #efdfd7;border-radius:12px}.review-complete-check{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:#fff;color:#b83b34;font-size:20px}.review-complete-note h3{font-size:15px;margin:0 0 8px}.review-complete-note p{font-size:12px;color:#817974;line-height:1.9;margin:0}#review-remaining{font-size:12px;color:#6f6c73;margin:20px 0}.review-complete-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid #ece7e5;padding-top:24px}.learning-page .review-complete-actions .primary{width:auto;margin:0;padding:13px 24px;background:linear-gradient(#e83b32,#cf2722);border:1px solid #c82922;border-radius:8px;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720;font-size:13px}.review-complete-actions a{font-size:13px}.review-new-exam{padding:12px 24px;color:#b83b34;border:1px solid #dfaca6;border-radius:8px;text-decoration:none}.review-complete-home{color:#6f6c73;margin-left:auto}#review-complete-title:focus{outline:none}
@media(max-width:850px){.learning-page #complete{padding:24px}.review-complete-heading h2{font-size:26px}.review-complete-stats>div{padding:18px}.review-complete-stats strong{font-size:38px}}
@media(max-width:560px){.learning-page #complete{padding:22px 16px}.review-complete-heading h2{font-size:23px}.review-complete-stats{gap:8px}.review-complete-stats>div{padding:14px 10px}.review-complete-stats dt{font-size:10px;min-height:36px}.review-complete-stats strong{font-size:30px}.review-complete-stats dd span{font-size:11px;margin-left:4px}.review-complete-note{padding:18px 16px;gap:10px}.review-complete-note h3{font-size:13px}.review-complete-actions{flex-direction:column;align-items:stretch;text-align:center}.review-complete-home{margin:0}.review-complete-check{width:28px;height:28px;font-size:16px}}
.learning-page #review-empty{text-align:center;background:#fff;border:1px solid #e6e1df;border-radius:16px;padding:28px 32px 30px;box-shadow:0 3px 6px #34201c04,0 14px 32px #34201c07}.review-empty-art{position:relative;width:290px;max-width:100%;height:190px;margin:0 auto 20px;background:radial-gradient(ellipse at center,#fff0e9 0%,#fff8f4 55%,#ffffff00 72%);border-radius:50%}.review-empty-art img{height:185px;width:210px;object-fit:contain}.review-empty-art>span{position:absolute;left:36px;bottom:32px;display:grid;place-items:center;width:42px;height:42px;background:white;border:1px solid #eeddd5;border-radius:50%;color:#b83b34;font-size:22px;box-shadow:0 5px 15px #54302109}.review-empty-art+h2{font-size:26px;letter-spacing:-.035em;margin:8px 0 14px}#review-empty>p{font-size:13px;color:#6f6c73;line-height:1.9;margin:0}.review-empty-count{display:inline-flex;align-items:baseline;gap:8px;border:1px solid #ece5e1;border-radius:40px;background:#faf8f7;padding:7px 20px;margin:20px 0;font-size:12px;color:#6f6c73}.review-empty-count strong{color:#c5332c;font-size:24px;font-weight:700}.review-empty-actions{display:flex;flex-direction:column;gap:12px;max-width:360px;margin:0 auto}.review-empty-actions a{display:block;text-decoration:none;padding:13px 20px;font-size:13px;font-weight:600;border-radius:8px}.review-empty-actions .review-empty-primary{background:linear-gradient(#e83b32,#cf2722);border:1px solid #c82922;color:white;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720}.review-empty-actions .review-empty-secondary{color:#49444a;border:1px solid #d8d0cb;background:white}.review-empty-actions .review-empty-home{font-size:12px;color:#817974;text-decoration:underline;font-weight:400;padding:8px}.learning-page #review-empty .review-empty-note{font-size:11px;margin-top:16px;color:#8d8580}.review-empty-actions a:focus-visible{outline:3px solid #d92d2770;outline-offset:3px}
@media(max-width:560px){.learning-page #review-empty{padding:24px 18px}.review-empty-art{height:160px;margin-bottom:18px}.review-empty-art img{height:158px;width:180px}.review-empty-art+h2{font-size:21px}.review-empty-art>span{left:30px;bottom:20px}.review-empty-actions{max-width:100%}}
.learning-page #load-error{text-align:center;background:white;border:1px solid #e6e1df;border-radius:16px;padding:36px 32px;box-shadow:0 3px 6px #34201c04,0 14px 32px #34201c07}.load-error-art{display:grid;place-items:center;width:130px;height:130px;margin:0 auto 22px;background:#fff4ef;border:1px solid #f0e1da;border-radius:50%;color:#817974}.load-error-art svg{width:82px;height:82px}#load-error h2{font-size:26px;letter-spacing:-.035em;margin:8px 0 14px}#load-error>p:not(.eyebrow){font-size:13px;line-height:1.9;color:#6f6c73}#load-error-detail{max-width:480px;margin:16px auto;padding:12px 16px;background:#faf8f7;border-radius:8px;font-size:12px!important}.load-error-actions{display:flex;flex-direction:column;gap:12px;max-width:340px;margin:24px auto}.learning-page .load-error-actions .primary{margin:0;width:100%;padding:13px 20px;background:linear-gradient(#e83b32,#cf2722);border:1px solid #c82922;border-radius:8px;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720;font-size:13px}.load-error-actions a{display:block;padding:12px 20px;border:1px solid #d8d0cb;border-radius:8px;color:#49444a;font-size:13px;text-decoration:none}.learning-page #load-error .load-error-help{font-size:11px;color:#8d8580;margin-top:24px;padding-top:18px;border-top:1px solid #ece7e5}
@media(max-width:560px){.learning-page #load-error{padding:28px 20px}.load-error-art{width:108px;height:108px}.load-error-art svg{width:68px;height:68px}#load-error h2{font-size:21px}.load-error-actions{max-width:100%}}
.learning-page:has(#question:not([hidden])) .learning-heading{display:none}.learning-page #question{padding:28px;border-radius:16px}.learning-page #review-progress:not(:empty){font-weight:600;font-size:14px;color:#514b4d;margin:12px 0}#review-question-progress{display:block;width:100%;height:5px;border:0;accent-color:#d92d27;margin-bottom:24px;border-radius:8px;overflow:hidden}#review-question-progress::-webkit-progress-bar{background:#eee6e2}#review-question-progress::-webkit-progress-value{background:#d92d27}.review-question-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:28px}.review-question-layout:has(#feedback[hidden]){grid-template-columns:1fr}.review-question-card{min-width:0}.learning-page #question-category{display:inline-block;font-size:11px;font-weight:600;background:#fff1ec;border:1px solid #eed9d0;padding:5px 12px;border-radius:20px;color:#a5473b;margin:0}.learning-page #question-title{font-size:21px;line-height:1.85;letter-spacing:-.02em;outline:none;margin:18px 0}.learning-page #wrong-count{font-size:11px;color:#82777a;margin-bottom:24px}.learning-page #choices{border:0;padding:0;min-width:0}.learning-page #choices legend{font-size:12px;color:#777078;margin-bottom:12px}.learning-page #choices label{display:flex;align-items:center;gap:12px;padding:17px 16px;margin:10px 0;line-height:1.8;border:1px solid #ded7d3;box-shadow:0 3px 8px #39251e06}.learning-page #choices input{width:16px;height:16px;margin:0;flex:none;accent-color:#d92d27}.review-choice-letter{display:grid;place-items:center;flex:none;width:28px;height:28px;background:#f5f1ef;border-radius:6px;font-size:13px}.learning-page #choices label>span{flex:1;min-width:0}.learning-page #choices small{font-size:10px;white-space:nowrap}.learning-page #choices label.choice-correct{background:#f1f8f3;border-color:#96c8a9;color:#276547}.learning-page #choices label.choice-wrong{background:#fff2ef;border-color:#e5b0a8;color:#a93e34}.learning-page #submit{padding:13px 24px;font-family:inherit;background:linear-gradient(#e63a31,#cf2923);box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720}.learning-page #question:has(#feedback:not([hidden])) #submit{display:none}.learning-page #feedback{margin:0;padding:22px;background:#fffaf7;border:1px solid #eddcd3;border-radius:12px;min-width:0}.learning-page #verdict{margin:0;padding:12px 16px;background:#fbe7e2;color:#ad3d32;border-radius:7px;font-size:18px}.learning-page #feedback.is-correct #verdict{background:#e7f3eb;color:#276547}.learning-page #answer{font-size:12px;line-height:1.8;color:#6c6260;padding-bottom:16px;border-bottom:1px solid #e9ded8}.learning-page #feedback>h4{font-size:15px;margin:20px 0 8px}.learning-page #explanation{font-size:13px;line-height:2;color:#514b4d;overflow-wrap:anywhere}.review-question-actions{border-top:1px solid #ece5e1;padding-top:22px;margin-top:24px;display:flex;justify-content:space-between;gap:12px}.learning-page .review-question-actions button{width:auto;font-family:inherit;border-radius:8px;padding:12px 22px;font-size:12px;margin:0}.learning-page #review-back{background:white;border:1px solid #ded7d3;color:#6f6261}.learning-page #next{box-shadow:0 3px 0 #b92520,0 6px 12px #d92d271a}@media(max-width:1050px){.review-question-layout{grid-template-columns:1fr}}@media(max-width:520px){.learning-page #question{padding:20px 16px}.learning-page #choices label{padding:14px 10px;gap:8px;flex-wrap:wrap;font-size:13px}.learning-page #choices small{margin-left:auto}.review-question-actions{flex-direction:column-reverse}.learning-page .review-question-actions button,.learning-page #submit{width:100%}}

.learning-page #locked{padding:36px;border-radius:18px;border:1px solid #ecdcd6;background:linear-gradient(135deg,#fff,#fff9f6);box-shadow:0 4px 8px #35201b04,0 18px 38px #35201b08;font-family:inherit}
.practice-paid-badge{display:inline-block;padding:5px 10px;border:1px solid #efd1c9;border-radius:6px;font-size:12px;font-weight:600;color:#ae332a;background:#fff0ea}
.learning-page #locked h2{margin:18px 0 14px;font:700 clamp(21px,2.2vw,28px)/1.55 AppJapanese,'Noto Sans JP','Yu Gothic',sans-serif;letter-spacing:.02em}
.learning-page #locked .practice-paid-lead{font-size:15px;line-height:1.95;color:#6a6266;margin:0}
.practice-paid-benefits{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0 28px;font-size:13px;color:#51494d}.practice-paid-benefits li::before{content:'✓';margin-right:8px;color:#ba362b;font-weight:700}
.practice-paid-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;border-top:1px solid #eee0d9}.practice-paid-price{margin:0;font-size:13px;color:#61585b}.practice-paid-price strong{font-size:28px;color:#2e292b;margin-left:8px;font-weight:700}.practice-paid-price strong span{font-size:14px;margin-left:4px}.practice-paid-price small{display:block;margin-top:5px;font-size:12px;color:#797074}
.learning-page .practice-paid-button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:50px;padding:12px 24px;box-sizing:border-box;background:linear-gradient(#e83b32,#cf2722);color:white;border:1px solid #c82922;border-radius:9px;text-decoration:none;font-size:14px;font-weight:600;box-shadow:0 3px 0 #b92520,0 8px 18px #d92d2720}.practice-paid-button:hover{filter:brightness(.96)}.practice-paid-button:focus-visible{outline:3px solid #cf272280;outline-offset:4px}
@media(max-width:650px){.practice-paid-footer{flex-direction:column;align-items:stretch;gap:20px}.practice-paid-benefits{flex-direction:column;gap:12px}.practice-paid-button{width:100%}}
