:root {
  color-scheme: light;
  --ink: #18221d;
  --muted: #6d756f;
  --paper: #f6f2e9;
  --card: #fffdf8;
  --line: rgba(24, 34, 29, 0.13);
  --green: #184f3b;
  --green-bright: #2f7d59;
  --lime: #d7ed9f;
  --orange: #ea6a38;
  --shadow: 0 22px 70px rgba(28, 48, 38, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 34, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
}

.page-glow-left {
  top: 80px;
  left: -300px;
  background: #cbe9ac;
}

.page-glow-right {
  top: 430px;
  right: -300px;
  background: #f4b49a;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  box-shadow: 0 9px 24px rgba(24, 79, 59, 0.24);
}

.brand-mark svg {
  width: 29px;
  fill: var(--lime);
}

.brand-mark .brand-mark-line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand-mark .brand-mark-dot {
  fill: var(--orange);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 4px;
  color: var(--green-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.header-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b1b7b2;
}

.header-status.is-live .status-dot {
  background: #49a971;
  box-shadow: 0 0 0 4px rgba(73, 169, 113, 0.14);
}

.header-status.is-demo .status-dot {
  background: #e8a23d;
  box-shadow: 0 0 0 4px rgba(232, 162, 61, 0.14);
}

main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  max-width: 860px;
  margin: 76px auto 58px;
  text-align: center;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--green-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 32px;
  height: 1px;
  background: var(--green-bright);
}

.hero h1 {
  margin: 17px 0 24px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 em {
  position: relative;
  color: var(--green);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  left: 8px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  opacity: 0.8;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.search-mode-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 34px;
  padding: 4px;
  border: 1px solid rgba(24, 79, 59, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
}

.search-mode-tabs button {
  min-width: 140px;
  padding: 10px 18px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.search-mode-tabs button.is-active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(24, 79, 59, 0.2);
}

.search-form {
  margin-top: 18px;
  text-align: left;
}

.search-form > label {
  display: block;
  margin: 0 0 10px 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 10px 10px 24px;
  border: 1px solid rgba(24, 79, 59, 0.18);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search-box:focus-within {
  border-color: var(--green-bright);
  box-shadow: 0 25px 80px rgba(28, 67, 49, 0.16), 0 0 0 4px rgba(47, 125, 89, 0.08);
  transform: translateY(-2px);
}

.search-prefix {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 740;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box input::placeholder {
  color: #afb4af;
}

.search-box.is-address-mode input {
  font-size: clamp(17px, 2.3vw, 22px);
  letter-spacing: 0;
  text-transform: none;
}

.search-box.is-address-mode .search-prefix {
  font-family: inherit;
  font-size: 21px;
}

.search-box button {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 0 25px;
  color: #fff;
  border: 0;
  border-radius: 17px;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(24, 79, 59, 0.22);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.search-box button:hover {
  background: #0f3e2d;
  transform: translateY(-1px);
}

.search-box button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.search-box button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 0;
}

.search-meta p {
  margin: 0;
  color: #858d87;
  font-size: 11px;
}

.sample-list {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sample-list span {
  margin-right: 3px;
  color: #a2a7a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sample-list button {
  padding: 5px 9px;
  color: var(--green);
  border: 1px solid rgba(24, 79, 59, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.sample-list button:hover {
  background: var(--lime);
}

.notice {
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(190, 73, 45, 0.2);
  border-radius: 13px;
  background: #fff1e9;
  color: #8a3d28;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.notice.is-success {
  border-color: rgba(47, 125, 89, 0.2);
  background: #edf7e5;
  color: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.75fr);
  gap: 18px;
  margin-bottom: 74px;
}

.map-card,
.result-card {
  overflow: hidden;
  min-height: 570px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 0 15px 55px rgba(28, 48, 38, 0.07);
}

.map-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 12px 17px 16px;
}

.map-toolbar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-kicker {
  color: var(--green-bright);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.map-toolbar strong {
  max-width: 460px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-expand {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.map-expand:disabled {
  cursor: default;
  opacity: 0.45;
}

.map-expand:not(:disabled):hover {
  color: var(--green);
  border-color: var(--green-bright);
}

.map-expand svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.map {
  position: relative;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
  border-radius: 24px;
  background: #e8eadf;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(215, 237, 159, 0.7), transparent 32%),
    radial-gradient(circle at 75% 70%, rgba(234, 106, 56, 0.14), transparent 28%),
    repeating-linear-gradient(35deg, rgba(24, 79, 59, 0.04) 0, rgba(24, 79, 59, 0.04) 1px, transparent 1px, transparent 18px),
    #edf0e5;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.map-placeholder.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.map-placeholder strong {
  margin-top: 10px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 19px;
  font-weight: 500;
}

.map-placeholder > span {
  color: var(--muted);
  font-size: 11px;
}

.map-pin-pulse {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
}

.map-pin-pulse span {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(24, 79, 59, 0.22);
  border-radius: 50%;
  animation: pulse 2.4s infinite;
}

.map-pin-pulse svg {
  width: 48px;
  fill: var(--green);
  filter: drop-shadow(0 8px 14px rgba(24, 79, 59, 0.2));
}

.map-pin-pulse circle {
  fill: var(--lime);
}

@keyframes pulse {
  0% { opacity: 0.7; transform: scale(0.65); }
  75%, 100% { opacity: 0; transform: scale(1.25); }
}

.result-card {
  position: relative;
  padding: 30px;
}

.result-empty,
.result-content {
  height: 100%;
}

.result-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 14px;
}

.result-index {
  position: absolute;
  top: 28px;
  right: 30px;
  color: rgba(24, 79, 59, 0.18);
  font-family: Georgia, serif;
  font-size: 52px;
}

.result-empty-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 20px;
  background: #eef3e4;
}

.result-empty-icon svg {
  width: 39px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.result-empty h2 {
  margin: 24px 0 10px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 27px;
  font-weight: 500;
}

.result-empty p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.result-content {
  display: flex;
  flex-direction: column;
}

.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.result-label {
  color: var(--green-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.result-heading h2 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.source-badge {
  padding: 7px 9px;
  color: var(--green);
  border-radius: 8px;
  background: #edf4e5;
  font-size: 9px;
  font-weight: 800;
}

.source-badge.is-demo {
  color: #8b5417;
  background: #fff1d9;
}

.address-primary {
  padding: 29px 0 26px;
}

.address-primary span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.address-primary h3 {
  margin: 9px 0 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 500;
  line-height: 1.55;
}

.address-primary p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.address-grid div {
  min-width: 0;
  padding: 14px 15px;
  border: 0;
  background: var(--card);
}

.address-grid div:nth-child(2n) {
  border-right: 0;
}

.address-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.address-grid > div:nth-child(3),
#kana-row,
#roman-row {
  grid-column: 1 / -1;
}

.address-grid dt {
  margin-bottom: 5px;
  color: #919791;
  font-size: 9px;
  font-weight: 700;
}

.address-grid dd {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#kana-row dd,
#roman-row dd {
  line-height: 1.5;
  white-space: normal;
}

.business-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(24, 79, 59, 0.14);
  border-radius: 17px;
  background: #f1f6e9;
}

.business-panel > span,
.entrance-section > span {
  color: var(--green-bright);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.business-panel h3 {
  margin: 4px 0 13px;
  color: var(--muted);
  font-size: 10px;
}

.business-panel > strong {
  display: block;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.business-panel > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 16px 0 0;
}

.business-grid div {
  min-width: 0;
}

.business-grid dt {
  margin-bottom: 3px;
  color: #8b958e;
  font-size: 8px;
}

.business-grid dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.business-grid a {
  color: var(--green);
}

.entrance-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 79, 59, 0.12);
}

#entrance-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

#entrance-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: var(--green);
  border: 1px solid rgba(24, 79, 59, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-align: left;
}

#entrance-list button:hover {
  border-color: var(--green-bright);
}

#entrance-list span {
  font-size: 10px;
  font-weight: 750;
}

#entrance-list small {
  color: var(--muted);
  font-size: 8px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 0;
  padding-top: 24px;
}

.result-actions button {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.result-actions svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: #fff;
  border: 0;
  background: var(--green);
}

.button-primary:hover {
  background: #103e2e;
}

.button-secondary {
  padding: 0 17px;
  color: var(--green);
  border: 1px solid var(--line);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--green-bright);
}

.candidate-section {
  margin: -42px 0 78px;
}

.candidate-section .section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.candidate-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.candidate-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 116px;
  padding: 15px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.76);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.candidate-item:hover,
.candidate-item.is-selected {
  border-color: var(--green-bright);
  box-shadow: 0 12px 30px rgba(24, 79, 59, 0.08);
  transform: translateY(-1px);
}

.candidate-item.is-selected {
  background: #f1f6e9;
}

.candidate-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green);
  border-radius: 10px;
  background: #e5efdb;
  font-family: Georgia, serif;
  font-size: 14px;
}

.candidate-item > div {
  min-width: 0;
}

.candidate-item strong,
.candidate-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-item strong {
  margin: 2px 0 7px;
  font-size: 12px;
  line-height: 1.5;
}

.candidate-postal {
  color: var(--orange);
  font-size: 9px;
  line-height: 1.5;
}

.candidate-locale {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.history-section {
  margin: 0 0 92px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading span,
.feature-intro > span {
  color: var(--green-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 24px;
  font-weight: 500;
}

.section-heading button {
  padding: 6px;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.history-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.75);
  cursor: pointer;
  text-align: left;
}

.history-item:hover {
  border-color: var(--green-bright);
  transform: translateY(-1px);
}

.history-item > span {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  color: var(--green);
  border-radius: 12px;
  background: #edf3e5;
  font-family: Georgia, serif;
  font-size: 17px;
}

.history-item div {
  min-width: 0;
}

.history-item strong,
.history-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item strong {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.history-item small {
  color: var(--muted);
  font-size: 10px;
}

.feature-section {
  display: grid;
  grid-template-columns: 0.85fr 1.8fr;
  gap: 70px;
  padding: 80px 0 105px;
  border-top: 1px solid var(--line);
}

.feature-intro h2 {
  margin: 15px 0 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-grid article {
  position: relative;
  min-height: 270px;
  padding: 26px 23px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
}

.feature-grid article > span {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(24, 79, 59, 0.28);
  font-family: Georgia, serif;
  font-size: 17px;
}

.feature-grid svg {
  width: 43px;
  margin-top: 34px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.feature-grid h3 {
  margin: 24px 0 9px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 19px;
  font-weight: 500;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 34px max(24px, calc((100% - 1240px) / 2));
  color: rgba(255, 255, 255, 0.7);
  background: #12271f;
}

.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: #fff;
  font-size: 11px;
}

.footer-brand span {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.1em;
}

footer p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

footer > a {
  color: var(--lime);
  font-size: 10px;
  text-decoration: none;
}

.loading-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(246, 242, 233, 0.35);
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.loading-overlay[hidden] {
  display: none;
}

.loader {
  display: flex;
  gap: 5px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.loader i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: jump 900ms ease-in-out infinite;
}

.loader i:nth-child(2) { animation-delay: 120ms; }
.loader i:nth-child(3) { animation-delay: 240ms; }

@keyframes jump {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .map-card,
  .result-card {
    min-height: auto;
  }

  .map {
    min-height: 500px;
  }

  .result-card {
    min-height: 500px;
  }

  .feature-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

  .feature-intro h2 br {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header,
  main {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    padding-top: 18px;
  }

  .header-status {
    padding: 7px 9px;
  }

  .header-status span:last-child {
    display: none;
  }

  .hero {
    margin-top: 48px;
  }

  .hero h1 {
    font-size: clamp(39px, 10.5vw, 52px);
    letter-spacing: -0.085em;
  }

  .hero-copy br {
    display: none;
  }

  .search-mode-tabs {
    display: grid;
    width: 100%;
  }

  .search-mode-tabs button {
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .search-box {
    grid-template-columns: auto 1fr;
    padding: 9px 9px 9px 18px;
    border-radius: 20px;
  }

  .search-box button {
    grid-column: 1 / -1;
    min-height: 52px;
    justify-content: center;
  }

  .search-meta {
    display: block;
    padding-right: 5px;
    padding-left: 5px;
  }

  .sample-list {
    margin-top: 11px;
  }

  .map-card {
    padding: 8px;
    border-radius: 24px;
  }

  .map {
    min-height: 400px;
    border-radius: 19px;
  }

  .map-toolbar {
    padding: 12px 8px 14px;
  }

  .map-expand {
    padding: 8px;
  }

  .map-expand svg {
    width: 16px;
  }

  .map-expand {
    font-size: 0;
  }

  .result-card {
    min-height: 480px;
    padding: 24px;
    border-radius: 24px;
  }

  .business-grid,
  .candidate-list {
    grid-template-columns: 1fr;
  }

  .candidate-section {
    margin-top: -45px;
  }

  .candidate-section .section-heading {
    gap: 12px;
    align-items: flex-start;
  }

  .history-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 220px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 17px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
