/*
 * 語彙マニア99 Lv.1〜99 共通画面
 * Scope: .gm99g-page. This stylesheet does not alter existing dictionary cards or ads.
 */
.gm99g-page{background:#f6f9fc;color:#233a53;min-height:80vh}
.gm99g-page *{box-sizing:border-box}
.gm99g-page [hidden]{display:none!important}
.gm99g-page button{font:inherit;cursor:pointer}
.gm99g-page button:disabled{cursor:not-allowed}
.gm99g-page :focus-visible{outline:3px solid #d58f2d;outline-offset:3px}
.gm99g-page h1,.gm99g-page h2,.gm99g-page h3{border:0;background:none;padding:0;box-shadow:none}
.gm99g-hero{position:relative;isolation:isolate;overflow:hidden;padding:55px 0 58px;border-bottom:3px solid #dfbd83;background:
radial-gradient(ellipse at 51% 19%,rgba(255,255,255,.92),transparent 46%),
radial-gradient(circle at 12% 12%,#fef5cd,transparent 30%),
linear-gradient(125deg,#a8d9ee,#ebf8ff 52%,#dff2dc);text-align:center}
.gm99g-hero:before{content:"";position:absolute;z-index:-1;inset:auto 0 0;height:75px;opacity:.44;clip-path:polygon(0 82%,7% 47%,14% 80%,22% 35%,31% 72%,41% 26%,54% 80%,64% 35%,71% 70%,85% 24%,94% 69%,100% 45%,100% 100%,0 100%);background:#6cab9b}
.gm99g-hero .site-shell{position:relative;z-index:1;max-width:1050px}
.gm99g-eyebrow{margin:0 0 7px;color:#264966;letter-spacing:.13em;font-weight:900;font-size:13px}
.gm99g-hero h1{display:block;margin:0;color:#1a3049;font-size:clamp(42px,6.2vw,71px);font-weight:900;line-height:1.28;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:-.035em;text-shadow:0 2px 8px rgba(255,255,255,.86)}
.gm99g-hero h1>span{color:#c82c4b}
.gm99g-hero h1>small{display:block;font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",sans-serif;font-size:clamp(19px,2.4vw,27px);font-weight:900;letter-spacing:0;margin-top:7px}
.gm99g-intro{max-width:720px;margin:15px auto 21px;color:#38546a;font-size:16px;line-height:1.95;font-weight:700}
.gm99g-toplinks{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}
.gm99g-toplink{min-height:48px;display:inline-flex;gap:10px;align-items:center;justify-content:center;padding:10px 23px;border-radius:999px;font-size:15px;font-weight:900;text-decoration:none!important}
.gm99g-toplink--primary{background:#c82d4a;color:#fff!important;border:2px solid #fff;box-shadow:0 5px 12px rgba(132,26,58,.15)}
.gm99g-toplink--primary:hover{background:#af223d}
.gm99g-toplink--secondary{background:#fff;color:#1b5b80!important;border:1px solid #b7d4e8}
.gm99g-toplink--secondary:hover{background:#e9f6ff}
.gm99g-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:710px;margin:26px auto 0}
.gm99g-stats>div{padding:11px 13px;border:1px solid #d2ddeb;border-radius:14px;background:rgba(255,255,255,.88);box-shadow:0 6px 18px rgba(29,62,78,.055)}
.gm99g-stats span{display:block;color:#506b80;font-size:12px;font-weight:800}
.gm99g-stats strong{display:block;color:#1b4262;font-size:23px;font-weight:900;line-height:1.45;font-variant-numeric:tabular-nums}
.gm99g-body{padding:31px 0 65px}
.gm99g-body>.site-shell{max-width:1180px}
.gm99g-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 25px}
.gm99g-how>div{display:flex;align-items:center;gap:11px;min-width:0;padding:12px 15px;border:1px solid #e0e7ee;border-radius:13px;background:#fff}
.gm99g-how-no{flex:none;display:grid;place-items:center;height:33px;width:33px;border-radius:11px;color:#fff;background:#1e7190;font-weight:900}
.gm99g-how p{margin:0;min-width:0}
.gm99g-how strong{display:block;font-size:14px;color:#1b3a58;line-height:1.5}
.gm99g-how small{display:block;font-size:12px;color:#5b7084;line-height:1.55;margin-top:3px}
.gm99g-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,290px);gap:19px;align-items:start}
.gm99g-main{min-width:0}
.gm99g-panel{margin-bottom:20px;border:1px solid #dce5ee;border-radius:18px;background:#fff;box-shadow:0 9px 28px rgba(36,60,76,.05);padding:25px;scroll-margin-top:95px}
.gm99g-panel-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:13px;flex-wrap:wrap}
.gm99g-kicker{margin:0 0 3px;color:#c02b49;font-weight:900;font-size:12px;letter-spacing:.12em}
.gm99g-panel-heading h2,.gm99g-result h2{margin:0;color:#203a56;font-size:clamp(22px,3vw,28px);font-weight:900;line-height:1.5}
.gm99g-upcoming{display:inline-flex;align-items:center;min-height:32px;border-radius:999px;background:#f4f7fa;border:1px solid #d5e0e9;padding:3px 10px;color:#536b7d;font-size:12px;font-weight:850;white-space:normal}
.gm99g-map-guide{font-size:14px;color:#546b7c;line-height:1.8;margin:0 0 19px}
.gm99g-chapters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:3px 2px 10px}
.gm99g-chapter{flex:0 0 auto;min-height:42px;min-width:64px;padding:8px 13px;border:1px solid #d6e2ea;border-radius:10px;background:#f8fbff;color:#3d6077;font-size:14px;font-weight:850}
.gm99g-chapter.is-active{background:#1d658b;color:#fff;border-color:#1d658b;box-shadow:0 3px 7px rgba(28,89,122,.12)}
.gm99g-chapter:not(.is-active):hover{background:#eaf5fc}
.gm99g-chapter-caption{margin:10px 0 13px;padding:8px 11px;border-left:3px solid #91b5d4;color:#48647a;background:#f6fafd;font-size:13px;line-height:1.75;font-weight:750}
.gm99g-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gm99g-level{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:113px;text-align:left;padding:13px;border-radius:13px;border:1px solid #d8e4eb;background:#f7fbfe;color:#2a4660;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.gm99g-level.is-open{background:linear-gradient(150deg,#fffdf4,#ebf7f6);border-color:#c8dacb;box-shadow:inset 0 0 0 1px rgba(242,202,129,.15)}
.gm99g-level.is-open:hover{transform:translateY(-2px);border-color:#4d9880}
.gm99g-level.is-selected{border:2px solid #c63855;background:#fff8f9;padding:12px}
.gm99g-level.is-passed{background:#f7f1df;border-color:#deb970}
.gm99g-level.is-upcoming{opacity:.74}
.gm99g-level-number{color:#215577;font-size:20px;line-height:1.35;font-variant-numeric:tabular-nums;font-weight:900}
.gm99g-level.is-passed .gm99g-level-number{color:#8e621b}
.gm99g-level-name{color:#203c54;font-size:13px;line-height:1.5;font-weight:850;overflow-wrap:anywhere}
.gm99g-level.is-upcoming .gm99g-level-name{color:#617181}
.gm99g-level-status{color:#416f73;font-size:11px;line-height:1.5;font-weight:800}
.gm99g-level.is-upcoming .gm99g-level-status{color:#8999a3}
.gm99g-level.is-passed .gm99g-level-status{color:#8b641c}
.gm99g-level-detail{scroll-margin-top:110px;margin-top:17px;padding:19px;background:#fff9eb;border:1px solid #e2c88d;border-radius:14px}
.gm99g-detail-kicker{margin:0 0 5px;font-size:12px;color:#a16a23;font-weight:900;letter-spacing:.08em}
.gm99g-level-detail h3{margin:0;color:#243e59;font-size:22px;font-weight:900}
.gm99g-level-detail>p:not(.gm99g-detail-kicker){margin:8px 0 14px;font-size:14px;color:#5d6070;line-height:1.8}
.gm99g-detail-actions{display:flex;gap:10px;flex-wrap:wrap}
.gm99g-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 19px;border-radius:10px;border:1px solid transparent;font-size:14px;font-weight:900;line-height:1.6;transition:background .15s ease}
.gm99g-button--main{background:#c3314d;border-color:#a92441;color:#fff!important}
.gm99g-button--main:hover{background:#a7203a}
.gm99g-button--light{color:#245b7b;border-color:#b9cfdd;background:#fff}
.gm99g-button--light:hover{background:#ecf7ff}
.gm99g-play{border-top:4px solid #c22f49}
.gm99g-back{background:#fff;border:1px solid #d9e5ed;border-radius:9px;padding:8px 12px;color:#325c77;font-size:13px;font-weight:800}
.gm99g-back:hover{background:#f2f8fc}
.gm99g-quiz-progress{height:10px;width:100%;background:#e6eef4;border-radius:999px;overflow:hidden;margin:19px 0 7px}
.gm99g-quiz-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,#2980a4,#c73b5b);transition:width .18s ease;border-radius:999px}
.gm99g-count{margin:0 0 12px;color:#60788c;font-weight:850;font-size:13px}
.gm99g-question{margin:0 0 18px;color:#1f374c;font-size:clamp(19px,2.7vw,23px);font-weight:850;line-height:1.8}
.gm99g-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gm99g-option{display:flex;align-items:center;gap:11px;width:100%;min-height:69px;padding:12px;text-align:left;border:1px solid #cddfe8;border-radius:12px;background:#fff;color:#24445c;font-size:15px;line-height:1.7;font-weight:750}
.gm99g-option:not(:disabled):hover{background:#edf7fe;border-color:#6ea7c2}
.gm99g-option.is-correct{background:#e7f8ec;border-color:#47a46b;color:#165633}
.gm99g-option.is-wrong{background:#fff0f0;border-color:#ca6571;color:#872c3c}
.gm99g-option-letter{flex:none;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#eaf3f9;color:#206084;font-weight:900;font-size:13px}
.gm99g-option.is-correct .gm99g-option-letter{background:#c5ecd2;color:#165633}
.gm99g-option.is-wrong .gm99g-option-letter{background:#f6d4d9;color:#872c3c}
.gm99g-option-text{min-width:0;overflow-wrap:anywhere}
.gm99g-feedback{margin:16px 0 0;padding:14px 16px;border-radius:11px;background:#e8f8ed;border-left:4px solid #3b9667}
.gm99g-feedback.is-wrong{background:#fff4ec;border-left-color:#bc753c}
.gm99g-feedback strong{display:block;margin:0 0 5px;color:#245d40;font-size:16px}
.gm99g-feedback.is-wrong strong{color:#8a4a2c}
.gm99g-feedback p{margin:0;color:#425b50;font-size:14px;line-height:1.8}
.gm99g-next-wrap{text-align:right;margin:16px 0 0}
.gm99g-result{border-top:4px solid #e1b463}
.gm99g-result-score{display:block;color:#226c82;font-size:clamp(34px,5vw,48px);font-weight:900;line-height:1.4;margin:10px 0;font-variant-numeric:tabular-nums}
.gm99g-result-note{font-size:16px;line-height:1.85;color:#4c6171;margin:0 0 20px}
.gm99g-result-actions{display:flex;gap:11px;flex-wrap:wrap}
.gm99g-review{margin-top:22px;padding:13px 16px;border:1px solid #d6e2e7;border-radius:12px;background:#f8fbfd}
.gm99g-review summary{cursor:pointer;color:#235475;font-size:15px;font-weight:900}
.gm99g-review ol{padding:0 0 0 24px;margin:15px 0 0}
.gm99g-review-item{padding:12px 0;border-top:1px solid #dbe5ed}
.gm99g-review-question{display:block;color:#25465f;line-height:1.7}
.gm99g-review-item p{font-size:13px;line-height:1.75;margin:5px 0;color:#4f6676}
.gm99g-review-link{display:inline-flex;color:#1d668f;font-weight:850;font-size:13px;margin-top:4px;text-decoration:underline}
.gm99g-side{display:grid;gap:16px}
.gm99g-side-panel{padding:23px 19px;border:1px solid #e2c99d;background:#fff9e9;border-radius:16px;box-shadow:0 8px 22px rgba(45,74,84,.04)}
.gm99g-side-panel--light{background:#fff;border-color:#dce5ef}
.gm99g-side-panel h2{font-size:19px;color:#234158;line-height:1.55;margin:0 0 8px;font-weight:900}
.gm99g-side-panel p{color:#52687a;margin:0 0 14px;font-size:14px;line-height:1.85}
.gm99g-side-panel .gm99g-button{width:100%;font-size:14px}
.gm99g-side-panel a{font-size:14px;font-weight:850;color:#1d6893}
.gm99g-side-panel .gm99g-side-small{margin:10px 0 0;font-size:12px;color:#6d7780}
.gm99g-data-note{font-size:12px!important;color:#647587!important;line-height:1.95;margin:0 2px}
.gm99g-bottom-note{margin:17px 0 0;text-align:center;font-size:13px;line-height:1.85;color:#6b7e8b}
@media(max-width:990px){
 .gm99g-layout{grid-template-columns:minmax(0,1fr)}
 .gm99g-side{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gm99g-data-note{grid-column:1/-1}
}
@media(max-width:760px){
 .gm99g-levels{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gm99g-how{grid-template-columns:1fr;gap:8px}
 .gm99g-how>div{padding:11px}
 .gm99g-how p{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 13px}
 .gm99g-how small{margin:0}
 .gm99g-options{grid-template-columns:1fr}
 .gm99g-side{grid-template-columns:1fr}
 .gm99g-data-note{grid-column:auto}
}
@media(max-width:640px){
 .gm99g-hero{padding:33px 0 40px}
 .gm99g-eyebrow{font-size:10px}
 .gm99g-hero h1{font-size:clamp(37px,9vw,48px)}
 .gm99g-hero h1>small{font-size:18px}
 .gm99g-intro{font-size:15px;line-height:1.85;margin:12px auto 17px}
 .gm99g-toplinks{flex-direction:column;gap:9px}
 .gm99g-toplink{width:100%;max-width:355px;min-height:48px}
 .gm99g-stats{gap:5px;margin:20px auto 0}
 .gm99g-stats>div{padding:9px 4px;border-radius:9px}
 .gm99g-stats span{font-size:10px}
 .gm99g-stats strong{font-size:19px}
 .gm99g-body{padding:19px 0 43px}
 .gm99g-panel{padding:18px 15px;scroll-margin-top:74px}
 .gm99g-chapters{margin-right:-7px}
 .gm99g-chapter{min-width:59px;font-size:13px}
 .gm99g-levels{gap:8px}
 .gm99g-level{padding:12px;min-height:103px}
 .gm99g-level.is-selected{padding:11px}
 .gm99g-level-number{font-size:18px}
 .gm99g-level-name{font-size:12px}
 .gm99g-level-detail{padding:17px 13px}
 .gm99g-detail-actions{flex-direction:column}
 .gm99g-detail-actions .gm99g-button{width:100%}
 .gm99g-option{min-height:62px;font-size:15px;padding:10px}
 .gm99g-result-actions{flex-direction:column}
 .gm99g-result-actions button{width:100%}
}
@media(prefers-reduced-motion:reduce){.gm99g-level,.gm99g-quiz-progress span,.gm99g-button{transition:none!important}}
