:root{--bg:#f7f8fb;--card:#fff;--text:#111827;--muted:#6b7280;--border:#e5e7eb;--primary:#2563eb;--primaryHover:#1d4ed8;--accent:#f59e0b;--success:#16a34a;--danger:#dc2626;--radius:14px}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans JP,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}main{max-width:860px;margin:0 auto;padding:24px 16px 40px}h1,h2,h3{margin:0 0 16px}p{margin:0 0 12px}ul{margin:0;padding:0;list-style:none}hr{border:none;border-top:1px solid var(--border);margin:16px 0}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 6px 18px #0000000f}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.spacer{flex:1}.badge{border:1px solid var(--border);color:var(--muted);background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;display:inline-flex}.btn{appearance:none;border:1px solid var(--border);width:100%;color:var(--text);cursor:pointer;letter-spacing:.2px;opacity:1;background:#fff;border-radius:14px;padding:14px;font-size:15px;font-weight:900;transition:transform 30ms,background .15s,border-color .15s}.btn:hover{background:#f3f4f6}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.65;cursor:not-allowed}.btnPrimary{background:#2563eb1f;border:1px solid #2563eb59}.btnPrimary:hover{background:#2563eb2e}.btnAccent{background:#f59e0b24;border:1px solid #f59e0b59}.btnAccent:hover{background:#f59e0b2e}.btnSuccess{background:#16a34a1f;border:1px solid #16a34a4d}.btnSuccess:hover{background:#16a34a29}.choice{text-align:left;background:#fff}.choice:hover{background:#f3f4f6}.choiceCorrect{background:#16a34a38;border:1px solid #16a34aa6;box-shadow:0 0 0 3px #16a34a2e}.choiceWrong{background:#dc262638;border:1px solid #dc2626a6;box-shadow:0 0 0 3px #dc262629}.noticeOk{color:#065f46;background:#16a34a14;border:1px solid #16a34a40;border-radius:12px;padding:10px 12px;font-weight:800}.noticeNg{color:#7f1d1d;background:#dc262614;border:1px solid #dc262640;border-radius:12px;padding:10px 12px;font-weight:800}input,select,textarea{font:inherit;border:1px solid var(--border);background:#fff;border-radius:12px;width:100%;padding:12px}input:focus,select:focus,textarea:focus{border-color:#2563eb80;outline:none;box-shadow:0 0 0 3px #2563eb2e}.btnSub{border:1px solid var(--border);background:#fff}.btnSub:hover{background:#f3f4f6}.container{max-width:860px;margin:0 auto;padding:24px 16px 40px}.stackSm{flex-direction:column;gap:6px;display:flex}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 18px #0000000f}.card-header{border-bottom:1px solid var(--border);background:linear-gradient(#ffffffe6,#ffffffa6);padding:18px 18px 14px}.card-title{letter-spacing:.2px;margin:0;font-size:22px;font-weight:900}.card-subtitle{color:var(--muted);margin:0;font-size:13px;font-weight:700}.card-body{padding:18px}.card-body>:first-child{margin-top:0}.card-body>:last-child{margin-bottom:0}.kicker{color:var(--muted);align-items:center;gap:10px;margin:0 0 10px;font-size:13px;font-weight:800;display:flex}.question{letter-spacing:.2px;margin:0 0 12px;font-size:20px;font-weight:900}.panel{border:1px solid var(--border);background:#fff;border-radius:12px;padding:12px}.panelSoft{border:1px solid var(--border);background:#f9fafb;border-radius:12px;padding:12px}.choiceList{flex-direction:column;gap:10px;margin-top:12px;display:flex}.explainBox{border:1px solid var(--border);background:#fff;border-radius:12px;margin-top:14px;padding:12px}.explainTitle{margin:0 0 6px;font-weight:900}.explainText{white-space:pre-wrap;margin:0;line-height:1.75}.actions{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.actions>.btn{width:auto;min-width:180px}.note{color:var(--muted);margin-top:10px;font-size:13px;font-weight:700}.resultList{flex-direction:column;gap:12px;margin-top:12px;display:flex}.resultItem{border:1px solid var(--border);background:#fff;border-radius:12px;padding:12px}.resultHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.resultQ,.resultMark{font-weight:900}.resultChoices{gap:8px;margin-top:10px;display:grid}.resultExplain{white-space:pre-wrap;margin-top:10px;line-height:1.75}.resultMeta{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.timer{font-weight:900}.listenRow{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.listenHint{color:var(--muted);font-size:12.5px;font-weight:700}.streakPill{color:#92400e;background:#f59e0b29;border:1px solid #f59e0b73;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:12.5px;font-weight:900;display:inline-flex}.streakPop{animation:.22s ease-out streakPop}@keyframes streakPop{0%{transform:scale(.92)}60%{transform:scale(1.08)}to{transform:scale(1)}}.btnGhost{border:1px solid var(--border);color:#111;background:0 0}.btnGhost:hover{background:#f3f4f6}.btnDanger{color:#fff;background:#dc2626}.btnDanger:hover{background:#b91c1c}html,body{height:100%}body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}.safe-bottom{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.detailActionGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;display:grid}@media (min-width:640px){.detailActionGrid{grid-template-columns:repeat(4,minmax(0,1fr))}}.gameHero{background:linear-gradient(#ede9fecc,#fff);border:1px solid #7c3aed38;border-radius:16px;padding:12px}.gameHeroTag{color:#5b21b6;margin-bottom:8px;font-size:12px;font-weight:900}.gameHeroBtn{cursor:pointer;color:#fff;background:linear-gradient(135deg,#7c3aed,#5b21b6);border:none;border-radius:14px;width:100%;padding:16px 14px;font-size:18px;font-weight:900;box-shadow:0 10px 18px #5b21b638}.gameHeroBtn:active{transform:translateY(1px)}.gameHeroNote{opacity:.75;margin-top:8px;font-size:12px}.gameHeroMiniRow{margin-top:10px}.appHeader{justify-content:space-between;align-items:center;gap:10px;margin-top:6px;display:flex}.appHeaderLeft{align-items:center;gap:10px;min-width:0;display:flex}.appHeaderBrand{color:inherit;align-items:center;gap:8px;font-weight:900;text-decoration:none;display:flex}.appHeaderLogo{border:1px solid var(--border);background:#fff;border-radius:10px;flex:0 0 28px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex;overflow:hidden}.appLogoImage{object-fit:cover;width:100%;height:100%;display:block}.appHeaderName{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.appHeaderTitle{opacity:.7;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.mypageTopbar{justify-content:space-between;align-items:center;margin-top:12px;display:flex}.hamburgerBtn{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:12px;padding:10px 12px;font-size:18px;font-weight:900;line-height:1}.drawerOverlay{z-index:50;background:#00000059;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawerPanel{background:#fff;flex-direction:column;width:min(320px,86vw);height:100%;padding:14px;display:flex;box-shadow:-12px 0 32px #0000002e}.drawerHead{justify-content:space-between;align-items:center;padding:6px 4px 12px;display:flex}.drawerClose{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:10px;padding:8px 10px;font-weight:900;line-height:1}.drawerBody{flex-direction:column;gap:10px;display:flex}.drawerBody .btn{width:100%}.drawerLink{border:1px solid var(--border);color:inherit;background:#fff;border-radius:12px;padding:12px;font-weight:800;text-decoration:none;display:block}.drawerLink:hover{filter:brightness(.98)}.drawerDivider{background:var(--border);height:1px;margin:4px 0}:root{--safe-bottom:env(safe-area-inset-bottom,0px)}.withFixedCta{padding-bottom:calc(92px + var(--safe-bottom))}.mobileFixedBar{display:none}@media (max-width:640px){.mobileFixedBar{padding:12px 14px calc(12px + var(--safe-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:60;background:#ffffffeb;border-top:1px solid #00000014;display:block;position:fixed;bottom:0;left:0;right:0}.mobileFixedBtn{border-radius:16px;width:100%;min-height:52px;padding:14px;font-size:18px;font-weight:900}.hideOnMobile{display:none!important}}.chipRow{-webkit-overflow-scrolling:touch;gap:10px;padding-bottom:6px;display:flex;overflow-x:auto}.chipRow::-webkit-scrollbar{display:none}.chip{cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e7e7e7;border-radius:999px;flex:none;padding:8px 14px;font-weight:900}.chipActive{color:#fff;background:#111;border-color:#111}.drawerLink{color:inherit;background:#ffffffd9;border:1px solid #00000014;border-radius:16px;align-items:center;gap:10px;padding:14px;font-weight:900;text-decoration:none;display:flex}.drawerIcon{text-align:center;width:24px;font-size:20px}.drawerLabel{letter-spacing:.02em;font-size:18px}.appHeader{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffe6;border:1px solid #0f263f17;border-radius:18px;min-height:62px;margin-top:4px;padding:8px 10px 8px 8px;box-shadow:0 12px 32px #0f263f14}.appHeaderLeft{gap:14px;min-width:0}.appHeaderBrand{gap:10px;min-width:0}.appHeaderLogo{border:0;border-radius:13px;flex:0 0 42px;width:42px;height:42px;box-shadow:0 5px 14px #0f263f2e}.appHeaderBrandText{flex-direction:column;min-width:0;line-height:1.12;display:flex}.appHeaderName{color:#0f263f;letter-spacing:.02em;font-size:15px}.appHeaderSubName{color:#6b7d90;white-space:nowrap;margin-top:3px;font-size:10px;font-weight:700}.appHeaderTitle{color:#607286;opacity:1;border-left:1px solid #dbe4ec;padding-left:14px;font-size:13px}.hamburgerBtn{background:#0f263f;border:1px solid #d9e2ea;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;padding:0;display:flex;box-shadow:0 7px 18px #0f263f2e}.hamburgerBtn span{background:#fff;border-radius:99px;width:19px;height:2px;display:block}.drawerOverlay{visibility:hidden;opacity:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:100;background:#05111d8f;transition:opacity .25s,visibility .25s}.drawerOverlayOpen{visibility:visible;opacity:1}.drawerPanel{background:#f5f8fb;width:min(390px,91vw);padding:0;transition:transform .3s cubic-bezier(.22,.8,.2,1);transform:translate(100%);box-shadow:-24px 0 60px #020f1c42}.drawerPanelOpen{transform:translate(0)}.drawerHead{color:#fff;background:linear-gradient(145deg,#0f263f,#193e62);padding:22px 20px 18px}.drawerBrand{align-items:center;gap:12px;min-width:0;display:flex}.drawerBrandLogo{border-radius:15px;flex:0 0 50px;width:50px;height:50px;overflow:hidden;box-shadow:0 8px 20px #0000003d}.drawerBrand div{flex-direction:column;min-width:0;display:flex}.drawerBrand strong{font-size:18px}.drawerBrand span{color:#bdd0e2;margin-top:3px;font-size:11px;font-weight:700}.drawerClose{color:#fff;background:#ffffff1a;border:1px solid #ffffff3d;border-radius:12px;width:38px;height:38px;padding:0;font-size:26px;font-weight:400}.drawerBody{gap:7px;padding:16px 14px;overflow-y:auto}.drawerLink{color:#19324b;background:0 0;border:1px solid #0000;border-radius:15px;gap:12px;padding:12px}.drawerLink:hover{filter:none;background:#fff}.drawerLinkActive{background:#fff;border-color:#dce6ee;box-shadow:0 8px 24px #0f263f14}.drawerIcon{color:#244e73;background:#e7eef5;border-radius:12px;flex:0 0 42px;justify-content:center;align-items:center;width:42px;height:42px;display:flex}.drawerLinkActive .drawerIcon{color:#fff;background:#0f263f}.drawerLinkText{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.drawerLinkText strong{font-size:15px}.drawerLinkText small{color:#7a8b9b;font-size:11px;font-weight:600}.drawerArrow{color:#9babb9;font-size:24px}.drawerFooter{padding:14px 18px calc(18px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #dce5ec;margin-top:auto}.drawerAccountBadge{color:#1f6a44;text-align:center;background:#e9f6ef;border-radius:10px;margin-bottom:10px;padding:8px 10px;font-size:12px;font-weight:900}.drawerLogout,.drawerLogin{cursor:pointer;border:0;border-radius:13px;width:100%;min-height:46px;font-weight:900}.drawerLogout{color:#334b61;background:#edf1f5}.drawerLogin{color:#fff;background:#0f263f}.mypagePage{color:#12283e;background:linear-gradient(#eef3f7 0,#f7f9fb 320px);min-height:100vh;padding:16px 14px 48px}.mypageShell{max-width:1040px;margin:0 auto}.mypageProfile{color:#fff;background:linear-gradient(135deg,#0f263f,#1d4c73);border-radius:22px;align-items:center;gap:16px;margin-top:16px;padding:22px;display:flex;box-shadow:0 18px 42px #0f263f33}.mypageAvatar{background:#ffffff24;border:1px solid #ffffff3b;border-radius:19px;flex:0 0 62px;justify-content:center;align-items:center;width:62px;height:62px;font-size:26px;font-weight:900;display:flex}.mypageProfileText{flex:1;min-width:0}.mypageProfileText>span,.mypageSectionHead>div>span{letter-spacing:.14em;color:#91b6d5;font-size:10px;font-weight:900}.mypageProfileText h1{margin:4px 0 0;font-size:24px}.mypageProfileText p{color:#c6d6e4;text-overflow:ellipsis;margin:4px 0 0;font-size:13px;overflow:hidden}.mypagePrimaryButton{color:#102942;white-space:nowrap;background:#fff;border-radius:13px;padding:12px 16px;font-weight:900;text-decoration:none}.mypageError{color:#a33;background:#fff1f1;border-radius:13px;margin-top:12px;padding:12px 14px;font-weight:800}.mypageSummaryGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px;display:grid}.mypageSummaryCard{background:#fff;border:1px solid #e1e8ee;border-radius:18px;gap:12px;min-height:126px;padding:17px;display:flex;box-shadow:0 9px 26px #0f263f0e}.mypageSummaryIcon{color:#1c4d73;background:#edf3f7;border-radius:12px;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;font-weight:900;display:flex}.mypageSummaryCard div:last-child{flex-direction:column;display:flex}.mypageSummaryCard span{color:#718294;font-size:12px;font-weight:800}.mypageSummaryCard strong{color:#102942;margin-top:7px;font-size:27px;line-height:1}.mypageSummaryCard strong.compact{font-size:18px;line-height:1.25}.mypageSummaryCard small{color:#91a0ad;margin-top:auto;font-size:10px}.mypageTwoColumn{grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:14px;margin-top:14px;display:grid}.mypagePanel{background:#fff;border:1px solid #e1e8ee;border-radius:20px;padding:20px;box-shadow:0 9px 28px #0f263f0e}.mypageSectionHead{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.mypageSectionHead h2{margin:4px 0 0;font-size:20px}.mypageSectionHead a{color:#245b83;font-size:12px;font-weight:900;text-decoration:none}.mypageCategoryList{flex-direction:column;gap:9px;margin-top:14px;display:flex}.mypageCategoryCard{color:inherit;background:#f9fbfc;border:1px solid #e6edf2;border-radius:15px;align-items:center;gap:12px;padding:13px;text-decoration:none;display:flex}.mypageCategoryCard:hover{background:#fff;border-color:#bfd1df}.mypageCategoryIcon{background:#eaf1f6;border-radius:13px;flex:0 0 43px;justify-content:center;align-items:center;width:43px;height:43px;font-size:21px;display:flex}.mypageCategoryMain{flex:1;min-width:0}.mypageCategoryTop,.mypageCategoryMeta{justify-content:space-between;gap:8px;display:flex}.mypageCategoryTop strong{font-size:14px}.mypageCategoryTop span{color:#315c7d;font-size:12px;font-weight:900}.mypageProgressTrack{background:#e3eaf0;border-radius:99px;height:6px;margin-top:9px;overflow:hidden}.mypageProgressTrack span{border-radius:inherit;background:linear-gradient(90deg,#1c4e75,#4b84ac);height:100%;display:block}.mypageCategoryMeta{color:#83919e;margin-top:7px;font-size:10px}.mypageChevron{color:#91a2b0;font-size:23px}.mypageGameHero{color:#fff;background:linear-gradient(140deg,#153653,#265f88);border-radius:16px;justify-content:space-between;align-items:center;margin-top:15px;padding:17px;display:flex}.mypageGameHero div:first-child{flex-direction:column;display:flex}.mypageGameHero span{color:#bdd1e0;font-size:11px;font-weight:800}.mypageGameHero strong{margin-top:5px;font-size:23px}.mypageGameHero small{color:#c9d8e4;margin-top:3px}.mypageGameBadge{font-size:36px}.mypageMiniStats{grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;display:grid}.mypageMiniStats div{text-align:center;background:#f2f6f9;border-radius:13px;padding:12px}.mypageMiniStats strong,.mypageMiniStats span{display:block}.mypageMiniStats strong{font-size:20px}.mypageMiniStats span{color:#7b8b99;margin-top:2px;font-size:10px}.mypageSecondaryButton{color:#fff;background:#102942;border-radius:12px;justify-content:center;align-items:center;min-height:43px;margin-top:10px;font-weight:900;text-decoration:none;display:flex}.mypageHistoryPanel{margin-top:14px}.mypageHistoryList{margin-top:12px}.mypageHistoryRow{border-top:1px solid #edf1f4;align-items:center;gap:11px;padding:12px 4px;display:flex}.mypageHistoryMark{color:#24704b;background:#eaf3ee;border-radius:11px;justify-content:center;align-items:center;width:35px;height:35px;font-weight:900;display:flex}.mypageHistoryText{flex-direction:column;flex:1;min-width:0;display:flex}.mypageHistoryText strong{font-size:13px}.mypageHistoryText span{color:#82909c;margin-top:2px;font-size:10px}.mypageHistoryScore{text-align:right}.mypageHistoryScore strong,.mypageHistoryScore span{display:block}.mypageHistoryScore strong{font-size:16px}.mypageHistoryScore span{color:#8795a1;font-size:10px}.mypageEmpty{text-align:center;color:#657787;background:#f6f8fa;border-radius:15px;margin-top:14px;padding:24px}.mypageEmpty p{margin:5px 0 0;font-size:12px}@media (max-width:820px){.mypageSummaryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.mypageTwoColumn{grid-template-columns:1fr}}@media (max-width:560px){.appHeader{border-radius:15px;padding:7px}.appHeaderLogo{flex-basis:38px;width:38px;height:38px}.appHeaderSubName,.appHeaderTitle{display:none}.appHeaderName{font-size:14px}.mypagePage{padding:10px 10px 36px}.mypageProfile{border-radius:18px;flex-wrap:wrap;align-items:flex-start;padding:17px}.mypageAvatar{border-radius:15px;flex-basis:50px;width:50px;height:50px}.mypageProfileText h1{font-size:20px}.mypagePrimaryButton{text-align:center;width:100%}.mypageSummaryGrid{gap:9px}.mypageSummaryCard{flex-direction:column;gap:8px;min-height:116px;padding:13px}.mypageSummaryIcon{flex-basis:34px;width:34px;height:34px}.mypageSummaryCard strong{font-size:23px}.mypagePanel{border-radius:17px;padding:16px}.mypageCategoryMeta span:last-child{display:none}}
