@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;900&display=swap');
.launchpad{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.realphoto{margin:24px 0}.realphoto>a{display:block;background:#e1e7db;border-radius:10px;overflow:hidden}.realphoto img{display:block;width:100%;height:420px;object-fit:contain}.photocredit{font-size:10px;line-height:1.9;color:#788274;padding:9px 0}.photocredit a{text-decoration:underline;text-underline-offset:3px}.photocard .realphoto{margin:-22px -22px 18px}.photocard .realphoto img{height:215px}.photocard .photocredit{padding:8px 12px;font-size:9px}.badges{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.badges span{font-size:10px;background:#edf1e4;padding:4px 7px;border-radius:4px}.photoquizbox{max-width:900px}.photoquizbox .realphoto img{height:350px}.photoquizbox h2{font-size:21px}.imageerror{padding:12px;color:#8b4a2c;background:#fff0dd}.mapframe{position:relative;isolation:isolate;margin:18px 0;border:1px solid #d8e0cf;border-radius:12px;overflow:hidden}.geomap{height:470px;background:#e2e8dc;z-index:0}.mapstatus:empty{display:none}.mapstatus{padding:8px 12px;background:#fff5d9;font-size:12px}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.map-results{max-height:550px;overflow:auto;display:flex;flex-direction:column;gap:7px}.map-place{background:#fffef9!important;color:#29483b!important;text-align:left;border:1px solid #d9e2cf!important;display:flex;justify-content:space-between;align-items:center;padding:12px!important}.map-place small{color:#7a866f;font-size:10px}.pointnote{font-size:11px}.position-question{background:#fffef9;border:1px solid #dce3d3;border-radius:12px;padding:22px}.position-question .geomap{height:500px}.review-extra{margin:30px 0}.leaflet-container{font-family:'Noto Sans JP',sans-serif!important}.leaflet-popup-content{line-height:1.8}.leaflet-control-attribution a{font-size:10px}.toolbar button:disabled{opacity:.45}.feedback .geomap{height:360px}.feedback .toolbar{justify-content:center}.detail .realphoto{background:#e7ecdf;border-radius:10px;padding:10px}.detail .realphoto img{height:500px}details{font-size:12px;line-height:1.8}summary{cursor:pointer}#map-summary{font-size:12px;min-height:65px}.map-results:focus-visible{outline:3px solid #bb873c}@media(max-width:1100px){.map-layout{grid-template-columns:1fr}.map-results{max-height:270px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.geomap,.position-question .geomap{height:360px}.realphoto img,.detail .realphoto img{height:330px}.photoquizbox .realphoto img{height:270px}.map-results{grid-template-columns:1fr}.launchpad .button{flex:1 1 100%;text-align:center}.position-question{padding:14px}.toolbar{gap:8px}.toolbar>select{max-width:100%}.feedback .geomap{height:320px}}
:root{--ink:#203b34;--muted:#79837a;--green:#234f41;--lime:#d9ee9a;--paper:#f5f5ee;--line:#e1e5da}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'Noto Sans JP',sans-serif}a{color:inherit}aside{position:fixed;inset:0 auto 0 0;width:236px;background:#fffef8;padding:36px 22px;border-right:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:32px}.brand b{font-size:25px;letter-spacing:-1px}.brand span{display:block;font-size:10px;letter-spacing:3px;margin-top:3px}.navlabel{font-size:10px;letter-spacing:2px;color:var(--muted);margin:58px 12px 18px}nav a{display:block;text-decoration:none;padding:14px 12px;margin:7px 0;border-radius:8px;font-size:13px}nav a.active{background:#e9efdf;color:#254d36;font-weight:700}.asidebottom{position:absolute;bottom:34px;font-size:10px;line-height:2;letter-spacing:1px}.asidebottom small{font-size:10px;letter-spacing:0}main{margin-left:236px;padding:0 44px;max-width:1600px}header{height:88px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);color:#6f796e;font-size:12px}.pill{font-size:10px;border:1px solid #dce3d3;padding:7px 12px;border-radius:20px}#app{padding:34px 0;min-height:80vh}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#8a987d}h1{font-size:29px;letter-spacing:1px;margin:8px 0 12px}h2{font-size:19px}h3{font-size:16px}.sub{color:var(--muted);line-height:1.9}.hero{position:relative;overflow:hidden;background:var(--green);color:#fff;border-radius:16px;padding:36px;min-height:270px;margin:26px 0}.hero h2{font-size:32px;line-height:1.6;margin:12px 0}.hero p{color:#c5d3be;max-width:460px;line-height:1.8}.hero .art{position:absolute;right:3%;top:10px;width:35%;height:240px;opacity:.65;transform:rotate(-10deg)}button,.button{display:inline-block;cursor:pointer;border:0;background:var(--green);color:white;font:inherit;padding:12px 20px;border-radius:8px;text-decoration:none}button:hover,.button:hover{filter:brightness(1.12)}button:disabled{cursor:default;opacity:.65}.hero .button{background:var(--lime);color:#253c22;margin-top:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.stat{background:#fffef9;border:1px solid var(--line);border-radius:12px;padding:20px}.stat strong{display:block;font-size:30px;margin:8px 0}.stat small{color:var(--muted)}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-top:32px}.sectionhead a{font-size:12px;color:#6c7c64}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fffef9;padding:22px}.card p{color:#788071;font-size:12px;line-height:1.9}.card a{text-decoration:none}.visual{height:112px;background:#e4e9da;margin:-22px -22px 20px;display:flex;align-items:center;justify-content:center;font-size:54px;color:#49664b;background-image:linear-gradient(35deg,transparent 46%,#c8d4b9 47%,#c8d4b9 49%,transparent 50%),linear-gradient(-40deg,transparent 46%,#d1dbc5 47%,#d1dbc5 49%,transparent 50%);background-size:65px 65px}.tag{font-size:10px;background:#eef0e4;padding:4px 8px;border-radius:4px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}select,input{border:1px solid #d4dccd;background:#fffef9;border-radius:7px;font:inherit;padding:11px;max-width:100%}input{flex:1;min-width:180px}.quizbox{max-width:800px;margin:20px auto;background:#fffef9;border:1px solid var(--line);padding:38px;border-radius:14px;text-align:center}.question{font-size:34px;margin:30px 0}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choices button{background:#f3f5ed;color:var(--ink);border:1px solid #d8e0d1;min-height:60px}.choices button.good{background:#cfe3b4}.choices button.bad{background:#f1cfbd}.feedback{line-height:1.9;margin:22px 0}.list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.place{background:#fffef9;border:1px solid var(--line);border-radius:8px;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}.place small{display:block;color:var(--muted)}.star{padding:5px 9px;background:transparent;color:#688044;font-size:20px}.empty{padding:40px;text-align:center;color:var(--muted)}footer{border-top:1px solid var(--line);font-size:10px;color:#7b8575;padding:20px 0 30px}.source{line-height:2;max-width:850px}.detail{max-width:800px;margin:auto}.detail p{line-height:2}.hint{padding:16px;background:#edf0e2;border-radius:8px;line-height:1.9}.secondary{background:#e5eadd;color:var(--ink)}:focus-visible{outline:3px solid #bb873c;outline-offset:3px}@media(max-width:1000px){aside{width:190px;padding:25px 14px}main{margin-left:190px;padding:0 24px}.grid,.list{grid-template-columns:repeat(2,1fr)}.hero .art{opacity:.2;width:50%}}@media(max-width:650px){aside{position:static;width:100%;padding:18px;border-bottom:1px solid var(--line)}.brand{font-size:24px}.brand b{font-size:20px}.navlabel,.asidebottom{display:none}nav{display:flex;overflow:auto;margin-top:16px;gap:5px}nav a{white-space:nowrap;font-size:11px;padding:9px;margin:0}main{margin:0;padding:0 18px}header{height:58px}.pill{display:none}#app{padding-top:25px}h1{font-size:24px}.hero{padding:24px}.hero h2{font-size:25px}.stats{gap:7px}.stat{padding:12px}.stat strong{font-size:24px}.stat small{font-size:10px}.grid,.list{grid-template-columns:1fr}.quizbox{padding:24px 16px}.question{font-size:27px}.choices{gap:8px}.choices button{padding:12px 5px}.hero .art{right:-10%}}

.map-result-row{display:flex;gap:5px;align-items:center}.map-result-row .map-place{flex:1;min-width:0}.map-result-row .star{flex:none}.photoquizbox .choices button{font-size:13px;text-align:left;line-height:1.9}

/* Spacious maps and viewport fullscreen, 2026-10-30. */
.map-layout{grid-template-columns:minmax(0,1fr)}.map-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:320px}.geomap,.position-question .geomap{height:clamp(480px,72vh,1000px)}.feedback .geomap{height:clamp(420px,65vh,850px)}.map-view-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#fffef9;font-size:11px;color:#6b7b66}.map-view-tools button{padding:8px 12px;white-space:nowrap;font-size:12px}.map-expanded-open{overflow:hidden}.mapframe.map-expanded{position:fixed;inset:0;z-index:10000;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;background:#fffef9;isolation:isolate}.mapframe.map-expanded .geomap{flex:1;height:auto!important;min-height:0}.mapframe.map-expanded .map-view-tools{padding:12px 18px;flex-shrink:0}.mapframe.map-expanded .mapstatus{flex-shrink:0}@media(max-width:650px){.geomap,.position-question .geomap,.feedback .geomap{height:65svh;min-height:400px}.map-results{grid-template-columns:1fr}.map-view-tools{font-size:10px}.map-view-tools span{max-width:55%}}

/* Clean street map presentation. */
.mapframe{border:0;border-radius:16px;box-shadow:0 2px 10px #26392820}.geomap{background:#e9edf0}.map-view-tools{position:absolute;right:12px;top:12px;z-index:800;padding:0;background:transparent}.map-view-tools span{display:none}.map-view-tools button{background:white;color:#334342;box-shadow:0 2px 7px #0003;border:1px solid #ddd;border-radius:9px;padding:12px 15px}.map-searchbox{position:absolute;top:12px;left:12px;z-index:800;width:min(370px,calc(100% - 140px));display:flex;align-items:center;background:white;border-radius:12px;box-shadow:0 2px 9px #0003;padding:0 12px;gap:10px}.map-searchbox>span{font-size:26px;color:#677675}.map-searchbox input{border:0;background:white;min-width:0;width:100%;padding:15px 0;outline-offset:-3px}.leaflet-control-zoom{border:0!important;box-shadow:0 2px 7px #0003!important;border-radius:9px!important;overflow:hidden;margin:14px!important}.leaflet-control-zoom a{width:40px!important;height:40px!important;line-height:40px!important;color:#465451!important;background:white!important}.leaflet-popup-content-wrapper{border-radius:12px;box-shadow:0 3px 12px #0003}.geo-pin-wrap{background:none;border:0}.geo-pin{display:block;width:27px;height:27px;background:var(--pin-color);border:2px solid white;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:-2px 3px 5px #0004;position:absolute;top:2px;left:0}.geo-pin i{display:block;width:8px;height:8px;background:white;border-radius:50%;position:absolute;left:7.5px;top:7.5px}.mapframe.map-expanded .map-view-tools{padding:0}.mapframe.map-expanded .geomap{flex:1}.mapstatus{position:absolute;bottom:28px;left:8px;right:8px;z-index:800;border-radius:6px}.mapframe.map-expanded .map-view-tools button{max-width:230px}@media(max-width:650px){.map-searchbox{width:calc(100% - 125px);left:8px;top:8px;padding:0 9px;gap:5px}.map-searchbox input{font-size:12px;padding:13px 0}.map-view-tools{top:8px;right:8px}.map-view-tools button{font-size:11px;padding:12px 10px}.mapframe.map-expanded .map-view-tools button{max-width:115px;white-space:normal}.geo-pin{width:24px;height:24px}.geo-pin i{left:6px;top:6px}}

.maplibregl-map{pointer-events:none}.maplibregl-canvas{outline:none}.geomap{background:#d5e8ef}

.boundary-panel{position:absolute;left:12px;bottom:30px;z-index:800;background:#fffffff2;border-radius:10px;box-shadow:0 2px 10px #0003;padding:12px;max-width:min(370px,calc(100% - 80px));font-size:11px;line-height:1.7}.boundary-panel small{display:block;color:#607080;margin:4px 0}.boundary-panel button{padding:5px 9px;margin:3px 5px 0 0;font-size:10px}.boundary-key{display:inline-block;width:15px;height:12px;border:2px solid #1967d2;background:#4285f440;margin-right:6px;vertical-align:middle}@media(max-width:650px){.boundary-panel{left:8px;bottom:30px;padding:8px;font-size:10px;max-width:calc(100% - 70px)}}
/* Quiz controls remain available over the map in window and fullscreen modes. */
.position-question:has(.quiz-map-frame){padding:0;border:0;background:transparent}.quiz-map-frame{overflow:hidden}.quiz-map-hud{position:absolute;z-index:850;left:16px;top:16px;width:min(360px,calc(100% - 190px));max-height:calc(100% - 46px);overflow:auto;overscroll-behavior:contain;background:#fffffff5;box-shadow:0 3px 18px #23394930;border:1px solid #e0e6db;border-radius:14px;padding:18px;text-align:left}.quiz-map-hud h2{font-size:23px;margin:9px 0;line-height:1.5}.quiz-map-hud p{font-size:12px;line-height:1.8}.quiz-map-hud #guess-label{color:#637365}.quiz-map-hud .toolbar{margin:12px 0;gap:7px}.quiz-map-hud .toolbar button,.quiz-map-hud .toolbar .button{padding:9px 12px;font-size:12px}.quiz-map-hud #map-reveal{background:#eef1e6;color:#435b48}.quiz-map-hud #map-national{background:white;color:#607360;border:1px solid #d9e0d2}.quiz-map-hud .feedback{margin:10px 0}.quiz-map-hud .feedback h3{font-size:16px}.quiz-map-hud details{border-top:1px solid #e2e7dc;padding-top:9px}.quiz-map-hud details input{min-width:0;width:100%}.quiz-map-frame .boundary-panel{left:auto;right:68px;bottom:32px;width:290px;max-width:calc(100% - 95px)}.mapframe.map-expanded.quiz-map-frame .quiz-map-hud{max-height:calc(100svh - 42px)}
@media(max-width:650px){.quiz-map-hud{left:8px;top:8px;width:calc(100% - 130px);min-width:170px;padding:11px;max-height:50%;border-radius:10px}.quiz-map-hud h2{font-size:18px}.quiz-map-hud .eyebrow{font-size:9px}.quiz-map-hud .toolbar{gap:5px;margin:8px 0}.quiz-map-hud .toolbar button,.quiz-map-hud .toolbar .button{font-size:10px;padding:8px}.quiz-map-hud p{font-size:10px;margin:7px 0}.quiz-map-hud details{font-size:10px}.quiz-map-frame .boundary-panel{right:58px;bottom:28px;width:240px;max-width:calc(100% - 74px);font-size:9px}.mapframe.map-expanded.quiz-map-frame .quiz-map-hud{max-height:60svh}.quiz-map-frame .map-view-tools button{max-width:115px;white-space:normal}}
/* Four-choice controls stay inside the fullscreen map. */
.choice-hud.quizbox{margin:0;text-align:left;max-width:none;padding:18px}.choice-hud .question{font-size:25px;margin:12px 0}.choice-hud .choices{gap:8px}.choice-hud .choices button{min-height:45px;padding:10px 8px;font-size:13px;text-align:center}.choice-hud .feedback{font-size:12px;line-height:1.8}.choice-hud .feedback p{font-size:10px}.choice-hud #qstar{font-size:12px}.choice-hud #next{font-size:13px;padding:10px 15px}.choice-map-frame .geomap{height:clamp(480px,72vh,1000px)}@media(max-width:650px){.choice-hud.quizbox{padding:11px}.choice-hud .question{font-size:19px;margin:8px 0}.choice-hud .choices button{font-size:11px;min-height:39px;padding:8px 5px}.choice-map-frame .geomap{height:65svh;min-height:400px}}
.evidence-distribution{background:#eef3e7;border:1px solid #dce5d0;border-radius:9px;padding:15px;margin-bottom:20px}.evidence-distribution strong{display:inline-block;margin:0 12px 8px 0}.evidence-distribution p{margin:5px 0}.badges .evidence-badge{background:#d9eac9;color:#264b37}.evidence-explainer{font-size:12px}

.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.comparison-grid .realphoto img{height:260px!important}.meta-comparisons{margin:22px 0}@media(max-width:650px){.comparison-grid{grid-template-columns:1fr}}

.pole-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.pole-pair select{width:100%;margin:8px 0 16px}.pole-pair .realphoto img{height:380px;object-fit:contain;background:#eee}.pole-pair label{font-weight:700}#pole-references .grid{margin-bottom:24px}@media(max-width:760px){.pole-pair{grid-template-columns:1fr}.pole-pair .realphoto img{height:310px}}

.pole-pair .realphoto>a{display:block;overflow:hidden}.pole-pair .realphoto img{transition:transform .15s}.pole-zoom{margin:6px 0 14px}

/* 地図上の選択位置を十字の中心で示す。 */
#quiz-map.leaflet-container,#study-map.leaflet-container{cursor:crosshair}
.leaflet-dragging #quiz-map.leaflet-container,.leaflet-dragging #study-map.leaflet-container{cursor:grabbing}
#quiz-map .leaflet-marker-draggable{cursor:grab}
.leaflet-dragging #quiz-map .leaflet-marker-draggable{cursor:grabbing}

#quiz-map.leaflet-container,#study-map.leaflet-container{cursor:default}
#quiz-map .geo-pin-wrap{cursor:default}

/* 解答中の学習ヒントはナビゲーションではなく通常の本文。 */
.place-cue,.place-fact{position:static;inset:auto;width:auto;height:auto;overflow:visible;border-right:0;padding:12px;margin:12px 0;border-radius:8px}
