:root{color-scheme:light;--ink:#172c26;--muted:#536961;--green:#174a3b;--lime:#d6e88b;--paper:#f7f6f0;--line:#e1e5d9;--panel:#fffef9;--shadow:0 12px 30px #142d2924;--top:68px;--side:322px;--map-width:176px;font:14px/1.5 "Inter","Noto Sans JP","Hiragino Sans","Yu Gothic UI",Meiryo,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);overflow:hidden}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #8caf36;outline-offset:3px}[hidden]{display:none!important}
.top{height:var(--top);display:flex;align-items:center;gap:26px;padding:0 22px;border-bottom:1px solid var(--line);background:#fbfaf5;z-index:20;position:relative}.identity{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:calc(var(--side) - 22px)}.identity b,.identity small{display:block}.identity b{font-size:18px;letter-spacing:.035em;line-height:1.25}.identity small{font-size:11px;color:var(--muted);margin-top:4px}.emblem{width:39px;height:39px;border-radius:12px;background:#163e33;color:#deedaa;display:grid;grid-template-columns:repeat(2,7px);grid-template-rows:repeat(2,7px);gap:3px;place-content:center;flex-shrink:0}.emblem i{border:1.5px solid currentColor;border-radius:1px}.emblem i:nth-child(3){background:#deedaa}
.breadcrumbs{display:flex;align-items:center;gap:10px;min-width:0;flex:1;color:#687a71;white-space:nowrap;font-size:12px;overflow:hidden}.breadcrumbs button{border:0;background:none;padding:5px 0;color:#466658;flex:none}.breadcrumbs .current{font-weight:750;color:var(--ink);overflow:hidden;text-overflow:ellipsis}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dce3d6;background:#fffdf8;border-radius:11px;font-size:17px;font-weight:760;flex-shrink:0}
.layout{display:grid;height:calc(100dvh - var(--top));grid-template-columns:var(--side) minmax(0,1fr)}.sidebar{background:var(--paper);height:100%;border-right:1px solid #dee3d8;display:flex;flex-direction:column;z-index:9;overflow:hidden;min-height:0}.sidebar-head{padding:22px 22px 16px}.location-type{color:var(--green);font-size:10.5px;font-weight:760;letter-spacing:.09em;display:flex;gap:7px;align-items:center}.location-type span,.tip-dot{width:7px;height:7px;border-radius:50%;background:#8fa64c;flex:none}.sidebar h1{font-size:25px;line-height:1.25;letter-spacing:-.025em;margin:7px 0 8px;overflow-wrap:anywhere}.sidebar-head p{margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.62}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:730;border:1px solid #dce4d7;border-radius:11px;background:#fcfdf6;min-height:40px;padding:0 13px;white-space:nowrap}.primary{border-color:var(--green);background:var(--green);color:#fbfff2}.primary:hover{background:#22634f}.button.wide{width:100%;justify-content:space-between;min-height:44px}.directory{padding:0 22px 12px;display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}.directory-head{display:flex;align-items:center;justify-content:space-between;margin:3px 0 8px}.directory-head h2{margin:0;font-size:12px;letter-spacing:.04em}.directory-head span{font-size:10px;color:var(--muted)}.search{min-height:38px;border:1px solid #dbe2d4;border-radius:9px;background:#fffef9;display:flex;gap:9px;align-items:center;padding:0 10px}.search-icon{width:11px;height:11px;border:1.6px solid #688075;border-radius:50%;position:relative;flex:none}.search-icon:after{content:"";position:absolute;background:#688075;width:5px;height:1.6px;transform:rotate(45deg);right:-4px;bottom:-2px}.search input{min-width:0;flex:1;border:0;background:none;color:inherit;outline:0;font:inherit;font-size:12px}.search:focus-within{box-shadow:0 0 0 2px #799c615b}.tabs{display:flex;gap:5px;margin:9px 0 6px}.filter{border:1px solid transparent;color:var(--muted);border-radius:7px;font-size:11px;background:transparent;padding:4px 9px}.filter.active{background:#e8eddb;color:#233f36;font-weight:750}.destinations{overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;min-height:0;margin-right:-8px;padding-right:8px}.place{width:100%;min-height:53px;border:1px solid transparent;border-bottom-color:var(--line);background:none;text-align:left;display:grid;grid-template-columns:33px minmax(0,1fr) 13px;align-items:center;gap:9px;padding:6px 4px;border-radius:0}.place:hover,.place.selected{border:1px solid #dae5cc;background:#edf1e3;border-radius:9px}.place .picon{height:32px;width:32px;display:grid;place-items:center;border-radius:8px;color:#194938;background:#e6ecdc;font-size:14px;font-weight:800}.place.landmark .picon{background:#f3e8d0;color:#695026}.place .name,.place .detail{display:block}.place .name{font-size:12px;line-height:1.35;font-weight:750;overflow-wrap:anywhere}.place .detail{font-size:10px;line-height:1.3;color:var(--muted);margin-top:3px}.place .chevron{font-size:15px;color:#557066}.empty{color:var(--muted);font-size:12px;padding:12px 1px}.sidebar-foot{padding:8px 22px 12px;border-top:1px solid var(--line);margin-top:auto}.text-button{padding:1px 0;border:0;background:none;color:var(--muted);font-size:10.5px}.text-button:hover{text-decoration:underline}
.viewer{position:relative;isolation:isolate;overflow:hidden;min-height:0;background:#cbd7ce url('./assets/campus-preview.jpg') center/cover no-repeat;outline:0}.canvas-host,.markers{position:absolute;inset:0}.canvas-host canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.canvas-host canvas.dragging{cursor:grabbing}.markers{pointer-events:none;overflow:hidden}.marker{position:absolute;max-width:176px;pointer-events:auto;white-space:nowrap;transform:translate(-50%,-100%);background:#fffff1ed;border:1px solid #d6deca;border-radius:8px;color:#163b2f;box-shadow:0 4px 15px #1933302e;font-size:11px;font-weight:760;padding:5px 8px;overflow:hidden;text-overflow:ellipsis}.marker:hover,.marker.active{background:#def19c;border-color:#9daf63}.marker:before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;background:#58916b;border-radius:50%;vertical-align:1px}.marker.landmark:before{background:#b79242}.marker.is-room:before{background:#899c47}.viewer-top{position:absolute;top:15px;left:15px;right:15px;display:flex;justify-content:flex-end;align-items:center;gap:8px;pointer-events:none;z-index:6}.viewer-top>*{pointer-events:auto}.mode-switch{padding:4px;border:1px solid #dde7d9;border-radius:12px;background:#fffff5ee;display:flex;gap:2px;box-shadow:var(--shadow)}.mode-switch button{min-height:33px;padding:0 9px;background:transparent;border:0;border-radius:8px;font-size:11px;font-weight:730;display:flex;gap:6px;align-items:center}.mode-switch button[aria-pressed=true]{background:#1e4b3d;color:#fcfff1}.mode-icon{display:inline-block;height:11px;width:11px;position:relative}.walk-icon{border:1.5px solid currentColor;border-radius:50%;transform:scale(.75)}.walk-icon:after{content:"";position:absolute;height:5px;width:1.5px;background:currentColor;top:2px;left:50%;transform:translateX(-50%)}.map-icon{border:1.5px solid currentColor;transform:rotate(-25deg) scale(.8);border-radius:2px}.map-icon:after{content:"";width:1px;height:100%;background:currentColor;left:50%;position:absolute}
.loading,.load-error{position:absolute;z-index:10;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#183b30;background:#e7eee6ba;backdrop-filter:blur(5px);text-align:center;font-weight:680}.spinner{width:25px;height:25px;border:2px solid #bbcabc;border-top-color:#376f58;border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.load-error{padding:20px}.load-error p{font-weight:400;margin:0 0 8px}
.view-tip,.notice,.nearby{position:absolute;z-index:4;left:16px;bottom:16px;background:#fcfff1ec;border:1px solid #d7e4d2;padding:9px 11px;box-shadow:var(--shadow);border-radius:9px}.view-tip{display:flex;align-items:center;gap:7px;font-size:11px;color:#3d5a4e}.nearby{left:50%;bottom:20px;transform:translateX(-50%);padding:9px 9px 9px 13px;display:flex;gap:14px;align-items:center;min-width:235px;justify-content:space-between}.nearby strong,.nearby-label{display:block}.nearby-label{font-size:10px;color:#587366}.nearby strong{font-size:13px}.nearby .button{min-height:39px}.notice{left:50%;top:16px;bottom:auto;transform:translateX(-50%);max-width:55%;padding:7px 12px;font-size:11px;text-align:center;font-weight:730;z-index:8}
.minimap{position:absolute;right:16px;bottom:16px;width:var(--map-width);padding:8px 9px 7px;z-index:3;box-shadow:var(--shadow);border-radius:11px;border:1px solid #dbe4d6;background:#fffff4ee}.minimap-header,.minimap-footer{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#5a6d63;gap:7px}.minimap-header b{color:#263c33;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.minimap canvas{width:100%;height:auto;background:#e8ecdd;margin:6px 0 3px;border-radius:5px;display:block}.minimap-footer i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#155f49;margin-right:2px;vertical-align:1px}.directory-toggle{display:none}
dialog{width:min(450px,calc(100vw - 28px));color:var(--ink);border:1px solid #dde6d9;border-radius:17px;background:#fffef6;padding:24px;box-shadow:var(--shadow)}dialog::backdrop{background:#152b2590}dialog h2{font-size:21px;margin:0 38px 16px 0}dialog p,dialog dd,dialog li{font-size:12px;color:var(--muted);line-height:1.7}dialog form{position:absolute;right:14px;top:14px}.dialog-close{font-size:23px}dialog dl{margin:0}dialog dl div{border-top:1px solid var(--line);padding:10px 0}dialog dt{font-weight:760}dialog dd{margin:3px 0 0}
@media(max-width:885px){:root{--side:263px;--map-width:130px}.identity{min-width:calc(var(--side) - 22px)}.sidebar-head,.directory{padding-left:15px;padding-right:15px}.sidebar h1{font-size:22px}.top{gap:11px}.view-tip{max-width:39%}}
@media (max-width: 780px), (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (pointer: coarse){:root{--top:57px;--side:min(86vw,315px);--map-width:111px}.top{gap:8px;padding:0 10px}.identity{min-width:0;flex:1;gap:7px}.identity b{font-size:14px}.identity small{font-size:9px;margin-top:3px}.emblem{width:31px;height:31px;border-radius:9px}.breadcrumbs{max-width:32%;flex:0 1 auto;font-size:9px;gap:5px}.breadcrumbs button{max-width:62px;overflow:hidden;text-overflow:ellipsis}.icon-button{width:32px;height:32px}.layout{display:block;position:relative}.viewer{height:100%}.viewer-top{left:9px;right:9px;top:10px;justify-content:space-between}.mode-switch{box-shadow:var(--shadow)}.directory-toggle{display:inline-flex;min-height:39px;background:#fffff1ed;box-shadow:var(--shadow)}.sidebar{visibility:hidden;position:absolute;top:58px;bottom:8px;left:8px;height:auto;width:var(--side);border:1px solid #dae6d7;border-radius:14px;box-shadow:var(--shadow)}.sidebar.open{visibility:visible}.sidebar-head{padding-top:14px;padding-bottom:12px}.minimap{right:9px;bottom:10px;font-size:9px}.view-tip{left:9px;bottom:10px;max-width:54%;font-size:9px;padding:7px 8px}.nearby{bottom:134px;min-width:219px;white-space:nowrap}.marker{font-size:9px;padding:4px 5px}.notice{top:60px;max-width:76%}}
@media(prefers-reduced-motion:reduce){*,*:after,*:before{scroll-behavior:auto!important;animation-duration:.001ms!important}}

@media(min-width:781px) and (max-width:1110px){.nearby{bottom:143px}}
.quick-back{display:none}@media (max-width: 780px), (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (pointer: coarse){.viewer-top .quick-back{display:inline-flex;min-height:38px;margin-right:auto;background:#fffff1ed;box-shadow:var(--shadow);font-size:11px}.viewer-top{gap:6px}.mode-switch button{padding:0 7px}}@media(max-width:350px){.mode-icon{display:none}.directory-toggle,.viewer-top .quick-back{padding:0 8px}}
.language-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:35px;min-width:64px;padding:0 10px;border:1px solid #dbe3d5;border-radius:9px;text-decoration:none;color:var(--green);font-size:11px;font-weight:750;white-space:nowrap;flex:none}
.language-toggle:hover{background:#edf1e3}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-left: 51px;
  font-size: 11px;
  line-height: 1.35;
}
.creator-credit {
  text-underline-offset: .18em;
}
.site-updated {
  color: var(--muted);
  white-space: nowrap;
}
.site-status {
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid #afbaa7;
  border-radius: 4px;
  background: #eef2e8;
  color: #345343;
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: .15em;
}
@media (max-width: 780px), (orientation: landscape) and (pointer: coarse) {
  .brand { flex: 1; min-width: 0; }
  .brand-meta { margin-left: 38px; font-size: 10px; }
  .site-status { font-size: 9px; }
}
@media (max-width: 390px) {
  html[lang=en] { --top: 68px; }
  html[lang=en] .identity b { font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 350px) {
  html[lang=en] { --top: 76px; }
}

.nearby[data-type="building"] #nearby-action {
  min-height: 44px;
  border: 2px solid #f5ce63;
  box-shadow: 0 0 0 2px #94621b, 0 0 0 5px #e4a62500;
}
@media (prefers-reduced-motion: no-preference) {
  .nearby[data-type="building"] #nearby-action:not(:focus-visible) {
    animation: entrance-pulse 1.2s ease-in-out 3;
  }
}
@keyframes entrance-pulse {
  50% { box-shadow: 0 0 0 2px #94621b, 0 0 0 7px #e4a62580; }
}

html[lang=en] .nearby strong{overflow-wrap:anywhere}
html[lang=en] .viewer-top .quick-back{font-size:10px}
html[lang=en] .mode-switch button{gap:4px}
@media(max-width:540px){.top .breadcrumbs{display:none}.language-toggle{min-height:32px;min-width:58px;padding:0 7px}.identity small{font-size:9px;line-height:1.2}}
@media(max-width:390px){html[lang=en] .viewer-top .button{padding:0 6px}html[lang=en] .viewer-top .mode-icon{display:none}html[lang=en] .nearby{max-width:94%;white-space:normal}}

.loading small{font-size:11px;font-weight:520;line-height:1.4;color:var(--muted)}
.loading small:empty{display:none}
.data-status{position:absolute;top:66px;right:15px;z-index:5;display:flex;align-items:center;gap:6px;max-width:min(370px,calc(100% - 28px));padding:5px 8px;font-size:10px;line-height:1.35;border-radius:7px;border:1px solid #dce6d5;background:#fffff4ee;color:#385548;box-shadow:0 3px 12px #142d2912}
.data-status i{width:6px;height:6px;border-radius:50%;background:#679765;flex:none}
.data-status[data-source=update] i,.data-status[data-source=initial] i{background:#53869b}
.data-status[data-source=offline] i{background:#c18e3d}
@media (max-width: 780px), (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (pointer: coarse){.data-status{top:58px;right:9px;font-size:9px;max-width:min(280px,calc(100% - 18px))}.loading{padding:12px}}
.floor-switch{position:absolute;top:15px;left:15px;z-index:6}
.floor-switch button{min-width:42px;justify-content:center}
.floor-switch[data-dense="true"] button{min-width:30px;padding:0 5px;white-space:nowrap}
.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 4px 6px;
}
.sidebar-foot .text-button { text-align: left; }
.people-toggle { flex: none; gap: 7px; padding: 0 9px; font-size: 11px; }
.people-toggle[aria-pressed=true] { background: #e8eddb; border-color: #d4e1c6; color: var(--green); }
#people-state { border: 1px solid currentColor; border-radius: 4px; padding: 1px 3px; font-size: 9px; line-height: 1.15; }
@media(max-width:885px){.sidebar-foot{padding-inline:15px}}
@media (max-width: 780px), (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (pointer: coarse){
  .people-toggle{min-height:44px}
  .viewer-top .mode-switch{margin-left:auto}
  .floor-switch{top:58px;right:9px;left:auto}
  .floor-switch[data-dense="true"]{max-width:calc(100% - 18px);flex-wrap:wrap}
  .viewer:has(.floor-switch:not([hidden])) .data-status{top:106px}
}
@media(max-width:560px){
  .viewer-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;justify-content:normal}
  .viewer-top .quick-back{grid-column:2;grid-row:1;justify-self:start;margin-right:0}
  .viewer-top .mode-switch{grid-column:3;grid-row:1}
  .fullscreen-toggle{grid-column:3;grid-row:2;justify-self:end}
  .floor-switch{top:106px}
  .viewer .data-status,.viewer:has(.floor-switch:not([hidden])) .data-status{top:60px}
  .viewer:has(.fullscreen-toggle:not([hidden])) .data-status{right:58px;max-width:min(280px,calc(100% - 67px))}
  .notice{top:109px}
  .viewer:has(.floor-switch:not([hidden])) .notice{top:154px}
}

body {
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.layout {
  height: calc(100dvh - var(--top) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
.fullscreen-toggle { width: 43px; height: 43px; background: #fffff1ed; box-shadow: var(--shadow); }
.fullscreen-toggle .fullscreen-exit,
.fullscreen-toggle[data-active=true] .fullscreen-enter { display: none; }
.fullscreen-toggle[data-active=true] .fullscreen-exit { display: inline; }
.fullscreen-toggle[data-active=true] { background: var(--green); color: #fcfff1; }

@media (orientation: landscape) and (pointer: coarse) {
  .sidebar {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .sidebar-head, .directory, .sidebar-foot { flex: none; }
  .directory, .destinations { overflow: visible; }
}

.touch-walk {
  --stick-size: clamp(84px, 25vmin, 116px);
  --stick-height: calc(var(--stick-size) * 1.32);
  --touch-inset: 12px;
}
.touch-controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.move-stick {
  --stick-outline: #f6ffe5c7;
  position: absolute;
  bottom: var(--touch-inset);
  left: var(--touch-inset);
  width: var(--stick-size);
  height: var(--stick-height);
  border-radius: 50% / 62% 62% 38% 38%;
  background: #214b40b8;
  box-shadow: var(--shadow), inset 0 0 0 2px var(--stick-outline), inset 0 0 0 6px #e8f3d225;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
.move-stick::before {
  content: "";
  position: absolute;
  top: 13%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--stick-outline);
  border-right: 2px solid var(--stick-outline);
  transform: translateX(-50%) rotate(-45deg);
}
.move-stick.running { --stick-outline: var(--lime); }
.move-stick-thumb {
  position: absolute;
  left: 28%;
  bottom: calc(var(--stick-size) * .28);
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #f6ffe2;
  background: #e1efbc;
  box-shadow: 0 3px 9px #102c2677;
  pointer-events: none;
}
.move-stick.active .move-stick-thumb { background: var(--lime); }
.touch-walk .view-tip {
  left: var(--touch-inset);
  bottom: calc(var(--touch-inset) + var(--stick-height) + 9px);
}
.touch-walk .minimap {
  right: var(--touch-inset);
  bottom: var(--touch-inset);
}
.touch-walk .nearby {
  --nearby-width: calc(100% - var(--stick-size) - var(--map-width) - 2 * var(--touch-inset) - 16px);
  left: calc(50% + (var(--stick-size) - var(--map-width)) / 2);
  bottom: var(--touch-inset);
  min-width: min(235px, var(--nearby-width));
  max-width: var(--nearby-width);
  white-space: normal;
}
@media (max-width: 620px) {
  .touch-walk .nearby {
    --nearby-width: calc(100% - 24px);
    left: 50%;
    bottom: calc(var(--touch-inset) + var(--stick-height) + 57px);
  }
}
.route-from-gate { margin: 3px 0 9px 46px; min-height: 34px; padding: 4px 10px; font-size: 11px; white-space: normal; text-align: left; }
