/* The map guide keeps its existing open/close and first-visit behavior. */
.tutorial-modal.guide-renewed{width:min(720px,calc(100vw - 24px));max-height:min(88dvh,840px);padding:0;overflow:hidden;background:#fff;color:#183642;border:1px solid #d3e1e7;border-radius:22px}
.tutorial-modal.guide-renewed.open{display:flex;flex-direction:column}
.guide-renewed .tutorial-header{flex:0 0 auto;margin:0;padding:18px 24px 16px;border-bottom:1px solid #e5edf1;background:#fff}
.guide-kicker{margin:0 0 3px;font-size:10px;font-weight:800;letter-spacing:.12em;color:#527d8c}
.guide-renewed .tutorial-title{font-size:23px;font-weight:800;letter-spacing:.02em}
.guide-renewed .tutorial-close{flex:0 0 38px;color:#315360;background:#edf3f5;font-size:23px}
.guide-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px 8px;font:13px/1.8 system-ui,sans-serif;scrollbar-gutter:stable}
.guide-hero{display:grid;grid-template-columns:minmax(0,1fr) 144px;gap:22px;align-items:center;background:#f0f8fa;padding:20px;border-radius:16px}
.guide-hero h3{font-size:23px;line-height:1.5;letter-spacing:.02em;margin:0 0 9px;max-width:340px}
.guide-hero p{color:#506d79;margin:0;line-height:1.85}
.guide-map-illustration{width:100%;height:auto}
.guide-key-note{display:flex;align-items:flex-start;gap:8px;margin:14px 0 24px;padding:11px 13px;border:1px solid #ead7ac;border-radius:10px;background:#fff9ee;color:#78511a;font-size:12px;font-weight:700}
.guide-key-note>span:first-child{flex:0 0 17px;display:grid;place-items:center;border:1px solid #b88b45;border-radius:50%;width:17px;height:17px;line-height:1;margin-top:2px}
.guide-section-title{font-size:15px;letter-spacing:.03em;margin:22px 0 12px}
.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;margin:0;list-style:none}
.guide-steps li{padding:15px 13px;border:1px solid #dce8ed;border-radius:12px;background:#fff}
.guide-step-number{display:inline-block;margin-bottom:6px;color:#1b7189;font-size:19px;font-weight:800;letter-spacing:.05em}
.guide-steps h4{font-size:14px;line-height:1.6;margin:0 0 6px}
.guide-steps p{margin:0;color:#56707b;font-size:12px;line-height:1.8}
.guide-fold{border:1px solid #dce6eb;border-radius:12px;margin:9px 0;background:#fff;overflow:hidden}
.guide-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;min-height:48px;padding:10px 14px;box-sizing:border-box;font-size:13px;font-weight:750;line-height:1.6}
.guide-fold>summary::-webkit-details-marker{display:none}
.guide-fold>summary::after{content:'＋';color:#658590;font-size:18px;flex-shrink:0}
.guide-fold[open]>summary{background:#f5f9fa;border-bottom:1px solid #e4edf0}
.guide-fold[open]>summary::after{content:'−'}
.guide-fold-body{padding:14px;color:#486571;line-height:1.9}
.guide-fold-body p{margin:0 0 10px}.guide-fold-body p:last-child{margin-bottom:0}
.guide-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;margin-bottom:12px}
.guide-legend>div{display:flex;align-items:flex-start;gap:8px;font-size:12px}
.guide-swatch{display:block;width:13px;height:13px;border-radius:3px;background:var(--guide-color);border:1px solid #0002;margin-top:5px;flex:0 0 13px}
.guide-last-note{font-size:12px;color:#65808a;margin:18px 0 10px}
.guide-renewed .tutorial-notice{font-size:12px;padding:12px;margin:12px 0 0;line-height:1.85}
.guide-footer{flex:0 0 auto;border-top:1px solid #e1eaee;padding:12px 24px 16px;background:#fff}
.guide-renewed .tutorial-done{display:flex;align-items:center;justify-content:center;gap:12px;margin:0;background:#195f73;font-size:14px;min-height:46px}
.guide-renewed button:focus-visible,.guide-fold>summary:focus-visible{outline:3px solid #4f9bb5;outline-offset:-3px}
@media(max-width:520px){.tutorial-modal.guide-renewed{max-height:calc(100dvh - 32px);border-radius:18px}.guide-renewed .tutorial-header{padding:15px 17px 12px}.guide-renewed .tutorial-title{font-size:20px}.guide-content{padding:14px 15px 4px;scrollbar-gutter:auto}.guide-hero{padding:16px;grid-template-columns:minmax(0,1fr) 88px;gap:10px}.guide-hero h3{font-size:19px}.guide-hero p{font-size:12px}.guide-key-note{font-size:11px;padding:10px;margin-bottom:19px}.guide-steps{grid-template-columns:1fr;gap:8px}.guide-steps li{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:13px}.guide-step-number{margin:0;font-size:18px}.guide-steps h4{margin-bottom:3px}.guide-section-title{font-size:14px}.guide-legend{grid-template-columns:1fr}.guide-footer{padding:10px 15px 13px}.guide-fold>summary{padding:11px 12px}.guide-fold-body{padding:12px;font-size:12px}}
html[data-map-theme="dark"] .tutorial-modal.guide-renewed{background:#1d2d38;color:#eef5f8;border-color:#46616f}
html[data-map-theme="dark"] .guide-renewed .tutorial-header,html[data-map-theme="dark"] .guide-footer,html[data-map-theme="dark"] .guide-steps li,html[data-map-theme="dark"] .guide-fold{background:#233743;border-color:#405965}
html[data-map-theme="dark"] .guide-hero,html[data-map-theme="dark"] .guide-fold[open]>summary{background:#2a4350}
html[data-map-theme="dark"] .guide-content p,html[data-map-theme="dark"] .guide-fold-body,html[data-map-theme="dark"] .guide-kicker{color:#bdd1db}
html[data-map-theme="dark"] .guide-step-number{color:#8ccde0}
html[data-map-theme="dark"] .guide-key-note,html[data-map-theme="dark"] .guide-renewed .tutorial-notice{background:#403b2c;color:#f1dcac;border-color:#7d714e}

.guide-region-notice{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin-bottom:13px}
.guide-region-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:6px;border:1px solid #edc5b7;background:#fff3ec;color:#a04729;font-size:12px;font-weight:800}
.guide-region-notice p{margin:0;color:#6b7b82;font-size:11px}
html[data-map-theme="dark"] .guide-region-badge{background:#44332d;border-color:#8e6456;color:#f3c2a8}
