*{box-sizing:border-box;margin:0;padding:0}body{color:#1f2937;background:#fdf2f8;min-height:100dvh;font-family:Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif}.app{max-width:640px;margin:0 auto;padding:24px 16px 80px}h1{text-align:center;color:#be185d;margin-bottom:20px;font-size:1.5rem}.card{background:#fff;border-radius:16px;margin-bottom:16px;padding:20px;box-shadow:0 2px 8px #0000000f}.card-title{color:#be185d;margin-bottom:12px;font-size:.9rem;font-weight:700}.progress-bar{background:#f3e8ff;border-radius:99px;height:12px;margin-bottom:10px;overflow:hidden}.progress-bar.small{height:8px;margin-bottom:4px}.progress-bar.mini{height:6px;margin-bottom:0}.progress-fill{background:linear-gradient(90deg,#ec4899,#a855f7);border-radius:99px;min-width:0;height:100%;transition:width .4s}.stats-row{color:#4b5563;justify-content:space-between;font-size:.9rem;font-weight:600;display:flex}.action-buttons{flex-direction:column;gap:10px;margin-bottom:16px;display:flex}.action-btn{cursor:pointer;border:none;border-radius:14px;flex-direction:column;align-items:center;width:100%;padding:16px;font-size:1rem;transition:all .15s;display:flex}.action-btn.primary{color:#fff;background:#ec4899}.action-btn.primary:hover{background:#db2777}.action-btn.secondary{color:#1f2937;background:#fff;border:2px solid #f472b6}.action-btn.secondary:hover{background:#fdf2f8}.action-btn:disabled{opacity:.4;cursor:not-allowed}.action-btn:disabled:hover{background:#fff}.action-label{font-size:1rem;font-weight:700}.action-sub{opacity:.7;margin-top:2px;font-size:.8rem;font-weight:500}.action-pair{grid-template-columns:1fr 1fr;gap:10px;display:grid}.chapter-list{flex-direction:column;gap:6px;display:flex}.chapter-row{cursor:pointer;text-align:left;width:100%;font-family:inherit;font-size:inherit;color:inherit;background:#fdf2f8;border:1px solid #fce7f3;border-radius:10px;flex-direction:column;gap:6px;padding:12px 14px;transition:all .15s;display:flex}.chapter-row:hover{background:#fce7f3;border-color:#f9a8d4}.chapter-row-top{justify-content:space-between;align-items:center;display:flex}.chapter-name{font-size:.9rem;font-weight:600}.chapter-count{color:#6b7280;flex-shrink:0;font-size:.8rem}.chapter-rate{font-weight:700}.chapter-rate.good{color:#059669}.chapter-rate.mid{color:#d97706}.chapter-rate.low{color:#dc2626}.reset-btn{color:#9ca3af;cursor:pointer;background:0 0;border:1px solid #d1d5db;border-radius:8px;margin:24px auto 0;padding:8px 20px;font-family:inherit;font-size:.8rem;transition:all .15s;display:block}.reset-btn:hover{color:#ef4444;border-color:#ef4444}.quiz-header{align-items:center;gap:10px;margin-bottom:12px;display:flex}.back-btn{color:#be185d;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:4px 0;font-family:inherit;font-size:.9rem;font-weight:600}.quiz-label{text-align:center;color:#6b7280;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.85rem;font-weight:600;overflow:hidden}.shuffle-btn{cursor:pointer;opacity:.4;background:0 0;border:2px solid #e5e7eb;border-radius:8px;flex-shrink:0;padding:4px 8px;font-size:1rem;transition:all .15s}.shuffle-btn.active{opacity:1;background:#fdf2f8;border-color:#ec4899}.quiz-progress{margin-bottom:10px}.quiz-progress-text{text-align:right;color:#9ca3af;margin-top:2px;font-size:.75rem}.stats{background:#fff;border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:14px;padding:10px 16px;font-size:.9rem;font-weight:600;display:flex;box-shadow:0 1px 3px #0000000f}.rate{color:#be185d}.question-card{background:#fff;border-radius:16px;margin-bottom:16px;padding:24px 20px;box-shadow:0 2px 8px #0000000f}.question-meta{align-items:center;gap:8px;margin-bottom:16px;display:flex}.badge{color:#fff;background:#ec4899;border-radius:9999px;flex-shrink:0;padding:3px 10px;font-size:.8rem;font-weight:700}.chapter-label{color:#6b7280;flex:1;font-size:.85rem}.mark-btn{cursor:pointer;color:#d1d5db;background:0 0;border:none;flex-shrink:0;padding:2px 4px;font-size:1.3rem;line-height:1;transition:all .15s}.mark-btn.on{color:#f59e0b}.question-text{margin-bottom:20px;font-size:1.05rem;line-height:1.7}.image-notice{color:#d97706;background:#fef3c7;border-radius:8px;margin-bottom:16px;padding:8px 12px;font-size:.85rem}.choices{flex-direction:column;gap:10px;display:flex}.choice-btn{text-align:left;cursor:pointer;background:#fff;border:2px solid #e5e7eb;border-radius:12px;align-items:baseline;gap:10px;width:100%;padding:14px 16px;font-family:inherit;font-size:.95rem;line-height:1.5;transition:all .15s;display:flex}.choice-btn:hover{background:#fdf2f8;border-color:#f472b6}.choice-btn.correct{color:#065f46;background:#d1fae5;border-color:#10b981;font-weight:600}.choice-btn.correct:hover{background:#d1fae5}.choice-btn.wrong{color:#991b1b;background:#fee2e2;border-color:#ef4444}.choice-btn.wrong:hover{background:#fee2e2}.choice-num{color:#6b7280;background:#f3f4f6;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;font-weight:700;display:inline-flex}.choice-btn.correct .choice-num{color:#fff;background:#065f46}.choice-btn.wrong .choice-num{color:#fff;background:#991b1b}.result{text-align:center;margin-top:20px}.result-correct{color:#059669;margin-bottom:8px;font-size:1.2rem;font-weight:700}.result-wrong{color:#dc2626;margin-bottom:8px;font-size:1.2rem;font-weight:700}.answer-hint{color:#6b7280;margin-bottom:12px;font-size:.9rem}.explanation{text-align:left;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;margin:16px 0;padding:16px}.explanation-title{color:#059669;margin-bottom:8px;font-size:.85rem;font-weight:700}.explanation p{color:#374151;font-size:.9rem;line-height:1.7}.next-btn{color:#fff;cursor:pointer;background:#ec4899;border:none;border-radius:9999px;margin-top:8px;padding:12px 32px;font-family:inherit;font-size:1rem;font-weight:600;transition:background .15s}.next-btn:hover{background:#db2777}.finish-card{text-align:center;padding:32px 20px}.finish-icon{margin-bottom:12px;font-size:3rem}.finish-title{color:#1f2937;margin-bottom:16px;font-size:1.3rem;font-weight:700}.finish-score{color:#4b5563;font-size:1.1rem;font-weight:600}.finish-rate{color:#be185d;margin-top:4px;font-size:1.5rem;font-weight:700}.question-list-card{padding:8px 12px}.question-list-row{cursor:pointer;width:100%;font-family:inherit;font-size:inherit;text-align:left;color:inherit;background:0 0;border:none;border-bottom:1px solid #f3f4f6;align-items:center;gap:10px;padding:12px 4px;transition:background .1s;display:flex}.question-list-row:last-child{border-bottom:none}.question-list-row:hover{background:#fdf2f8}.ql-num{color:#9ca3af;text-align:center;flex-shrink:0;min-width:24px;font-size:.75rem;font-weight:700}.ql-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:1;font-size:.85rem;line-height:1.4;display:-webkit-box;overflow:hidden}.attempts{flex-shrink:0;gap:2px;font-size:.85rem;font-weight:700;display:flex}.attempts.empty{color:#d1d5db;font-size:.75rem}.attempt-o{color:#059669}.attempt-x{color:#dc2626}.ql-mark{color:#f59e0b;flex-shrink:0;font-size:.9rem}.fab{color:#fff;cursor:pointer;z-index:1000;background:#ec4899;border:none;border-radius:50%;justify-content:center;align-items:center;width:52px;height:52px;font-size:1.4rem;transition:all .2s;display:flex;position:fixed;bottom:20px;box-shadow:0 4px 12px #ec489966}.fab:hover{transform:scale(1.1)}.fab-active{background:#be185d}.fab-left{left:16px}.floating-panel{z-index:1001;background:#fff;border-radius:16px;flex-direction:column;width:min(360px,100vw - 32px);max-height:60vh;display:flex;position:fixed;bottom:80px;overflow:hidden;box-shadow:0 8px 30px #00000026}.floating-panel.left{left:16px}.panel-header{border-bottom:1px solid #f3f4f6;flex-shrink:0;align-items:center;gap:8px;padding:12px 16px;display:flex}.panel-title{color:#be185d;flex:1;font-size:.9rem;font-weight:700}.panel-close{color:#9ca3af;cursor:pointer;background:0 0;border:none;padding:2px 6px;font-family:inherit;font-size:1rem}.panel-close:hover{color:#1f2937}.todo-textarea{resize:none;color:#1f2937;border:none;outline:none;flex:1;min-height:200px;padding:14px 16px;font-family:inherit;font-size:.9rem;line-height:1.7}.todo-textarea::placeholder{color:#d1d5db}@media (max-width:480px){.app{padding:16px 12px 40px}h1{font-size:1.25rem}.question-card{padding:18px 14px}.choice-btn{padding:12px 14px;font-size:.9rem}.action-btn{padding:14px}.chapter-row{padding:10px 12px}.floating-panel{width:calc(100vw - 24px);max-height:50vh;bottom:76px;left:12px!important}}.articles-page,.article-page{max-width:720px;margin:0 auto;padding:24px 16px 80px}.articles-header{margin-bottom:32px}.articles-back{color:#be185d;margin-bottom:12px;font-size:.875rem;text-decoration:none;display:inline-block}.articles-header h1{text-align:left;margin-bottom:4px}.articles-desc{color:#6b7280;font-size:.875rem}.articles-list{flex-direction:column;gap:16px;display:flex}.articles-empty{color:#9ca3af;text-align:center;padding:48px 0}.article-card{color:inherit;background:#fff;border-radius:12px;gap:16px;text-decoration:none;transition:box-shadow .2s;display:flex;overflow:hidden;box-shadow:0 1px 4px #00000014}.article-card:hover{box-shadow:0 4px 12px #0000001f}.article-card-thumb{object-fit:cover;flex-shrink:0;width:120px;height:90px}.article-card-body{flex-direction:column;gap:4px;padding:12px 16px 12px 0;display:flex}.article-card-category{color:#be185d;background:#fce7f3;border-radius:999px;width:fit-content;padding:2px 8px;font-size:.75rem;display:inline-block}.article-card-title{color:#1f2937;font-size:1rem;font-weight:600;line-height:1.4}.article-card-date{color:#9ca3af;margin-top:auto;font-size:.75rem}.article-page-header{margin-bottom:32px}.article-page-title{color:#1f2937;text-align:left;margin:8px 0;font-size:1.5rem;font-weight:700;line-height:1.4}.article-page-thumb{object-fit:cover;border-radius:12px;width:100%;max-height:360px;margin-top:16px}.article-page-body{color:#374151;font-size:1rem;line-height:1.8}.article-page-body h2{text-align:left;color:#1f2937;border-left:4px solid #be185d;margin:32px 0 12px;padding-left:12px;font-size:1.25rem;font-weight:700}.article-page-body h3{text-align:left;color:#1f2937;margin:24px 0 8px;font-size:1.1rem;font-weight:600}.article-page-body p{margin-bottom:16px}.article-page-body ul,.article-page-body ol{margin-bottom:16px;padding-left:24px}.article-page-body li{margin-bottom:8px}.article-page-body img{border-radius:8px;max-width:100%;margin:16px 0}.article-page-footer{border-top:1px solid #f3e8f0;margin-top:48px;padding-top:24px}.article-back-btn{color:#be185d;font-size:.875rem;text-decoration:none;display:inline-block}
