/* Map-first visual system. This sheet intentionally follows the legacy styles. */
:root {
  --ink: #102d3a;
  --muted: #45606a;
  --line: #b8c9ce;
  --turquoise: #00a8b8;
  --orange: #f46b23;
}
.atlas-map-app {
  color: var(--ink);
  background: #dce9ec;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.atlas-map-app button, .atlas-map-app input, .atlas-map-app select { font: inherit; }
.atlas-map-app button, .atlas-map-app a, .atlas-map-app summary { -webkit-tap-highlight-color: transparent; }
.atlas-map-app :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* One clear search and navigation rail over the full-screen floor plan. */
.atlas-map-app .control-sidebar {
  top: 16px; bottom: 16px; left: 16px; width: 400px;
  background: #fff; border: 1px solid var(--ink); border-radius: 0;
  box-shadow: 6px 6px 0 rgba(16,45,58,.22);
}
.atlas-map-app .sidebar-search { background: var(--ink); color: #fff; }
.atlas-map-app .map-search-card {
  height: 60px; margin: 13px 13px 0; padding: 0 3px;
  background: #fff; border: 2px solid var(--turquoise);
}
.atlas-map-app .map-search-card input {
  min-width: 0; color: var(--ink); background: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.atlas-map-app .map-search-card input::placeholder { color: #536f78; opacity: 1; }
.atlas-map-app .menu-button, .atlas-map-app .search-clear,
.atlas-map-app .search-submit {
  color: var(--ink); background: transparent; border: 0;
}
.atlas-map-app .menu-button { font-size: 18px; width: 42px; }
.atlas-map-app .search-submit { color: #006b79; font-size: 25px; width: 42px; }
.atlas-map-app .sidebar-toolbar {
  height: 68px; padding: 0 16px; background: var(--ink); color: #fff;
  border-bottom: 4px solid var(--turquoise);
}
.atlas-map-app .brand { color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .11em; }
.atlas-map-app .brand small { color: #b9eaf0; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.atlas-map-app .brand-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  padding: 0; background: var(--turquoise); color: var(--ink);
  font-size: 19px; font-weight: 900;
}
.atlas-map-app .sidebar-caption { color: #c3e7ec; font-size: 10px; letter-spacing: .04em; }
.atlas-map-app .sidebar-body { background: #fff; overscroll-behavior: contain; }
.atlas-map-app .facility-directory { border-bottom: 1px solid var(--line); }
.atlas-map-app .facility-directory > summary {
  min-height: 48px; padding: 11px 16px; background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 800;
}
.atlas-map-app .facility-directory[open] > summary { border-bottom: 1px solid var(--line); }
.atlas-map-app .pill { color: #fff; background: #006b79; border: 0; font-weight: 800; }
.atlas-map-app .directory { background: #fff; padding: 10px 12px; }
.atlas-map-app .directory select, .atlas-map-app .source-panel select,
.atlas-map-app #category-select { border: 1px solid #78939d; background: #fff; color: var(--ink); border-radius: 0; }
.atlas-map-app .quick-filters { gap: 5px; }
.atlas-map-app .quick-filters button { border: 1px solid #78939d; color: var(--ink); background: #fff; border-radius: 0; }
.atlas-map-app .quick-filters button.active { color: #fff; background: #006b79; border-color: #006b79; }
.atlas-map-app .facility-list { max-height: 220px; height: 220px; border: 1px solid var(--line); }
.atlas-map-app .facility { padding: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.atlas-map-app .facility strong { font-size: 13px; line-height: 1.45; }
.atlas-map-app .facility.selected { background: #063f4c; color: #fff; box-shadow: inset 5px 0 var(--turquoise); }
.atlas-map-app .facility.selected .meta { color: #b9eaf0; }

/* Hierarchy inside the navigation rail. */
.atlas-map-app .facility-head {
  padding: 20px 18px 17px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.atlas-map-app .breadcrumb { color: #006b79; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.atlas-map-app .facility-head h2 { color: var(--ink); font-size: 21px; line-height: 1.35; letter-spacing: -.025em; margin: 6px 0; }
.atlas-map-app .facility-head p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.atlas-map-app .floor-panel { padding: 14px 16px 16px; background: #fff; border: 0; border-bottom: 1px solid var(--line); }
.atlas-map-app .floor-label { display: block; margin-bottom: 10px; color: #006b79; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.atlas-map-app .floors { gap: 6px; }
.atlas-map-app .floor {
  min-width: 42px; min-height: 38px; padding: 7px 10px;
  background: #fff; color: var(--ink); border: 1px solid #829ba3;
  border-radius: 0; font-size: 12px; font-weight: 800;
}
.atlas-map-app .floor.active { color: #fff; background: #006b79; border-color: #006b79; box-shadow: inset 0 -3px 0 var(--turquoise); }
.atlas-map-app .floor:hover, .atlas-map-app .store:hover, .atlas-map-app .facility:hover { border-color: var(--turquoise); }
.atlas-map-app .stores { border: 0; background: #fff; }
.atlas-map-app .stores-head {
  padding: 16px 18px 12px; color: var(--ink); background: #fff;
  border: 0; font-size: 13px; font-weight: 900; letter-spacing: .02em;
}
.atlas-map-app .stores-head #store-count { color: #006b79; font-size: 11px; }
.atlas-map-app .store-list { padding: 0 10px 12px; background: #fff; }
.atlas-map-app .store { margin: 0; padding: 12px 10px; background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.atlas-map-app .store.active {
  color: #fff; background: #063f4c; border-bottom-color: #063f4c;
  box-shadow: inset 5px 0 var(--orange);
}
.atlas-map-app .store.active .store-number { background: var(--orange); color: #102d3a; }
.atlas-map-app .store-number { background: #006b79; color: #fff; font-weight: 900; }
.atlas-map-app .details { padding: 16px 18px; background: #fff; border: 0; border-top: 1px solid var(--line); }
.atlas-map-app .details .eyebrow { color: #006b79; font-weight: 900; }
.atlas-map-app .position-explain { background: #fff; border-left-color: var(--orange); color: var(--ink); }
.atlas-map-app .map-options, .atlas-map-app .list-options, .atlas-map-app .sidebar-more { background: #fff; color: var(--muted); border-color: var(--line); }
.atlas-map-app .map-options > summary, .atlas-map-app .list-options > summary,
.atlas-map-app .sidebar-more > summary { color: #36525c; font-size: 11px; font-weight: 700; }

/* The map is the canvas; overlays stay compact and legible. */
.atlas-map-app .map-shell { background: #dce9ec; }
.atlas-map-app .floor-canvas { background: #dce9ec; }
.atlas-map-app .map-title {
  top: 16px; left: 440px; right: auto; max-width: calc(100% - 550px);
  min-height: 56px; padding: 9px 14px; gap: 10px;
  background: var(--ink); color: #fff; border: 0; border-left: 5px solid var(--turquoise);
  box-shadow: 4px 4px 0 rgba(16,45,58,.17);
}
.atlas-map-app .map-title strong { color: #fff; font-size: 15px; line-height: 1.3; }
.atlas-map-app .map-title .tag { background: #006b79; color: #fff; border: 0; font-size: 10px; font-weight: 800; white-space: nowrap; }
.atlas-map-app .legend {
  left: 440px; bottom: 18px; max-width: min(510px, calc(100% - 470px));
  padding: 9px 12px; background: var(--ink); color: #fff;
  border: 0; box-shadow: 4px 4px 0 rgba(16,45,58,.17);
  font-size: 11px; font-weight: 700; line-height: 1.5;
}
.atlas-map-app .legend i { border: 1px solid #fff; }
.atlas-map-app .map-hint { color: #fff; background: var(--ink); border: 0; }
.atlas-map-app .map-corner-brand { display: none; }
.atlas-map-app .sidebar-toggle {
  left: 416px; width: 28px; height: 64px; background: var(--ink); color: #fff;
  border: 1px solid var(--turquoise); box-shadow: 3px 3px 0 rgba(16,45,58,.22);
}
.atlas-map-app.sidebar-collapsed .sidebar-toggle { left: 0; }
.atlas-map-app .sidebar-toggle:hover { background: #006b79; }

@media (max-width: 700px) {
  .atlas-map-app .control-sidebar {
    top: auto; bottom: 0; left: 0; right: 0; width: auto;
    height: min(43dvh, 390px); border: 0; border-top: 4px solid var(--turquoise);
    box-shadow: 0 -5px 0 rgba(16,45,58,.18);
  }
  .atlas-map-app .map-search-card { height: 46px; margin: 7px 10px 0; }
  .atlas-map-app .sidebar-toolbar { height: 40px; padding: 0 12px; border-bottom-width: 2px; }
  .atlas-map-app .brand-icon { width: 26px; height: 26px; font-size: 15px; }
  .atlas-map-app .brand { font-size: 11px; }
  .atlas-map-app .brand small, .atlas-map-app .sidebar-caption { font-size: 9px; }
  .atlas-map-app .facility-head { padding: 13px 14px 11px; }
  .atlas-map-app .facility-head h2 { font-size: 17px; }
  .atlas-map-app .floor-panel { padding: 10px 12px; }
  .atlas-map-app .map-title {
    top: 10px; left: 10px; right: 10px; max-width: none;
    min-height: 43px; padding: 6px 9px; box-shadow: 3px 3px 0 rgba(16,45,58,.17);
  }
  .atlas-map-app .map-title strong { font-size: 12px; }
  .atlas-map-app .map-title .tag { font-size: 9px; }
  .atlas-map-app .legend {
    left: 10px; right: 10px; bottom: calc(min(43dvh, 390px) + 34px);
    max-width: none; padding: 6px 8px; font-size: 9px;
  }
  .atlas-map-app .sidebar-toggle {
    left: 50%; top: auto; bottom: min(43dvh, 390px); margin: 0 0 0 -28px;
    width: 56px; height: 26px; border-bottom: 0; box-shadow: 0 -3px 0 rgba(16,45,58,.17);
  }
  .atlas-map-app.sidebar-collapsed .sidebar-toggle { left: 50%; bottom: 0; }
  .atlas-map-app.sidebar-collapsed .legend { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-map-app *, .atlas-map-app *::before, .atlas-map-app *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Help belongs in the sidebar, never over the floor plan. */
.atlas-map-app .map-help { margin-top: 12px; border-top: 1px solid var(--line); }
.atlas-map-app .map-help > summary { padding: 10px 0; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.atlas-map-app .map-help-body { color: var(--ink); font-size: 12px; line-height: 1.7; }
.atlas-map-app .map-help-body p { margin: 0 0 10px; }
.atlas-map-app .selection-key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; background: var(--orange); vertical-align: -1px; }

.atlas-map-app #facility-type { width: 100%; min-height: 38px; margin-bottom: 8px; padding: 7px 9px; color: var(--ink); background: #fff; border: 1px solid #78939d; border-radius: 0; font-size: 12px; }
.atlas-map-app .diagram-panel { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.atlas-map-app .diagram-views { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-map-app .diagram-view { padding: 8px 10px; background: #fff; color: var(--ink); border: 1px solid #829ba3; border-radius: 0; font-size: 11px; line-height: 1.5; }
.atlas-map-app .diagram-view.active { color: #fff; background: #006b79; border-color: #006b79; }
.atlas-map-app .department-description { margin: 10px 0; font-size: 12px; line-height: 1.7; }
.atlas-map-app .department-description summary { color: #006b79; cursor: pointer; font-weight: 700; }
.atlas-map-app .floor-panel[hidden] { display: none; }

/* Reference layout: quiet white navigation, a large floor label, and a right rail. */
.atlas-map-app { background: #fff; }
.atlas-map-app .map-shell, .atlas-map-app .floor-canvas { background: #fff; }
.atlas-map-app .control-sidebar { top: 0; bottom: 0; left: 0; width: 310px; border: 0; border-right: 1px solid #c5cdd1; box-shadow: none; }
.atlas-map-app .sidebar-search { display: flex; flex-direction: column; background: #fff; color: var(--ink); }
.atlas-map-app .sidebar-toolbar { order: -3; height: 44px; padding: 0 18px; background: #fff; color: var(--ink); border: 0; }
.atlas-map-app .brand { color: var(--ink); font-size: 10px; letter-spacing: .1em; }
.atlas-map-app .brand-icon, .atlas-map-app .brand small, .atlas-map-app .sidebar-caption { display: none; }
.atlas-map-app .sidebar-summary { order: -2; }
.atlas-map-app .sidebar-summary .facility-head { min-height: 90px; padding: 0 18px 14px; border: 0; }
.atlas-map-app .facility-head h2 { margin: 5px 0; font-size: 20px; line-height: 1.35; }
.atlas-map-app .breadcrumb { font-size: 9px; }
.atlas-map-app .map-search-card { order: -1; height: 44px; margin: 0 12px 14px; border: 1px solid #9baeb5; }
.atlas-map-app .map-search-card input { font-size: 12px; font-weight: 500; }
.atlas-map-app .menu-button, .atlas-map-app .search-submit { width: 32px; min-width: 32px; }
.atlas-map-app .facility-directory > summary { min-height: 42px; padding: 10px 16px; font-size: 12px; }
.atlas-map-app .facility.selected, .atlas-map-app .store.active { background: #00a8b8; color: #102d3a; box-shadow: inset 4px 0 #006b79; }
.atlas-map-app .facility.selected .meta, .atlas-map-app .store.active small { color: #102d3a; }
.atlas-map-app .store.active .store-number { background: #102d3a; color: #fff; }
.atlas-map-app .stores-head { padding: 15px 16px 10px; }
.atlas-map-app .store-list { height: auto; max-height: none; overflow: visible; padding: 0 12px 12px; }
.atlas-map-app .store { padding: 13px 9px; }
.atlas-map-app .store strong { font-size: 13px; line-height: 1.45; }
.atlas-map-app .store small { font-size: 11px; line-height: 1.6; }
.atlas-map-app .details { padding: 16px; border-top: 3px solid var(--turquoise); }
.atlas-map-app .position-explain { border-left-color: var(--turquoise); }
.atlas-map-app .language-switch { position: fixed; z-index: 60; top: 18px; right: 20px; display: flex; align-items: center; gap: 9px; padding: 5px 8px; background: #fff; color: #536670; font-size: 11px; }
.atlas-map-app .language-switch button { min-height: 30px; padding: 2px 3px; color: #455862; background: transparent; border: 0; border-radius: 0; font-size: 12px; font-weight: 600; cursor: pointer; }
.atlas-map-app .language-switch button[aria-pressed="true"] { color: #006f80; font-weight: 900; border-bottom: 2px solid var(--turquoise); }
.atlas-map-app .map-title { top: 22px; left: 338px; min-height: 70px; max-width: calc(100% - 570px); display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; padding: 0 10px; background: #fff; color: var(--ink); border: 0; box-shadow: none; }
.atlas-map-app .current-floor { grid-row: 1 / 3; align-self: center; font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -.05em; color: #102d3a; }
.atlas-map-app .current-floor:empty { display: none; }
.atlas-map-app .map-title strong { align-self: end; color: var(--ink); font-size: 14px; }
.atlas-map-app .map-title .tag { align-self: start; justify-self: start; padding: 0; background: #fff; color: #405a65; font-size: 10px; line-height: 1.5; }
.atlas-map-app .floor-rail { position: absolute; z-index: 8; top: 96px; right: 20px; width: 50px; max-height: calc(100dvh - 150px); display: flex; flex-direction: column; overflow-y: auto; background: #fff; border: 1px solid #8b9da5; box-shadow: 0 2px 6px #102d3a22; }
.atlas-map-app .rail-floor { min-height: 44px; flex: 0 0 auto; padding: 8px 4px; background: #fff; color: #304a56; border: 0; border-bottom: 1px solid #c5cdd1; border-radius: 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.atlas-map-app .rail-floor:last-child { border-bottom: 0; }
.atlas-map-app .rail-floor.active { background: var(--turquoise); color: #102d3a; font-weight: 900; }
.atlas-map-app.has-floor-rail .floor-panel { display: none; }
.atlas-map-app .sidebar-toggle { left: 310px; width: 23px; height: 52px; color: #405a65; background: #fff; border: 1px solid #c5cdd1; border-left: 0; box-shadow: none; font-size: 23px; }
.atlas-map-app.sidebar-collapsed .sidebar-toggle { left: 0; }
.atlas-map-app .sidebar-toggle:hover { background: #fff; color: #006b79; }
.atlas-map-app .mobile-facility-title { display: none; }
html[lang="en"] .atlas-map-app .map-title { max-width: calc(100% - 560px); }

@media (max-width: 700px) {
  .atlas-map-app .control-sidebar, .atlas-map-app.sidebar-collapsed .control-sidebar { inset: 0; width: auto; height: auto; background: transparent; border: 0; box-shadow: none; pointer-events: none; transform: none; }
  .atlas-map-app .sidebar-search { position: absolute; top: 0; left: 0; right: 0; pointer-events: auto; border-bottom: 1px solid #c5cdd1; }
  .atlas-map-app .sidebar-toolbar { height: 49px; padding: 0 14px; }
  .atlas-map-app .sidebar-toolbar .brand, .atlas-map-app .sidebar-summary { display: none; }
  .atlas-map-app .mobile-facility-title { display: block; max-width: calc(100% - 100px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .atlas-map-app .map-search-card { height: 42px; margin: 0 10px 10px; }
  .atlas-map-app .map-search-card input { font-size: 12px; }
  .atlas-map-app .language-switch { top: 9px; right: 9px; gap: 6px; padding: 0 4px; }
  .atlas-map-app .language-switch button { min-height: 32px; font-size: 11px; }
  .atlas-map-app .sidebar-body { position: absolute; bottom: 0; left: 0; right: 0; height: min(36dvh, 300px); pointer-events: auto; border-top: 3px solid var(--turquoise); background: #fff; box-shadow: 0 -3px 8px #102d3a1c; overflow-y: auto; }
  .atlas-map-app.sidebar-collapsed .sidebar-body { display: none; }
  .atlas-map-app .sidebar-toggle { left: 50%; top: auto; bottom: min(36dvh, 300px); width: 56px; height: 24px; margin: 0 0 0 -28px; border: 1px solid #c5cdd1; border-bottom: 0; background: #fff; box-shadow: none; }
  .atlas-map-app.sidebar-collapsed .sidebar-toggle { left: 50%; bottom: 0; }
  .atlas-map-app .map-title, html[lang="en"] .atlas-map-app .map-title { top: 113px; left: 10px; right: 82px; max-width: none; min-height: 45px; gap: 2px 10px; padding: 4px 8px; }
  .atlas-map-app .current-floor { font-size: 34px; }
  .atlas-map-app .map-title strong { font-size: 11px; }
  .atlas-map-app .map-title .tag { font-size: 9px; }
  .atlas-map-app .floor-rail { top: 113px; right: 10px; width: 44px; max-height: calc(64dvh - 146px); }
  .atlas-map-app .rail-floor { min-height: 38px; font-size: 12px; }
  .atlas-map-app .store-list { height: auto; }
}
.atlas-map-app .floor-canvas .map-area { inset: 104px 82px 16px 326px; width: auto !important; height: auto !important; }
.atlas-map-app.sidebar-collapsed .floor-canvas .map-area { left: 14px; }
.atlas-map-app .back-to-stores { display: none; }
@media (max-width: 700px) {
  .atlas-map-app .floor-canvas .map-area { inset: 163px 62px calc(min(36dvh, 300px) + 12px) 10px; }
  .atlas-map-app.sidebar-collapsed .floor-canvas .map-area { left: 10px; bottom: 10px; }
  .atlas-map-app.has-selected-place .explore, .atlas-map-app.has-selected-place .map-options { display: none; }
  .atlas-map-app.has-selected-place .facility-directory:not([open]) { display: none; }
  .atlas-map-app .back-to-stores { display: block; flex-basis: 100%; width: 100%; padding: 4px 0 9px; background: #fff; color: #006b79; border: 0; border-radius: 0; text-align: left; font-size: 11px; cursor: pointer; }
  .atlas-map-app.has-selected-place .details { border-top: 0; }
}
.atlas-map-app .details-placeholder { display: none; }
