@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');
:root{--orange:#ff6b22;--orange-dark:#e85012;--cream:#f7f5ef;--ink:#19201d;--muted:#727874;--line:#dedfd9;--white:#fff;--green:#16845c;--red:#d84437;--shadow:0 20px 60px rgba(35,42,38,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans","Noto Sans JP",sans-serif;-webkit-font-smoothing:antialiased}button,select,input{font:inherit}button{color:inherit}.hidden{display:none!important}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1120px)/2));background:rgba(247,245,239,.86);backdrop-filter:blur(16px);position:sticky;top:0;z-index:10;border-bottom:1px solid rgba(25,32,29,.07)}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:20px;font-weight:900;letter-spacing:-.04em}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:var(--orange);color:white;border-radius:11px 11px 11px 4px;font-size:18px;font-weight:900;box-shadow:0 6px 18px rgba(255,107,34,.24)}.top-actions{display:flex;align-items:center;gap:10px}.user-greeting{font-size:13px;color:var(--muted)}
.btn{border:0;border-radius:12px;min-height:44px;padding:0 18px;font-weight:800;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--orange);color:white;box-shadow:0 9px 22px rgba(255,107,34,.21)}.btn-primary:hover{background:var(--orange-dark);box-shadow:0 12px 26px rgba(255,107,34,.28)}.btn-subtle{background:white;border:1px solid var(--line)}.btn-outline{background:white;border:1px solid var(--line)}
main{max-width:1120px;margin:0 auto;padding:0 22px 80px}.hero{min-height:600px;display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:64px;padding:58px 0 70px}.kicker{display:flex;align-items:center;gap:9px;color:var(--orange);font-size:12px;font-weight:900;letter-spacing:.16em}.kicker>span{width:21px;height:2px;background:var(--orange)}h1{font-size:clamp(52px,7.2vw,86px);line-height:1.04;letter-spacing:-.075em;margin:22px 0 26px;font-weight:900}h1 em{font-style:normal;color:var(--orange)}.hero-copy>p{max-width:510px;font-size:17px;line-height:1.9;color:var(--muted);margin:0 0 34px}.btn-hero{height:58px;padding:0 26px;font-size:15px}.btn span{margin-left:16px}
.hero-visual{min-height:440px;position:relative}.globe{position:absolute;width:360px;height:360px;right:28px;top:36px;border-radius:50%;background:var(--ink);color:white;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 36px 70px rgba(25,32,29,.22)}.globe:before,.globe:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.13);border-radius:50%}.globe:before{width:500px;height:180px;transform:rotate(-15deg)}.globe:after{height:500px;width:190px}.globe span{font-size:10px;letter-spacing:.32em;color:#a8b0ac;margin-bottom:16px}.globe b{text-align:center;font-size:38px;line-height:1.22;letter-spacing:-.05em;z-index:1}.float-card{position:absolute;background:white;border-radius:18px;box-shadow:var(--shadow);padding:18px 20px;display:grid;z-index:2}.float-card span{font-size:11px;color:var(--muted);font-weight:700}.float-card strong{font-size:30px;letter-spacing:-.04em}.card-a{left:0;top:86px;grid-template-columns:42px 90px;align-items:center}.card-a i{width:36px;height:36px;grid-row:1/3;display:grid;place-items:center;background:#e5f8ef;color:var(--green);border-radius:50%;font-style:normal;font-weight:900}.card-b{right:0;bottom:22px;min-width:138px}.card-b small{font-size:8px;color:var(--orange);letter-spacing:.18em}
.dashboard{background:white;border-radius:26px;padding:34px;box-shadow:var(--shadow);scroll-margin-top:96px}.section-heading{display:flex;align-items:end;justify-content:space-between;padding-bottom:24px;border-bottom:1px solid #ecece8}.section-heading>div{display:flex;align-items:center;gap:14px}.section-no{color:var(--orange);font-size:12px;font-weight:900}.section-heading h2{margin:0;font-size:27px;letter-spacing:-.04em}.section-heading p{margin:0;color:var(--muted);font-size:12px}
.course-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0 22px}.course{border:1px solid var(--line);border-radius:11px;background:white;min-height:42px;padding:0 17px;font-size:13px;font-weight:800;cursor:pointer}.course.active{background:var(--ink);border-color:var(--ink);color:white}.weak-tab span{display:inline-grid;place-items:center;min-width:20px;height:20px;background:#f1eae6;border-radius:10px;margin-left:5px;font-size:10px;color:var(--orange)}.course.active span{background:#ffffff1c}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.chip{position:relative;text-align:left;min-height:58px;padding:0 44px 0 16px;border:1px solid #e5e5e0;border-radius:12px;background:#fafaf8;cursor:pointer;font-weight:700;font-size:13px;transition:.16s}.chip:after{content:"";width:18px;height:18px;position:absolute;right:15px;top:50%;transform:translateY(-50%);border:1.5px solid #c8cbc7;border-radius:5px;background:white}.chip:hover{border-color:#bebfba;background:white}.chip.active{border-color:#ffc0a1;background:#fff6f1;color:var(--orange-dark)}.chip.active:after{content:"✓";display:grid;place-items:center;background:var(--orange);border-color:var(--orange);color:white;font-size:11px}.chip small{display:block;color:#a1a5a2;font-size:9px;font-weight:600;margin-top:3px}.chip.active small{color:#d98861}
.start-dock{display:flex;align-items:center;gap:22px;margin-top:26px;padding-top:24px;border-top:1px solid #ecece8}.settings{display:flex;align-items:center;gap:18px}.settings label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:700}.settings select{height:39px;border:1px solid var(--line);background:white;border-radius:9px;padding:0 30px 0 12px;color:var(--ink);font-weight:800}.check input{accent-color:var(--orange);width:17px;height:17px}.selection-summary{margin-left:auto;text-align:right}.selection-summary b{font-size:22px}.selection-summary span{font-size:11px;color:var(--muted);margin-left:4px}.start-dock>.btn{min-height:52px;padding:0 22px}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);margin:80px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.features article{background:var(--cream);padding:34px 34px 34px 0}.features article+article{padding-left:34px}.feature-icon{font-size:10px;color:var(--orange);font-weight:900;letter-spacing:.12em}.features h3{margin:15px 0 8px;font-size:17px}.features p{margin:0;color:var(--muted);font-size:12px;line-height:1.8}
.quiz-shell{max-width:820px;margin:34px auto}.quiz-top{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;margin-bottom:18px}.icon-btn{width:42px;height:42px;border-radius:50%;background:white;border:1px solid var(--line);font-size:20px;cursor:pointer}.progress{height:8px;background:#e3e3df;border-radius:10px;overflow:hidden}.progress div{height:100%;width:0;background:var(--orange);transition:width .3s}.quiz-top #progressText{font-size:12px;font-weight:800;color:var(--muted)}.quiz-card{background:white;border-radius:26px;padding:42px;box-shadow:var(--shadow)}.quiz-category{display:inline-flex;padding:7px 10px;border-radius:7px;background:#fff1e9;color:var(--orange-dark);font-size:10px;font-weight:900}.question-label{font-size:12px;color:var(--muted);margin:34px 0 8px}.meaning{font-size:clamp(24px,4vw,35px);line-height:1.52;letter-spacing:-.03em;margin:0 0 32px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer{position:relative;min-height:66px;text-align:left;padding:15px 18px 15px 50px;background:#fafaf8;border:1.5px solid #e5e5e0;border-radius:13px;font-size:15px;font-weight:800;cursor:pointer}.answer:before{content:attr(data-letter);position:absolute;left:15px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#ebece8;color:#767b78;font-size:10px}.answer:hover{border-color:#ffb48f;background:#fffaf7}.answer.correct{border-color:#7bc7a7;background:#edfaf4;color:var(--green)}.answer.correct:before{content:"✓";background:var(--green);color:white}.answer.wrong{border-color:#eda39b;background:#fff2f0;color:var(--red)}.answer.wrong:before{content:"×";background:var(--red);color:white}.answer:disabled{cursor:default}.feedback{margin-top:18px;padding:15px 17px;background:#f3f4f1;border-radius:12px;color:var(--muted);font-size:12px;line-height:1.7}.feedback b{display:block;color:var(--ink);font-size:14px}.next{width:100%;height:52px;margin-top:14px}
.result-card{max-width:720px;margin:54px auto;background:white;padding:48px;border-radius:26px;text-align:center;box-shadow:var(--shadow)}.score-ring{width:146px;height:146px;border-radius:50%;margin:0 auto 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:12px solid #ffe2d4;box-shadow:inset 0 0 0 1px #fff}.score-ring b{font-size:34px}.score-ring span{font-size:10px;color:var(--muted)}.result-kicker{display:block}.result-card h2{font-size:30px;margin:8px 0}.score-text{color:var(--muted)}.mistakes{text-align:left;margin:28px 0;max-height:300px;overflow:auto}.mistakes h3{font-size:14px}.mistake{padding:13px 0;border-bottom:1px solid #ecece8;color:var(--muted);font-size:12px}.mistake b{display:block;color:var(--ink);font-size:14px;margin-bottom:3px}.result-actions{display:flex;justify-content:center;gap:10px}
.modal{position:fixed;inset:0;background:rgba(18,23,21,.64);backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px;z-index:30}.modal-card{width:min(430px,100%);background:white;border-radius:24px;padding:36px;position:relative;box-shadow:0 40px 100px #0004}.close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:24px;cursor:pointer}.modal-mark{margin-bottom:20px}.modal-card h2{margin:0 0 8px;font-size:26px}.modal-lead{font-size:12px;color:var(--muted);margin:0 0 22px}.modal-card label{display:block;font-size:11px;font-weight:800;margin-top:12px}.modal-card input{width:100%;height:46px;border:1px solid var(--line);border-radius:10px;margin-top:6px;padding:0 12px;outline:none}.modal-card input:focus{border-color:var(--orange)}.modal-submit{width:100%;margin-top:20px}.link-btn{width:100%;background:none;border:0;margin-top:14px;color:var(--orange-dark);font-size:12px;font-weight:800;cursor:pointer}.auth-msg{min-height:18px;text-align:center;color:var(--red);font-size:11px}.load-error{max-width:760px;margin:22px auto 0;background:#fff0ed;color:#a52e24;padding:14px 18px;border:1px solid #f2b2ac;border-radius:12px;font-size:13px}
footer{border-top:1px solid var(--line);padding:34px max(22px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.small-brand{font-size:15px}.small-brand .brand-mark{width:28px;height:28px;font-size:13px;border-radius:9px 9px 9px 3px}
@media(max-width:850px){.hero{grid-template-columns:1fr;min-height:auto;padding-top:62px;gap:22px}.hero-visual{min-height:350px;max-width:520px;width:100%;margin:auto}.globe{width:300px;height:300px}.globe b{font-size:32px}.category-grid{grid-template-columns:repeat(2,1fr)}.start-dock{flex-wrap:wrap}.selection-summary{margin-left:0}.start-dock>.btn{margin-left:auto}.features{grid-template-columns:1fr;background:transparent;border:0}.features article,.features article+article{padding:25px 0;border-bottom:1px solid var(--line)}}
@media(max-width:560px){.topbar{height:66px}.brand{font-size:18px}.brand-mark{width:32px;height:32px}.user-greeting{display:none}main{padding:0 15px 60px}.hero{padding:45px 3px 56px}.hero-copy>p{font-size:14px}.hero-visual{min-height:295px}.globe{width:250px;height:250px;right:8px;top:20px}.globe b{font-size:27px}.card-a{top:55px;padding:13px;grid-template-columns:34px 72px}.card-a i{width:29px;height:29px}.card-b{padding:14px;min-width:112px;right:0;bottom:5px}.float-card strong{font-size:24px}.dashboard{padding:22px 16px;border-radius:20px}.section-heading{align-items:start}.section-heading p{display:none}.section-heading h2{font-size:22px}.category-grid{grid-template-columns:1fr 1fr;gap:7px}.chip{font-size:11px;padding-left:12px;min-height:56px}.course-tabs{gap:6px}.course{font-size:11px;padding:0 12px}.start-dock{display:grid;grid-template-columns:1fr}.settings{justify-content:space-between}.selection-summary{text-align:left}.start-dock>.btn{margin:0;width:100%}.quiz-shell{margin:18px auto}.quiz-card{padding:27px 18px;border-radius:20px}.answers{grid-template-columns:1fr}.answer{min-height:58px}.meaning{font-size:23px}.result-card{padding:35px 20px;margin:24px auto}.result-actions{flex-direction:column}.result-actions .btn{width:100%}footer{padding:26px 20px}}

/* 回答後の詳しい解説 */
.feedback{padding:18px;line-height:1.8}.feedback-result{font-size:16px!important;margin-bottom:13px}.feedback-result.is-correct{color:var(--green)}.feedback-result.is-wrong{color:var(--red)}.explanation{background:white;border-radius:10px;padding:16px}.explanation>span{display:inline-block;background:var(--ink);color:white;padding:3px 8px;border-radius:5px;font-size:9px;font-weight:900;letter-spacing:.1em}.explanation>p{margin:10px 0;color:#4f5652;font-size:13px}.explanation strong{display:inline;color:var(--orange-dark)}.explanation small{display:block;padding-top:10px;border-top:1px solid #ecece8;color:#929793}.contrast{margin:12px 0;padding:12px 13px;background:#fff6f2;border-left:3px solid var(--orange);border-radius:7px}.contrast b{font-size:11px!important;color:var(--orange-dark)!important}.contrast p{margin:4px 0 0}

/* 学習分析レポート */
.btn-report{background:var(--ink);color:white}.report-shell{padding-top:42px}.report-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:26px}.report-head .kicker{display:block}.report-head h2{font-size:36px;letter-spacing:-.05em;margin:8px 0}.report-head p{margin:0;color:var(--muted);font-size:12px}.report-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.report-summary article{background:white;padding:22px;border-radius:16px;border:1px solid #e8e8e3}.report-summary span{display:block;font-size:11px;color:var(--muted);font-weight:800}.report-summary strong{display:block;font-size:31px;letter-spacing:-.04em;margin:7px 0 2px}.report-summary small{font-size:8px;color:var(--orange);font-weight:900;letter-spacing:.15em}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.report-panel{background:white;border-radius:18px;padding:24px;border:1px solid #e8e8e3}.report-wide{grid-column:1/-1}.report-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.report-title h3{margin:0;font-size:16px}.report-title span{font-size:9px;color:var(--muted);font-weight:800}.daily-chart{height:170px;display:flex;align-items:end;gap:7px;border-bottom:1px solid var(--line);padding-top:10px}.day-column{height:100%;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:6px}.day-bar{width:min(100%,22px);min-height:3px;background:#ffd8c5;border-radius:5px 5px 1px 1px;position:relative}.day-bar.correct{background:var(--orange)}.day-column span{font-size:8px;color:#969b98;white-space:nowrap}.insight{background:#fff6f1;border-radius:13px;padding:18px;min-height:170px}.insight b{display:block;font-size:18px;line-height:1.5}.insight p{margin:9px 0 0;color:#6c716e;font-size:12px;line-height:1.8}.category-row{display:grid;grid-template-columns:minmax(120px,1fr) 3fr 55px;gap:14px;align-items:center;padding:11px 0;border-bottom:1px solid #eeeeea}.category-row:last-child{border:0}.category-row>span{font-size:12px;font-weight:700}.category-track{height:9px;background:#efefeb;border-radius:9px;overflow:hidden}.category-track i{display:block;height:100%;background:var(--orange);border-radius:9px}.category-row b{text-align:right;font-size:12px}.category-row small{display:block;color:var(--muted);font-weight:500}.weak-report{display:grid;grid-template-columns:1fr 1fr;gap:8px}.weak-item{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:14px;background:#fafaf8;border-radius:11px}.weak-item b{font-size:13px}.weak-item span{font-size:11px;color:var(--red);font-weight:800}.weak-item p{grid-column:1/-1;margin:0;color:var(--muted);font-size:10px;line-height:1.5}.report-empty{text-align:center;background:white;border-radius:20px;padding:70px 20px}.report-empty b{font-size:21px}.report-empty p{color:var(--muted);font-size:12px}
@media(max-width:700px){.btn-report{padding:0 11px;font-size:11px}.report-head{align-items:start}.report-head h2{font-size:28px}.report-summary{grid-template-columns:1fr 1fr}.report-grid{grid-template-columns:1fr}.report-wide{grid-column:auto}.weak-report{grid-template-columns:1fr}.category-row{grid-template-columns:100px 1fr 48px}.report-panel{padding:18px}}
