*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif;background-color:#f5f5f5;color:#212121;line-height:1.6}#root{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:1rem}.app{width:100%;max-width:600px}.screen{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0000001a;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.app-title{font-size:2rem;font-weight:700;text-align:center;margin-bottom:2rem;color:#d32f2f}.screen-title{font-size:1.5rem;font-weight:600;text-align:center;margin-bottom:2rem;color:#212121}.result-title{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:2rem;color:#d32f2f}.section-title{font-size:1.125rem;font-weight:600;margin-bottom:1rem;color:#212121}.btn{width:100%;padding:1rem 1.5rem;font-size:1rem;font-weight:500;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;margin-bottom:1rem}.btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.btn:active{transform:translateY(0)}.btn-primary{background-color:#d32f2f;color:#fff}.btn-primary:hover{background-color:#b71c1c}.btn-secondary{background-color:#fff;color:#757575;border:2px solid #e0e0e0}.btn-secondary:hover{background-color:#f5f5f5;border-color:#bdbdbd}.btn-back{background:transparent;border:none;color:#757575;font-size:1rem;cursor:pointer;padding:.5rem;margin-bottom:1rem;transition:color .2s ease}.btn-back:hover{color:#d32f2f}.btn-level,.btn-count{background:#fff;border:2px solid #e0e0e0;padding:1.5rem;text-align:center}.btn-level:hover,.btn-count:hover{border-color:#d32f2f}.level-name,.count-number{font-size:1.5rem;font-weight:700;color:#d32f2f;margin-bottom:.5rem}.level-description,.count-description{font-size:.875rem;color:#757575}.selected-level{text-align:center;color:#757575;margin-bottom:1.5rem}.illustration{display:flex;justify-content:center;margin:2rem 0}.illustration-placeholder{font-size:6rem;opacity:.8}.quiz-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.quiz-progress{font-weight:600;color:#212121}.quiz-level{background-color:#ffb300;color:#fff;padding:.25rem .75rem;border-radius:16px;font-size:.875rem;font-weight:500}.category-badge{display:inline-block;background-color:#e3f2fd;color:#1976d2;padding:.5rem 1rem;border-radius:16px;font-size:.875rem;font-weight:500;margin-bottom:1.5rem}.exam-year{display:inline-block;background-color:#f5f5f5;color:#757575;padding:.5rem 1rem;border-radius:16px;font-size:.875rem;font-weight:500;margin-bottom:1.5rem;margin-left:.5rem}.question-text{font-size:1.125rem;line-height:1.8;margin-bottom:2rem;color:#212121}.options{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.btn-option{background:#fff;border:2px solid #e0e0e0;padding:1rem;text-align:left;font-size:1rem;transition:all .2s ease}.btn-option:hover,.btn-option.selected{border-color:#d32f2f;background-color:#fef5f5}.option-label{font-weight:600;color:#757575;margin-right:.5rem}.feedback-screen{display:flex;flex-direction:column;min-height:400px;padding-bottom:0}.feedback-content{flex:1;padding:2rem 2rem 1rem;overflow-y:auto}.feedback-actions{position:sticky;bottom:0;background:#fff;padding:1rem 2rem;border-top:1px solid #e0e0e0;box-shadow:0 -2px 8px #0000000d}.btn-next{margin-bottom:0}.btn-report{background:transparent;border:none;color:#9e9e9e;font-size:.875rem;padding:.5rem;margin-bottom:.5rem;text-decoration:underline;font-weight:400}.btn-report:hover:not(:disabled){color:#757575;background:transparent;transform:none;box-shadow:none}.btn-report:disabled{color:#bdbdbd;cursor:not-allowed;text-decoration:none}.option-result{background:#fff;border:2px solid #e0e0e0;padding:1rem;border-radius:8px;margin-bottom:.75rem}.option-result.correct{border-color:#4caf50;background-color:#f1f8f4}.option-result.incorrect{border-color:#f44336;background-color:#fef5f5}.badge-correct{display:inline-block;background-color:#4caf50;color:#fff;padding:.125rem .5rem;border-radius:12px;font-size:.75rem;margin-left:.5rem}.badge-selected{display:inline-block;background-color:#f44336;color:#fff;padding:.125rem .5rem;border-radius:12px;font-size:.75rem;margin-left:.5rem}.feedback-text{text-align:center;padding:.75rem 1rem;font-size:1.125rem;font-weight:600;margin-bottom:1.5rem;border-radius:4px}.feedback-text.correct{background-color:transparent;color:#4caf50}.feedback-text.incorrect{background-color:transparent;color:#f44336}.explanation{background-color:#e3f2fd;padding:1rem;border-radius:8px;margin-bottom:1.5rem;max-height:300px;overflow-y:auto}.explanation-title{font-weight:600;color:#1976d2;margin-bottom:.5rem}.explanation-text{color:#424242;line-height:1.6}.score-card{background:linear-gradient(135deg,#d32f2f,#b71c1c);color:#fff;padding:2rem;border-radius:12px;text-align:center;margin-bottom:2rem}.score-number{font-size:3rem;font-weight:700;margin-bottom:.5rem}.accuracy{font-size:1.25rem}.category-results{margin-bottom:2rem}.category-result-item{margin-bottom:1.5rem}.category-result-header{display:flex;justify-content:space-between;margin-bottom:.5rem}.category-name{font-weight:600;color:#212121}.category-accuracy{font-weight:600;color:#757575}.progress-bar{width:100%;height:8px;background-color:#e0e0e0;border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#d32f2f,#ffb300);transition:width .3s ease}.weak-categories{background-color:#fff8e1;padding:1rem;border-radius:8px;margin-bottom:1.5rem}.weak-categories-title{font-weight:600;color:#f57c00;margin-bottom:.5rem}.weak-categories-text{color:#424242}.history-list{margin-bottom:2rem}.history-item{background:#fff;border:2px solid #e0e0e0;border-radius:8px;padding:1rem;margin-bottom:1rem}.history-date{color:#757575;font-size:.875rem;margin-bottom:.5rem}.history-info{margin-bottom:.5rem}.history-level{font-weight:600;color:#d32f2f}.history-separator{margin:0 .5rem;color:#bdbdbd}.history-questions{color:#757575}.history-score{font-size:1rem;margin-bottom:.75rem;color:#212121}.history-score strong{color:#d32f2f;font-weight:600}.history-categories{display:flex;flex-wrap:wrap;gap:.5rem}.category-chip{display:inline-block;background-color:#e3f2fd;color:#1976d2;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:500}.category-more{color:#757575;padding:.25rem .5rem}.empty-history{text-align:center;padding:3rem 1rem;color:#757575}.empty-history p{margin-bottom:.5rem}.empty-history-sub{font-size:.875rem;color:#9e9e9e}.stats-section{margin-bottom:2rem}.stats-card{background:linear-gradient(135deg,#f5f5f5,#e0e0e0);padding:1.5rem;border-radius:12px}.stats-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.stats-item:last-child{margin-bottom:0}.stats-label{color:#757575;font-size:.875rem}.stats-value{font-weight:600;color:#212121;font-size:1.125rem}.stats-best{color:#4caf50}.stats-weak{color:#f44336}.stats-divider{height:1px;background-color:#bdbdbd;margin:1rem 0}.btn-danger{background-color:#fff;color:#f44336;border:2px solid #f44336}.btn-danger:hover{background-color:#fef5f5}.admin-summary{background-color:#e3f2fd;padding:1rem;border-radius:8px;margin-bottom:1.5rem;text-align:center}.admin-summary-text{color:#1976d2;font-size:1rem}.admin-summary-text strong{font-weight:600;color:#0d47a1}.admin-list{margin-bottom:2rem}.admin-report-item{background:#fff;border:2px solid #e0e0e0;border-radius:8px;padding:1rem;margin-bottom:1rem}.admin-report-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid #e0e0e0}.admin-question-id{font-family:Courier New,monospace;font-weight:600;color:#d32f2f;font-size:1rem}.admin-report-count{color:#757575;font-size:.875rem}.admin-report-count strong{color:#f57c00;font-weight:600;font-size:1rem}.admin-report-dates{display:flex;flex-direction:column;gap:.5rem}.admin-date-item{display:flex;justify-content:space-between;font-size:.875rem}.admin-date-label{color:#757575}.admin-date-value{color:#424242;font-family:Courier New,monospace}.admin-actions{display:flex;flex-direction:column;gap:.75rem}.app.level-1{background:linear-gradient(135deg,#000,#0a0a0a)}.app.level-1 .screen{background:linear-gradient(135deg,#0d0d0d,#1a1a1a);color:#ccc;box-shadow:0 8px 32px #000000e6,0 0 40px #8b00004d;border:1px solid #2a0000}.app.level-1 .app-title,.app.level-1 .result-title{color:#f33;text-shadow:0 0 20px rgba(255,0,0,.8),0 0 40px rgba(139,0,0,.5);font-weight:900}.app.level-1 .screen-title,.app.level-1 .section-title{color:#f44;text-shadow:0 0 10px rgba(255,0,0,.5)}.app.level-1 .btn-primary{background:linear-gradient(135deg,#300,#600);color:#f33;border:2px solid #8b0000;box-shadow:0 0 15px #8b000080;text-shadow:0 0 5px rgba(255,0,0,.5)}.app.level-1 .btn-primary:hover{background:linear-gradient(135deg,#600,#900);box-shadow:0 0 25px #ff0000b3}.app.level-1 .btn-secondary{background-color:#1a0000;color:#999;border:2px solid #330000}.app.level-1 .btn-secondary:hover{background-color:#300;border-color:#600;box-shadow:0 0 15px #8b00004d}.app.level-1 .btn-back{color:#999}.app.level-1 .btn-back:hover{color:#f33;text-shadow:0 0 10px rgba(255,0,0,.5)}.app.level-1 .btn-level,.app.level-1 .btn-count{background:linear-gradient(135deg,#0d0d0d,#1a1a1a);border:2px solid #330000;color:#ccc;box-shadow:inset 0 0 20px #00000080}.app.level-1 .btn-level:hover,.app.level-1 .btn-count:hover{border-color:#f33;box-shadow:0 0 20px #ff000080,inset 0 0 20px #8b000033}.app.level-1 .level-name,.app.level-1 .count-number{color:#f33;text-shadow:0 0 15px rgba(255,0,0,.7)}.app.level-1 .level-description,.app.level-1 .count-description{color:#888}.app.level-1 .selected-level{color:#999}.app.level-1 .quiz-header{border-bottom:2px solid #330000;padding-bottom:1rem;box-shadow:0 2px 10px #8b00004d}.app.level-1 .quiz-progress{color:#ccc;text-shadow:0 0 5px rgba(255,0,0,.3)}.app.level-1 .quiz-level{background:linear-gradient(135deg,#600,#300);color:#f33;border:1px solid #8b0000;box-shadow:0 0 10px #8b000080}.app.level-1 .category-badge{background-color:#1a1a1a;color:#f66;border:1px solid #330000}.app.level-1 .exam-year{background-color:#1a1a1a;color:#888;border:1px solid #330000}.app.level-1 .question-text{color:#ddd;text-shadow:0 0 3px rgba(255,255,255,.1)}.app.level-1 .btn-option{background:linear-gradient(135deg,#0d0d0d,#1a1a1a);border:2px solid #330000;color:#ccc;box-shadow:inset 0 0 15px #00000080}.app.level-1 .btn-option:hover{border-color:#f33;background:linear-gradient(135deg,#1a1a1a,#2a0000);box-shadow:0 0 20px #f006,inset 0 0 20px #8b000033}.app.level-1 .btn-option.selected{border-color:#f33;background:linear-gradient(135deg,#2a0000,#3d0000);box-shadow:0 0 25px #ff000080}.app.level-1 .option-label{color:#999}.app.level-1 .feedback-actions{background:linear-gradient(135deg,#0d0d0d,#1a1a1a);border-top:2px solid #330000;box-shadow:0 -4px 20px #000c}.app.level-1 .btn-report{color:#666}.app.level-1 .btn-report:hover:not(:disabled){color:#999}.app.level-1 .option-result{background:linear-gradient(135deg,#0d0d0d,#1a1a1a);border:2px solid #330000}.app.level-1 .option-result.correct{border-color:#0f0;background:linear-gradient(135deg,#001a00,#030);box-shadow:0 0 20px #00ff004d}.app.level-1 .option-result.incorrect{border-color:red;background:linear-gradient(135deg,#300,#600);box-shadow:0 0 20px #f006}.app.level-1 .explanation{background-color:#0d0d0d;border:1px solid #330000;box-shadow:inset 0 0 20px #8b000033}.app.level-1 .explanation-title{color:#f66;text-shadow:0 0 10px rgba(255,0,0,.4)}.app.level-1 .explanation-text{color:#999}.app.level-1 .score-card{background:linear-gradient(135deg,#300,#000);border:2px solid #660000;box-shadow:0 8px 32px #000000e6,0 0 40px #f006}.app.level-1 .category-name{color:#ccc}.app.level-1 .category-accuracy{color:#888}.app.level-1 .progress-bar{background-color:#1a1a1a;border:1px solid #330000}.app.level-1 .progress-fill{background:linear-gradient(90deg,#600,#f33);box-shadow:0 0 10px #ff000080}.app.level-1 .weak-categories{background-color:#1a0000;border:2px solid #660000;box-shadow:inset 0 0 20px #8b00004d}.app.level-1 .weak-categories-title{color:#f66;text-shadow:0 0 10px rgba(255,0,0,.5)}.app.level-1 .weak-categories-text{color:#999}.app.level-1 .btn-danger{background:linear-gradient(135deg,#300,#1a0000);color:#f33;border:2px solid #660000;box-shadow:0 0 15px #8b000066}.app.level-1 .btn-danger:hover{background:linear-gradient(135deg,#600,#300);box-shadow:0 0 25px #f009}@media (max-width: 480px){.screen{padding:1.5rem}.app-title{font-size:1.5rem}.screen-title{font-size:1.25rem}.score-number{font-size:2.5rem}}
