:root { color-scheme: light; --bg: #f5f6f1; --panel: #fff; --text: #182c36; --muted: #52636c; --line: #bcc8cb; --area: #dce8c8; --road: #e6e3dc; --paved: #d9d7d2; --ground: #ece0c8; --building: #bcc6cc; --room: #ffffff; --corridor: #e6e3dc; --rest: #b9d3f2; --event: #8ccbe0; --accent: #006b85; --selected: #ffbb54; --quiet: #218548; --busy: #e0a418; --crowded: #c83339; --unknown: #78818a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
header { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: 10px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); pointer-events: none; }
header > * { pointer-events: auto; }
@media (max-width: 599px) { header h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
h1 { font-size: 14px; margin: 0 0 6px; color: var(--muted); }
button, input { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
button { min-height: 44px; min-width: 44px; padding: 7px 12px; cursor: pointer; }
button[aria-pressed="true"] { background: var(--accent); color: var(--panel); border-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-bar { display: flex; align-items: center; height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px #0003; } .search-icon { padding-left: 12px; font-size: 24px; line-height: 1; } .search-bar input { min-width: 0; flex: 1; padding: 8px; border: 0; background: transparent; outline-offset: -3px; } .search-bar button { border: 0; background: transparent; }
.search-bar input::placeholder { color: var(--muted); opacity: 1; }
#filters { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; } #filters button { white-space: nowrap; }
#results { position: absolute; top: 58px; left: 12px; right: 12px; max-height: 45vh; overflow-y: auto; margin: 0; padding: 8px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 20px #0003; z-index: 1; }
@media (min-width: 600px) { #results { top: 85px; } }
#results button { width: 100%; text-align: left; margin: 3px 0; }
main { flex: 1; min-height: 0; position: relative; } #map { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; --u: 1; --pixel: 1; }
#message { position: absolute; z-index: 3; top: 0; left: 12px; right: 12px; padding: 12px; background: var(--panel); border-radius: 10px; overflow-wrap: anywhere; }
#controls { position: absolute; right: max(10px, env(safe-area-inset-right)); top: 110px; display: grid; gap: 8px; }
@media (min-width: 600px) { #controls { top: 136px; } }
#attribution { display: flex; flex-direction: column; align-items: flex-end; text-align: right; position: absolute; right: max(4px, env(safe-area-inset-right)); bottom: calc(90px + env(safe-area-inset-bottom)); margin-left: 4px; padding: 1px 4px; background: var(--panel); color: var(--muted); font-size: 10px; pointer-events: none; }
#floors { display: grid; gap: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px #0002; } #controls button { box-shadow: 0 2px 6px #0002; min-height: 36px; min-width: 44px; padding: 4px 8px; font-size: 14px; } #floors button { border-radius: 0; box-shadow: none; } #floors button + button { border-top: 0; }
#filters button { min-height: 36px; padding: 4px 12px; font-size: 15px; box-shadow: 0 2px 6px #0003; }
#filters button { display: flex; align-items: center; gap: 5px; } #filters .ui-icon { width: 16px; height: 16px; }
#compass { position: absolute; left: max(10px, env(safe-area-inset-left)); top: 110px; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); box-shadow: 0 2px 6px #0002; pointer-events: none; }
@media (min-width: 600px) { #compass { top: 136px; } }
#compass svg { width: 100%; height: 100%; } #compass .compass-north { fill: #d8383a; } #compass .compass-south { fill: var(--muted); } #compass text { fill: var(--text); font-size: 9px; font-weight: 700; }
polygon { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.area { fill: var(--area); } .area.paved { fill: var(--paved); } .area.ground { fill: var(--ground); } .area.has-events { fill: var(--event); } .noselect { pointer-events: none; } .road { fill: var(--road); stroke: none; pointer-events: none; } .building { fill: var(--building); } .room { fill: var(--room); } .room.has-events { fill: var(--event); } .room.rest { fill: var(--rest); } .corridor { fill: var(--corridor); stroke: none; pointer-events: none; }
.selected { fill: var(--selected); stroke: var(--accent); stroke-width: 3; } .building.selected { fill: var(--building); } .matched { stroke: var(--accent); stroke-width: 3; } .dimmed { opacity: .3; }
.fixed { transform: scale(calc(var(--u) * var(--pixel))); }
#map:not(.zoom-labels) .zoom-label { display: none; } .booth-label text { font-size: 11px; }
.anchor { pointer-events: none; } text { fill: var(--text); font-size: 12px; font-weight: 600; } .building-label text { font-size: 13px; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.label-hidden { visibility: hidden; }
#map:not(.zoom-rooms) .room-label { display: none; } #map.zoom-rooms .building-detail { display: none; } #map:not(.zoom-points) .point:not(.selected):not(.matched):not(.landmark-point) { display: none; } .point { cursor: pointer; } .point .point-background { stroke: var(--accent); stroke-width: 1.5; } .point.selected .point-background { stroke-width: 3; }
#map .anchor[data-selected="true"] .fixed { display: block; }
.status-mark { pointer-events: none; } #map:not(.zoom-rooms) .room-status { display: none; } #map:not(.zoom-labels) .booth-status:not(.matched) { display: none; } .status-mark circle { stroke: var(--panel); stroke-width: 2; } .quiet { --tone: var(--quiet); } .busy { --tone: var(--busy); } .crowded { --tone: var(--crowded); } .unknown { --tone: var(--unknown); } circle.quiet, circle.busy, circle.crowded, circle.unknown { fill: var(--tone); }
#sheet { position: absolute; bottom: calc(90px + env(safe-area-inset-bottom)); left: 0; right: 0; max-height: min(40vh, calc(100vh - 470px - env(safe-area-inset-bottom)), calc(50vh - 110px - env(safe-area-inset-bottom))); overflow-y: auto; background: var(--panel); padding: 12px 16px 16px; border-radius: 18px 18px 0 0; box-shadow: 0 -2px 12px #0002; z-index: 1; }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; } .legend-item { display: flex; align-items: center; gap: 8px; } .legend-item svg, .legend-swatch { width: 30px; height: 30px; flex: none; } .legend-swatch { border: 1px solid var(--line); border-radius: 4px; }
#bottom-nav { position: absolute; z-index: 2; bottom: calc(10px + env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); height: 70px; display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px #0003; }
#bottom-nav a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text); text-decoration: none; font-size: 11px; white-space: nowrap; }
.ui-icon { width: 24px; height: 24px; flex: none; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; } h2 { font-size: 18px; margin: 0; } h3 { font-size: 17px; margin: 8px 0; } article + article { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 8px; } article p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; } .badge { display: inline-block; border: 2px solid var(--tone); padding: 2px 8px; border-radius: 20px; margin: 6px 8px 0 0; } small { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Selection wins over event and kind colors. */
.room.selected, .area.selected { fill: var(--selected); }
.place-list { list-style: none; padding: 0; margin: 8px 0 0; }
.place-list button { width: 100%; text-align: left; margin: 3px 0; overflow-wrap: anywhere; }
.place-list span, .place-list small { display: block; }
.event-select { text-align: left; color: var(--accent); overflow-wrap: anywhere; }
/* 受付・バス乗り場は引いた状態でも出すが、ほかのアイコンが出る縮尺までは小さく(6割)して地図をふさがない。 */
#map:not(.zoom-points) .landmark-point:not(.selected):not(.matched) .fixed { transform: scale(calc(var(--u) * var(--pixel) * .6)); }
/* 企画の詳細: 片方の日だけの開催、時間、公式サイトへのボタン */
.event-days { display: inline-block; font-weight: 700; color: var(--accent); }
.event-time { display: flex; align-items: center; gap: 6px; } .event-time .ui-icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.detail-link { display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px; margin: 8px 0 2px; padding: 7px 16px; border-radius: 18px; background: var(--accent); color: var(--panel); font-weight: 700; text-decoration: none; }
.detail-link small { color: inherit; opacity: .85; font-weight: 400; font-size: 12px; }
.detail-link:focus-visible { outline-offset: 3px; }
.departures { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 4px 0 8px; } .departures dt { font-weight: 700; } .departures dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.departure-next { font-weight: 700; color: var(--accent); } .departure-later, .departure-end { color: var(--muted); } .departure-note { display: block; margin-bottom: 4px; }
