:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #20364f;
  --muted: #718093;
  --line: #d9e2ec;
  --green: #74b816;
  --green-dark: #3f8f00;
  --accent: #2f80ed;
  --shadow: 0 12px 28px rgba(28, 45, 64, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

button, input, select, textarea { font: inherit; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  border-bottom: 3px solid var(--green);
  background: #050505;
  color: #fff;
  padding: 0 16px;
}

.logo-mark { color: var(--green); font-size: 24px; font-weight: 900; }
.app-title { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.version { color: #9ba4ad; font-size: 18px; }

.app-frame {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
}

.side-nav {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 12px 0;
}

.nav-group {
  margin: 16px 16px 4px;
  color: #95a1ad;
  font-size: 12px;
  font-weight: 800;
}

.nav-item {
  display: block;
  border-left: 3px solid transparent;
  color: #243b53;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 15px;
}

.nav-item.active {
  border-color: #111;
  background: #e9f6dc;
  color: #4f8b00;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--green);
}

.content {
  min-width: 0;
  overflow-x: hidden;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px;
}

.filter-bar > label,
.filter-bar > .ghost-button {
  display: none !important;
}

.filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52657a;
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 5px 8px;
}

select { min-width: 78px; }

button, .ghost-button {
  min-height: 34px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-button {
  border-color: #cfd8e3;
  background: #fff;
  color: #31475e;
}

.search-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-basis: 100%;
}

.search-line input {
  width: min(360px, 100%);
  font-size: 16px;
  border: 2px solid #f59f00;
  background: #fff8e6;
  box-shadow: 0 0 0 3px rgba(245, 159, 0, 0.12);
  font-weight: 800;
}

.search-line input:focus {
  outline: none;
  border-color: #f08c00;
  box-shadow: 0 0 0 4px rgba(245, 159, 0, 0.22);
}

.hint { color: #52657a; font-size: 14px; }
.area-label { margin-left: auto; color: #52657a; font-size: 18px; }
.area-label::after { content: ""; color: var(--green); }

.crumbs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 8px 28px;
  color: #52657a;
}

.la-page {
  display: none;
  padding: 18px 24px;
}

.la-page.active {
  display: block;
}

.la-page h1,
.la-page h2 {
  margin: 0 0 14px;
  color: #17324d;
}

.seo-lead {
  margin: -6px 0 12px;
  color: #52657a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.page-map {
  padding: 18px 24px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #f0bf32;
  border-radius: 8px;
  background: #fff9e6;
  color: #735100;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 14px;
}

.notice-label {
  flex: 0 0 auto;
  color: #d97600;
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: 400;
  white-space: nowrap;
}

.notice-scroll {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.notice-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: notice-marquee 34s linear infinite;
}

.notice-scroll:hover .notice-track {
  animation-play-state: paused;
}

.notice-track strong {
  flex: 0 0 auto;
}

.notice-track b {
  flex: 0 0 auto;
  border-left: 1px solid #efcf77;
  color: #17324d;
  padding-left: 16px;
  font-size: 14px;
}

@keyframes notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dbe8f3;
  box-shadow: var(--shadow);
}

.hero-card picture,
.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-card img {
  object-fit: cover;
}

.dashboard-grid {
  display: block;
  margin-top: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.section-title {
  margin-bottom: 12px;
  color: #4f8b00;
  font-size: 17px;
  font-weight: 900;
}

.indicators-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-prefecture-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #607386;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.overview-prefecture-control select {
  width: 150px;
  min-height: 36px;
  border-color: #cfdbe7;
  background: #fff;
  padding: 6px 34px 6px 12px;
  color: #17324d;
  font-size: 14px;
  font-weight: 900;
}

.metric-grid, .mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid div, .mini-metrics div {
  border-radius: 6px;
  background: #f4f7fa;
  padding: 14px 16px;
}

.metric-grid span, .mini-metrics span {
  display: block;
  color: #607386;
  font-size: 14px;
}

.metric-grid strong, .mini-metrics strong {
  display: block;
  margin-top: 8px;
  color: #17324d;
  font-size: 25px;
}

.metric-grid em {
  display: block;
  margin-top: 6px;
  color: #8090a0;
  font-style: normal;
}

.news-card {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: 40vh;
  overflow: hidden;
  background: #f5faec;
  padding: 0;
}

.news-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #dbe8c8;
  background: linear-gradient(180deg, #f6fbe9 0%, #eef4dd 100%);
  padding: 10px 12px;
  cursor: default;
}

.news-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.news-head small {
  border-radius: 999px;
  background: #e9f4dc;
  color: #5f9716;
  padding: 2px 8px;
  font-size: 12px;
}

.news-head span {
  color: #8291a1;
  font-size: 12px;
}

.news-body {
  max-height: calc(40vh - 46px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}

.news-ticker {
  animation: news-board-scroll 18s linear infinite;
}

.news-body:hover .news-ticker {
  animation-play-state: paused;
}

.news-card article {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e1e8ef;
  margin: 0 14px;
  padding: 14px 0;
}

.news-card time { color: #8291a1; }
.news-card p { margin: 0; font-size: 16px; }
.news-card b {
  border-radius: 999px;
  background: #e9f4dc;
  color: #5f9716;
  padding: 4px 10px;
  white-space: nowrap;
}

.news-card b.chance {
  background: #e9f4dc;
  color: #4f8b00;
}

.news-card b.watch {
  background: #fff4d8;
  color: #9a6200;
}

.news-card b.risk {
  background: #ffe8e5;
  color: #b42318;
}

@keyframes news-board-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.real-estate-news-card {
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
}

.real-estate-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dce5ee;
  background: #f8fafc;
  padding: 11px 12px;
}

.real-estate-news-head strong {
  color: #17324d;
  font-size: 16px;
}

.real-estate-news-head span {
  color: #718093;
  font-size: 12px;
  font-weight: 800;
}

.real-estate-news-list {
  display: grid;
}

.real-estate-news-list article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e8eef4;
  padding: 12px;
}

.real-estate-news-list article:last-child {
  border-bottom: 0;
}

.real-estate-news-list time {
  color: #8291a1;
  font-size: 12px;
  font-weight: 800;
}

.real-estate-news-list p {
  margin: 0;
  color: #243b53;
  font-size: 14px;
  line-height: 1.55;
}

.real-estate-news-list b {
  border-radius: 999px;
  background: #eef6ff;
  color: #2f80ed;
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-chip, .summary-pill {
  border-radius: 999px;
  background: #edf8e4;
  color: #4f8b00;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 900;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.estimate-price {
  font-size: 38px;
  font-weight: 950;
  color: #17324d;
}

.estimate-range, .help-text {
  margin: 8px 0 0;
  color: #66788a;
  font-size: 13px;
}

.form-grid { display: grid; gap: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; color: #465a70; font-weight: 800; }
.form-message {
  display: none;
  margin: 0;
  border: 1px solid #f4c7c3;
  border-radius: 6px;
  background: #fff3f2;
  color: #b42318;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

.form-message.active {
  display: block;
}

textarea { width: 100%; min-height: 130px; font: 12px/1.5 Consolas, monospace; }
.button-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.research-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  background: #f8fbfd;
}

.research-box div {
  display: grid;
  gap: 3px;
}

.research-box strong {
  color: #17314c;
  font-size: 15px;
}

.research-box span {
  color: #6b7f93;
  font-size: 12px;
  line-height: 1.45;
}

.research-links {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.research-links:empty {
  display: none;
}

.research-links a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #cddbea;
  border-radius: 7px;
  background: #fff;
  color: #17314c;
  text-decoration: none;
}

.research-links a strong {
  font-size: 14px;
}

.research-links a span {
  color: #6b7f93;
  font-size: 12px;
}

.research-links-head {
  display: grid;
  gap: 2px;
  color: #17314c;
}

.research-links-head strong {
  font-size: 13px;
}

.research-links-head span {
  color: #6b7f93;
  font-size: 11px;
  line-height: 1.45;
}

.map-research-links {
  margin-top: -2px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #dce7f1;
  border-radius: 8px;
  background: #f8fbfd;
}

.map-research-links a {
  padding: 8px 10px;
}

.research-import-link {
  border-color: #b8d891 !important;
  background: #f5fbef !important;
}

.layer-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.layer-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  background: #fff;
  padding: 7px 11px;
  font-size: 13px;
}

.layer-toggles select {
  min-width: 130px;
  padding: 2px 6px;
}

.layer-toggles input { width: auto; }

.map-and-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px 360px;
  gap: 16px;
}

.analysis-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dcebf8;
}

.analysis-map .leaflet-container,
#leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 410;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.zoning-layer { background: linear-gradient(120deg, rgba(255,199,95,.22) 0 28%, transparent 28%), linear-gradient(32deg, transparent 0 35%, rgba(96,165,250,.16) 35% 62%, transparent 62%), linear-gradient(160deg, transparent 0 58%, rgba(34,197,94,.18) 58%); }
.road-layer { background: linear-gradient(84deg, transparent 0 46%, rgba(255,255,255,.35) 46% 50%, transparent 50%), linear-gradient(6deg, transparent 0 62%, rgba(255,255,255,.30) 62% 66%, transparent 66%); }
.risk-layer { background: linear-gradient(145deg, transparent 0 54%, rgba(220,38,38,.14) 54%); }
.hidden { display: none; }

.map-left-controls {
  position: absolute;
  left: 16px;
  top: 18px;
  z-index: 500;
  display: grid;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 54, 79, 0.16);
}

.map-left-controls button {
  width: 48px;
  height: 46px;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid #e1e4e8;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 27px;
  line-height: 1;
}

.map-left-controls button:last-child {
  border-bottom: 0;
  color: #66788a;
  font-size: 18px;
}

.map-side-panel {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.map-panel-warning {
  border: 1px solid #f6bf62;
  border-radius: 6px;
  background: #fff3df;
  color: #b46600;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
}

.map-layer-group {
  border-bottom: 1px solid #e1e4e8;
  padding: 9px 0 11px;
}

.map-layer-group:last-child {
  border-bottom: 0;
}

.map-layer-group h3 {
  margin: 0 0 8px;
  color: #4a7d20;
  font-size: 14px;
}

.map-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}

.map-check-grid label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 5px;
  color: #52657a;
  font-size: 14px;
  font-weight: 700;
}

.map-check-grid input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.dot.blue { background: #2f80ed; }
.dot.orange { background: #f59f00; }
.dot.red { background: #d94841; }
.dot.purple { background: #9b59b6; }
.dot.teal { background: #20b2aa; }
.dot.green { background: #74b816; }
.dot.sky { background: #79bce8; }
.dot.tan { background: #d6a475; }
.dot.brown { background: #8a3a2b; }

.case-div-icon,
.target-div-icon {
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(20,32,44,.24);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.case-div-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
}

.case-div-icon.price-label {
  position: relative;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 6px;
  width: 132px;
  height: auto;
  min-height: 42px;
  border-radius: 8px;
  background: #fff;
  color: #17324d;
  padding: 6px 8px;
  text-align: left;
}

.case-div-icon.price-label.closed {
  border-color: #2f80ed;
}

.case-div-icon.price-label.listing {
  border-color: #63b80f;
}

.case-div-icon.price-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  border: 9px solid transparent;
  border-top-color: #fff;
  transform: translateX(-50%);
}

.case-div-icon.price-label span {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  min-width: 42px;
  padding: 0 5px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.case-div-icon.price-label.closed span {
  background: #2f80ed;
}

.case-div-icon.price-label.listing span {
  background: #63b80f;
}

.case-div-icon.price-label strong {
  color: #17324d;
  font-size: 14px;
  line-height: 1.1;
}

.case-div-icon.price-label em {
  color: #607386;
  font-size: 10px;
  font-style: normal;
  line-height: 1.1;
}

.case-div-icon.price-label.closed.selected { background: #2f80ed; color: #fff; }
.case-div-icon.price-label.listing.selected { background: #63b80f; color: #fff; }
.case-div-icon.price-label.closed.selected::after { border-top-color: #2f80ed; }
.case-div-icon.price-label.listing.selected::after { border-top-color: #63b80f; }

.case-div-icon.price-label.selected strong,
.case-div-icon.price-label.selected em {
  color: #fff;
}

.target-div-icon {
  width: 56px;
  height: 34px;
  border-radius: 999px;
  background: #d92d20;
}

.leaflet-popup {
  max-width: min(260px, calc(100vw - 44px));
}

.leaflet-popup-content-wrapper {
  max-width: min(260px, calc(100vw - 44px));
}

.leaflet-popup-content {
  width: 220px !important;
  max-width: 220px !important;
  margin: 14px 16px;
  color: #20364f;
  line-height: 1.55;
}

.target-popup {
  display: grid;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.target-popup strong {
  color: #17324d;
  font-size: 15px;
}

.target-popup span {
  color: #52657a;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.target-appraisal-button {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  margin-top: 0;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  white-space: nowrap;
}

.case-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.case-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 10px;
  color: #607386;
  font-size: 12px;
  font-weight: 900;
}

.case-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-dot.closed { background: #2f80ed; }
.legend-dot.listing { background: #63b80f; }
.legend-dot.target { background: #d92d20; }

.listing-status {
  margin: -2px 0 10px;
  padding: 8px 10px;
  border: 1px solid #dbe6ef;
  border-radius: 7px;
  background: #f8fbfd;
  color: #607386;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.listing-status.active {
  border-color: #b8d891;
  background: #f5fbef;
  color: #357a08;
}

.case-filter-panel label {
  display: grid;
  gap: 5px;
  color: #607386;
  font-size: 12px;
  font-weight: 900;
}

.case-filter-panel select {
  min-width: 0;
  width: 100%;
  border-radius: 5px;
  padding: 7px 8px;
  font-size: 12px;
}

.case-filter-panel button {
  grid-column: 1 / -1;
  min-height: 34px;
}

.cases-list { display: grid; gap: 9px; max-height: 520px; overflow-y: auto; }
.cases-empty { border: 1px dashed #cbd6e2; border-radius: 8px; color: #607386; padding: 14px; text-align: center; }
.case-item { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 11px; cursor: pointer; }
.case-item.closed { border-left: 4px solid #2f80ed; }
.case-item.listing { border-left: 4px solid #63b80f; }
.case-item.closed.selected { border-color: #2f80ed; box-shadow: 0 0 0 3px rgba(47,128,237,.14); }
.case-item.listing.selected { border-color: #63b80f; box-shadow: 0 0 0 3px rgba(99,184,15,.16); }
.case-topline { display: flex; justify-content: space-between; gap: 8px; }
.case-item h3 { margin: 0; font-size: 14px; }
.score-pill { border-radius: 999px; background: #eef6ff; color: var(--accent); padding: 3px 7px; font-size: 11px; font-weight: 900; }
.case-item.listing .score-pill { background: #edf8e8; color: #4f8b00; }
.case-item.closed .score-pill { background: #eef6ff; color: #2f80ed; }
.case-meta { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.case-price { margin-top: 8px; font-size: 18px; font-weight: 950; }
.case-source { margin-top: 5px; color: #607386; font-size: 11px; font-weight: 800; }
.case-source a { color: #2f80ed; }
.score-bar { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #edf2f7; }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.case-item.closed .score-bar span { background: #2f80ed; }
.case-item.listing .score-bar span { background: #63b80f; }

.data-import-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 1280px) {
  .dashboard-grid, .analysis-grid, .map-and-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-frame { grid-template-columns: 1fr; }
  .side-nav { position: static; height: auto; }
  .metric-grid, .mini-metrics { grid-template-columns: 1fr 1fr; }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.la-kpi {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.la-kpi span {
  display: block;
  color: #607386;
  font-size: 13px;
}

.la-kpi strong {
  display: block;
  margin-top: 8px;
  color: #17324d;
  font-size: 24px;
}

.la-kpi em {
  display: block;
  margin-top: 6px;
  color: #8090a0;
  font-style: normal;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.features-content-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.indicator-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 14px;
}

.measure-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 14px;
}

.livecam-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 14px;
}

.calc-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.glossary-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 14px;
}

.feature-wide-card {
  grid-column: 1 / -1;
}

.indicator-wide-card {
  grid-column: 1 / -1;
}

.measure-wide-card {
  grid-column: 1 / -1;
}

.livecam-wide-card {
  grid-column: 1 / -1;
}

.glossary-wide-card {
  grid-column: 1 / -1;
}

.empty-page {
  color: #66788a;
  min-height: 120px;
}

.price-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.price-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.population-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 14px;
}

.housing-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 220px;
  border-radius: 6px;
  background:
    linear-gradient(#edf1f5 1px, transparent 1px) 0 0 / 100% 25%,
    #fbfcfd;
  padding: 18px 14px 10px;
}

.bar-item {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
  flex: 1;
  min-width: 42px;
  height: 190px;
}

.bar {
  width: 100%;
  max-width: 54px;
  min-height: 8px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #73b12c, #4a7d20);
}

.bar-item span {
  margin-top: 8px;
  color: #6a737d;
  font-size: 12px;
  white-space: nowrap;
}

.population-trend-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 250px;
  border-radius: 6px;
  background:
    linear-gradient(#edf1f5 1px, transparent 1px) 0 0 / 100% 25%,
    #fbfcfd;
  padding: 18px 14px 10px;
}

.population-bar-item {
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  justify-items: center;
  flex: 1;
  min-width: 58px;
  height: 220px;
}

.population-bar {
  width: 100%;
  max-width: 50px;
  min-height: 12px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #8dc63f, #4f8524);
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.08);
}

.population-value {
  margin-top: 8px;
  color: #17324d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.population-label {
  margin-top: 3px;
  color: #718092;
  font-size: 12px;
}

.stacked-chart {
  display: grid;
  gap: 14px;
}

.stacked-row {
  display: grid;
  gap: 7px;
}

.stacked-row-header {
  display: flex;
  justify-content: space-between;
  color: #52657a;
  font-size: 13px;
}

.stacked-track {
  display: flex;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.stacked-track span:nth-child(1) { background: #45aaf2; }
.stacked-track span:nth-child(2) { background: #73b12c; }
.stacked-track span:nth-child(3) { background: #f0a33a; }

.age-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
  color: #607386;
  font-size: 12px;
}

.age-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: -1px;
}

.age-legend span:nth-child(1)::before { background: #45aaf2; }
.age-legend span:nth-child(2)::before { background: #73b12c; }
.age-legend span:nth-child(3)::before { background: #f0a33a; }

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

.household-stat {
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 13px;
}

.household-stat span {
  color: #607386;
  font-size: 12px;
}

.household-stat strong {
  display: block;
  margin-top: 7px;
  color: #17324d;
  font-size: 22px;
}

.population-table {
  min-width: 520px;
}

.housing-stock-chart {
  display: grid;
  gap: 13px;
}

.stock-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  align-items: center;
  gap: 11px;
  color: #52657a;
  font-size: 13px;
}

.stock-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.stock-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #73b12c, #a7d56a);
}

.stock-row strong {
  color: #17324d;
  text-align: right;
}

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

.ratio-card {
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 14px;
}

.ratio-card span {
  color: #607386;
  font-size: 12px;
}

.ratio-card strong {
  display: block;
  margin: 7px 0 10px;
  color: #17324d;
  font-size: 24px;
}

.ratio-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.ratio-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #73b12c;
}

.signal-list {
  display: grid;
  gap: 11px;
}

.signal-item {
  border-left: 4px solid #73b12c;
  border-radius: 4px;
  background: #f8fafc;
  padding: 11px 12px;
}

.signal-item strong {
  display: block;
  color: #17324d;
  font-size: 14px;
}

.signal-item span {
  display: block;
  margin-top: 4px;
  color: #607386;
  font-size: 13px;
  line-height: 1.55;
}

.feature-score-list {
  display: grid;
  gap: 12px;
}

.feature-score-row {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  align-items: center;
  gap: 10px;
  color: #52657a;
  font-size: 13px;
}

.feature-score-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.feature-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #73b12c, #d0e875);
}

.feature-score-row strong {
  color: #17324d;
  text-align: right;
}

.local-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.local-profile-item {
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 13px;
}

.local-profile-item span {
  color: #607386;
  font-size: 12px;
}

.local-profile-item strong {
  display: block;
  margin-top: 7px;
  color: #17324d;
  font-size: 18px;
}

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

.topic-item {
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #fff;
  padding: 13px;
}

.topic-item time {
  color: #7b8b9b;
  font-size: 12px;
}

.topic-item strong {
  display: block;
  margin-top: 8px;
  color: #17324d;
  font-size: 14px;
  line-height: 1.45;
}

.topic-item span {
  display: inline-block;
  margin-top: 10px;
  border-radius: 999px;
  background: #edf7e4;
  color: #4f8524;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  background: #eef6ff;
  color: #2b7bbb;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.hot {
  background: #fff4e5;
  color: #bc6b00;
}

.status-pill.won {
  background: #edf7e4;
  color: #4f8524;
}

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

.indicator-card {
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 13px;
}

.indicator-card span {
  color: #607386;
  font-size: 12px;
}

.indicator-card strong {
  display: block;
  margin-top: 7px;
  color: #17324d;
  font-size: 16px;
}

.indicator-card em {
  display: block;
  margin-top: 7px;
  color: #718092;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.indicator-source-list {
  display: grid;
  gap: 11px;
}

.indicator-source-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e8edf3;
  padding: 0 0 11px;
}

.indicator-source-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.indicator-source-item strong {
  color: #17324d;
  font-size: 14px;
}

.indicator-source-item span {
  display: block;
  margin-top: 3px;
  color: #718092;
  font-size: 12px;
}

.indicator-table {
  min-width: 780px;
}

.measure-canvas {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #d6dee7;
  border-radius: 6px;
  background: #f4f6f8;
}

.measure-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,50,77,.08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(23,50,77,.08) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 30% 38%, rgba(115,177,44,.14), transparent 28%),
    radial-gradient(circle at 78% 65%, rgba(45,127,197,.12), transparent 24%),
    #f8fafc;
}

.measure-grid-bg::before,
.measure-grid-bg::after {
  content: "";
  position: absolute;
  background: rgba(23,50,77,.28);
}

.measure-grid-bg::before {
  left: -20px;
  right: -20px;
  top: 48%;
  height: 18px;
  transform: rotate(-8deg);
}

.measure-grid-bg::after {
  top: -20px;
  bottom: -20px;
  left: 64%;
  width: 16px;
  transform: rotate(12deg);
}

.measure-polygon {
  position: absolute;
  inset: 74px 126px 76px 92px;
  clip-path: polygon(12% 18%, 86% 8%, 94% 68%, 31% 91%, 5% 55%);
  border: 3px solid #4f8524;
  background: rgba(115,177,44,.24);
  box-shadow: 0 0 0 2px rgba(79,133,36,.12);
}

.measure-point {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #2b7bbb;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 950;
}

.measure-point.p1 { left: 106px; top: 88px; }
.measure-point.p2 { right: 128px; top: 72px; }
.measure-point.p3 { right: 96px; bottom: 108px; }
.measure-point.p4 { left: 168px; bottom: 62px; }

.measure-label {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #17324d;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  font-weight: 950;
}

.measure-result-list {
  display: grid;
  gap: 12px;
}

.measure-result-item {
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 13px;
}

.measure-result-item span {
  color: #607386;
  font-size: 12px;
}

.measure-result-item strong {
  display: block;
  margin-top: 7px;
  color: #17324d;
  font-size: 23px;
}

.measure-table {
  min-width: 760px;
}

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

.livecam-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(23,50,77,.18), rgba(23,50,77,.02)),
    #f8fafc;
  padding: 13px;
}

.livecam-card::before {
  content: "";
  position: absolute;
  inset: 48px 0 auto;
  height: 18px;
  background: rgba(23,50,77,.20);
  transform: rotate(-7deg);
}

.livecam-card strong,
.livecam-card span,
.livecam-card em,
.livecam-card a {
  position: relative;
  z-index: 1;
}

.livecam-card strong {
  display: block;
  color: #17324d;
  font-size: 16px;
}

.livecam-card span {
  display: block;
  margin-top: 7px;
  color: #607386;
  font-size: 12px;
}

.livecam-card em {
  display: inline-block;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #4f8524;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.livecam-card a {
  display: inline-block;
  margin-top: 12px;
  color: #2b7bbb;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.calc-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #607386;
  font-size: 13px;
  font-weight: 800;
}

.calc-field input {
  width: 100%;
  border: 1px solid #ccd6e0;
  border-radius: 6px;
  background: #fff;
  padding: 10px 11px;
  color: #17324d;
  font-weight: 900;
}

.calc-result {
  margin-top: 14px;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 13px;
}

.calc-result span {
  display: block;
  color: #607386;
  font-size: 12px;
}

.calc-result strong {
  display: block;
  margin-top: 7px;
  color: #17324d;
  font-size: 24px;
}

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

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

.glossary-card {
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #f8fafc;
  padding: 13px;
}

.glossary-card span {
  color: #607386;
  font-size: 12px;
}

.glossary-card strong {
  display: block;
  margin-top: 7px;
  color: #17324d;
  font-size: 17px;
}

.glossary-card em {
  display: block;
  margin-top: 7px;
  color: #718092;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.glossary-table {
  min-width: 900px;
}

.band-list {
  display: grid;
  gap: 11px;
}

.band-row {
  display: grid;
  grid-template-columns: 86px 1fr 46px;
  align-items: center;
  gap: 10px;
  color: #52657a;
  font-size: 13px;
}

.band-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.band-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #73b12c;
}

.transaction-card {
  margin-top: 14px;
}

.table-wrap {
  overflow: auto;
}

.transaction-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.transaction-table th,
.transaction-table td {
  border-bottom: 1px solid #e1e4e8;
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
}

.transaction-table th {
  background: #f6f8fa;
  color: #6a737d;
  font-size: 12px;
  font-weight: 900;
}

.transaction-table td.price-cell {
  color: #17324d;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .price-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-content-grid {
    grid-template-columns: 1fr;
  }

  .population-content-grid {
    grid-template-columns: 1fr;
  }

  .housing-content-grid {
    grid-template-columns: 1fr;
  }

  .features-content-grid {
    grid-template-columns: 1fr;
  }

  .indicator-content-grid {
    grid-template-columns: 1fr;
  }

  .measure-content-grid {
    grid-template-columns: 1fr;
  }

  .livecam-content-grid {
    grid-template-columns: 1fr;
  }

  .calc-content-grid {
    grid-template-columns: 1fr;
  }

  .glossary-content-grid {
    grid-template-columns: 1fr;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-header { padding: 0 16px; }
  .app-title { font-size: 22px; }
  .overview, .analysis-section { padding: 20px 16px; }
  .split, .metric-grid, .mini-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-header {
    height: 46px;
    gap: 10px;
  }

  .logo-mark {
    font-size: 20px;
  }

  .app-title {
    font-size: 18px;
    white-space: nowrap;
  }

  .version {
    display: none;
  }

  .app-frame {
    min-height: calc(100vh - 46px);
  }

  .side-nav {
    position: sticky;
    top: 46px;
    z-index: 19;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 5px 8px;
  }

  .nav-group {
    display: none;
  }

  .nav-item {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    border-left: 0;
    border-radius: 999px;
    background: #f4f7fa;
    padding: 6px 6px;
    font-size: 11px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-item.active {
    background: #e9f6dc;
    box-shadow: inset 0 0 0 1px var(--green);
  }

  .side-nav .nav-item:nth-of-type(n + 7) {
    display: none;
  }

  .filter-bar {
    position: sticky;
    top: 110px;
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px;
    box-shadow: 0 6px 14px rgba(28, 45, 64, 0.08);
  }

  .filter-bar label {
    display: grid;
    gap: 4px;
    font-size: 12px;
  }

  .filter-bar select,
  .filter-bar input {
    min-width: 0;
    width: 100%;
  }

  .filter-bar > .ghost-button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .search-line {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .search-line input {
    width: 100%;
    font-size: 14px;
  }

  .search-line button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 13px;
  }

  .hint,
  .area-label,
  .crumbs {
    display: none;
  }

  .la-page {
    padding: 10px 12px 92px;
    scroll-margin-top: 158px;
  }

  .la-page h1,
  .la-page h2 {
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.2;
  }

  .seo-lead {
    margin: -4px 0 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .notice {
    align-items: center;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .notice-track {
    gap: 12px;
    animation-duration: 46s;
  }

  .notice-track b {
    font-size: 12px;
    padding-left: 12px;
  }

  .hero-card {
    height: 160px;
    border-radius: 6px;
  }

  .dashboard-grid {
    margin-top: 12px;
  }

  .card {
    border-radius: 6px;
    padding: 12px;
  }

  .section-title {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .indicators-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .overview-prefecture-control {
    width: 100%;
    justify-content: space-between;
  }

  .overview-prefecture-control select {
    width: min(190px, 64vw);
  }

  .metric-grid,
  .mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .price-kpi-grid {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .price-kpi-grid::-webkit-scrollbar {
    display: none;
  }

  .metric-grid div,
  .mini-metrics div {
    min-height: 74px;
    padding: 8px 10px;
  }

  .price-kpi-grid .la-kpi {
    flex: 0 0 164px;
    min-height: 96px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .metric-grid span,
  .mini-metrics span,
  .la-kpi span {
    font-size: 12px;
  }

  .metric-grid strong,
  .mini-metrics strong,
  .la-kpi strong {
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .metric-grid em,
  .la-kpi em {
    margin-top: 5px;
    font-size: 11px;
  }

  .news-card {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .news-head {
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
  }

  .news-head strong {
    font-size: 13px;
  }

  .news-head small {
    padding: 1px 6px;
    font-size: 10px;
  }

  .news-head span {
    display: none;
  }

  .news-body {
    display: block;
    max-height: 126px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
  }

  .news-ticker {
    animation: none;
  }

  .news-card article {
    display: none;
  }

  .news-card article:nth-child(-n + 3) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    border-bottom: 1px solid #e8eef4;
    margin: 0 10px;
    padding: 6px 0;
  }

  .news-card article:nth-child(3) {
    border-bottom: 0;
  }

  .news-card article:nth-child(-n + 3) time {
    display: none;
  }

  .news-card article:nth-child(-n + 3) p {
    overflow: hidden;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .news-card article:nth-child(-n + 3) b {
    padding: 3px 7px;
    font-size: 10px;
  }

  .real-estate-news-card {
    margin-top: 8px;
    padding: 0;
    box-shadow: none;
  }

  .real-estate-news-head {
    min-height: 42px;
    padding: 8px 10px;
  }

  .real-estate-news-head strong {
    font-size: 13px;
  }

  .real-estate-news-head span {
    font-size: 10px;
  }

  .real-estate-news-list article {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 42px;
    padding: 7px 10px;
  }

  .real-estate-news-list time {
    grid-column: 1 / -1;
    font-size: 10px;
    line-height: 1;
  }

  .real-estate-news-list p {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .real-estate-news-list b {
    padding: 3px 7px;
    font-size: 10px;
  }

  .data-import-grid {
    grid-template-columns: 1fr;
  }

  .target-leaflet-popup,
  .target-leaflet-popup .leaflet-popup-content-wrapper {
    max-width: 238px !important;
  }

  .target-leaflet-popup .leaflet-popup-content {
    width: 206px !important;
    max-width: 206px !important;
    margin: 12px 12px;
  }

  .target-popup {
    gap: 7px;
  }

  .target-popup strong {
    font-size: 13px;
  }

  .target-popup span {
    font-size: 12px;
  }

  .target-appraisal-button {
    display: block !important;
    width: 100% !important;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .la-page h1,
  .la-page h2 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .notice-label {
    font-size: 12px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    padding: 7px 10px;
  }

  .search-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-line > span:first-child {
    display: none;
  }

  .search-line input {
    grid-column: 1;
    min-height: 34px;
  }

  .search-line button {
    grid-column: auto;
    min-width: 58px;
  }

  .search-line #fetch-nearby-prices {
    grid-column: 1 / -1;
  }

  .filter-bar > .ghost-button:nth-of-type(2),
  .filter-bar > .ghost-button:nth-of-type(3) {
    display: none;
  }

  .side-nav {
    gap: 5px;
    padding: 5px 8px;
  }

  .nav-item {
    flex-basis: calc(33.333% - 5px);
    min-width: 0;
    padding: 6px 4px;
    font-size: 11px;
  }

  .metric-grid,
  .mini-metrics {
    gap: 7px;
  }

  .metric-grid div,
  .mini-metrics div {
    min-height: 74px;
    padding: 8px;
  }

  .metric-grid strong,
  .mini-metrics strong {
    font-size: 17px;
  }

  .price-kpi-grid .la-kpi {
    flex-basis: 148px;
  }

  .research-box {
    align-items: stretch;
    flex-direction: column;
  }

  .research-box .ghost-button {
    width: 100%;
  }
}
