:root {
  color-scheme: dark;
  --bg: #03050d;
  --bg-2: #07101f;
  --panel: rgba(7, 15, 33, 0.82);
  --panel-strong: rgba(7, 16, 37, 0.96);
  --text: #f3f8ff;
  --muted: #a8b9ce;
  --quiet: #71859e;
  --cyan: #29e5ff;
  --cyan-soft: rgba(41, 229, 255, 0.18);
  --green: #32ffb3;
  --violet: #8867ff;
  --magenta: #ff45e9;
  --danger: #ff6480;
  --line: rgba(77, 218, 255, 0.25);
  --line-strong: rgba(77, 218, 255, 0.62);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  --radius-xl: 28px;
  --radius-lg: 21px;
  --radius-md: 15px;
  --header-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(41, 229, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 91% 3%, rgba(255, 69, 233, 0.1), transparent 26rem),
    linear-gradient(145deg, #02040a 0%, #07101e 54%, #02030a 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: rgba(41, 229, 255, 0.35);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
.menu-toggle,
.menu-close,
.logout-button,
.accent-button,
.search-clear,
.quick-link,
.image-tile,
.map-controls button {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.prefecture-shape:focus-visible {
  outline: 3px solid rgba(50, 255, 179, 0.96);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.scene-grid {
  position: absolute;
  inset: -25%;
  background-image:
    linear-gradient(rgba(63, 221, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 221, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(850px) rotateX(62deg) translateY(-16%);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 5%, #000 25%, transparent 86%);
  animation: gridTravel 18s linear infinite;
}

.scene-orbit {
  position: absolute;
  top: -280px;
  right: -260px;
  width: min(80vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.42;
  background:
    repeating-radial-gradient(circle, transparent 0 14px, rgba(41, 229, 255, 0.4) 15px 17px, transparent 18px 29px),
    conic-gradient(from 20deg, transparent 0 17deg, rgba(41, 229, 255, 0.27) 21deg 40deg, transparent 46deg 83deg, rgba(255, 69, 233, 0.22) 88deg 105deg, transparent 114deg 360deg);
  filter: drop-shadow(0 0 24px rgba(41, 229, 255, 0.32));
  animation: orbitSpin 34s linear infinite;
}

.scene-scan {
  position: absolute;
  inset: -30% 0;
  background: linear-gradient(180deg, transparent 44%, rgba(41, 229, 255, 0.06) 50%, transparent 56%);
  animation: worldScan 9s ease-in-out infinite;
}

.login-view {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    calc(24px + var(--safe-top))
    calc(20px + var(--safe-right))
    calc(24px + var(--safe-bottom))
    calc(20px + var(--safe-left));
}

.login-panel {
  position: relative;
  width: min(100%, 590px);
  overflow: hidden;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(8, 19, 42, 0.95), rgba(3, 8, 20, 0.88));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.login-hud {
  position: absolute;
  right: -95px;
  bottom: -150px;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.45;
  background:
    repeating-radial-gradient(circle, transparent 0 11px, rgba(41, 229, 255, 0.42) 12px 14px, transparent 15px 23px),
    conic-gradient(transparent 0 32deg, rgba(50, 255, 179, 0.32) 40deg 56deg, transparent 64deg 160deg, rgba(136, 103, 255, 0.27) 168deg 190deg, transparent 200deg 360deg);
  animation: orbitSpin 21s linear infinite reverse;
}

.system-label,
.section-label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.login-panel h1,
.search-hero h1,
.map-page-head h1,
.venue-hero h1 {
  margin: 0;
  line-height: 1.17;
  letter-spacing: 0.015em;
}

.login-panel h1 {
  position: relative;
  max-width: 12em;
  font-size: clamp(2.15rem, 7vw, 4.6rem);
}

.login-copy {
  position: relative;
  margin: 14px 0 28px;
  color: var(--muted);
}

.login-form {
  position: relative;
}

.login-form label,
.search-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.login-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.login-input-row input,
.search-input-wrap input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(66, 220, 255, 0.34);
  border-radius: 18px;
  color: var(--text);
  background: rgba(1, 6, 18, 0.82);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.login-input-row input {
  padding: 0 18px;
}

.login-input-row input:focus,
.search-input-wrap input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(41, 229, 255, 0.1), 0 0 28px rgba(41, 229, 255, 0.11);
}

.accent-button {
  min-width: 96px;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  color: #001016;
  background: linear-gradient(105deg, var(--cyan), var(--green));
  font-weight: 900;
  cursor: pointer;
}

.form-error {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #ff93a6;
}

.app-view {
  min-height: 100dvh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: calc(var(--header-h) + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    var(--safe-top)
    calc(14px + var(--safe-right))
    0
    calc(18px + var(--safe-left));
  border-bottom: 1px solid rgba(70, 218, 255, 0.16);
  background: rgba(3, 7, 17, 0.82);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
  animation: headerSweep 6s ease-in-out infinite;
}

.site-brand {
  min-width: 0;
  padding: 10px 0;
  color: var(--text);
  font-size: clamp(0.98rem, 3.6vw, 1.12rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle,
.menu-close {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(73, 220, 255, 0.28);
  border-radius: 15px;
  color: var(--text);
  background: rgba(6, 15, 33, 0.74);
  cursor: pointer;
}

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 9px rgba(41, 229, 255, 0.24);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 3, 10, 0.62);
  backdrop-filter: blur(4px);
  animation: fadeIn 180ms ease-out both;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  padding:
    calc(18px + var(--safe-top))
    calc(18px + var(--safe-right))
    calc(22px + var(--safe-bottom))
    18px;
  border-left: 1px solid rgba(71, 222, 255, 0.34);
  background:
    radial-gradient(circle at 95% 8%, rgba(41, 229, 255, 0.13), transparent 16rem),
    rgba(4, 10, 24, 0.98);
  box-shadow: -25px 0 70px rgba(0, 0, 0, 0.54);
  transform: translateX(104%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-menu.is-open {
  transform: translateX(0);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(75, 219, 255, 0.17);
}

.menu-head strong {
  font-size: 1.3rem;
}

.menu-close {
  font-size: 1.5rem;
}

.menu-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.menu-nav a,
.logout-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--text);
  background: transparent;
  font-weight: 760;
  text-decoration: none;
  text-align: left;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  border-color: rgba(41, 229, 255, 0.34);
  background: rgba(41, 229, 255, 0.075);
}

.logout-button {
  width: 100%;
  margin-top: auto;
  border-color: rgba(255, 100, 128, 0.24);
  color: #ffc0ca;
  cursor: pointer;
}

.page-root {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding:
    16px
    calc(18px + var(--safe-right))
    calc(52px + var(--safe-bottom))
    calc(18px + var(--safe-left));
}

.page-loading {
  min-height: 50dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
}

.page-loading span,
.map-loading span {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(41, 229, 255, 0.18);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: orbitSpin 0.8s linear infinite;
}

.breadcrumbs {
  margin: 2px 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
  overflow: hidden;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  min-width: 0;
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(168, 185, 206, 0.45);
}

.breadcrumbs a,
.breadcrumbs span {
  display: block;
  max-width: min(50vw, 380px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.breadcrumbs a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.search-hero,
.content-panel,
.map-panel,
.detail-section,
.venue-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(8, 19, 42, 0.9), rgba(3, 8, 20, 0.78));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(17px);
}

.search-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: clamp(26px, 5vw, 52px);
}

.search-hero::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  height: 1px;
  top: -5%;
  background: linear-gradient(90deg, transparent, rgba(50, 255, 179, 0.8), transparent);
  box-shadow: 0 0 22px rgba(41, 229, 255, 0.5);
  animation: heroScan 5.8s ease-in-out infinite;
  pointer-events: none;
}

.ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.56;
  pointer-events: none;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.5));
}

.search-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
}

.search-hero h1,
.map-page-head h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
}

.search-hero__content > p:not(.system-label),
.map-page-head > p:not(.system-label) {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.search-form {
  margin-top: 28px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  min-height: 66px;
  padding: 0 62px 0 20px;
  border-radius: 22px;
  font-size: 16px;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(74, 219, 255, 0.27);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(5, 13, 29, 0.86);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  color: #fff;
  border-color: var(--cyan);
}

.content-panel {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 34px);
  animation: panelRise 320ms ease-out both;
}

.section-head h2,
.detail-section h2 {
  margin: 0;
  line-height: 1.25;
}

.result-status {
  margin: 8px 0 0;
  color: var(--muted);
}

.recent-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.recent-link {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 11px 15px;
  border: 1px solid rgba(72, 220, 255, 0.28);
  border-radius: 16px;
  background: rgba(5, 13, 30, 0.56);
  text-decoration: none;
}

.recent-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.venue-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.venue-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(74, 220, 255, 0.31);
  border-radius: 19px;
  background:
    linear-gradient(90deg, rgba(41, 229, 255, 0.045), transparent 42%),
    rgba(5, 13, 30, 0.7);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  animation: cardReveal 260ms ease-out both;
}

.venue-card:hover,
.venue-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(50, 255, 179, 0.82);
  background: rgba(12, 39, 53, 0.72);
  box-shadow: 0 0 28px rgba(50, 255, 179, 0.1);
}

.venue-card__main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.venue-card__main strong {
  font-size: 1.04rem;
  line-height: 1.38;
}

.venue-card__main span,
.venue-card__main small {
  color: var(--muted);
}

.venue-card__main small {
  font-size: 0.82rem;
}

.venue-card__arrow {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.empty-message,
.image-empty,
.map-error {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px dashed rgba(92, 210, 238, 0.24);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(3, 10, 24, 0.46);
}

.result-skeleton {
  display: grid;
  gap: 11px;
}

.result-skeleton span {
  height: 96px;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(42, 97, 118, 0.12) 20%, rgba(70, 213, 255, 0.18) 45%, rgba(42, 97, 118, 0.12) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.map-page-head {
  margin: 8px 0 18px;
  padding: 4px 2px;
}

.map-page-head h1 {
  margin: 0;
}

.map-panel {
  padding: 10px;
}

.map-viewport {
  position: relative;
  height: clamp(470px, 67dvh, 760px);
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    radial-gradient(circle at 50% 45%, rgba(41, 229, 255, 0.12), transparent 55%),
    linear-gradient(rgba(63, 219, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 219, 255, 0.04) 1px, transparent 1px),
    #020815;
  background-size: auto, 34px 34px, 34px 34px, auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.map-viewport:active {
  cursor: grabbing;
}

.map-surface {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-origin: 0 0;
  will-change: transform;
}

.map-loading {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
}

.japan-svg {
  width: 92%;
  height: 92%;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(41, 229, 255, 0.08));
}

.prefecture-shape {
  fill: rgba(25, 74, 99, 0.62) !important;
  stroke: rgba(56, 197, 230, 0.58) !important;
  stroke-width: 3 !important;
  cursor: pointer;
  transition: fill 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.prefecture-shape:hover,
.prefecture-shape:focus-visible {
  fill: rgba(35, 176, 207, 0.72) !important;
  filter: drop-shadow(0 0 12px rgba(41, 229, 255, 0.7));
}

.prefecture-shape.has-venue {
  fill: rgba(23, 129, 151, 0.74) !important;
}

.prefecture-shape.is-selected {
  fill: rgba(50, 255, 179, 0.82) !important;
  filter: drop-shadow(0 0 16px rgba(50, 255, 179, 0.72));
  animation: selectedPulse 1.7s ease-in-out infinite alternate;
}

#prefecture-border-overlay {
  pointer-events: none;
}

#prefecture-borders {
  stroke: rgba(6, 20, 31, 0.84) !important;
  stroke-width: 4 !important;
}

.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: grid;
  grid-template-columns: 48px 48px auto;
  gap: 7px;
}

.map-controls button {
  height: 48px;
  min-width: 48px;
  padding: 0 13px;
  border: 1px solid rgba(80, 224, 255, 0.38);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 10, 24, 0.9);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.map-controls .map-reset {
  font-size: 0.88rem;
}

.map-current {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  max-width: calc(100% - 24px);
  padding: 8px 13px;
  border: 1px solid rgba(50, 255, 179, 0.34);
  border-radius: 999px;
  color: #caffe8;
  background: rgba(2, 12, 23, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  pointer-events: none;
}

.map-error {
  max-width: 420px;
  margin: 30px;
  text-align: center;
}

.venue-page {
  display: grid;
  gap: 18px;
}

.venue-hero {
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  position: relative;
}

.venue-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  right: -100px;
  top: -90px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 10px, rgba(41, 229, 255, 0.2) 11px 12px, transparent 13px 20px);
  animation: orbitSpin 27s linear infinite;
  pointer-events: none;
}

.venue-hero h1 {
  position: relative;
  max-width: 20em;
  font-size: clamp(2rem, 5vw, 4rem);
}

.venue-address {
  position: relative;
  margin: 14px 0 22px;
  color: var(--muted);
}

.quick-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(73, 219, 255, 0.34);
  border-radius: 14px;
  background: rgba(3, 13, 29, 0.68);
  text-decoration: none;
  font-weight: 760;
}

.quick-link:not(.is-disabled):hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(41, 229, 255, 0.1);
}

.quick-link.is-disabled {
  color: var(--quiet);
}

.section-jump {
  position: sticky;
  top: calc(var(--header-h) + var(--safe-top) + 8px);
  z-index: 35;
  display: flex;
  gap: 7px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid rgba(70, 220, 255, 0.2);
  border-radius: 17px;
  background: rgba(3, 9, 22, 0.9);
  backdrop-filter: blur(18px);
}

.section-jump::-webkit-scrollbar {
  display: none;
}

.section-jump a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 760;
}

.section-jump a:hover,
.section-jump a:focus-visible {
  color: #fff;
  background: rgba(41, 229, 255, 0.09);
}

.detail-section {
  scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 76px);
  padding: clamp(22px, 4vw, 36px);
}

.detail-section h2 {
  margin-bottom: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border-top: 1px solid rgba(77, 218, 255, 0.14);
}

.info-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(105px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(77, 218, 255, 0.12);
}

.info-row dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.info-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.long-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-tile {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(74, 220, 255, 0.25);
  border-radius: 17px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.65);
  text-align: left;
  cursor: zoom-in;
}

.image-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-tile span {
  display: block;
  padding: 10px 12px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.image-empty {
  padding: 24px;
}

.image-dialog {
  width: min(94vw, 1100px);
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(73, 220, 255, 0.38);
  border-radius: 20px;
  color: var(--text);
  background: #020713;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.image-dialog::backdrop {
  background: rgba(0, 2, 8, 0.82);
  backdrop-filter: blur(5px);
}

.image-dialog__bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid rgba(73, 220, 255, 0.16);
}

.image-dialog__bar button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(73, 220, 255, 0.27);
  border-radius: 13px;
  color: var(--text);
  background: rgba(8, 18, 37, 0.8);
  font-size: 1.3rem;
}

.image-dialog > img {
  display: block;
  width: 100%;
  max-height: calc(92dvh - 58px);
  object-fit: contain;
}

@media (min-width: 760px) {
  .page-root {
    padding-top: 24px;
  }

  .recent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venue-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid--hall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .search-hero__content {
    width: min(70%, 780px);
  }

  .image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 60px;
  }

  .page-root {
    padding-left: calc(14px + var(--safe-left));
    padding-right: calc(14px + var(--safe-right));
  }

  .site-header {
    padding-left: calc(14px + var(--safe-left));
    padding-right: calc(10px + var(--safe-right));
  }

  .search-hero {
    min-height: 315px;
    padding: 24px 20px;
  }

  .search-hero h1,
  .map-page-head h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .content-panel {
    padding: 20px 17px;
  }

  .login-input-row {
    grid-template-columns: 1fr;
  }

  .accent-button {
    width: 100%;
  }

  .map-panel {
    padding: 7px;
  }

  .map-viewport {
    height: 64dvh;
    min-height: 460px;
  }

  .map-controls {
    top: 9px;
    right: 9px;
    grid-template-columns: 46px 46px auto;
  }

  .map-controls button {
    height: 46px;
    min-width: 46px;
  }

  .japan-svg {
    width: 98%;
    height: 98%;
  }

  .quick-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-link {
    width: 100%;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes gridTravel {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 92px, 92px 0; }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes worldScan {
  0%, 12% { transform: translateY(-42%); opacity: 0; }
  40%, 62% { opacity: 1; }
  88%, 100% { transform: translateY(42%); opacity: 0; }
}

@keyframes headerSweep {
  0%, 15% { transform: translateX(-100%); opacity: 0; }
  42%, 58% { opacity: 0.8; }
  85%, 100% { transform: translateX(100%); opacity: 0; }
}

@keyframes heroScan {
  0%, 8% { top: -5%; opacity: 0; }
  24% { opacity: 0.85; }
  78% { opacity: 0.65; }
  96%, 100% { top: 108%; opacity: 0; }
}

@keyframes panelRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes selectedPulse {
  from { filter: drop-shadow(0 0 9px rgba(50, 255, 179, 0.42)); }
  to { filter: drop-shadow(0 0 22px rgba(50, 255, 179, 0.9)); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
