html{scroll-behavior:smooth}:root{color-scheme:light;--ink: #0f2740;--muted: #516b87;--paper: #f4f7fb;--panel: rgba(255, 255, 255, .78);--line: rgba(145, 171, 204, .45);--status-low: #17b26a;--status-medium: #f6b938;--status-high: #e0473a;--status-very-high: #8c2018;--status-unknown: #8d96a4}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Zen Kaku Gothic New,sans-serif;background:linear-gradient(180deg,#7fb8ff 0%,#add1ff 28%,#e0efff 60%,#edf5ff 100%)}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;position:relative;overflow:hidden;padding:12px 0 92px}.sky-layer{position:absolute;border-radius:999px;filter:blur(2px);pointer-events:none;opacity:.45}.sky-layer-one{width:280px;height:80px;top:34px;right:-60px;background:radial-gradient(ellipse at center,rgba(255,255,255,.95) 0%,rgba(255,255,255,0) 74%)}.sky-layer-two{width:220px;height:70px;top:220px;left:-80px;background:radial-gradient(ellipse at center,rgba(255,255,255,.9) 0%,rgba(255,255,255,0) 74%)}.app{position:relative;z-index:2;max-width:860px;margin:0 auto;padding:0 12px}.weather-hero{position:relative;border-radius:14px;padding:8px 10px;background:linear-gradient(145deg,#2979d5 0%,#4f99ec 48%,#7db4f4 100%);box-shadow:0 10px 18px #1039702e;color:#fff;overflow:hidden;animation:float-up .45s ease both}.weather-hero.compact:before{content:"";position:absolute;width:120px;height:120px;top:-70px;right:-38px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.3) 0%,rgba(255,255,255,0) 72%)}.hero-top{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.hero-top.compact{align-items:center;gap:8px}.header-title.single-line{position:relative;z-index:1;font-size:clamp(16px,3.8vw,20px);font-weight:900;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-time-card{position:relative;z-index:1;display:inline-flex;flex-direction:column;align-items:flex-end;gap:1px;border-radius:11px;padding:5px 9px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.24)}.hero-time-card.compact{flex-shrink:0;border-radius:999px;flex-direction:row;gap:6px;padding:4px 8px;background:rgba(255,255,255,.18)}.meta-label{font-size:10px;opacity:.78;letter-spacing:.04em}.meta-value{font-size:11px;font-weight:800}.decision-strip{margin-top:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.decision-card{border-radius:13px;padding:9px;background:rgba(246,252,255,.82);color:#12314e;border:1px solid rgba(151,186,221,.42);display:flex;flex-direction:column;gap:2px}.decision-card.now{background:linear-gradient(180deg,rgba(237,249,242,.9),rgba(216,243,226,.9));border-color:#5ab68266}.decision-card.time{background:linear-gradient(180deg,rgba(240,247,255,.9),rgba(221,237,255,.9));border-color:#6ea4de66}.decision-label{font-size:10px;font-weight:800;color:#5a7390;letter-spacing:.02em}.decision-value{font-size:16px;line-height:1.1;font-weight:900;color:#143557}.decision-note{font-size:11px;font-weight:700;color:#5f7894}.decision-trial{margin-top:1px;font-size:10px;font-weight:700;color:#7a8ea5}.decision-card.now .decision-value{color:#0d7a43}.decision-card.time .decision-value{color:#245e97}.hero-actions{margin-top:8px;display:grid;grid-template-columns:1fr auto;gap:8px}.hero-actions.living{grid-template-columns:1fr auto auto}.hero-actions.single{grid-template-columns:1fr}.visitor-actions-row{display:grid;grid-template-columns:1fr auto;gap:8px}.action-btn{border:1px solid rgba(141,171,205,.5);border-radius:12px;background:rgba(248,252,255,.84);color:#2f5274;font-size:12px;font-weight:800;padding:9px 10px;line-height:1}.action-btn.active{background:rgba(59,124,202,.16);border-color:#2f6cb973}.action-btn:disabled{opacity:.6}.action-btn.secondary{min-width:78px}.action-btn.tertiary{min-width:74px}.action-btn.full{width:100%}.base-selector{margin-top:8px;border-radius:14px;padding:10px;background:rgba(245,250,255,.82);border:1px solid rgba(143,173,206,.46)}.base-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.base-label{font-size:12px;font-weight:900;color:#355878}.base-current-btn{border:1px solid rgba(124,157,194,.55);border-radius:999px;background:rgba(255,255,255,.9);color:#2e4f71;font-size:11px;font-weight:800;padding:6px 10px}.base-current-btn.active{background:rgba(58,127,206,.14);border-color:#3a7fce8c}.base-current-btn:disabled{opacity:.6}.base-select{margin-top:8px;width:100%;border:1px solid rgba(153,178,206,.58);border-radius:10px;background:rgba(255,255,255,.88);color:#365877;font-size:13px;font-weight:800;padding:8px 10px}.base-select:disabled{opacity:.6}.base-note{margin-top:8px;font-size:11px;font-weight:700;color:#5b7591}.base-feedback{margin-top:6px;font-size:11px;line-height:1.45;font-weight:700;color:#3d6187;padding:6px 8px;border-radius:10px;background:rgba(222,236,253,.65);border:1px solid rgba(151,180,211,.45)}.pull-refresh-indicator{position:fixed;top:0;left:50%;z-index:35;border-radius:999px;padding:7px 14px;font-size:12px;font-weight:800;color:#295179;background:rgba(245,251,255,.93);border:1px solid rgba(143,173,206,.5);box-shadow:0 8px 18px #11305433;opacity:0;pointer-events:none;transition:opacity .16s ease}.pull-refresh-indicator.visible{opacity:1}.content,.visit-content,.commute-content{margin-top:10px;display:flex;flex-direction:column;gap:14px}.panel{border-radius:20px;background:var(--panel);border:1px solid rgba(255,255,255,.75);backdrop-filter:blur(12px);box-shadow:0 12px 24px #1938601f;padding:14px;animation:float-up .52s ease both}.content .panel:nth-of-type(1),.visit-content .panel:nth-of-type(1),.commute-content .panel:nth-of-type(1){animation-delay:.08s}.content .panel:nth-of-type(2),.visit-content .panel:nth-of-type(2),.commute-content .panel:nth-of-type(2){animation-delay:.14s}.content .panel:nth-of-type(3),.visit-content .panel:nth-of-type(3),.commute-content .panel:nth-of-type(3){animation-delay:.2s}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.panel-title{font-size:18px;font-weight:900;letter-spacing:.01em}.panel-sub{margin-top:3px;color:var(--muted);font-size:12px;font-weight:700}.panel-chip{flex-shrink:0;border-radius:999px;font-size:11px;font-weight:700;padding:6px 10px;color:#32506f;background:rgba(223,235,250,.92);border:1px solid rgba(158,187,218,.75)}.panel-chip.muted{color:#5e7389}.sort-compact{margin-bottom:10px;display:flex;align-items:center;gap:8px}.sort-label{font-size:12px;font-weight:800;color:#446584}.sort-select{min-width:138px;border:1px solid rgba(149,176,208,.5);border-radius:10px;background:rgba(246,251,255,.9);color:#4c6784;font-size:12px;font-weight:800;padding:7px 10px}.list-panel{overflow:hidden}.list-table{border-radius:14px;overflow-x:auto;background:rgba(248,252,255,.9);border:1px solid var(--line)}.list-row{min-width:660px;display:grid;grid-template-columns:.52fr 2.2fr .9fr .95fr .76fr .95fr;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid rgba(157,182,212,.36);font-size:13px;font-weight:700;background:rgba(255,255,255,.72)}.list-row:last-child{border-bottom:none}.list-header{font-size:11px;letter-spacing:.03em;color:#5c7490;text-transform:uppercase;font-weight:800;background:rgba(228,240,255,.92)}.list-rank{display:flex;justify-content:center}.rank-badge{min-width:28px;height:24px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#264c74;background:rgba(206,226,249,.7)}.list-name{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:900}.favorite-btn{width:20px;height:20px;border-radius:6px;border:1px solid rgba(147,169,196,.6);background:rgba(255,255,255,.88);color:#8ca0b8;font-size:12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer}.favorite-btn.active{color:#f5b62f;border-color:#e8b02b99}.list-dot{width:11px;height:11px;border-radius:50%;box-shadow:0 0 0 4px #fffc}.list-pill{display:inline-flex;justify-content:center;align-items:center;padding:3px 10px;border-radius:999px;background:rgba(28,47,73,.08);font-size:12px;font-weight:800}.list-delay{color:#3b5573}.list-distance{color:#355a81}.list-forecast{color:#6b8198;font-style:italic}.list-row[data-status=low] .list-pill{color:var(--status-low)}.list-row[data-status=medium] .list-pill{color:var(--status-medium)}.list-row[data-status=high] .list-pill,.list-row[data-status=very_high] .list-pill{color:var(--status-high)}.list-row[data-status=unknown] .list-pill{color:var(--status-unknown)}.trend-chart{position:relative;height:236px;overflow-x:auto;overflow-y:hidden;border-radius:14px;border:1px solid var(--line);background:rgba(248,252,255,.82);padding:6px}.trend-scroll{min-width:720px;height:100%}.trend-chart canvas{width:100%!important;height:100%!important}.visitor-route-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.visitor-route-name{font-size:18px;line-height:1.3}.visitor-status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:900;border:1px solid rgba(157,183,213,.58);background:rgba(246,251,255,.88)}.visitor-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.visitor-kpi-single{grid-template-columns:minmax(0,1fr)}.visitor-kpi{border-radius:12px;padding:10px;border:1px solid rgba(154,181,209,.45);background:rgba(245,251,255,.78)}.visitor-kpi-label{display:block;font-size:11px;font-weight:800;color:#5b7694}.visitor-kpi-value{display:block;margin-top:4px;font-size:20px;font-weight:900;color:#1f4f81}.visitor-note-row{margin-top:10px;display:flex;align-items:flex-start;gap:8px}.visitor-note-label{flex-shrink:0;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:800;color:#3b5d81;background:rgba(211,230,252,.74)}.visitor-note-text{font-size:12px;font-weight:700;color:#446382;line-height:1.5}.visitor-empty{border-radius:12px;padding:16px 14px;border:1px dashed rgba(156,181,208,.7);background:rgba(245,250,255,.75);color:#587593;font-size:13px;font-weight:700}.visitor-stop-overview-note{border-radius:12px;padding:10px 12px;background:rgba(241,248,255,.78);border:1px solid rgba(156,184,214,.5);color:#446684;font-size:12px;font-weight:700}.direction-switch{margin-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.direction-btn{border:1px solid rgba(149,176,208,.5);border-radius:12px;background:rgba(246,251,255,.9);color:#4c6784;font-size:12px;font-weight:900;padding:9px 10px}.direction-btn.active{color:#1f4f81;border-color:#3a7fce8c;background:rgba(60,131,208,.16)}.visitor-stop-list{display:flex;flex-direction:column;gap:10px}.visitor-stop-card{border-radius:14px;padding:10px;border:1px solid rgba(155,182,210,.5);background:rgba(246,251,255,.84)}.visitor-stop-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.commute-single-table{border-radius:14px;overflow-x:auto;overflow-y:hidden;border:1px solid rgba(157,183,213,.42);background:rgba(248,252,255,.92)}.commute-single-row{min-width:760px;display:grid;grid-template-columns:1.8fr repeat(6,minmax(0,1fr));gap:8px;align-items:center;padding:10px 12px;font-size:13px;font-weight:800;color:#284d74;border-bottom:1px solid rgba(157,183,213,.35)}.commute-single-row-compact{min-width:540px;grid-template-columns:1.8fr repeat(3,minmax(0,1fr))}.commute-single-row:last-child{border-bottom:none}.commute-single-row.header{font-size:11px;color:#5c7490;text-transform:uppercase;background:rgba(228,240,255,.92)}.commute-trend-chart{margin-top:10px}.commute-charts{margin-top:10px;display:flex;flex-direction:column;gap:10px}.commute-chart-card{display:flex;flex-direction:column;gap:6px}.commute-chart-title{margin-top:2px}.commute-kpi-grid-simple{grid-template-columns:repeat(3,minmax(0,1fr))}.visitor-stop-name{font-size:15px;line-height:1.25}.visitor-stop-kpi{display:inline-flex;align-items:center;gap:8px}.visitor-stop-delay{font-size:18px;font-weight:900;color:#1f4f81}.visitor-stop-status{font-size:12px;font-weight:900}.mini-chart{margin-top:8px;height:190px;overflow-x:auto;overflow-y:hidden;border-radius:10px;border:1px solid rgba(155,184,213,.42);background:rgba(255,255,255,.78);padding:4px}.mini-chart-scroll{min-width:620px;height:100%}.mini-chart canvas{width:100%!important;height:100%!important}.commute-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.commute-kpi{border-radius:12px;padding:10px;border:1px solid rgba(154,181,209,.45);background:rgba(245,251,255,.78)}.commute-kpi-label{display:block;font-size:11px;font-weight:800;color:#5b7694}.commute-kpi-value{display:block;margin-top:4px;font-size:20px;font-weight:900;color:#1f4f81}.commute-empty{margin-top:10px;border-radius:12px;padding:14px 12px;border:1px dashed rgba(156,181,208,.7);background:rgba(245,250,255,.75);color:#587593;font-size:13px;font-weight:700}.map-panel{padding-bottom:12px}.map{position:relative;width:100%;height:clamp(340px,44vh,500px);border-radius:16px;overflow:hidden;background:#e7ddcb;touch-action:none;cursor:grab;border:1px solid rgba(152,172,196,.45)}.map.dragging{cursor:grabbing}.map-viewport{position:absolute;left:50%;top:50%;width:var(--map-base-width);height:var(--map-base-height);transform:translate(-50%,-50%);transform-origin:center;will-change:transform}.map-bg{position:absolute;inset:0;background-image:url(/assets/kumamoto_map.svg);background-size:100% 100%;background-position:center;filter:saturate(1.02) contrast(1.02)}.map-overlay{position:absolute;inset:0;pointer-events:none}.pointer-layer{position:absolute;inset:0}.pointer-layer line{stroke:#16223785;stroke-width:2;stroke-linecap:round}.pointer-layer circle{fill:#0f1f34;stroke:#ffffffe6;stroke-width:1.6}.bubble{position:absolute;width:clamp(168px,42vw,206px);padding:9px 9px 9px 8px;border-radius:14px;display:grid;grid-template-columns:42px 1fr;gap:9px;border:1px solid rgba(15,35,62,.08);background:rgba(255,255,255,.93);box-shadow:0 8px 16px #1426441f}.bubble:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:4px;border-radius:999px;background:currentColor}.bubble-icon{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.65);border:1px solid rgba(11,28,49,.14);display:grid;place-items:center}.bubble-icon img{width:32px;height:32px}.bubble-title{font-size:14px;line-height:1.2;font-weight:900;color:#0d223d}.bubble-status{margin-top:2px;display:inline-flex;font-size:12px;font-weight:800;padding:3px 8px;border-radius:999px;background:rgba(45,64,88,.08);color:currentColor}.bubble-delay{margin-top:3px;font-size:11px;color:#4d6480;font-weight:700}.status-low{color:var(--status-low)}.status-medium{color:var(--status-medium)}.status-high{color:var(--status-high)}.status-very_high{color:var(--status-very-high)}.status-unknown{color:var(--status-unknown)}.page-tabs{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translate(-50%);width:min(440px,calc(100% - 24px));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:rgba(255,255,255,.9);border-radius:999px;border:1px solid rgba(130,159,194,.4);box-shadow:0 14px 32px #122c4c33;backdrop-filter:blur(8px);padding:7px;z-index:20}.page-tab{border:none;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 6px;font-size:13px;font-weight:900;color:#335476;background:rgba(216,232,250,.65)}.page-tab.active{background:linear-gradient(145deg,#317fd8 0%,#5ca0eb 100%);color:#fff;box-shadow:0 8px 16px #316fba3d}.page-tab:active{transform:translateY(1px)}@media (min-width: 900px){.app{padding-inline:0}}@media (max-width: 720px){.app{padding:0 10px}.weather-hero{border-radius:16px;padding:7px 9px}.header-title.single-line{font-size:15px}.hero-time-card.compact{padding:3px 7px;gap:5px}.hero-actions,.hero-actions.living,.visitor-actions-row{grid-template-columns:1fr}.action-btn.secondary,.action-btn.tertiary{width:100%}.panel{border-radius:17px;padding:11px}.list-row{min-width:620px}.trend-chart{height:210px}.trend-scroll{min-width:650px}.map{height:clamp(320px,46vh,440px)}.bubble{width:clamp(154px,52vw,196px);padding:8px;grid-template-columns:38px 1fr;gap:8px}.bubble-icon{width:36px;height:36px}.bubble-icon img{width:29px;height:29px}.visitor-route-row{flex-direction:column;align-items:flex-start}.visitor-kpi-grid,.commute-kpi-grid{grid-template-columns:1fr}.visitor-stop-head{flex-direction:column;align-items:flex-start}.mini-chart{height:176px}.mini-chart-scroll{min-width:580px}}@media (max-width: 420px){.app-shell{padding-top:10px}.header-title.single-line{font-size:14px}.meta-value,.base-note{font-size:10px}.panel-title{font-size:16px}.list-row{min-width:600px}.page-tabs{width:calc(100% - 16px)}}@keyframes float-up{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
