:root{--green:#0b6b47;--green2:#16865d;--mint:#e8f4ee;--orange:#e97824;--ink:#18231e;--muted:#66736d;--line:#d8e1dc;--paper:#fff;--bg:#f2f5f3;--danger:#bd2d39}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif}.app-header{min-height:108px;padding:18px clamp(18px,3vw,40px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--paper);border-top:5px solid var(--green);border-bottom:1px solid var(--line)}.back{color:var(--green);font-size:.78rem;font-weight:750;text-decoration:none}.back:before{content:"← ";}.app-header h1{margin:4px 0 0;font-size:clamp(1.4rem,3vw,2rem);letter-spacing:.02em}.app-header p{margin:4px 0 0;color:var(--muted);font-size:.86rem}.service-badge{flex:none;border:1px solid var(--line);padding:8px 13px;background:#f7f9f8;font-size:.82rem;font-weight:750}.service-badge.running{border-color:#95c9b2;background:var(--mint);color:var(--green)}.service-badge.off{border-color:#e5b5b8;background:#fff1f2;color:var(--danger)}.workspace{height:calc(100dvh - 108px);min-height:570px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(350px,.75fr);gap:0}.map-panel{position:relative;min-width:0;border-right:1px solid var(--line)}#map{width:100%;height:100%;background:#f7faf8}.leaflet-tile-pane{filter:grayscale(.78) contrast(.94) brightness(1.04)}.leaflet-control-attribution{font-size:9px}.map-actions{position:absolute;z-index:500;top:14px;right:14px;display:flex;gap:7px}.map-actions button{height:40px;border:1px solid #aebbb5;background:#fff;color:var(--ink);padding:0 13px;font-weight:750;box-shadow:0 2px 10px #173c2920;cursor:pointer}.map-actions button:hover{border-color:var(--green);color:var(--green)}.map-legend{position:absolute;z-index:500;left:14px;bottom:18px;display:flex;align-items:center;gap:7px;padding:8px 11px;background:#fffffff2;border:1px solid var(--line);box-shadow:0 2px 10px #173c2918;font-size:.72rem;font-weight:700}.line{display:inline-block;width:22px;border-top:4px solid}.line.west{border-color:var(--green)}.line.east{border-color:var(--orange);margin-left:7px}.stop-marker{width:14px;height:14px;border:3px solid #fff;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px var(--green),0 2px 5px #0004}.stop-marker.selected{width:20px;height:20px;background:#fff;border:5px solid var(--green);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--green),0 3px 9px #0004}.leaflet-tooltip.stop-tooltip{border:0;border-radius:0;padding:5px 8px;background:#17251e;color:#fff;box-shadow:none;font-weight:750}.leaflet-tooltip-top:before{border-top-color:#17251e}.info-panel{height:100%;overflow:auto;background:var(--paper);padding:24px clamp(18px,3vw,30px)}.search-wrap{position:relative;margin-bottom:22px}.search-wrap>label,.eyebrow{display:block;margin-bottom:7px;color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.08em}.search-row{display:flex;border:1px solid #9facA5;background:#fff}.search-row:focus-within{outline:3px solid #0b6b4730;border-color:var(--green)}#stop-search{min-width:0;flex:1;height:46px;border:0;padding:0 13px;font:inherit;outline:0}#clear-search{width:44px;border:0;background:transparent;color:var(--muted);font-size:1.4rem;cursor:pointer}.search-results{position:absolute;z-index:1000;top:73px;width:100%;max-height:280px;overflow:auto;border:1px solid var(--line);background:#fff;box-shadow:0 12px 26px #173c2928}.search-result{display:block;width:100%;padding:12px 14px;border:0;border-bottom:1px solid #edf1ef;background:#fff;text-align:left;font:inherit;font-weight:700;cursor:pointer}.search-result:hover,.search-result:focus{background:var(--mint);outline:0}.state-card{padding:22px;background:var(--bg);color:var(--muted)}.state-card.error{background:#fff1f2;color:var(--danger)}.stop-heading{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:15px}.stop-heading h2{margin:0;font-size:1.65rem}.stop-heading button{width:42px;height:42px;border:1px solid var(--line);background:#fff;color:var(--orange);font-size:1.6rem;cursor:pointer}.stop-heading button[aria-pressed="true"]{background:#fff8df}.next-service{margin:18px 0;padding:17px 18px;border-left:5px solid var(--green);background:var(--mint)}.next-label{color:var(--green);font-size:.74rem;font-weight:850}.next-main{display:flex;align-items:baseline;gap:10px;margin-top:2px}.next-time{font-size:2rem;font-weight:850;font-variant-numeric:tabular-nums}.next-destination{font-weight:750}.next-minutes{margin-left:auto;color:var(--green);font-size:1.05rem;font-weight:850}.next-empty{font-weight:750;color:var(--muted)}.direction-tabs{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 12px;border:1px solid var(--line)}.direction-tabs button{min-height:40px;border:0;border-right:1px solid var(--line);background:#fff;font-weight:700;cursor:pointer}.direction-tabs button:last-child{border:0}.direction-tabs button.active{background:var(--green);color:#fff}.departures{display:grid;gap:7px}.departure{display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);background:#fff}.departure.past{opacity:.48}.departure.next{border-color:var(--green);box-shadow:inset 4px 0 var(--green);background:#fbfefc}.departure time{font-size:1.08rem;font-weight:850;font-variant-numeric:tabular-nums}.departure .destination{font-size:.86rem;font-weight:700}.departure .tag{color:var(--green);font-size:.7rem;font-weight:850}.service-note{display:grid;gap:4px;margin-top:24px;padding:14px;border:1px solid var(--line);background:var(--bg);font-size:.8rem}.service-note strong{color:var(--green)}.data-note{margin-top:14px;color:var(--muted);font-size:.76rem}.data-note summary{cursor:pointer;font-weight:750}.data-note a{color:var(--green)}.user-location{width:16px;height:16px;border:4px solid #fff;border-radius:50%;background:#2275e6;box-shadow:0 0 0 3px #2275e6,0 0 0 10px #2275e633}@media(max-width:760px){.app-header{min-height:92px;padding:13px 16px}.app-header p{display:none}.service-badge{padding:7px 9px;font-size:.72rem}.workspace{height:auto;min-height:calc(100dvh - 92px);display:flex;flex-direction:column}.map-panel{height:43dvh;min-height:300px;border-right:0;border-bottom:1px solid var(--line)}.info-panel{height:auto;min-height:57dvh;overflow:visible;padding:18px 16px 32px}.map-actions{top:10px;right:10px}.map-actions button{height:38px;padding:0 10px;font-size:.76rem}.map-legend{left:8px;bottom:8px;right:8px;justify-content:center;font-size:.65rem}.stop-heading h2{font-size:1.4rem}.next-time{font-size:1.75rem}}@media(max-width:390px){.service-badge{max-width:98px;text-align:center}.departure{grid-template-columns:54px 1fr}.departure .tag{display:none}.map-actions button:first-child{max-width:130px}.app-header h1{font-size:1.2rem}}
