:root {
  --navy: #1b365d;
  --navy-dark: #102441;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --bg: #eef2f6;
  --white: #ffffff;
  --warn-bg: #fff7ed;
  --warn-border: #c2410c;
  --warn-text: #9a3412;
  --urgent-bg: #fef2f2;
  --urgent-border: #b91c1c;
  --urgent-text: #991b1b;
  --unconf-bg: #fefce8;
  --unconf-border: #a16207;
  --unconf-text: #854d0e;
  --neutral-bg: #f8fafc;
  --neutral-border: #64748b;
  --neutral-text: #334155;
}

* {
  box-sizing: border-box;
}

html,
body {
  touch-action: manipulation;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--slate-900);
  background: var(--bg);
  line-height: 1.55;
  font-size: 14px;
}

/* 操作パネル（診断後のスリムバー） */
.control-bar {
  background: var(--navy-dark);
  color: var(--white);
  padding: 11px 18px;
  border-bottom: 3px solid #2b548f;
}

.control-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cond-inline-label {
  display: none;
}

/* お客様表示の診断後はサンプル行を非表示にしてさらにスッキリ（担当者モードでは表示） */
body:not(.is-landing).audience-customer .demo-inline-row {
  display: none;
}

/* ===== 案1：診断前（検索ヒーロー画面） ===== */
body.is-landing {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8eef5 0%, #f4f7fb 100%);
}

body.is-landing #reportSheet,
body.is-landing #mobileSectionTabs,
body.is-landing .mobile-bottom-bar,
body.is-landing .post-diag-btn,
body.is-landing #quickShopSummary {
  display: none !important;
}

body.is-landing .control-bar {
  max-width: 780px;
  margin: clamp(32px, 10vh, 96px) auto 18px;
  padding: 26px 32px 30px;
  border-radius: 16px;
  background: linear-gradient(155deg, #102441 0%, #1b365d 56%, #23487a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.2);
}

body.is-landing .control-inner {
  gap: 16px;
}

body.is-landing .brand-row {
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  gap: 14px;
}

body.is-landing .action-buttons {
  width: 100%;
  justify-content: flex-end;
  gap: 8px;
}

body.is-landing .brand-left {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

body.is-landing .app-title {
  font-size: 28px;
  letter-spacing: 0.05em;
}

body.is-landing .quick-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

body.is-landing .quick-bar .search-box-wrap {
  flex: none;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

body.is-landing .search-input-row {
  gap: 8px;
}

body.is-landing #addressInput {
  height: 46px;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

body.is-landing #searchBtn,
body.is-landing #gpsBtn {
  height: 46px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 8px;
}

body.is-landing .suggestions {
  text-align: left;
  top: calc(100% + 4px);
}

body.is-landing .quick-conditions {
  justify-content: center;
  gap: 8px;
}

body.is-landing .cond-inline-label {
  display: inline;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}

body.is-landing .demo-inline-row {
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.is-landing .status-banner {
  max-width: 780px;
  margin: 0 auto 14px;
  border-radius: 8px;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.app-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-beta {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #2b548f;
  color: #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
}

.app-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #cbd5e1;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
}

.btn {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: #f59e0b;
  color: #111827;
}

.btn-primary:hover:not(:disabled) {
  background: #fbbf24;
}

.btn-dark {
  background: #2563eb;
  color: #ffffff;
}

.btn-dark:hover:not(:disabled) {
  background: #1d4ed8;
}

.btn-gps {
  background: #0d9488;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-gps:hover:not(:disabled) {
  background: #0f766e;
}

.btn-gps svg {
  width: 15px;
  height: 15px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.btn-line {
  background: #06c755;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-line:hover:not(:disabled) {
  background: #05b34c;
}

.btn-ghost-sm {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 10px;
  font-size: 12px;
}

.btn-ghost-sm:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.btn-ghost-dark {
  background: #f1f5f9;
  color: var(--slate-700);
  border: 1px solid #cbd5e1;
}

.history-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 8px;
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-controls select {
  flex: 1;
  min-width: 240px;
  max-width: 440px;
}

.shop-details {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.shop-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.shop-details-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cta-toggle-wrap {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.search-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  align-items: start;
}

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

.search-input-row {
  display: flex;
  gap: 6px;
}

.control-bar input[type="text"],
.control-bar select,
.control-bar textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #ffffff;
  color: var(--slate-900);
  font-family: inherit;
  font-size: 13px;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #ffffff;
  color: var(--slate-900);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  z-index: 1200;
  max-height: 260px;
  overflow-y: auto;
}

.suggestions li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}

.suggestions li:last-child {
  border-bottom: none;
}

.suggestions li:hover {
  background: #eff6ff;
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.demo-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.options-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr 0.9fr;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: #e2e8f0;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.seg-btn.active {
  background: #ffffff;
  color: var(--navy-dark);
}

.print-tip {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}

.status-banner {
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}

.status-banner.is-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* レポート本体 */
.report-sheet {
  max-width: 1180px;
  margin: 18px auto 36px;
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 26px 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: opacity 0.15s ease;
}

.report-sheet.is-stale > :not(.workspace-split),
.report-sheet.is-stale .workspace-split > :not(#mapSection) {
  opacity: 0.62;
  transition: opacity 0.15s ease;
}

body.is-printing .map-canvas {
  height: 235px !important;
}

body.is-printing .shelter-map-canvas {
  height: 205px !important;
}

.report-header {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.report-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.doc-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.report-title {
  margin: 2px 0 0;
  font-size: 22px;
  color: var(--navy-dark);
}

.non-jusetu-stamp {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.3;
  flex-shrink: 0;
}

.property-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 10px 12px;
}

.meta-wide {
  grid-column: span 2;
}

.meta-full {
  grid-column: 1 / -1;
}

.report-parcel-item {
  border-top: 1px dashed var(--slate-200);
  padding-top: 8px;
  margin-top: 2px;
}

.parcel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.parcel-print-only-badge {
  display: none;
  font-size: 9.5px;
  font-weight: 700;
  color: #7c2d12;
  border: 1px solid #fdba74;
  background: #ffedd5;
  padding: 1px 6px;
  border-radius: 999px;
}

.parcel-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.parcel-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.parcel-kind-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
  flex-shrink: 0;
}

.parcel-kind-badge.kind-rsdt {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.parcel-kind-badge.kind-parcel {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.parcel-main-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-900);
  word-break: break-word;
}

.parcel-main-val.is-muted {
  color: var(--slate-500);
  font-weight: 600;
}

.parcel-conf-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.4;
}

.parcel-conf-badge.conf-high {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.parcel-conf-badge.conf-medium {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

.parcel-conf-badge.conf-low {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.parcel-conf-badge.conf-ambiguous {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #facc15;
}

.parcel-disclaimer {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--slate-500);
}

.parcel-details {
  margin-top: 7px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 6px 10px;
}

.parcel-details-summary {
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: #1d4ed8;
  user-select: none;
}

.parcel-details-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parcel-cand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.parcel-cand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 8px;
  background: var(--slate-50, #f8fafc);
  border: 1px solid var(--slate-200);
  border-radius: 5px;
  font-size: 12px;
}

.parcel-cand-text {
  font-weight: 700;
  color: var(--slate-900);
}

.parcel-cand-meta {
  font-size: 11px;
  color: var(--slate-500);
  margin-left: 6px;
  font-weight: 500;
}

.parcel-copy-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.parcel-copy-btn:hover {
  background: #f1f5f9;
}

.parcel-subhead {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-600, #475569);
  margin-bottom: 4px;
}

.parcel-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.parcel-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  text-decoration: none;
}

.parcel-link-chip.is-official {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.parcel-link-chip.is-official:hover {
  background: #dbeafe;
}

.parcel-link-chip.is-external-search {
  background: #f8fafc;
  color: #334155;
  border: 1px dashed #94a3b8;
}

.parcel-link-chip.is-external-search:hover {
  background: #f1f5f9;
}

.parcel-retry-btn {
  align-self: flex-start;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #1e293b;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.meta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-500);
}

.meta-value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  word-break: break-word;
}

.coord-bar {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--slate-500);
}

.coord-hint {
  color: #1d4ed8;
  font-weight: 600;
}

.section-block {
  margin-bottom: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  border-left: 4px solid var(--navy);
  padding-left: 10px;
}

.section-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--navy-dark);
}

.section-sub {
  font-size: 11px;
  color: var(--slate-500);
}

.empty-placeholder {
  grid-column: 1 / -1;
  background: var(--slate-100);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: var(--slate-500);
}

/* 災害リスクカード */
.hazard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hazard-card {
  border: 1.5px solid var(--neutral-border);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--neutral-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hazard-card.state-detected {
  border-color: var(--warn-border);
  border-width: 2px;
  background: var(--warn-bg);
}

.hazard-card.state-urgent {
  border-color: var(--urgent-border);
  border-width: 2px;
  background: var(--urgent-bg);
}

.hazard-card.state-unconfirmed {
  border-color: var(--unconf-border);
  border-style: dashed;
  background: var(--unconf-bg);
}

.hazard-card.state-error {
  border-color: var(--urgent-border);
  border-style: dashed;
  background: #fff5f5;
}

.hazard-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hazard-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hazard-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  background: #ffffff;
}

.hazard-icon-badge svg {
  width: 22px;
  height: 22px;
  display: block;
}

.icon-flood { color: #1d4ed8; background: #eff6ff; }
.icon-naisui { color: #0369a1; background: #f0f9ff; }
.icon-landslide { color: #b45309; background: #fffbeb; }
.icon-quake { color: #5b21b6; background: #f5f3ff; }
.icon-hightide { color: #0f766e; background: #f0fdfa; }
.icon-tsunami { color: #1e40af; background: #eef2ff; }

.hazard-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
}

.hazard-card-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge-detected {
  color: var(--warn-text);
  background: #ffedd5;
}

.badge-urgent {
  color: var(--urgent-text);
  background: #fee2e2;
}

.badge-none {
  color: var(--neutral-text);
  background: #e2e8f0;
}

.badge-ref {
  color: var(--navy-dark);
  background: #dbeafe;
}

.badge-unconfirmed {
  color: var(--unconf-text);
  background: #fef9c3;
}

.badge-error {
  color: var(--urgent-text);
  background: #fee2e2;
}

.hazard-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hazard-body-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hazard-main-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hazard-main-val.is-muted {
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.12em;
}

.hazard-card.state-none {
  border-color: #cbd5e1;
  background: #fbfcfd;
}

.hazard-card.state-none .hazard-icon-badge {
  opacity: 0.72;
}

.depth-visual {
  flex-shrink: 0;
  width: 66px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 6px;
  padding: 4px;
  text-align: center;
}

.depth-visual svg {
  width: 56px;
  height: 58px;
  display: block;
  margin: 0 auto;
}

.depth-visual-cap {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-700);
  margin-top: 2px;
  line-height: 1.15;
}

.layer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.layer-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.shelter-col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}

.shelter-col-head svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.guidance-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.guidance-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.45);
  flex-shrink: 0;
}

.hazard-sub-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--slate-700);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nearby-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--warn-text);
  background: #fff;
  border: 1px solid var(--warn-border);
  border-radius: 4px;
  padding: 3px 6px;
}

/* 地図 */
.map-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.shelter-focus-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.basemap-toggle {
  display: inline-flex;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.basemap-btn {
  border: none;
  background: transparent;
  color: var(--slate-700);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.basemap-btn.active {
  background: var(--navy);
  color: #ffffff;
}

.btn-shelter-focus {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #15803d;
  color: #ffffff;
  border: 1.5px solid #166534;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-shelter-focus:hover:not(:disabled) {
  background: #166534;
}

.btn-shelter-focus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-shelter-focus.is-active {
  background: #14532d;
  box-shadow: 0 0 0 2px #86efac;
}

.btn-property-focus {
  background: #ffffff;
  color: var(--navy-dark);
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-property-focus:hover {
  background: #f1f5f9;
}

/* 地図上の避難所カスタムアイコン（JIS非常口グリーン風） */
.shelter-marker-wrap {
  background: transparent;
  border: none;
}

.shelter-pin {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #15803d;
  color: #ffffff;
  border: 2.5px solid #14532d;
  box-shadow: 0 0 0 1.5px #ffffff, 0 2px 6px rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.shelter-pin.is-nearest {
  width: 36px;
  height: 36px;
  background: #16a34a;
  border-color: #14532d;
  box-shadow: 0 0 0 2px #fef08a, 0 3px 8px rgba(15, 23, 42, 0.5);
}

.shelter-pin svg {
  width: 19px;
  height: 19px;
  display: block;
}

.shelter-pin-rank {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #1e293b;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  padding: 0 3px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.shelter-tooltip {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #14532d;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #14532d;
  border-radius: 5px;
  padding: 3px 7px;
  line-height: 1.3;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
  pointer-events: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.shelter-tooltip-sub {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: #334155;
}

.shelter-row-btn {
  margin-left: 8px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.shelter-row-btn:hover {
  background: #dcfce7;
}

.layer-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.layer-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--slate-700);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.layer-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.map-frame {
  position: relative;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.map-canvas {
  width: 100%;
  height: 480px;
}

.map3d-canvas {
  height: clamp(500px, 62vh, 660px);
}

.map3d-controls[hidden] {
  display: none !important;
}

.map3d-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #f0f4fa;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 11px;
  margin-bottom: 8px;
}

.map3d-control-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
  max-width: 100%;
}

.map3d-slider-label {
  font-size: 12px;
  color: var(--navy-dark);
  white-space: nowrap;
}

.map3d-slider-label.is-disabled,
#exaggerationRange:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.map3d-preset-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.map3d-btn {
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: var(--navy-dark);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.map3d-btn:hover {
  background: #e2e8f0;
}

.map3d-btn.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.map3d-drag-toggle {
  display: inline-flex;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #94a3b8;
}

.map3d-drag-toggle .map3d-btn {
  border: none;
  border-radius: 0;
}

.map3d-drag-toggle .map3d-btn + .map3d-btn {
  border-left: 1px solid #cbd5e1;
}

.map3d-btn-accent {
  border-color: #ea580c;
  color: #9a3412;
  background: #fff7ed;
}

.map3d-btn-accent.is-active {
  background: linear-gradient(90deg, #0284c7 0%, #16a34a 45%, #ea580c 100%);
  color: #ffffff;
  border-color: #9a3412;
}

.map3d-btn-water {
  border-color: #0284c7;
  color: #0369a1;
  background: #f0f9ff;
}

.map3d-btn-water.is-active {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
}

.water-sim-bar {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid #38bdf8;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.water-sim-bar[hidden] {
  display: none !important;
}

.water-sim-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.water-sim-title {
  font-size: 12px;
  font-weight: 800;
  color: #0c4a6e;
}

.water-sim-value {
  font-size: 13px;
  font-weight: 800;
  color: #0369a1;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  padding: 2px 10px;
}

.water-sim-diff {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

#waterSimRange {
  flex: 1 1 160px;
  min-width: 130px;
  max-width: 260px;
  accent-color: #0284c7;
  cursor: pointer;
}

.water-sim-presets {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.water-sim-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #7dd3fc;
  background: #ffffff;
  color: #0c4a6e;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.water-sim-btn:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.water-sim-btn.is-play.is-playing {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
}

.water-sim-btn.is-off {
  border-color: #cbd5e1;
  color: #475569;
}

.water-sim-note {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.4;
}

.map3d-btn-slope {
  border-color: #6366f1;
  color: #4338ca;
  background: #eef2ff;
}

.map3d-btn-slope.is-active {
  background: #4f46e5;
  border-color: #3730a3;
  color: #ffffff;
}

.slope-line-bar {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid #a5b4fc;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slope-line-bar[hidden] {
  display: none !important;
}

.slope-line-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.slope-line-title {
  font-size: 12px;
  font-weight: 800;
  color: #312e81;
}

.slope-mode-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.slope-mode-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #c7d2fe;
  background: #ffffff;
  color: #3730a3;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.slope-mode-btn:hover {
  border-color: #6366f1;
  background: #eef2ff;
}

.slope-mode-btn.is-active {
  background: #4f46e5;
  border-color: #3730a3;
  color: #ffffff;
}

.slope-mode-btn.is-off {
  border-color: #cbd5e1;
  color: #475569;
}

.slope-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

.slope-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slope-legend-item i {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 999px;
}

.slope-legend-item i.swatch-flat { background: #0284c7; }
.slope-legend-item i.swatch-gentle { background: #f59e0b; }
.slope-legend-item i.swatch-moderate { background: #ea580c; }
.slope-legend-item i.swatch-steep { background: #dc2626; }
.slope-legend-item i.swatch-dem10b { background: #64748b; }
.slope-legend-item i.swatch-missing { background: #94a3b8; }
.slope-legend-item i.swatch-shelter { background: #6366f1; }

.slope-line-note {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.4;
}

.popup-slope-disclaimer {
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px dashed #cbd5e1;
  font-size: 10.5px;
  color: #475569;
  line-height: 1.35;
}

.plateau-controls {
  margin-bottom: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plateau-controls[hidden],
.plateau3d-canvas[hidden],
.compass-rose-btn[hidden] {
  display: none !important;
}

.plateau3d-canvas {
  background: #dbeafe;
  overflow: hidden;
}

.plateau3d-canvas .cesium-widget,
.plateau3d-canvas .cesium-widget canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.plateau-status-row {
  display: flex;
  align-items: center;
  min-height: 20px;
}

.plateau-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.plateau-status {
  font-size: 12px;
  font-weight: 800;
  color: #0c4a6e;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.plateau-loading-hud {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 620;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.plateau-loading-hud.is-visible {
  opacity: 1;
  visibility: visible;
}

.plateau-loading-hud.is-hint .plateau-loading-bar {
  opacity: 0;
}

.plateau-loading-hud.is-hint .plateau-spinner {
  display: none;
}

.plateau-loading-hud.is-hint .plateau-loading-pill {
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.plateau-loading-bar {
  width: 100%;
  height: 3px;
  background: rgba(2, 132, 199, 0.18);
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s ease;
}

.plateau-loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #0284c7, #38bdf8, transparent);
  animation: plateauBarSlide 1.15s ease-in-out infinite;
}

@keyframes plateauBarSlide {
  0% { left: -35%; }
  100% { left: 100%; }
}

.plateau-loading-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px auto 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(6px);
  max-width: calc(100% - 110px);
}

.plateau-spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #38bdf8;
  animation: plateauSpin 0.75s linear infinite;
  flex: 0 0 auto;
}

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

@media (prefers-reduced-motion: reduce) {
  .plateau-loading-bar::after,
  .plateau-spinner {
    animation: none;
  }
}

.map-float-actions {
  position: absolute;
  right: 12px;
  bottom: 24px;
  z-index: 640;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
}

.map-frame:has(#gmapProCanvas:not([hidden]), #gmapFrame:not([hidden])) .map-float-actions {
  bottom: 36px;
}

.map-float-actions[hidden] {
  display: none !important;
}

.map-float-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(4px);
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.map-float-btn[hidden] {
  display: none !important;
}

.map-float-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #64748b;
}

.map-float-return {
  font-variant-numeric: tabular-nums;
}

.map-float-return.is-far {
  background: #dc2626;
  border-color: #991b1b;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.42);
}

.map-float-return.is-far:hover {
  background: #b91c1c;
  border-color: #7f1d1d;
}

.map-float-pick {
  border-color: #0284c7;
  color: #0369a1;
}

.map-float-pick:hover {
  background: #f0f9ff;
  border-color: #0369a1;
}

.map-float-confirm {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.map-float-confirm:hover {
  background: #0369a1;
  border-color: #0c4a6e;
}

.map-float-cancel {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8fafc;
}

.map-float-cancel:hover {
  background: #0f172a;
}

.map-crosshair-overlay {
  position: absolute;
  inset: 0;
  z-index: 630;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-crosshair-overlay[hidden] {
  display: none !important;
}

.map-crosshair-guide {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.3);
}

.map-crosshair-reticle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #dc2626;
  background: rgba(220, 38, 38, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 3px 10px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-crosshair-reticle::before,
.map-crosshair-reticle::after {
  content: '';
  position: absolute;
  background: #dc2626;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.map-crosshair-reticle::before {
  width: 2px;
  height: 58px;
}

.map-crosshair-reticle::after {
  width: 58px;
  height: 2px;
}

.crosshair-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  border: 1.5px solid #ffffff;
  z-index: 1;
}

.plateau-status.is-warn {
  color: #b45309;
}

.plateau-btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.plateau-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  background: #ffffff;
  color: #0c4a6e;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.plateau-btn:hover {
  border-color: #0284c7;
  background: #e0f2fe;
}

.plateau-btn.is-active {
  background: #0369a1;
  border-color: #0c4a6e;
  color: #ffffff;
}

.plateau-btn-sun {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}

.plateau-btn-sun.is-active {
  background: #d97706;
  border-color: #92400e;
  color: #ffffff;
}

.plateau-sun-slider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
}

#plateauSunTimeRange {
  width: 120px;
  accent-color: #d97706;
  cursor: pointer;
}

.plateau-building-info {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 2px 8px;
}

.plateau-note {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.4;
}

.gmap-controls[hidden],
.gmap-canvas[hidden],
.radius-control-bar[hidden] {
  display: none !important;
}

.radius-control-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.radius-toggle-btn {
  border: 1px solid #0284c7;
  background: #ffffff;
  color: #0369a1;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.radius-toggle-btn.is-active {
  background: #0284c7;
  color: #ffffff;
}

.radius-presets {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
}

.radius-preset-btn {
  border: none;
  border-right: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--slate-700);
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.radius-preset-btn:last-child {
  border-right: none;
}

.radius-preset-btn:hover {
  background: #f1f5f9;
}

.radius-preset-btn.is-active {
  background: #e0f2fe;
  color: #0369a1;
}

.radius-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-700);
}

.radius-input-wrap input {
  width: 72px;
  height: 27px;
  padding: 2px 6px;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-dark);
  text-align: right;
  font-family: inherit;
}

.radius-walk-hint {
  font-size: 11px;
  color: var(--slate-500);
}

.gmap-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.gmap-hint {
  font-size: 11.5px;
  color: #0c4a6e;
  font-weight: 600;
}

.gmap-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gmap-ext-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #0284c7;
  background: #ffffff;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gmap-ext-link:hover {
  background: #e0f2fe;
}

.gmap-ext-link.is-sv {
  background: #0369a1;
  color: #ffffff;
  border-color: #0369a1;
}

.gmap-ext-link.is-sv:hover {
  background: #075985;
}

.gmap-ext-link.is-disabled,
.gmap-near-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.gmap-frame {
  border: none;
  display: block;
  width: 100%;
  height: clamp(500px, 62vh, 660px);
  background: #f8fafc;
}

.gmap-frame[hidden],
.gmap-pro-canvas[hidden],
.gmap-pro-controls[hidden],
.gmap-embed-controls[hidden],
.gmap-places-panel[hidden],
.basemap-toggle[hidden],
.radius-toggle-btn[hidden] {
  display: none !important;
}

.map-now-viewing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  color: #1e293b;
}

.map-now-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #334155;
  flex-shrink: 0;
}

.map-now-badge.is-gsi-2d {
  background: #334155;
}

.map-now-badge.is-gsi-3d {
  background: #0369a1;
}

.map-now-badge.is-plateau {
  background: #4f46e5;
}

.map-now-badge.is-google {
  background: #15803d;
}

.map-now-detail {
  font-weight: 700;
  color: #0f172a;
}

.gmap-pro-canvas {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  background: #e2e8f0;
}

.gmap-pro-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gmap-pro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gmap-pro-filter-row {
  padding-top: 2px;
  border-top: 1px dashed #cbd5e1;
}

.gmap-opacity-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.gmap-opacity-label input[type='range'] {
  width: 78px;
  accent-color: #0369a1;
}

.gmap-pro-status {
  font-size: 11.5px;
  font-weight: 700;
  color: #0369a1;
}

.gmap-gsi-credit {
  margin: 8px 0 0 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  pointer-events: none;
}

.gmap-pin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.gmap-pin-badge {
  border-radius: 50%;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.gmap-pin-wrap.is-property .gmap-pin-badge {
  font-size: 13px;
  border-width: 2.5px;
}

.gmap-pin-tail {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid #dc2626;
  margin-top: -2px;
}

.gmap-info-pop {
  font-family: inherit;
  font-size: 12px;
  color: #0f172a;
  line-height: 1.5;
  max-width: 250px;
}

.gmap-info-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.gmap-info-cat {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.gmap-info-meta {
  font-size: 11px;
  color: #334155;
}

.gmap-info-status {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  margin-top: 2px;
}

.gmap-info-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0369a1;
  text-decoration: underline;
}

.gmap-places-panel {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.gmap-places-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gmap-places-title {
  font-size: 13px;
  color: #0f172a;
}

.gmap-google-attr {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
}

.gmap-places-note {
  margin-top: 4px;
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
}

.gmap-places-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gmap-place-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11.5px;
  color: #0f172a;
}

.gmap-place-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gmap-place-chip-btn:hover {
  color: #0369a1;
}

.gmap-place-chip-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

.gmap-place-chip-dist {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
}

.gmap-place-chip-ext {
  font-size: 10.5px;
  font-weight: 700;
  color: #0369a1;
  text-decoration: none;
  padding-left: 4px;
  border-left: 1px solid #e2e8f0;
}

.gmap-place-chip-ext:hover {
  text-decoration: underline;
}

.gmap-near-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--navy-dark);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gmap-near-link:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

/* 地図上の表示項目チェックバー */
.map-pin-filter-bar {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
}

.map-pin-filter-bar[hidden] {
  display: none !important;
}

.pin-filter-heading {
  font-weight: 800;
  color: var(--navy-dark);
  white-space: nowrap;
}

.pin-filter-presets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pin-preset-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--slate-700);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.pin-preset-btn:hover {
  background: #e2e8f0;
  color: var(--navy-dark);
}

.pin-filter-checks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.pin-check-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  user-select: none;
  color: var(--slate-800);
  font-weight: 600;
  white-space: nowrap;
  padding: 1px 4px;
  border-radius: 4px;
}

.pin-check-item:hover {
  background: #e2e8f0;
}

.pin-check-item input[type="checkbox"] {
  margin: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.pin-check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.gmap-canvas {
  height: 440px;
  background: #e2e8f0;
}

.gmap-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-callout-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 450;
  overflow: hidden;
  transition: opacity 0.12s ease;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.map-callout-overlay[hidden] {
  display: none !important;
}

.map-callout-overlay.is-zooming {
  opacity: 0;
}

/* 3D/街地図のポップアップと操作コントロールを引き出し線ラベル（z-index: 450）より前面に出す */
.maplibregl-popup {
  z-index: 520;
}

.maplibregl-ctrl-top-left,
.maplibregl-ctrl-bottom-left {
  z-index: 510;
}

/* 引き出し線ラベルON時は、従来の大型避難所ツールチップを非表示にして重複を防ぐ */
body.show-callouts #map .shelter-tooltip {
  display: none !important;
}

.map3d-hint {
  font-size: 11px;
  color: var(--slate-500);
}

/* 3D地図上のカスタムマーカー */
.pin3d-property {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.pin3d-property-tag {
  background: #1b365d;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.45);
  margin-bottom: 3px;
  white-space: nowrap;
}

.pin3d-property-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 2px #1b365d, 0 3px 8px rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.pin3d-property-pole {
  width: 3px;
  height: 22px;
  background: linear-gradient(180deg, #dc2626 0%, #1b365d 100%);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.45);
}

.pin3d-shelter {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #15803d;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pin3d-shelter.is-primary {
  width: 32px;
  height: 32px;
  background: #16a34a;
  box-shadow: 0 0 0 2px #fef08a, 0 3px 8px rgba(15, 23, 42, 0.5);
}

.pin3d-rank {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #1e293b;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
}

.pin3d-facility {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #c2410c;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.compass-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 600;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #64748b;
  border-radius: 6px;
  width: 30px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  pointer-events: none;
}

.compass-badge[hidden] {
  display: none !important;
}

.compass-arrow {
  font-size: 10px;
  color: #b91c1c;
}

/* 東西南北コンパス（2D / 3D 共通・角度ドック幅に合わせたコンパクトサイズ） */
.compass-rose-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  gap: 2px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  font-family: inherit;
  transition: transform 0.14s ease;
}

@media (hover: hover) {
  .compass-rose-btn:hover {
    transform: scale(1.04);
  }
}

.compass-rose-btn:active {
  transform: scale(0.97);
}

.compass-rose-svg {
  width: 50px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.25));
}

.compass-heading-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
}

/* 3D表示専用：コンパス直下のクイック角度ドック（真上⇄斜め1タップ＋1本指回転トグル） */
.map3d-angle-dock[hidden],
body.simple-sheet-mode .map3d-angle-dock,
body.is-landing .map3d-angle-dock {
  display: none !important;
}

.map3d-angle-dock {
  position: absolute;
  top: 84px;
  right: 10px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .compass-rose-svg {
    width: 46px;
    height: 46px;
  }

  .compass-heading-pill {
    font-size: 9px;
    padding: 1px 5px;
  }

  .map3d-angle-dock {
    top: 78px;
  }
}

.map3d-angle-btn {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 48px;
  min-height: 44px;
  padding: 5px 6px;
  border-radius: 10px;
  border: 1px solid rgba(100, 116, 139, 0.55);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.12s ease;
}

.map3d-angle-btn:active {
  transform: scale(0.96);
}

.map3d-angle-btn:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

.map3d-angle-btn .map3d-angle-ico {
  font-size: 13px;
  line-height: 1;
}

.map3d-angle-btn.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.35);
}

.map3d-angle-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.map3d-angle-btn.is-flat {
  background: #f0fdfa;
  border-color: #0f766e;
  color: #0f766e;
}

@media print {
  .compass-rose-svg {
    width: 50px;
    height: 50px;
    filter: none;
  }

  .compass-heading-pill {
    display: none;
  }
}

.map-active-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 600;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #64748b;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-dark);
  pointer-events: none;
}

.map-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11px;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--slate-700);
}

.landform-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}

.landform-sub-btn {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.landform-sub-btn:hover {
  border-color: var(--navy);
}

.landform-sub-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.legend-gsi-link {
  color: #0369a1;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.legend-caution-note {
  color: #475569;
  font-size: 10px;
}

.map-credit {
  color: var(--slate-500);
}

/* アドバイス・担当者メモ */
.guidance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guidance-item {
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fafc;
}

.guidance-item.level-urgent {
  border-left-color: var(--urgent-border);
  background: var(--urgent-bg);
}

.guidance-item.level-warn {
  border-left-color: var(--warn-border);
  background: var(--warn-bg);
}

.guidance-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--slate-900);
}

.guidance-body {
  margin: 0;
  font-size: 12.5px;
  color: var(--slate-700);
  white-space: pre-line;
}

.agent-memo-box {
  margin-top: 10px;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  padding: 10px 12px;
  background: #f0f4fa;
}

.agent-memo-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.agent-memo-text {
  margin: 0;
  font-size: 13px;
  white-space: pre-wrap;
}

/* 地形断面図（横から見た高低差）＋最寄り駅 */
.terrain-box {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  margin-bottom: 10px;
}

.terrain-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.terrain-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.terrain-tab-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--slate-700);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.terrain-tab-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.terrain-tab-btn.is-shelter-tab {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.terrain-tab-btn.is-shelter-tab.active {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

.terrain-right-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.facility-block {
  margin-top: 10px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
}

.facility-block.is-collapsed {
  padding: 7px 12px;
}

.facility-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.facility-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 3px 6px;
  margin: -3px -6px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: background-color 0.14s ease;
}

.facility-collapse-btn:hover {
  background: #e0f2fe;
}

.facility-collapse-btn:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

.facility-collapse-chevron {
  display: inline-block;
  font-size: 10px;
  color: #0369a1;
  transition: transform 0.16s ease;
  flex-shrink: 0;
}

.facility-collapse-btn[aria-expanded='true'] .facility-collapse-chevron {
  transform: rotate(90deg);
}

.facility-heading-text {
  min-width: 0;
}

.facility-toggle-hint {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.facility-collapsible-body {
  margin-top: 8px;
}

.facility-usage-hint {
  font-size: 11px;
  color: var(--slate-500);
  margin: 0 0 6px;
}

@media (prefers-reduced-motion: reduce) {
  .facility-collapse-chevron {
    transition: none;
  }
}

.facility-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.fac-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.fac-filter-btn:hover {
  border-color: var(--navy);
}

.fac-filter-btn.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.fac-filter-dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.facility-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.facility-block-under-map {
  margin-top: 10px;
}

.facility-block-under-map .facility-chips {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

@media print {
  .facility-block.is-collapsed {
    display: none !important;
  }

  .facility-collapse-chevron {
    display: none;
  }

  .facility-collapse-btn {
    padding: 0;
    margin: 0;
  }

  .facility-block-under-map .facility-chips {
    max-height: none;
    overflow: visible;
  }
}

.facility-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--slate-900);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.1s ease;
}

.facility-chip:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.16);
  transform: translateY(-1px);
}

.facility-glyph-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.facility-cat-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 3px;
  padding: 1px 5px;
}

.facility-shelter-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 3px;
  padding: 0 4px;
}

.facility-meta {
  font-size: 11px;
  color: var(--slate-500);
}

.facility-source-note {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--slate-500);
}

.facility-map-pin {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #059669;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25), 0 2px 5px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.property-main-marker-wrap {
  background: transparent;
  border: none;
}

.property-main-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: var(--cursor-hand-grab, grab);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.property-main-pin:active {
  cursor: var(--cursor-hand-grabbing, grabbing);
}

.property-main-pin-head {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 2px #1b365d, 0 3px 8px rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.property-main-pin-stem {
  width: 4px;
  height: 12px;
  background: #1b365d;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.4);
}

.station-map-pin {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #0369a1;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px rgba(12, 74, 110, 0.45), 0 2px 6px rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.station-popup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 195px;
}

.station-popup-line {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 2px 6px;
  align-self: flex-start;
}

.station-popup-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-dark);
}

.station-popup-walk {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
}

.station-popup-note {
  font-size: 10.5px;
  color: var(--slate-500);
  line-height: 1.35;
}

.station-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.station-map-btn {
  border: 1px solid #0369a1;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.station-map-btn:hover {
  background: #bae6fd;
}

.terrain-active-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-dark);
}

.terrain-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.terrain-svg {
  width: 100%;
  height: auto;
  display: block;
}

.terrain-summary {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 5px;
  padding: 5px 9px;
}

.station-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.station-card.is-clickable:hover {
  border-color: var(--navy);
  background: #eff6ff;
}

.station-card.is-selected {
  border: 2px solid var(--navy);
  background: #eff6ff;
}

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

.station-card {
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  padding: 10px 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.station-card.is-error {
  border: 1.5px dashed var(--urgent-border);
  background: var(--urgent-bg);
  color: var(--urgent-text);
}

.station-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-dark);
}

.station-line {
  font-size: 11px;
  color: var(--slate-500);
}

.station-metrics {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-900);
}

.station-diff-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: var(--slate-700);
}

/* 自社HP集客CTAプレビュー（画面表示のみ） */
.cta-preview-box {
  border: 2px solid #06c755;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f0fdf4;
}

.cta-preview-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 6px;
}

.cta-preview-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-preview-title {
  margin: 0 0 3px;
  font-size: 15px;
  color: #14532d;
}

.cta-preview-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--slate-700);
}

.cta-url-notice {
  font-size: 11.5px;
  color: #854d0e;
  font-weight: 600;
}

/* モーダル共通（比較表 / LINE画像） */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-panel {
  width: 100%;
  max-width: 1080px;
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.line-panel {
  max-width: 720px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--slate-200);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  color: var(--navy-dark);
}

.modal-sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--slate-500);
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  border: 1px solid #cbd5e1;
  padding: 7px 9px;
  vertical-align: top;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.compare-table thead {
  display: table-header-group;
}

.compare-table th {
  background: var(--slate-100);
  color: var(--navy-dark);
  font-weight: 700;
  text-align: left;
}

.compare-table thead th:first-child {
  width: 165px;
}

.compare-col-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.compare-remove-btn {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.cmp-cell-detected {
  background: var(--warn-bg);
  font-weight: 700;
}

.cmp-cell-urgent {
  background: var(--urgent-bg);
  color: var(--urgent-text);
  font-weight: 700;
}

.cmp-cell-unconfirmed {
  background: var(--unconf-bg);
  color: var(--unconf-text);
}

.cmp-cell-error {
  background: var(--urgent-bg);
  color: var(--urgent-text);
  font-weight: 700;
}

.line-options-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.toggle-inline-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
}

.line-license-hint {
  font-size: 11px;
  color: #854d0e;
  font-weight: 600;
}

.line-canvas-wrap {
  max-height: 68vh;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #e2e8f0;
  padding: 10px;
  text-align: center;
}

.line-preview-canvas {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

/* 避難場所 */
.shelter-map-frame {
  position: relative;
  border: 1.5px solid #15803d;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 5px;
}

.shelter-map-canvas {
  width: 100%;
  height: 295px;
}

.shelter-map-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--slate-500);
  margin-bottom: 10px;
}

.property-mini-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1b365d;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 1.5px #1b365d, 0 2px 5px rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.shelter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shelter-col {
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fafafa;
}

.shelter-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--navy-dark);
}

.shelter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shelter-row {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  font-size: 12px;
}

.shelter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.shelter-name {
  font-weight: 700;
  color: var(--slate-900);
}

.shelter-dist {
  font-weight: 700;
  color: var(--navy);
  margin-left: 6px;
}

.shelter-addr {
  color: var(--slate-500);
  font-size: 11px;
}

/* セクション5：指定緊急避難場所 統合台帳（画面・印刷共通ベース） */
.shelter-ledger-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid #18222f;
  border-bottom: 1.5px solid #18222f;
  background: #ffffff;
}

.shelter-ledger-row {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.shelter-ledger-row:last-child {
  border-bottom: none;
}

.shelter-ledger-row-btn {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 9px 8px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #18222f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shelter-ledger-row-btn.is-static {
  cursor: default;
}

.shelter-ledger-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.shelter-ledger-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #18222f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
}

.shelter-ledger-rank.is-unmapped {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.shelter-ledger-seals {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.shelter-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 1px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  background: #ffffff;
  color: #18222f;
  border: 1px solid #18222f;
}

.shelter-seal.is-flood {
  color: #055e57;
  border-color: #055e57;
}

.shelter-ledger-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shelter-ledger-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #18222f;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shelter-ledger-addr {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.shelter-ledger-dist {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #18222f;
  white-space: nowrap;
  text-align: right;
}

.shelter-ledger-empty {
  padding: 12px 8px;
  font-size: 12px;
  color: #64748b;
}

.shelter-ledger-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #9f1239;
  line-height: 1.45;
}

.shelter-ledger-note[hidden] {
  display: none;
}

/* 担当者用・重説確認パネル */
.compliance-panel {
  border: 2px dashed #475569;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fafc;
}

.compliance-tag {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.compliance-alert {
  font-size: 12px;
  color: var(--slate-700);
  background: #fef9c3;
  border: 1px solid #eab308;
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.checklist {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--slate-700);
}

.official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 5px;
  padding: 5px 10px;
  text-decoration: none;
}

.official-link:hover {
  background: #eff6ff;
}

.phase2-status {
  margin-top: 8px;
  font-size: 11px;
  color: var(--slate-500);
}

/* フッター */
.report-footer {
  border-top: 1.5px solid #cbd5e1;
  padding-top: 10px;
  font-size: 10.5px;
  color: var(--slate-500);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-disclaimer {
  color: var(--slate-700);
}

/* スリムヘッダー・お客様/担当者モード・設定モーダル */
.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audience-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 2px;
}

.aud-btn {
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.aud-btn.active {
  background: #ffffff;
  color: var(--navy-dark);
}

.quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-bar .search-box-wrap {
  flex: 1 1 360px;
}

.quick-bar .btn,
.quick-conditions .seg-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.quick-conditions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quick-conditions select {
  min-width: 128px;
  height: 36px;
}

.demo-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
}

.demo-inline-label {
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

.quick-shop-summary {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 11px;
}

/* お客様表示モード時は業者裏側（重説チェック・CTAプレビュー・操作ヒント）を画面非表示 */
body.audience-customer .staff-only-section,
body.audience-customer .staff-only-inline {
  display: none !important;
}

/* 0. 冒頭3行サマリー（結論カード） */
.summary-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 13px 15px;
}

.summary-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.summary-card-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--navy-dark);
}

.summary-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  padding: 2px 9px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-900);
}

.summary-line-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--navy);
  color: #ffffff;
}

.summary-line-tag.is-warn {
  background: #c2410c;
}

.summary-line-tag.is-life {
  background: #0f766e;
}

.summary-actions-wrap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.summary-actions-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.summary-action-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--slate-700);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-footnote {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--slate-500);
  line-height: 1.45;
}

/* 想定 vs 過去実績の確認バー */
.history-vs-hazard-bar {
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.hvh-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hvh-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e2e8f0;
  color: var(--navy-dark);
}

.hvh-pill.is-history {
  background: #fef3c7;
  color: #92400e;
}

.hvh-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
}

.hvh-link:hover {
  background: #eff6ff;
  border-color: var(--navy);
}

.hvh-note {
  font-size: 10.5px;
  color: var(--slate-500);
}

/* 現地内見チェックリスト */
.inspect-section {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 12px 14px;
}

.inspect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.inspect-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

.inspect-item input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.inspect-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inspect-item small {
  font-size: 10.5px;
  color: var(--slate-500);
}

.inspect-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 徒歩道案内ボタン・ポップアップリンク */
.btn-shelter-walk,
.walk-route-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
}

.btn-shelter-walk:hover,
.walk-route-btn:hover {
  background: #e0f2fe;
}

.popup-walk-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  text-decoration: underline;
}

/* 3Dスマホタッチロックオーバーレイ */
.map3d-touch-overlay {
  position: absolute;
  inset: 0;
  z-index: 650;
  background: rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.map3d-touch-overlay[hidden] {
  display: none !important;
}

.map3d-touch-lock-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 660;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.map3d-touch-lock-btn[hidden] {
  display: none !important;
}

/* ⚙設定モーダル */
.settings-panel {
  max-width: 760px;
}

.settings-section {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.settings-section h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--navy-dark);
}

.field-label-dark {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 4px;
}

.settings-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.settings-span-2 {
  grid-column: span 2;
}

.settings-section input[type='text'],
.settings-section textarea,
.settings-section select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
  background: #ffffff;
  color: var(--slate-900);
}

.settings-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.settings-print-tip {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--slate-500);
}

/* 比較表の差分ハイライト（中立色：優劣暗示を防止） */
.compare-table tr.cmp-row-diff th {
  background: #e2e8f0;
  border-left: 3px solid var(--navy);
}

.compare-table tr.cmp-row-diff td {
  background-image: linear-gradient(rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.03));
}

.cmp-diff-tag {
  display: inline-block;
  margin-left: 5px;
  font-size: 9.5px;
  font-weight: 800;
  background: #1b365d;
  color: #ffffff;
  border-radius: 3px;
  padding: 0 4px;
  vertical-align: middle;
}

/* フッターQRコードグリッド（公式QRと自社相談QRを枠で明確分離） */
.footer-main-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.footer-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.report-qr-grid {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.report-qr-grid[hidden] {
  display: none !important;
}

.qr-card {
  width: 112px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px;
  background: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.qr-card.is-official {
  border-color: #1b365d;
}

.qr-card.is-shop {
  border-color: #059669;
  background: #f0fdf4;
}

.qr-card-kicker {
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  background: #1b365d;
  border-radius: 3px;
  padding: 1px 5px;
}

.qr-card.is-shop .qr-card-kicker {
  background: #059669;
}

.qr-card-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
}

.qr-fallback-url {
  font-size: 8.5px;
  color: var(--slate-700);
  word-break: break-all;
}

/* スマホ専用ナビ＆下部バー（PC時は非表示） */
.mobile-section-tabs,
.mobile-bottom-bar {
  display: none;
}

/* レスポンシブ（screen限定にしてA4印刷への誤発動を防止） */
@media screen and (max-width: 860px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .brand-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .action-buttons {
    display: none;
  }

  body.is-landing {
    padding-bottom: 20px;
  }

  body.is-landing .control-bar {
    margin: 14px 12px;
    padding: 18px 16px 22px;
    border-radius: 14px;
  }

  body.is-landing .action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  body.is-landing .app-title {
    font-size: 23px;
  }

  body.is-landing .search-input-row {
    flex-wrap: wrap;
  }

  body.is-landing #addressInput {
    flex: 1 0 100%;
    font-size: 16px;
  }

  body.is-landing #searchBtn,
  body.is-landing #gpsBtn {
    flex: 1;
    height: 44px;
  }

  body.is-landing .status-banner {
    margin: 0 12px 12px;
  }

  .quick-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-bar .search-box-wrap {
    flex: none;
  }

  .quick-conditions {
    width: 100%;
  }

  .quick-conditions .segmented,
  .quick-conditions select {
    flex: 1;
  }

  .quick-shop-summary {
    display: none;
  }

  .mobile-section-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
    position: sticky;
    top: 0;
    z-index: 800;
    background: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    padding: 6px 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  }

  .mob-tab-btn {
    flex: 1 0 auto;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: var(--slate-700);
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }

  .mob-tab-btn[hidden] {
    display: none !important;
  }

  .mob-tab-btn.active {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
  }

  /* スマホタブに応じたセクション切替 */
  #reportSheet[data-mobtab='summary'] [data-mobgroup]:not([data-mobgroup='summary']),
  #reportSheet[data-mobtab='map'] [data-mobgroup]:not([data-mobgroup='map']),
  #reportSheet[data-mobtab='market'] [data-mobgroup]:not([data-mobgroup='market']),
  #reportSheet[data-mobtab='population'] [data-mobgroup]:not([data-mobgroup='population']),
  #reportSheet[data-mobtab='around'] [data-mobgroup]:not([data-mobgroup='around']),
  #reportSheet[data-mobtab='inspect'] [data-mobgroup]:not(#guidanceSection) {
    display: none;
  }

  #reportSheet[data-mobtab='inspect'] #guidanceList,
  #reportSheet[data-mobtab='inspect'] #agentMemoBox {
    display: none;
  }

  .mobile-bottom-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.96);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mob-bar-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 6px;
    padding: 9px 4px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
  }

  .mob-bar-btn:disabled {
    opacity: 0.45;
  }

  .mob-bar-btn.is-line {
    background: #06c755;
    border-color: #06c755;
  }

  .mob-bar-btn.is-primary {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827;
  }

  .search-grid,
  .options-grid,
  .shop-details-grid,
  .settings-grid-2,
  .inspect-grid,
  .hazard-grid,
  .station-grid,
  .property-meta-grid,
  .shelter-grid {
    grid-template-columns: 1fr;
  }

  .settings-span-2,
  .meta-wide {
    grid-column: span 1;
  }

  .footer-main-grid {
    flex-direction: column;
  }

  .report-sheet {
    margin: 8px;
    padding: 14px;
  }

  .map-canvas {
    height: 380px;
  }

  .map3d-canvas,
  .gmap-frame {
    height: 420px;
  }
}

/* A4 印刷 / PDF 最適化 */
@page {
  size: A4 portrait;
  margin: 10mm 11mm;
}

@media print {
  body {
    background: #ffffff;
    font-size: 11.5px;
    line-height: 1.42;
    padding-bottom: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  /* 印刷時はスマホタブ切替を無視して全レポートセクションを展開 */
  #reportSheet [data-mobgroup] {
    display: block !important;
  }

  #reportSheet #inspectionSection {
    display: none !important;
  }

  .report-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .report-header {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .report-title {
    font-size: 18px;
  }

  .section-block {
    margin-bottom: 11px;
  }

  .hazard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .hazard-card {
    padding: 7px 8px;
    break-inside: avoid;
  }

  .hazard-main-val {
    font-size: 13px;
  }

  .hazard-icon-badge {
    width: 28px;
    height: 28px;
  }

  .hazard-icon-badge svg {
    width: 18px;
    height: 18px;
  }

  .depth-visual {
    width: 58px;
    padding: 3px;
  }

  .depth-visual svg {
    width: 48px;
    height: 50px;
  }

  .map-canvas {
    height: 235px !important;
  }

  .shelter-map-canvas {
    height: 205px !important;
  }

  .leaflet-control-zoom {
    display: none !important;
  }

  .avoid-break {
    break-inside: avoid;
  }

  .compliance-panel {
    display: none !important;
  }

  body.print-include-compliance .compliance-panel {
    display: block !important;
    break-before: auto;
  }

  .report-parcel-item {
    display: none !important;
  }

  body.print-include-parcel .report-parcel-item.is-parcel-ready:not([hidden]) {
    display: block !important;
  }

  body.print-include-parcel .report-parcel-item.is-parcel-ready:not([hidden]) .parcel-print-only-badge {
    display: inline-block !important;
  }

  .official-link {
    border: 1px solid #475569;
    color: #000000;
  }

  .station-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .qr-card {
    break-inside: avoid;
  }

  /* 比較表専用A4印刷モード */
  body.print-compare-only #reportSheet {
    display: none !important;
  }

  body.print-compare-only #compareModal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
  }

  body.print-compare-only .modal-panel {
    max-width: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.print-compare-only .compare-remove-btn {
    display: none !important;
  }

  body.print-compare-only .compare-table tr {
    break-inside: avoid;
  }

  body:not(.print-compare-only) #compareModal {
    display: none !important;
  }
}

/* =========================================================================
   かんたん1枚シート（お客様お渡し用 A4 1ページ・賃貸／売買／投資）
   ========================================================================= */
.btn-simple-print {
  background: #0f766e;
  color: #ffffff;
  border: 1px solid #0d9488;
}

.btn-simple-print:hover:not(:disabled) {
  background: #0d9488;
}

.btn-simple-print:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.doc-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.simple-mode-badge {
  display: none;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: #0f766e;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.simple-mode-badge.is-rent {
  background: #0f766e;
}

.simple-mode-badge.is-buy {
  background: #1d4ed8;
}

.simple-mode-badge.is-invest {
  background: #b45309;
}

.simple-only-section {
  display: none;
}

/* 1枚シート操作バー（画面プレビュー専用・印刷非表示） */
.simple-sheet-toolbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 2px solid #334155;
  padding: 10px 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.simple-toolbar-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.simple-toolbar-left,
.simple-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.simple-toolbar-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.simple-mode-tabs {
  display: inline-flex;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.simple-mode-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.simple-mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.simple-mode-btn.active.is-rent {
  background: #0f766e;
  color: #ffffff;
}

.simple-mode-btn.active.is-buy {
  background: #2563eb;
  color: #ffffff;
}

.simple-mode-btn.active.is-invest {
  background: #d97706;
  color: #ffffff;
}

.simple-toolbar-sub {
  max-width: 840px;
  margin: 8px auto 0;
  padding-top: 7px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.simple-layer-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.simple-layer-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.simple-layer-btn {
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.simple-layer-btn:hover {
  border-color: #93c5fd;
}

.simple-layer-btn.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

.simple-print-hint {
  font-size: 11px;
  color: #94a3b8;
}

/* 1枚シート プレビュー＆A4構成パーツ */
.simple-summary-box {
  border: 1.5px solid var(--navy);
  border-left: 5px solid var(--navy);
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px 12px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body.simple-sheet-mode.simple-mode-rent .simple-summary-box {
  border-color: #0f766e;
  border-left-color: #0f766e;
  background: #f0fdfa;
}

body.simple-sheet-mode.simple-mode-buy .simple-summary-box {
  border-color: #1d4ed8;
  border-left-color: #1d4ed8;
  background: #eff6ff;
}

body.simple-sheet-mode.simple-mode-invest .simple-summary-box {
  border-color: #b45309;
  border-left-color: #b45309;
  background: #fffbeb;
}

.simple-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--navy-dark);
}

.simple-summary-tag {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}

.simple-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.simple-summary-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.42;
  color: var(--slate-900);
}

.simple-summary-pill {
  flex: 0 0 auto;
  min-width: 74px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 4px;
  background: #1e293b;
  color: #ffffff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.simple-summary-pill.is-warn {
  background: #b91c1c;
}

.simple-summary-pill.is-accent {
  background: #0f766e;
}

.simple-summary-pill.is-blue {
  background: #1d4ed8;
}

.simple-summary-pill.is-amber {
  background: #b45309;
}

.simple-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 9px;
}

.simple-card {
  border: 1.2px solid #cbd5e1;
  border-top: 3.5px solid #334155;
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
  break-inside: avoid;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.simple-card.tone-warn {
  border-top-color: #c2410c;
  background: #fffaf5;
}

.simple-card.tone-urgent {
  border-top-color: #b91c1c;
  background: #fef2f2;
}

.simple-card.tone-unconfirmed {
  border-top-color: #a16207;
  background: #fefce8;
}

.simple-card.tone-rent {
  border-top-color: #0f766e;
}

.simple-card.tone-buy {
  border-top-color: #1d4ed8;
}

.simple-card.tone-invest {
  border-top-color: #b45309;
}

.simple-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.simple-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-dark);
}

.simple-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.simple-card-badge.is-detected {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.simple-card-badge.is-urgent {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.simple-card-badge.is-unconfirmed {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.simple-card-badge.is-ref {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

.simple-card-main {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.32;
  margin-bottom: 3px;
}

.simple-card-sub {
  margin: 0;
  font-size: 11px;
  line-height: 1.38;
  color: var(--slate-700);
  white-space: pre-line;
}

.simple-checks-box {
  border: 1.2px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  padding: 8px 11px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.simple-checks-head {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 5px;
}

.simple-checks-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}

.simple-checks-grid li {
  position: relative;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.38;
  color: var(--slate-900);
}

.simple-checks-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 1.4px solid var(--navy);
  border-radius: 2px;
  background: #ffffff;
}

.simple-memo-strip[hidden],
.simple-invest-note[hidden] {
  display: none !important;
}

.simple-memo-strip {
  margin-top: 7px;
  padding: 6px 10px;
  border: 1px solid #93c5fd;
  border-left: 3.5px solid #1d4ed8;
  border-radius: 6px;
  background: #eff6ff;
  font-size: 11px;
  line-height: 1.4;
  color: var(--slate-900);
  display: flex;
  gap: 6px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.simple-memo-label {
  font-weight: 800;
  color: #1e3a8a;
  flex-shrink: 0;
}

.simple-memo-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.simple-invest-note {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.35;
  color: #78350f;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 4px 8px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* =========================================================================
   body.simple-sheet-mode：画面プレビュー時のA4 1ページ表示
   ========================================================================= */
body.simple-sheet-mode {
  background: #cbd5e1;
  padding-bottom: 28px;
}

body.simple-sheet-mode .control-bar,
body.simple-sheet-mode .mobile-section-tabs,
body.simple-sheet-mode .mobile-bottom-bar {
  display: none !important;
}

body.simple-sheet-mode #reportSheet {
  max-width: 820px;
  margin: 16px auto;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

body.simple-sheet-mode #reportSheet .simple-only-section:not([hidden]) {
  display: block !important;
}

body.simple-sheet-mode .simple-mode-badge {
  display: inline-flex;
}

body.simple-sheet-mode #reportSheet #hazardSection,
body.simple-sheet-mode #reportSheet #summarySection,
body.simple-sheet-mode #reportSheet #reportCategoryTabs,
body.simple-sheet-mode #reportSheet #guidanceSection,
body.simple-sheet-mode #reportSheet #marketPriceSection,
body.simple-sheet-mode #reportSheet #landPriceSection,
body.simple-sheet-mode #reportSheet #populationSection,
body.simple-sheet-mode #reportSheet #minpakuSection,
body.simple-sheet-mode #reportSheet #inspectionSection,
body.simple-sheet-mode #reportSheet #terrainSection,
body.simple-sheet-mode #reportSheet #shelterSection,
body.simple-sheet-mode #reportSheet #compliancePanel,
body.simple-sheet-mode #reportSheet #ctaPreviewBox,
body.simple-sheet-mode #reportSheet #mapNowViewingBar,
body.simple-sheet-mode #reportSheet #map3dControls,
body.simple-sheet-mode #reportSheet #waterSimBar,
body.simple-sheet-mode #reportSheet #slopeLineBar,
body.simple-sheet-mode #reportSheet #plateauControls,
body.simple-sheet-mode #reportSheet #gmapControls,
body.simple-sheet-mode #reportSheet #gmapPlacesPanel,
body.simple-sheet-mode #reportSheet #facilityBlock,
body.simple-sheet-mode #reportSheet #mapFloatActions,
body.simple-sheet-mode #reportSheet #mapInfoHud,
body.simple-sheet-mode #reportSheet #mapPopMeshPill,
body.simple-sheet-mode #reportSheet #mapCrosshairOverlay,
body.simple-sheet-mode #reportSheet .map-controls-bar,
body.simple-sheet-mode #reportSheet #reportZoningWrap,
body.simple-sheet-mode #reportSheet #reportParcelWrap,
body.simple-sheet-mode #reportSheet .coord-bar {
  display: none !important;
}

body.simple-sheet-mode #reportSheet .report-header {
  padding-bottom: 7px;
  margin-bottom: 9px;
}

body.simple-sheet-mode #reportSheet .report-title {
  font-size: 18px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.simple-sheet-mode #reportSheet .property-meta-grid {
  gap: 5px 10px;
  margin-top: 6px;
}

body.simple-sheet-mode #reportSheet .meta-item {
  padding: 4px 8px;
}

body.simple-sheet-mode #reportSheet .meta-label {
  font-size: 10px;
}

body.simple-sheet-mode #reportSheet .meta-value {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.simple-sheet-mode #reportSheet .section-block {
  margin-bottom: 9px;
}

body.simple-sheet-mode #reportSheet #mapSection .section-head {
  margin-bottom: 4px;
}

body.simple-sheet-mode #reportSheet #mapSection .section-head h3 {
  font-size: 12.5px;
}

body.simple-sheet-mode #reportSheet .map-canvas {
  height: 205px !important;
}

body.simple-sheet-mode #reportSheet .map-footer-bar {
  margin-top: 4px;
  font-size: 10px;
}

body.simple-sheet-mode #reportSheet .report-footer {
  margin-top: 8px;
  padding-top: 7px;
}

body.simple-sheet-mode #reportSheet .footer-disclaimer {
  font-size: 9.5px;
  line-height: 1.38;
}

body.simple-sheet-mode #reportSheet .footer-sources {
  font-size: 9px;
  line-height: 1.35;
}

body.simple-sheet-mode #reportSheet .report-qr-grid {
  gap: 6px;
}

body.simple-sheet-mode #reportSheet .qr-card {
  padding: 5px 6px;
}

body.simple-sheet-mode #reportSheet .qr-card img,
body.simple-sheet-mode #reportSheet .qr-card canvas,
body.simple-sheet-mode #reportSheet .qr-card svg {
  width: 64px !important;
  height: 64px !important;
  shape-rendering: crispEdges;
}

/* =========================================================================
   @media print：かんたん1枚シート専用（A4 ちょうど1ページ完結）
   ========================================================================= */
@media print {
  body.simple-sheet-mode {
    background: #ffffff;
    padding-bottom: 0 !important;
  }

  body.simple-sheet-mode #simpleSheetToolbar {
    display: none !important;
  }

  body.simple-sheet-mode #reportSheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  body.simple-sheet-mode #reportSheet #hazardSection,
  body.simple-sheet-mode #reportSheet #summarySection,
  body.simple-sheet-mode #reportSheet #guidanceSection,
  body.simple-sheet-mode #reportSheet #landPriceSection,
  body.simple-sheet-mode #reportSheet #marketPriceSection,
  body.simple-sheet-mode #reportSheet #populationSection,
  body.simple-sheet-mode #reportSheet #minpakuSection,
  body.simple-sheet-mode #reportSheet #inspectionSection,
  body.simple-sheet-mode #reportSheet #terrainSection,
  body.simple-sheet-mode #reportSheet #shelterSection,
  body.simple-sheet-mode #reportSheet #compliancePanel,
  body.simple-sheet-mode #reportSheet #ctaPreviewBox,
  body.simple-sheet-mode #reportSheet #reportZoningWrap,
  body.simple-sheet-mode #reportSheet #reportParcelWrap,
  body.simple-sheet-mode #reportSheet .coord-bar {
    display: none !important;
  }

  body.simple-sheet-mode #reportSheet .simple-only-section:not([hidden]) {
    display: block !important;
  }

  body.simple-sheet-mode #reportSheet .report-header {
    padding-bottom: 5px;
    margin-bottom: 7px;
  }

  body.simple-sheet-mode #reportSheet .report-title {
    font-size: 16.5px;
  }

  body.simple-sheet-mode #reportSheet .section-block {
    margin-bottom: 7px;
  }

  body.simple-sheet-mode #reportSheet .simple-summary-box {
    padding: 7px 10px;
  }

  body.simple-sheet-mode #reportSheet .simple-summary-row {
    font-size: 11px;
    line-height: 1.36;
  }

  body.simple-sheet-mode #reportSheet .map-canvas {
    height: 205px !important;
  }

  body.simple-sheet-mode #reportSheet .simple-cards-grid {
    gap: 7px;
    margin-bottom: 7px;
  }

  body.simple-sheet-mode #reportSheet .simple-card {
    padding: 6px 9px;
  }

  body.simple-sheet-mode #reportSheet .simple-card-main {
    font-size: 12.5px;
  }

  body.simple-sheet-mode #reportSheet .simple-card-sub {
    font-size: 10.2px;
    line-height: 1.34;
  }

  body.simple-sheet-mode #reportSheet .simple-checks-box {
    padding: 6px 9px;
  }

  body.simple-sheet-mode #reportSheet .simple-checks-grid li {
    font-size: 10.2px;
    line-height: 1.34;
  }

  body.simple-sheet-mode #reportSheet .report-footer {
    margin-top: 6px;
    padding-top: 6px;
    break-inside: avoid;
  }

  body.simple-sheet-mode #reportSheet .footer-disclaimer {
    font-size: 8.8px;
    line-height: 1.34;
  }

  body.simple-sheet-mode #reportSheet .footer-sources {
    font-size: 8.5px;
    line-height: 1.32;
  }

  body.simple-sheet-mode #reportSheet .qr-card img,
  body.simple-sheet-mode #reportSheet .qr-card canvas,
  body.simple-sheet-mode #reportSheet .qr-card svg {
    width: 18mm !important;
    height: 18mm !important;
    shape-rendering: crispEdges;
  }
}

@media (max-width: 720px) {
  .simple-cards-grid,
  .simple-checks-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   民泊・旅館業 初期スクリーニング（投資モード画面＋1枚シート任意トグル）
   ========================================================================= */
.minpaku-section[hidden],
.simple-minpaku-toggle[hidden],
.simple-minpaku-strip[hidden] {
  display: none !important;
}

.minpaku-section {
  border: 1.5px solid #d97706;
  border-radius: 10px;
  padding: 13px 15px;
  background: #fffdf7;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.minpaku-kicker-badge {
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

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

.minpaku-card {
  border: 1px solid #e2e8f0;
  border-top: 3.5px solid #64748b;
  border-radius: 8px;
  padding: 9px 11px;
  background: #ffffff;
  break-inside: avoid;
}

.minpaku-card.tone-open {
  border-top-color: #0f766e;
  background: #f0fdfa;
}

.minpaku-card.tone-caution {
  border-top-color: #d97706;
  background: #fffbeb;
}

.minpaku-card.tone-restricted {
  border-top-color: #b91c1c;
  background: #fef2f2;
}

.minpaku-card.tone-unconfirmed {
  border-top-color: #64748b;
  background: #f8fafc;
}

.minpaku-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.minpaku-card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy-dark);
}

.minpaku-status-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
}

.minpaku-status-pill.is-open {
  background: #ccfbf1;
  color: #115e59;
  border: 1px solid #5eead4;
}

.minpaku-status-pill.is-caution {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.minpaku-status-pill.is-restricted {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.minpaku-card-main {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.minpaku-card-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--slate-700);
}

.minpaku-ordinance-box {
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  margin-bottom: 9px;
}

.minpaku-ordinance-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.minpaku-muni-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-dark);
}

.minpaku-meta-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.minpaku-meta-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.minpaku-meta-pill.is-tokku {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.minpaku-meta-pill.is-tokku-ended {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.minpaku-meta-pill.is-stale {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.minpaku-ordinance-text {
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1.48;
  color: var(--slate-900);
}

.minpaku-links-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.minpaku-official-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 4px 10px;
  text-decoration: none;
}

.minpaku-official-link:hover {
  background: #dbeafe;
}

.minpaku-school-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 12px;
  margin-bottom: 9px;
}

.minpaku-school-head {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.minpaku-school-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.minpaku-school-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--slate-900);
}

.minpaku-school-chip.is-near {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.minpaku-note-small {
  margin: 4px 0 0;
  font-size: 10.8px;
  line-height: 1.4;
  color: var(--slate-500);
}

.minpaku-checklist-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 12px;
  margin-bottom: 7px;
}

.minpaku-checklist-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.minpaku-checklist {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--slate-900);
}

.minpaku-disclaimer {
  font-size: 10.8px;
  line-height: 1.42;
  color: #78350f;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 9px;
}

/* 1枚シート操作バー内の民泊トグル & 1枚シート内のコンパクト帯 */
.simple-toolbar-sub-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.simple-minpaku-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fde68a;
  background: #451a03;
  border: 1px solid #d97706;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.simple-minpaku-toggle input {
  accent-color: #f59e0b;
  cursor: pointer;
}

.simple-minpaku-strip {
  border: 1.2px solid #d97706;
  border-left: 4px solid #b45309;
  border-radius: 6px;
  background: #fffbeb;
  padding: 6px 9px;
  margin-bottom: 8px;
  font-size: 10.5px;
  line-height: 1.38;
  color: var(--slate-900);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.simple-minpaku-strip-head {
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 2px;
}

body.simple-sheet-mode.simple-has-minpaku #reportSheet .map-canvas {
  height: 182px !important;
}

@media print {
  body.simple-sheet-mode.simple-has-minpaku #reportSheet .map-canvas {
    height: 180px !important;
  }

  body.simple-sheet-mode #reportSheet .simple-minpaku-strip {
    padding: 5px 8px;
    margin-bottom: 6px;
    font-size: 9.8px;
    line-height: 1.33;
  }

  .minpaku-top-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .minpaku-official-link {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .minpaku-top-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   地図左側の半透明クイック情報窓（用途地域・建蔽率・容積率・標高・洪水等）
   ========================================================================= */
.map-info-hud[hidden] {
  display: none !important;
}

.map-info-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 635;
  width: 206px;
  max-width: calc(100% - 20px);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  color: var(--slate-900);
  pointer-events: auto;
  transition: width 0.16s ease, top 0.16s ease, background-color 0.16s ease;
}

.map-info-hud:hover {
  background: rgba(255, 255, 255, 0.96);
}

.map-info-hud.is-top {
  top: 10px;
}

.map-info-hud.is-gmap-offset {
  top: 44px;
}

.map-info-hud.is-collapsed {
  width: auto;
  border-radius: 999px;
}

.map-info-hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  user-select: none;
}

.map-info-hud.is-collapsed .map-info-hud-head {
  border-bottom: none;
  padding: 5px 8px 5px 11px;
}

.map-info-hud-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy-dark);
  white-space: nowrap;
}

.map-info-hud-toggle {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.map-info-hud-toggle:hover {
  background: #e2e8f0;
  color: var(--navy-dark);
}

.map-info-hud-body {
  padding: 7px 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.map-info-hud.is-collapsed .map-info-hud-body {
  display: none;
}

.hud-zone-block {
  background: rgba(239, 246, 255, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 7px;
  padding: 5px 7px;
}

.hud-kicker {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

.hud-zone-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.3;
  margin-top: 1px;
}

.hud-ratio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 4px;
}

.hud-ratio-chip {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px 5px;
  text-align: center;
}

.hud-ratio-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.15;
}

.hud-ratio-val {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.hud-stat-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hud-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 10.8px;
  line-height: 1.3;
  padding: 2px 2px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
}

.hud-stat-row:last-child {
  border-bottom: none;
}

.hud-stat-key {
  color: #475569;
  font-weight: 700;
  flex-shrink: 0;
}

.hud-stat-val {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.hud-stat-val.is-warn {
  color: #b45309;
}

.hud-stat-val.is-urgent {
  color: #b91c1c;
}

.hud-stat-val.is-muted {
  color: #64748b;
  font-weight: 700;
}

.hud-footnote {
  font-size: 10px;
  color: #334155;
  line-height: 1.3;
  text-align: left;
}

@media (max-width: 720px) {
  .map-info-hud {
    width: 178px;
    top: 8px;
    left: 8px;
  }

  .map-frame:has(#smart3dModePill:not([hidden])) .map-info-hud {
    top: 38px;
  }
}

/* =========================================================================
   地形断面図下：バリアフリー・車いす勾配目安（公的基準・JIS T 9203）
   ========================================================================= */
.terrain-bf-guide[hidden] {
  display: none !important;
}

.terrain-bf-guide {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 7px;
  background: #f8fafc;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--slate-900);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.terrain-bf-guide.is-warn {
  border-color: #fcd34d;
  border-left-color: #d97706;
  background: #fffbeb;
}

.terrain-bf-guide.is-steep {
  border-color: #fca5a5;
  border-left-color: #b91c1c;
  background: #fef2f2;
}

.terrain-bf-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.terrain-bf-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
  white-space: nowrap;
}

.terrain-bf-guide.is-warn .terrain-bf-badge {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.terrain-bf-guide.is-steep .terrain-bf-badge {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.terrain-bf-title {
  font-weight: 800;
  color: var(--navy-dark);
}

.terrain-bf-desc {
  margin: 0 0 6px;
  color: var(--slate-700);
  font-size: 11.2px;
}

.terrain-bf-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 5px;
}

.terrain-bf-chip {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.3;
  color: #334155;
}

.terrain-bf-chip strong {
  display: block;
  font-size: 10.5px;
  color: var(--navy-dark);
}

.terrain-bf-chip.is-hit {
  border-color: #0284c7;
  background: #e0f2fe;
}

.terrain-bf-guide.is-warn .terrain-bf-chip.is-hit {
  border-color: #d97706;
  background: #fef3c7;
}

.terrain-bf-guide.is-steep .terrain-bf-chip.is-hit {
  border-color: #b91c1c;
  background: #fee2e2;
}

.terrain-bf-foot {
  font-size: 10px;
  color: #475569;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .terrain-bf-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================================
   近隣の公的地価（地価公示・地価調査）＆ 路線価確認セクション
   ========================================================================= */
.land-price-section[hidden] {
  display: none !important;
}

.land-price-section {
  border: 1.5px solid #2563eb;
  border-radius: 10px;
  padding: 13px 15px;
  background: #f8fbff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.land-price-kicker-badge {
  font-size: 11px;
  font-weight: 800;
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

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

.land-price-card {
  border: 1px solid #cbd5e1;
  border-top: 3.5px solid #2563eb;
  border-radius: 8px;
  padding: 9px 11px;
  background: #ffffff;
  break-inside: avoid;
}

.land-price-card.is-primary {
  border-top-color: #0f766e;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

.lp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.lp-kind-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.lp-dist-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 1px 7px;
}

.lp-note-pill {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #075985;
  background: #e0f2fe;
  border-radius: 4px;
  padding: 1px 6px;
}

.lp-price-main {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.25;
}

.lp-price-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #334155;
  font-weight: 700;
}

.lp-yoy-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
}

.lp-yoy-pill.is-up {
  background: #fef2f2;
  color: #b91c1c;
}

.lp-yoy-pill.is-down {
  background: #eff6ff;
  color: #1d4ed8;
}

.lp-meta-lines {
  font-size: 10.8px;
  line-height: 1.42;
  color: var(--slate-700);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.land-price-rosenka-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 8px;
}

.lp-rosenka-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-dark);
}

.lp-copy-btn {
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.lp-copy-btn:hover {
  background: #e2e8f0;
}

.lp-official-link {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 4px 10px;
  text-decoration: none;
}

.lp-official-link:hover {
  background: #dbeafe;
}

.lp-rosenka-hint {
  font-size: 10.5px;
  color: #475569;
}

.land-price-disclaimer {
  font-size: 10.5px;
  line-height: 1.42;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 9px;
}

.hud-lp-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 2px;
  font-size: 10.8px;
  line-height: 1.3;
}

.hud-lp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.hud-lp-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 5px;
  margin-top: 2px;
  font-size: 10.2px;
  font-weight: 600;
  color: #334155;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.hud-lp-tsubo,
.hud-lp-dist {
  white-space: nowrap;
}

.hud-lp-yoy {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

.hud-lp-yoy.is-up {
  background: #fef2f2;
  color: #b91c1c;
}

.hud-lp-yoy.is-down {
  background: #eff6ff;
  color: #1d4ed8;
}

.hud-lp-meta {
  color: #475569;
}

.hud-rosenka-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.hud-rosenka-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 26px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.hud-rosenka-btn:hover {
  background: #dbeafe;
}

.hud-rosenka-btn:focus-visible,
.hud-rosenka-jump:focus-visible,
.lp-primary-link:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.hud-rosenka-jump {
  border: none;
  background: transparent;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 700;
  min-height: 24px;
  padding: 2px 4px;
  text-align: right;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.lp-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: #1d4ed8;
  border: 1px solid #1e40af;
  border-radius: 6px;
  padding: 5px 12px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.lp-primary-link:hover {
  background: #1e40af;
}

/* =========================================================================
   かんたん3ステップ：前面道路「相続税路線価」セルフ試算ツール
   ========================================================================= */
.rosenka-calc-box {
  margin-bottom: 8px;
  padding: 11px 13px;
  border: 1.5px solid #93c5fd;
  border-radius: 9px;
  background: #ffffff;
}

.rosenka-calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--navy-dark);
}

.rosenka-calc-badge {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 8px;
}

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

.rosenka-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.42;
  color: var(--slate-700);
}

.rosenka-step p {
  margin: 3px 0 0;
}

.rosenka-step-num {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: #1d4ed8;
  border-radius: 4px;
  padding: 1px 6px;
}

.rosenka-mini-sample {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 900;
  font-size: 11px;
  color: #1e3a8a;
  background: #dbeafe;
  border-bottom: 2px solid #2563eb;
  border-radius: 3px;
  padding: 0 5px;
}

.rosenka-portal-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 0 5px;
  vertical-align: baseline;
}

.rosenka-portal-tag.is-pink {
  color: #9d174d;
  background: #fdf2f8;
  border: 1px solid #db2777;
}

.rosenka-portal-guide {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #334155;
}

.rosenka-portal-guide-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
}

.rosenka-portal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
}

.rosenka-portal-chip {
  display: block;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.rosenka-portal-chip.is-pink {
  border-color: #f472b6;
  background: #fdf2f8;
  color: #831843;
}

.rosenka-portal-chip.is-blue {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.rosenka-portal-chip.is-green {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}

.rosenka-inputs-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin-bottom: 8px;
}

.rosenka-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy-dark);
  flex: 1 1 200px;
}

.rosenka-input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.rosenka-input-group input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 5px 9px;
  border: 1.5px solid #94a3b8;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  font-family: inherit;
}

.rosenka-input-group input:focus {
  outline: none;
  border-color: #1d4ed8;
}

.rosenka-unit-tag,
.rosenka-input-group select {
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid #94a3b8;
  border-radius: 0 6px 6px 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
}

.rosenka-reset-btn {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.rosenka-reset-btn:hover {
  background: #f1f5f9;
}

.rosenka-options-row {
  margin: -2px 0 8px;
}

.rosenka-lease-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.rosenka-warn-box {
  margin-bottom: 7px;
  padding: 6px 10px;
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.rosenka-res-val.is-compact {
  font-size: 14.5px;
}

.rosenka-result-area {
  margin-bottom: 7px;
}

.rosenka-result-placeholder {
  font-size: 11.5px;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  padding: 8px 10px;
}

.rosenka-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.rosenka-res-card {
  border: 1.2px solid #cbd5e1;
  border-top: 3.5px solid #1d4ed8;
  border-radius: 7px;
  padding: 8px 11px;
  background: #f8fbff;
}

.rosenka-res-card.is-secondary {
  border-top-color: #0f766e;
  background: #f0fdfa;
}

.rosenka-res-card.is-lease {
  border-top-color: #d97706;
  background: #fffbeb;
}

.rosenka-res-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 2px;
}

.rosenka-res-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.25;
}

.rosenka-res-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: #475569;
  line-height: 1.38;
}

.rosenka-calc-note {
  font-size: 10.2px;
  line-height: 1.4;
  color: #475569;
}

/* =========================================================================
   地図ツールバー ジャンル別グルーピング ＆ 3D用途地域ホバーピル
   ========================================================================= */
.layer-tabs-grouped {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.map-toolbar-row2 {
  gap: 6px;
}

.toolbar-genre-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.toolbar-genre-group.is-hazard {
  border-color: #fecaca;
  background: #fff7f7;
}

.toolbar-genre-group.is-land {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.toolbar-genre-group.is-inpage {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.toolbar-genre-group.is-external {
  border-color: #93c5fd;
  border-style: dashed;
  background: #eff6ff;
}

.toolbar-genre-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #334155;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  white-space: nowrap;
  user-select: none;
}

.toolbar-genre-group.is-hazard .toolbar-genre-label {
  color: #991b1b;
  border-color: #fca5a5;
}

.toolbar-genre-group.is-land .toolbar-genre-label {
  color: #075985;
  border-color: #7dd3fc;
}

.toolbar-genre-group.is-inpage .toolbar-genre-label {
  color: #1e293b;
}

.toolbar-genre-group.is-external .toolbar-genre-label {
  color: #1d4ed8;
  border-color: #93c5fd;
}

.toolbar-sub-divider {
  width: 1px;
  height: 18px;
  background: #bfdbfe;
  margin: 0 2px;
}

.layer-btn.is-none-btn {
  background: #ffffff;
  border-style: dashed;
  color: #475569;
}

.layer-btn.is-none-btn.active {
  border-style: solid;
}

.layer-btn.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.gmap-ext-link .ext-arrow {
  display: inline-block;
  margin-left: 3px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

#viewDimToggle [data-viewdim="plateau"] {
  display: none !important;
}

.map3d-zoning-hover-pill {
  position: absolute;
  left: 52px;
  bottom: 46px;
  z-index: 645;
  max-width: min(520px, calc(100% - 240px));
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.map3d-zoning-hover-pill[hidden] {
  display: none !important;
}

.zoning-hover-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  flex: 0 0 auto;
}

.zoning-hover-ref {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
}

.legend-item.is-elev-hover-hit {
  background: rgba(14, 165, 233, 0.14);
  border-radius: 5px;
  padding: 1px 5px;
  margin: -1px -5px;
  box-shadow: 0 0 0 1.5px #0284c7;
  color: #0f172a;
  font-weight: 800;
  transform: translateY(-1px);
  transition: box-shadow 0.12s ease, transform 0.12s ease, background-color 0.12s ease;
}

.legend-zoning-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-right: 8px;
}

.legend-zoning-cat {
  font-size: 10px;
  font-weight: 800;
  color: #334155;
  background: #e2e8f0;
  border-radius: 4px;
  padding: 1px 5px;
}

@media (max-width: 780px) {
  .toolbar-genre-group {
    width: 100%;
  }
  .toolbar-sub-divider {
    display: none;
  }
  .map3d-zoning-hover-pill {
    left: 8px;
    bottom: 92px;
    max-width: calc(100% - 16px);
    font-size: 11px;
  }
}

@media (max-width: 780px) {
  .rosenka-steps-grid {
    grid-template-columns: 1fr;
  }
  .rosenka-portal-guide {
    font-size: 12px;
  }
  .rosenka-portal-chip {
    flex: 1 1 100%;
  }
}

@media (max-width: 820px) {
  .land-price-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .land-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .market-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
}

/* =========================================================================
   売買・投資モード：近隣の実取引・成約相場（国交省 XIT001）
   ========================================================================= */
.market-price-section {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.market-kicker-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.market-price-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #334155;
  line-height: 1.4;
}

.market-meta-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  color: #0f172a;
}

.market-meta-sub {
  font-size: 10.5px;
  color: #475569;
}

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

.market-card {
  background: #ffffff;
  border: 1.2px solid #cbd5e1;
  border-top: 3.5px solid #0f766e;
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market-card.is-land {
  border-top-color: #0f766e;
}

.market-card.is-house {
  border-top-color: #1d4ed8;
}

.market-card.is-mansion {
  border-top-color: #7c3aed;
}

.market-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.market-card-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--navy-dark);
}

.market-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.market-scope-tag {
  font-size: 9.8px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.market-scope-tag.is-city {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.market-scope-tag.is-low {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.market-source-line {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}

.market-hero-price {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.22;
  margin-top: 2px;
}

.market-hero-sub {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.market-range-line {
  font-size: 10.8px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 4px 7px;
  line-height: 1.38;
}

.market-secondary-line {
  font-size: 10.2px;
  color: #475569;
  padding-top: 2px;
  border-top: 1px dashed #e2e8f0;
}

.market-bands-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  font-size: 10px;
  color: #334155;
}

.market-band-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: #f5f3ff;
  border-radius: 4px;
  padding: 2px 6px;
}

.market-calc-box {
  margin-bottom: 9px;
  padding: 10px 12px;
  border: 1.5px solid #99f6e4;
  border-radius: 9px;
  background: #f0fdfa;
}

.market-calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
  font-size: 12px;
  color: #134e4a;
}

.market-calc-inputs {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.market-calc-inputs .rosenka-field {
  max-width: 280px;
}

.market-recent-details {
  margin-bottom: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.market-recent-summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy-dark);
  user-select: none;
}

.market-recent-summary:hover {
  background: #f8fafc;
}

.market-recent-body {
  padding: 0 11px 10px;
  border-top: 1px solid #e2e8f0;
}

.market-refine-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 0 4px;
  border-bottom: 1px dashed #e2e8f0;
}

.market-refine-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}

.market-refine-field select {
  height: 28px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1.2px solid #94a3b8;
  background: #ffffff;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  max-width: 240px;
}

.market-refine-field select:focus {
  outline: none;
  border-color: #1d4ed8;
}

.market-refine-reset {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.market-refine-reset:hover {
  background: #e2e8f0;
}

.market-switch-city-btn {
  margin-left: 8px;
  border: 1px solid #b45309;
  background: #ffffff;
  color: #92400e;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.market-switch-city-btn:hover {
  background: #fef3c7;
}

.market-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 0;
}

.market-filter-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.market-filter-btn.is-active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}

.market-filter-btn.is-auction {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.market-filter-btn.is-auction.is-active {
  background: #b45309;
  border-color: #b45309;
  color: #ffffff;
}

.market-filter-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.market-bit-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  max-width: 100%;
}

.market-bit-link:hover {
  background: #dbeafe;
}

.market-auction-note {
  margin-bottom: 7px;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 10.5px;
  line-height: 1.42;
}

.market-src-badge.is-auction {
  background: #fef3c7;
  color: #92400e;
}

.market-recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.market-recent-table th,
.market-recent-table td {
  text-align: left;
  padding: 6px 7px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.market-recent-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  font-size: 10.5px;
  white-space: nowrap;
}

.market-src-badge {
  display: inline-block;
  font-size: 9.8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  white-space: nowrap;
}

.market-src-badge.is-seiyaku {
  background: #dbeafe;
  color: #1e40af;
}

.market-src-badge.is-torihiki {
  background: #f1f5f9;
  color: #475569;
}

.market-price-strong {
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}

.market-recent-table-wrap {
  overflow-x: auto;
}

@media screen and (max-width: 860px) {
  .market-summary-grid {
    grid-template-columns: 1fr;
  }
  .market-refine-field {
    width: 100%;
    min-width: 0;
  }
  .market-refine-field select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    font-size: 16px;
  }
}

/* =====================================================================
 * エリア人口・世代構成・将来推移（国交省 XKT013）＆ 市区町村 世帯年収（e-Stat）
 * ===================================================================== */
.population-section[hidden] {
  display: none !important;
}

.population-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 13px 14px;
}

.pop-kicker-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0369a1;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.pop-radius-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.pop-radius-bar[hidden] {
  display: none !important;
}

.pop-radius-label {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

.pop-radius-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.2px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.pop-radius-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.pop-radius-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pop-radius-btn.is-active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}

.pop-radius-hint {
  font-size: 10px;
  color: #64748b;
  margin-left: 4px;
}

.pop-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 11px;
  color: #334155;
}

.pop-meta-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

.pop-meta-warn {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-weight: 700;
  font-size: 10.5px;
}

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

.pop-card {
  background: #ffffff;
  border: 1.2px solid #cbd5e1;
  border-top: 3.5px solid #0284c7;
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pop-card.is-trend {
  border-top-color: #0f766e;
}

.pop-card.is-age {
  border-top-color: #4f46e5;
}

.pop-card-label {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}

.pop-hero-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.pop-hero-num {
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pop-hero-sub {
  font-size: 10.8px;
  color: #475569;
  line-height: 1.45;
}

.pop-delta-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pop-delta-pill.is-inc {
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.pop-delta-pill.is-dec {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.pop-delta-pill.is-flat {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.pop-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 9px;
}

.pop-charts-grid[hidden] {
  display: none !important;
}

.pop-chart-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pop-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.pop-chart-title {
  font-size: 11.8px;
  font-weight: 900;
  color: var(--navy-dark);
}

.pop-chart-sub {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}

/* 左：世代別6区分 横棒グラフ */
.pop-age-chart {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pop-age-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.pop-age-lbl {
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
}

.pop-age-track {
  height: 12px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.pop-age-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pop-age-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.6px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.pop-age-delta {
  font-size: 9.8px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 4px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pop-age-delta.is-inc {
  background: #ecfdf5;
  color: #0f766e;
}

.pop-age-delta.is-dec {
  background: #f1f5f9;
  color: #475569;
}

.pop-age-delta.is-flat {
  background: #f8fafc;
  color: #64748b;
}

/* 右：2020〜2050 縦棒グラフ（5年等間隔7時点） */
.pop-timeline-chart {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  flex: 1 1 auto;
}

.pop-timeline-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  height: 132px;
  padding-top: 16px;
  border-bottom: 1.5px solid #cbd5e1;
}

.pop-tl-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 3px;
  min-width: 0;
}

.pop-tl-val {
  font-size: 9.4px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

.pop-tl-bar {
  width: 72%;
  max-width: 30px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: #60a5fa;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pop-tl-bar.is-census {
  background: #94a3b8;
}

.pop-tl-bar.is-baseline {
  background: #1d4ed8;
}

.pop-timeline-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.pop-tl-lbl {
  text-align: center;
  font-size: 9.2px;
  font-weight: 700;
  color: #475569;
  line-height: 1.25;
}

.pop-tl-lbl.is-baseline {
  color: #1e3a8a;
  font-weight: 900;
}

.pop-tl-delta {
  display: block;
  font-size: 8.8px;
  font-weight: 700;
  color: #64748b;
}

/* 折りたたみ数値テーブル */
.pop-table-details {
  margin-bottom: 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 10px;
}

.pop-table-summary {
  cursor: pointer;
  font-size: 11.2px;
  font-weight: 800;
  color: #1e3a8a;
  user-select: none;
}

.pop-table-wrap {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.pop-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.8px;
}

.pop-data-table th,
.pop-data-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 6px;
  text-align: left;
  white-space: nowrap;
}

.pop-data-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

/* e-Stat 市区町村 世帯年収・課税所得・持ち家/賃貸比率 */
.pop-estat-box {
  margin-bottom: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.2px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.pop-estat-box[hidden] {
  display: none !important;
}

.pop-estat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pop-estat-title {
  font-size: 12px;
  font-weight: 900;
  color: #1e3a8a;
}

.pop-estat-scope-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
}

.pop-estat-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-bottom: 7px;
}

.pop-estat-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pop-estat-panel-title {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.pop-estat-panel-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.4;
}

.pop-income-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 6px;
  font-size: 10.6px;
}

.pop-income-lbl {
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.pop-income-track {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.pop-income-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  min-width: 2px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pop-income-pct {
  text-align: right;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.pop-estat-kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pop-estat-kv {
  padding: 7px 9px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.pop-estat-kv-lbl {
  font-size: 10.2px;
  font-weight: 800;
  color: #334155;
}

.pop-estat-kv-val {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2px;
}

.pop-estat-kv-note {
  font-size: 9.8px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
}

.pop-estat-credit {
  font-size: 10px;
  color: #475569;
  line-height: 1.45;
}

.pop-estat-staff-note {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  font-size: 11px;
  color: #334155;
  line-height: 1.5;
}

.pop-estat-staff-note[hidden] {
  display: none !important;
}

.pop-estat-staff-note a {
  color: #1d4ed8;
  font-weight: 800;
}

.pop-disclaimer {
  font-size: 10px;
  color: #475569;
  line-height: 1.5;
}

@media screen and (max-width: 860px) {
  .pop-summary-grid,
  .pop-charts-grid,
  .pop-table-wrap,
  .pop-estat-grid {
    grid-template-columns: 1fr;
  }
  .pop-age-row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 5px;
  }
  .pop-radius-btn {
    min-height: 32px;
    padding: 5px 13px;
  }
  .report-category-tabs {
    display: none !important;
  }
}

/* =====================================================================
 * 詳細レポート カテゴリ切替タブ（PC・タブレット表示用／印刷・1枚シート非干渉）
 * ===================================================================== */
.report-category-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.report-category-tabs[hidden] {
  display: none !important;
}

.report-tab-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.report-tab-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1.2px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.report-tab-btn[hidden] {
  display: none !important;
}

.report-tab-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.report-tab-btn:focus-visible,
.report-tab-all-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.report-tab-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.22);
}

.report-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.report-tab-btn.is-active .report-tab-num {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.report-tab-all-btn {
  appearance: none;
  margin-left: auto;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px dashed #64748b;
  background: #ffffff;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.report-tab-all-btn:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #eff6ff;
}

.report-tab-all-btn.is-active {
  border-style: solid;
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
}

[data-tabgroup] {
  scroll-margin-top: 68px;
}

/* 250m人口メッシュ クリック照会ピル（2D/3D地図の上部中央・HUDや右下ドックと非干渉・印刷非表示） */
.map-popmesh-pill {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 680;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  max-width: min(560px, calc(100% - 140px));
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media screen and (max-width: 860px) {
  .map-popmesh-pill {
    top: 8px;
    max-width: calc(100% - 20px);
  }
}

.map-popmesh-pill[hidden] {
  display: none !important;
}

.map-popmesh-pill-main {
  font-weight: 800;
  color: #ffffff;
}

.map-popmesh-pill-note {
  font-size: 10px;
  color: #cbd5e1;
  font-weight: 600;
}

.map-popmesh-pill-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  margin-left: auto;
}

.map-popmesh-pill-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.layer-btn.is-popmesh-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* PC・タブレット幅かつ1枚シート以外のみ、選択中タブ以外を非表示（印刷・スマホ・モード非表示[hidden]とは独立） */
@media screen and (min-width: 861px) {
  body:not(.simple-sheet-mode) #reportSheet[data-reporttab='hazard'] [data-tabgroup]:not([data-tabgroup='hazard']),
  body:not(.simple-sheet-mode) #reportSheet[data-reporttab='market'] [data-tabgroup]:not([data-tabgroup='market']),
  body:not(.simple-sheet-mode) #reportSheet[data-reporttab='population'] [data-tabgroup]:not([data-tabgroup='population']),
  body:not(.simple-sheet-mode) #reportSheet[data-reporttab='invest'] [data-tabgroup]:not([data-tabgroup='invest']) {
    display: none;
  }
}

/* =========================================================================
   測量GISデザインシステム × PC横2ペインワークスペース（画面表示専用・印刷/1枚シート保護）
   ========================================================================= */
@media screen {
  :root {
    --gis-slate: #18222f;
    --gis-slate-2: #223042;
    --gis-slate-3: #2d3e54;
    --gis-slate-border: #364960;
    --gis-canvas: #f2f5f8;
    --gis-surface: #ffffff;
    --gis-surface-alt: #e9eff5;
    --gis-line: #d5dee8;
    --gis-line-strong: #9fb0c4;
    --gis-ink: #18222f;
    --gis-ink-sub: #3d4f66;
    --gis-muted: #5c6f84;
    --gis-navy: #1f4e79;
    --gis-teal: #0f766e;
    --gis-alert: #c2362b;
    --gis-alert-bg: #fdf2f1;
    --gis-ok: #0f6e56;
    --gis-ok-bg: #ecf7f3;
    --gis-warn: #8a5a00;
    --gis-warn-bg: #fbf6e8;
    --gis-mono: 'IBM Plex Mono', 'Consolas', 'Meiryo', ui-monospace, monospace;
    --workspace-top-offset: 102px;
  }

  body:not(.simple-sheet-mode) {
    background: var(--gis-canvas);
    color: var(--gis-ink);
    font-variant-numeric: tabular-nums;
  }

  /* ----- 初期ランディング（完全静止の測量紙ベース：ごく薄い方眼＋静かな等高線／JSゼロ） ----- */
  .app-title {
    --brand-ink: currentColor;
    --brand-accent: #055e57;
    --brand-sub-ink: #334155;
  }

  .brand-mark-svg {
    width: 25px;
    height: auto;
    aspect-ratio: 60 / 48;
    flex-shrink: 0;
    display: block;
  }

  .brand-mark-base {
    fill: var(--brand-ink);
  }

  .brand-mark-wave {
    fill: var(--brand-accent);
  }

  .brand-en {
    font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
    color: var(--brand-ink);
  }

  .brand-en-geo {
    font-weight: 700;
  }

  .brand-en-accent {
    font-weight: 600;
    color: var(--brand-accent);
  }

  .brand-sub {
    display: none;
  }

  @media (forced-colors: active) {
    .brand-mark-base {
      fill: CanvasText;
    }
  }

  .landing-drafting-bg {
    display: none;
  }

  body.is-landing {
    min-height: 100vh;
    background: var(--gis-canvas);
    border-top: 4px solid var(--gis-slate);
    color: var(--gis-ink);
    position: relative;
    overflow-x: hidden;
  }

  body.is-landing .landing-drafting-bg {
    display: block;
    position: fixed;
    inset: 4px 0 0 0;
    width: 100%;
    height: calc(100% - 4px);
    pointer-events: none;
    z-index: 0;
  }

  body.is-landing .control-bar {
    position: relative;
    z-index: 6;
    max-width: 800px;
    margin: clamp(28px, 6vh, 64px) auto 18px;
    padding: 24px 28px 20px;
    border-radius: 6px;
    background: #ffffff;
    color: var(--gis-ink);
    border: 1px solid #cbd5e1;
    border-top: 3px solid var(--gis-slate);
    box-shadow: 0 10px 28px rgba(24, 34, 47, 0.07);
  }

  body.is-landing .control-inner {
    gap: 16px;
  }

  body.is-landing .brand-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
  }

  body.is-landing .brand-left {
    flex: 1 1 280px;
    min-width: 0;
    align-items: flex-start;
    gap: 5px;
  }

  body.is-landing .app-title {
    --brand-ink: #1a232e;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-ink);
    line-height: 1;
  }

  body.is-landing .brand-mark-svg {
    width: 46px;
    height: auto;
    aspect-ratio: 60 / 48;
    flex-shrink: 0;
  }

  body.is-landing .brand-wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  body.is-landing .brand-en {
    width: max-content;
    font-size: 32px;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  body.is-landing .brand-sub {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--brand-sub-ink);
    white-space: nowrap;
  }

  body.is-landing .brand-sep {
    color: var(--brand-accent);
    opacity: 0.75;
    font-weight: 700;
  }

  body.is-landing .action-buttons {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  /* トップ画面では未診断のためヘッダー右の表示モード切替を非表示にし、ボタン過多を解消 */
  body.is-landing .brand-row .audience-toggle {
    display: none;
  }

  body.is-landing #openSettingsBtn {
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
  }

  body.is-landing #openSettingsBtn:hover {
    background: #f1f5f9;
    color: #0f172a;
  }

  body.is-landing #openSettingsBtn:focus-visible,
  body.is-landing #accountTriggerBtn:focus-visible,
  body.is-landing .demo-buttons .demo-btn:focus-visible,
  body.is-landing #floorSelect:focus-visible {
    outline: 2px solid var(--gis-teal);
    outline-offset: 2px;
  }

  body.is-landing #accountTriggerBtn {
    height: 32px;
    padding: 0 13px;
    border-radius: 6px;
    border: 1px solid #18222f;
    background: #18222f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
  }

  body.is-landing #accountTriggerBtn:hover {
    background: #0f172a;
    border-color: #0f172a;
  }

  body.is-landing #accountTriggerBtn.is-logged-in {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
  }

  body.is-landing #accountTriggerBtn.is-logged-in:hover {
    background: #f1f5f9;
    border-color: #64748b;
  }

  body.is-landing #accountTriggerBtn.is-pro {
    background: #f0fdfa;
    border-color: #0f766e;
    color: #0f766e;
  }

  body.is-landing #accountTriggerBtn.is-pro:hover {
    background: #ccfbf1;
  }

  body.is-landing .quick-bar {
    gap: 12px;
  }

  body.is-landing .quick-bar .search-box-wrap {
    max-width: none;
    margin: 0;
  }

  body.is-landing .search-input-row {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  body.is-landing .search-input-row:focus-within {
    border-color: var(--gis-teal);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
  }

  body.is-landing #addressInput {
    flex: 1 1 0%;
    width: auto;
    min-width: 120px;
    height: 46px;
    font-size: 14px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--gis-ink);
    box-shadow: none;
    outline: none;
  }

  body.is-landing #searchBtn {
    flex: 0 0 auto;
    white-space: nowrap;
    height: 46px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 0;
    background: var(--gis-teal);
    color: #ffffff;
    box-shadow: none;
  }

  body.is-landing #searchBtn:hover {
    background: #115e59;
  }

  body.is-landing #gpsBtn {
    flex: 0 0 auto;
    white-space: nowrap;
    height: 46px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    color: #475569;
    box-shadow: none;
  }

  body.is-landing #gpsBtn:hover:not(:disabled) {
    background: #f8fafc;
    color: #0f172a;
  }

  body.is-landing #searchBtn:disabled,
  body.is-landing #gpsBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  body.is-landing .search-input-row :is(#searchBtn, #gpsBtn):focus-visible {
    outline: 2px solid var(--gis-navy);
    outline-offset: -3px;
  }

  body.is-landing .quick-conditions {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }

  body.is-landing .cond-inline-label {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
  }

  body.is-landing .segmented {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    padding: 2px;
    gap: 2px;
    height: 32px;
    box-sizing: border-box;
  }

  body.is-landing .seg-btn {
    min-width: 52px;
    height: 26px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
  }

  body.is-landing .seg-btn:hover:not(.active) {
    color: #0f172a;
  }

  body.is-landing .seg-btn.active {
    background: #f0fdfa;
    color: #0f766e;
    border-color: #0f766e;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.1);
  }

  body.is-landing #floorSelect {
    width: auto;
    min-width: 112px;
    flex: 0 0 auto;
    height: 32px;
    line-height: 18px;
    padding: 6px 10px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }

  body.is-landing #floorSelect:hover {
    border-color: #94a3b8;
  }

  body.is-landing .demo-inline-row {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
  }

  body.is-landing .demo-inline-label {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
  }

  body.is-landing .demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.is-landing .demo-buttons .demo-btn {
    border-radius: 999px;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  body.is-landing .demo-buttons .demo-btn:hover {
    background: #f0fdfa;
    color: #0f766e;
    border-color: #0f766e;
  }

  body.is-landing .status-banner {
    position: relative;
    z-index: 5;
    max-width: 800px;
    border-radius: 2px;
  }

  @media (max-width: 680px) {
    body.is-landing .control-bar {
      margin: 14px 10px;
      padding: 18px 16px;
    }
    body.is-landing .brand-row {
      flex-direction: column;
      flex-wrap: wrap;
      align-items: flex-start;
    }
    body.is-landing .brand-left {
      flex: none;
      width: 100%;
    }
    body.is-landing .app-title {
      gap: 9px;
    }
    body.is-landing .brand-mark-svg {
      width: 40px;
    }
    body.is-landing .brand-en {
      font-size: 27px;
      letter-spacing: 0.04em;
    }
    body.is-landing .brand-sub {
      font-size: 9.5px;
      letter-spacing: 0;
    }
    body.is-landing .action-buttons {
      width: 100%;
      justify-content: flex-start;
    }
    body.is-landing #floorSelect {
      min-width: 96px;
      max-width: 100%;
    }
    body.is-landing #addressInput {
      min-width: 80px;
      padding: 0 10px;
      font-size: 13px;
    }
    body.is-landing #searchBtn {
      padding: 0 14px;
      font-size: 12.5px;
    }
    body.is-landing #gpsBtn {
      padding: 0 10px;
      font-size: 11.5px;
    }
  }

  @media (max-width: 400px) {
    body.is-landing .brand-en {
      font-size: 21px;
      letter-spacing: 0.03em;
    }
    body.is-landing .brand-sub {
      font-size: 9.5px;
      justify-content: flex-start;
      gap: 4px;
    }
  }

  /* ----- 診断後 上部コントロールバー（1行スリム・スレート紺） ----- */
  body:not(.is-landing):not(.simple-sheet-mode) .control-bar {
    background: var(--gis-slate);
    border-bottom: 1px solid var(--gis-slate-border);
    padding: 7px 14px;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 820;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .control-inner {
    max-width: 1840px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .brand-row {
    display: contents;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .brand-left {
    order: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    flex-shrink: 0;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .app-title {
    --brand-ink: #f8fafc;
    --brand-accent: #22a89a;
    --brand-sub-ink: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-ink);
    margin: 0;
    white-space: nowrap;
    line-height: 1;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .brand-mark-svg {
    width: 28px;
    height: auto;
    aspect-ratio: 60 / 48;
    flex-shrink: 0;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .brand-wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .brand-en {
    font-size: 20px;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .brand-sub {
    display: none;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .quick-bar {
    order: 2;
    flex: 1 1 420px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .quick-bar .search-box-wrap {
    flex: 1 1 300px;
    max-width: 480px;
    min-width: 280px;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .search-input-row {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--gis-slate-2);
    border: 1px solid var(--gis-slate-border);
    border-radius: 3px;
    overflow: hidden;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .search-input-row:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px #60a5fa;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #addressInput {
    flex: 1 1 0%;
    width: auto;
    min-width: 80px;
    height: 31px;
    padding: 0 9px;
    font-size: 12px;
    background: transparent;
    color: #f8fafc;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #addressInput::placeholder {
    color: #94a3b8;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #searchBtn {
    flex: 0 0 auto;
    white-space: nowrap;
    height: 31px;
    padding: 0 12px;
    border-radius: 0;
    border: none;
    background: var(--gis-teal);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: none;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #searchBtn:hover {
    background: #115e59;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #gpsBtn {
    flex: 0 0 auto;
    white-space: nowrap;
    height: 31px;
    padding: 0 9px;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--gis-slate-border);
    background: transparent;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #gpsBtn:hover {
    background: var(--gis-slate-3);
    color: #ffffff;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .quick-conditions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .cond-inline-label {
    display: none;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .segmented {
    border-radius: 3px;
    border: 1px solid var(--gis-slate-border);
    background: var(--gis-slate-2);
    padding: 0;
    gap: 0;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .seg-btn {
    height: 29px;
    padding: 0 9px;
    border-radius: 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
    border: none;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .seg-btn.active {
    background: #e8f0f8;
    color: var(--gis-slate);
    font-weight: 800;
    box-shadow: none;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #floorSelect {
    height: 31px;
    padding: 0 8px;
    border-radius: 3px;
    border: 1px solid var(--gis-slate-border);
    background: var(--gis-slate-2);
    color: #f8fafc;
    font-size: 11.5px;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .action-buttons {
    order: 3;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .audience-toggle {
    border-radius: 3px;
    border: 1px solid var(--gis-slate-border);
    background: var(--gis-slate-2);
    padding: 0;
    gap: 0;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .aud-btn {
    height: 29px;
    padding: 0 9px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .aud-btn.active {
    background: #e8f0f8;
    color: var(--gis-slate);
    font-weight: 800;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .action-buttons > .btn,
  body:not(.is-landing):not(.simple-sheet-mode) .action-buttons .ui-menu-trigger {
    height: 31px;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid var(--gis-slate-border);
    background: transparent;
    color: #e2e8f0;
    box-shadow: none;
    white-space: nowrap;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .action-buttons > .btn:hover:not(:disabled),
  body:not(.is-landing):not(.simple-sheet-mode) .action-buttons .ui-menu-trigger:hover:not(:disabled) {
    background: var(--gis-slate-3);
    border-color: #64748b;
    color: #ffffff;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #exportMenuBtn {
    background: #e8f0f8;
    color: var(--gis-slate);
    border-color: #e8f0f8;
    font-weight: 800;
  }

  body:not(.is-landing):not(.simple-sheet-mode) #exportMenuBtn:hover:not(:disabled) {
    background: #ffffff;
    color: var(--gis-slate);
  }

  body:not(.is-landing):not(.simple-sheet-mode) .demo-inline-row {
    order: 4;
    flex-basis: 100%;
    padding-top: 4px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .demo-buttons .demo-btn {
    border-radius: 2px;
    padding: 2px 8px;
    font-size: 11px;
    background: var(--gis-slate-2);
    border: 1px solid var(--gis-slate-border);
    color: #cbd5e1;
  }

  body:not(.is-landing):not(.simple-sheet-mode) .demo-buttons .demo-btn:hover {
    background: var(--gis-slate-3);
    color: #ffffff;
  }

  /* ----- 共通ドロップダウン・ポップオーバー（visibility方式で幅0計測バグを防止） ----- */
  .ui-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .ui-caret {
    font-size: 9px;
    opacity: 0.78;
    margin-left: 2px;
  }

  .ui-menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 210px;
    background: var(--gis-surface);
    color: var(--gis-ink);
    border: 1px solid var(--gis-line-strong);
    border-radius: 3px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
    z-index: 920;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  }

  .ui-menu-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ui-menu-panel .ui-menu-item {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    padding: 7px 10px;
    border-radius: 2px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gis-ink);
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .ui-menu-panel .ui-menu-item:hover:not(:disabled):not(.is-disabled) {
    background: var(--gis-surface-alt);
    color: var(--gis-navy);
    border-color: var(--gis-line);
  }

  .ui-menu-panel .ui-menu-item.active {
    background: var(--gis-teal);
    color: #ffffff;
    border-color: var(--gis-teal);
  }

  .ui-menu-panel .ui-menu-item:disabled,
  .ui-menu-panel .ui-menu-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .ui-menu-panel .toolbar-genre-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--gis-muted);
    letter-spacing: 0.05em;
    padding: 3px 8px 4px;
    border-bottom: 1px solid var(--gis-line);
    margin-bottom: 2px;
    background: transparent;
  }

  .ui-menu-panel .toolbar-sub-divider {
    display: block;
    height: 1px;
    width: 100%;
    background: var(--gis-line);
    margin: 3px 0;
  }

  /* ----- レポート本体枠（測量GISワークスペース化） ----- */
  body:not(.simple-sheet-mode) .report-sheet {
    max-width: 1840px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: var(--gis-canvas);
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* ----- 物件ヘッダー（PC通常画面は超スリム1行物件バー：住所 ｜ 標高 ｜ 用途地域 ＋ 右端に切れない法務注記） ----- */
  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header {
    background: var(--gis-surface);
    border-bottom: 1px solid var(--gis-line);
    padding: 5px 14px;
    margin: 0;
    min-height: 32px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header-top {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header-title-wrap {
    display: none;
  }

  body:not(.simple-sheet-mode) .doc-kicker-row {
    display: none;
  }

  body:not(.simple-sheet-mode) .report-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--gis-ink);
    margin: 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.simple-sheet-mode) .report-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body:not(.simple-sheet-mode) .non-jusetu-stamp {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    padding: 2px 8px;
    border-radius: 2px;
    border: 1px solid rgba(185, 28, 28, 0.38);
    color: #991b1b;
    background: #fef2f2;
    transform: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  body:not(.simple-sheet-mode) .non-jusetu-stamp br {
    display: none;
  }

  body:not(.simple-sheet-mode) .prop-meta-details-btn {
    appearance: none;
    height: 24px;
    padding: 0 9px;
    border-radius: 2px;
    border: 1px solid var(--gis-line-strong);
    background: var(--gis-surface);
    color: var(--gis-ink-sub);
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) .prop-meta-details-btn:hover {
    background: var(--gis-surface-alt);
    color: var(--gis-ink);
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    min-width: 0;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item[hidden] {
    display: none !important;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item-condition,
  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item-address .meta-label,
  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item-zoning .meta-label {
    display: none;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item-address {
    flex: 0 1 auto;
    min-width: 140px;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item-elevation {
    flex: 0 0 auto;
    border-left: 1px solid #cbd5e1;
    padding-left: 10px;
    margin-left: 10px;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-item-zoning {
    flex: 0 1 auto;
    min-width: 120px;
    border-left: 1px solid #cbd5e1;
    padding-left: 10px;
    margin-left: 10px;
  }

  body:not(.simple-sheet-mode) .report-header > .property-meta-grid .meta-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--gis-muted);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  body:not(.simple-sheet-mode) .report-header > .property-meta-grid .meta-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--gis-ink);
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .report-header > .property-meta-grid .meta-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  body:not(.simple-sheet-mode) #reportAddress {
    font-size: 13px;
    font-weight: 800;
    color: var(--gis-navy);
  }

  body:not(.simple-sheet-mode) #reportElevation {
    font-family: var(--gis-mono);
  }

  body:not(.simple-sheet-mode) .report-header-details {
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--gis-line);
  }

  body:not(.simple-sheet-mode) .report-header.is-meta-collapsed .report-header-details {
    display: none;
  }

  body:not(.simple-sheet-mode) .property-meta-grid-secondary {
    background: var(--gis-canvas);
    border: 1px solid var(--gis-line);
    border-radius: 3px;
    padding: 8px 10px;
    margin-bottom: 6px;
  }

  body:not(.simple-sheet-mode) .coord-bar {
    background: var(--gis-surface-alt);
    border: 1px solid var(--gis-line);
    border-radius: 2px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--gis-mono);
    color: var(--gis-ink-sub);
    margin: 0;
  }

  /* ----- 地図ツールバー：5段 → 1段40pxスレートバー＋表示設定ポップオーバー ----- */
  body:not(.simple-sheet-mode) .map-section {
    background: var(--gis-surface);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    overflow: visible;
  }

  body:not(.simple-sheet-mode) .map-section-head {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
  }

  body:not(.simple-sheet-mode) .map-print-heading {
    display: none;
  }

  body:not(.simple-sheet-mode) .map-controls-bar {
    background: var(--gis-slate);
    border-bottom: 1px solid var(--gis-slate-border);
    padding: 5px 10px;
    margin: 0;
    border-radius: 0;
    gap: 0;
    position: relative;
    z-index: 650;
  }

  body:not(.simple-sheet-mode) .map-toolbar-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    width: 100%;
  }

  body:not(.simple-sheet-mode) #layerTabs.layer-tabs-grouped {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
  }

  body:not(.simple-sheet-mode) .map-toolbar-primary .toolbar-genre-group:not(.ui-menu-panel) {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  body:not(.simple-sheet-mode) .map-toolbar-primary .toolbar-genre-group:not(.ui-menu-panel) > .toolbar-genre-label {
    display: none;
  }

  body:not(.simple-sheet-mode) .map-toolbar-primary .layer-btn:not(.ui-menu-item),
  body:not(.simple-sheet-mode) .layer-menu-trigger,
  body:not(.simple-sheet-mode) .gis-tb-btn {
    appearance: none;
    height: 28px;
    padding: 0 8px;
    border-radius: 2px;
    border: 1px solid transparent;
    background: transparent;
    color: #d8e1ec;
    font-size: 11.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }

  body:not(.simple-sheet-mode) .map-toolbar-primary .layer-btn:not(.ui-menu-item) svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.85;
  }

  body:not(.simple-sheet-mode) .layer-menu-trigger,
  body:not(.simple-sheet-mode) .gis-tb-btn {
    border-color: var(--gis-slate-border);
    background: var(--gis-slate-2);
  }

  body:not(.simple-sheet-mode) .map-toolbar-primary .layer-btn:not(.ui-menu-item):hover,
  body:not(.simple-sheet-mode) .layer-menu-trigger:hover,
  body:not(.simple-sheet-mode) .gis-tb-btn:hover {
    background: var(--gis-slate-3);
    color: #ffffff;
    border-color: #5c738f;
  }

  body:not(.simple-sheet-mode) .map-toolbar-primary .layer-btn:not(.ui-menu-item).active,
  body:not(.simple-sheet-mode) .layer-menu-trigger.is-active,
  body:not(.simple-sheet-mode) .gis-tb-btn.is-active {
    background: var(--gis-teal);
    color: #ffffff;
    border-color: var(--gis-teal);
    font-weight: 700;
    box-shadow: none;
  }

  /* 地図ツールバー内ドロップダウン（地形・都市 ▾／外部 ↗）の白背景＋濃紺文字を明示保護 */
  body:not(.simple-sheet-mode) .map-dd-panel.ui-menu-panel,
  body:not(.simple-sheet-mode) .map-ext-panel.ui-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--gis-surface);
    color: var(--gis-ink);
    border: 1px solid var(--gis-line-strong);
    padding: 5px;
    gap: 3px;
  }

  body:not(.simple-sheet-mode) .map-dd-panel .layer-btn.ui-menu-item {
    color: var(--gis-ink);
    background: transparent;
    border: 1px solid transparent;
    height: auto;
    padding: 7px 10px;
  }

  body:not(.simple-sheet-mode) .map-dd-panel .layer-btn.ui-menu-item:hover {
    background: var(--gis-surface-alt);
    color: var(--gis-navy);
    border-color: var(--gis-line);
  }

  body:not(.simple-sheet-mode) .map-dd-panel .layer-btn.ui-menu-item.active {
    background: var(--gis-teal);
    color: #ffffff;
    border-color: var(--gis-teal);
  }

  body:not(.simple-sheet-mode) .gis-tb-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: var(--gis-slate-border);
    margin: 0 2px;
  }

  body:not(.simple-sheet-mode) .map-toolbar-row2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
  }

  body:not(.simple-sheet-mode) .basemap-toggle {
    display: inline-flex;
    border: 1px solid var(--gis-slate-border);
    border-radius: 2px;
    background: var(--gis-slate-2);
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  body:not(.simple-sheet-mode) .basemap-toggle .basemap-btn {
    height: 26px;
    padding: 0 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none;
  }

  body:not(.simple-sheet-mode) .basemap-toggle .basemap-btn:hover {
    background: var(--gis-slate-3);
    color: #ffffff;
  }

  body:not(.simple-sheet-mode) .basemap-toggle .basemap-btn.active {
    background: #e8f0f8;
    color: var(--gis-slate);
    font-weight: 800;
  }

  body:not(.simple-sheet-mode) .map-toolbar-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  body:not(.simple-sheet-mode) .map-expand-btn {
    display: none;
  }

  /* 表示設定ポップオーバー（半径円＋ラベル＋濃さ＋起動時デフォルト） */
  .map-settings-popover {
    width: 336px;
    max-width: calc(100vw - 24px);
    max-height: min(82vh, 640px);
    overflow-y: auto;
    padding: 12px 13px;
    gap: 8px;
  }

  .map-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--gis-line);
    font-size: 12px;
    font-weight: 800;
    color: var(--gis-ink);
  }

  .map-pop-close {
    appearance: none;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    color: var(--gis-muted);
    cursor: pointer;
    padding: 2px 5px;
  }

  .map-pop-close:hover {
    color: var(--gis-ink);
  }

  .map-pop-sec-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gis-muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
  }

  body:not(.simple-sheet-mode) .map-settings-popover .radius-control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px 8px;
    margin: 0;
    background: var(--gis-canvas);
    border: 1px solid var(--gis-line);
    border-radius: 3px;
  }

  body:not(.simple-sheet-mode) .map-settings-popover .radius-toggle-btn,
  body:not(.simple-sheet-mode) .map-settings-popover .radius-preset-btn,
  body:not(.simple-sheet-mode) .map-settings-popover .pin-preset-btn {
    border-radius: 2px;
    border: 1px solid var(--gis-line-strong);
    background: #ffffff;
    color: var(--gis-ink-sub);
    font-size: 11px;
    padding: 3px 8px;
  }

  body:not(.simple-sheet-mode) .map-settings-popover .radius-toggle-btn.is-active,
  body:not(.simple-sheet-mode) .map-settings-popover .radius-preset-btn.is-active {
    background: var(--gis-slate);
    color: #ffffff;
    border-color: var(--gis-slate);
  }

  body:not(.simple-sheet-mode) .map-settings-popover .map-pin-filter-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 7px 8px;
    margin: 0;
    background: var(--gis-canvas);
    border: 1px solid var(--gis-line);
    border-radius: 3px;
  }

  body:not(.simple-sheet-mode) .map-settings-popover .pin-filter-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 6px;
  }

  body:not(.simple-sheet-mode) .map-settings-popover .pin-check-item {
    font-size: 11px;
    padding: 2px 3px;
    border-radius: 2px;
    border: none;
    background: transparent;
  }

  body:not(.simple-sheet-mode) .map-settings-popover .pin-check-dot {
    border-radius: 2px;
  }

  /* 起動時のデフォルト設定ボックス */
  body:not(.simple-sheet-mode) .map-defaults-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 9px;
    background: var(--gis-canvas);
    border: 1px solid var(--gis-line);
    border-radius: 3px;
  }

  body:not(.simple-sheet-mode) .map-default-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body:not(.simple-sheet-mode) .map-default-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gis-ink-sub);
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) .map-default-seg {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gis-line-strong);
    border-radius: 2px;
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
  }

  body:not(.simple-sheet-mode) .map-default-btn {
    appearance: none;
    height: 23px;
    padding: 0 8px;
    border: none;
    border-right: 1px solid var(--gis-line);
    background: #ffffff;
    color: var(--gis-ink-sub);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) .map-default-btn:last-child {
    border-right: none;
  }

  body:not(.simple-sheet-mode) .map-default-btn:hover {
    background: #f1f5f9;
    color: var(--gis-ink);
  }

  body:not(.simple-sheet-mode) .map-default-btn.is-active {
    background: var(--gis-slate);
    color: #ffffff;
    font-weight: 700;
  }

  body:not(.simple-sheet-mode) .map-defaults-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px dashed var(--gis-line);
  }

  body:not(.simple-sheet-mode) .map-defaults-save-btn {
    appearance: none;
    flex: 1 1 auto;
    height: 26px;
    padding: 0 8px;
    border-radius: 2px;
    border: 1px solid #0f766e;
    background: #0f766e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) .map-defaults-save-btn:hover {
    background: #115e59;
    border-color: #115e59;
  }

  body:not(.simple-sheet-mode) .map-defaults-reset-btn {
    appearance: none;
    height: 26px;
    padding: 0 8px;
    border-radius: 2px;
    border: 1px solid var(--gis-line-strong);
    background: #ffffff;
    color: var(--gis-ink-sub);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) .map-defaults-reset-btn:hover {
    background: #f1f5f9;
    color: var(--gis-ink);
  }

  body:not(.simple-sheet-mode) .map-defaults-status {
    font-size: 10.5px;
    color: var(--gis-muted);
    line-height: 1.35;
  }

  /* ----- モード固有折りたたみサブバー（3D / PLATEAU / Google / 水位 / 直線高低差） ----- */
  .map-mode-subbar {
    background: #eef3f8;
    border-bottom: 1px solid var(--gis-line);
    position: relative;
    z-index: 40;
  }

  .map-mode-subbar[hidden] {
    display: none !important;
  }

  .map-mode-subbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 10px;
    min-height: 26px;
    background: #e3ebf3;
    border-bottom: 1px solid var(--gis-line);
  }

  .map-mode-subbar.is-collapsed .map-mode-subbar-head {
    border-bottom: none;
  }

  .map-mode-subbar-toggle {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--gis-ink);
    font-size: 11px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 4px;
  }

  .map-mode-subbar-toggle:disabled {
    cursor: default;
    opacity: 0.85;
  }

  .map-mode-subbar-hint {
    font-size: 10.5px;
    color: var(--gis-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .map-mode-subbar.is-collapsed .map-mode-subbar-body {
    display: none;
  }

  .map-mode-subbar-body {
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 210px;
    overflow-y: auto;
  }

  body:not(.simple-sheet-mode) .map-mode-subbar-body .map3d-controls,
  body:not(.simple-sheet-mode) .map-mode-subbar-body .plateau-controls,
  body:not(.simple-sheet-mode) .map-mode-subbar-body .gmap-controls,
  body:not(.simple-sheet-mode) .map-mode-subbar-body .water-sim-bar,
  body:not(.simple-sheet-mode) .map-mode-subbar-body .slope-line-bar {
    margin: 0;
    padding: 6px 8px;
    border-radius: 3px;
    border: 1px solid var(--gis-line);
    background: #ffffff;
    box-shadow: none;
  }

  body:not(.simple-sheet-mode) .map3d-btn,
  body:not(.simple-sheet-mode) .plateau-btn,
  body:not(.simple-sheet-mode) .water-sim-btn,
  body:not(.simple-sheet-mode) .slope-mode-btn {
    border-radius: 2px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* ----- 地図フレーム＆下端ステータス帯（M2対策：isolationでLeaflet 1000系z-indexのポップオーバー被りを防止） ----- */
  body:not(.simple-sheet-mode) .map-frame {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 0;
    isolation: isolate;
  }

  body:not(.simple-sheet-mode) .map-now-viewing-bar {
    margin: 0;
    padding: 4px 12px;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--gis-line);
    border-bottom: 1px solid var(--gis-line);
    background: var(--gis-slate);
    color: #e2e8f0;
    font-size: 11px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  body:not(.simple-sheet-mode) .map-now-badge {
    border-radius: 2px;
    font-size: 10.5px;
    padding: 1px 7px;
    font-weight: 700;
    background: var(--gis-teal);
    color: #ffffff;
    border: none;
  }

  body:not(.simple-sheet-mode) .map-now-detail {
    color: #cbd5e1;
    font-family: var(--gis-mono);
    font-size: 11px;
  }

  .map-pending-sync-hint {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    color: #fde68a;
  }

  body:not(.simple-sheet-mode) .map-footer-bar {
    margin: 0;
    padding: 5px 12px;
    background: var(--gis-surface);
    border-bottom: 1px solid var(--gis-line);
    font-size: 10.5px;
  }

  /* 地図内HUD・フロートボタンも測量GIS調へ統一（左上配置＋地図枠基準の高さ制限で左下ズームと非干渉） */
  body:not(.simple-sheet-mode) .map-info-hud {
    display: flex;
    flex-direction: column;
    max-height: calc(100% - 110px);
    border-radius: 3px;
    border: 1px solid var(--gis-line-strong);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.96);
  }

  body:not(.simple-sheet-mode) .map-info-hud-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  body:not(.simple-sheet-mode) .map-frame .leaflet-bottom.leaflet-left .leaflet-control-zoom {
    margin-bottom: 6px;
    border: 1px solid var(--gis-line-strong);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  }

  body:not(.simple-sheet-mode) .map-info-hud-head {
    background: var(--gis-slate);
    color: #f8fafc;
    border-radius: 2px 2px 0 0;
  }

  body:not(.simple-sheet-mode) .map-info-hud-title {
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  body:not(.simple-sheet-mode) .map-info-hud-toggle {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
  }

  body:not(.simple-sheet-mode) .map-info-hud-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  body:not(.simple-sheet-mode) .map-float-btn {
    border-radius: 3px;
    border: 1px solid var(--gis-line-strong);
    background: rgba(255, 255, 255, 0.96);
    color: var(--gis-ink);
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  }

  body:not(.simple-sheet-mode) .map-float-btn:hover {
    background: var(--gis-slate);
    color: #ffffff;
    border-color: var(--gis-slate);
  }

  body:not(.simple-sheet-mode) .map-float-restore {
    background: var(--gis-slate);
    color: #ffffff;
    border-color: var(--gis-slate);
  }

  body:not(.simple-sheet-mode) .map-active-label {
    border-radius: 2px;
    background: rgba(24, 34, 47, 0.92);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 10.5px;
  }

  /* ----- 詳細レポート4タブ（AIピル廃止 → 測量GISアンダーラインタブ） ----- */
  body:not(.simple-sheet-mode) .report-category-tabs {
    margin: 0;
    padding: 0 16px;
    border-radius: 0;
    background: var(--gis-surface);
    border: none;
    border-bottom: 1.5px solid var(--gis-slate);
    box-shadow: none;
    gap: 8px;
  }

  body:not(.simple-sheet-mode) .report-tab-list {
    gap: 2px;
  }

  body:not(.simple-sheet-mode) .report-tab-btn {
    border: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--gis-muted);
    padding: 10px 10px 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
  }

  body:not(.simple-sheet-mode) .report-tab-btn:hover {
    background: transparent;
    color: var(--gis-ink);
    border-bottom-color: var(--gis-line-strong);
  }

  body:not(.simple-sheet-mode) .report-tab-btn.is-active {
    background: transparent;
    color: var(--gis-navy);
    border-bottom-color: var(--gis-navy);
    box-shadow: none;
  }

  body:not(.simple-sheet-mode) .report-tab-num {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--gis-muted);
    font-family: var(--gis-mono);
    font-size: 10.5px;
    font-weight: 700;
  }

  body:not(.simple-sheet-mode) .report-tab-btn.is-active .report-tab-num {
    background: transparent;
    color: var(--gis-teal);
  }

  .report-tab-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .report-tab-sync-btn {
    appearance: none;
    display: none;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid var(--gis-line-strong);
    background: var(--gis-canvas);
    color: var(--gis-muted);
    font-size: 10.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  .report-tab-sync-btn .sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
  }

  .report-tab-sync-btn.is-active {
    color: var(--gis-ink);
    border-color: var(--gis-teal);
    background: var(--gis-ok-bg);
  }

  .report-tab-sync-btn.is-active .sync-dot {
    background: var(--gis-teal);
  }

  body:not(.simple-sheet-mode) .report-tab-all-btn {
    margin-left: 0;
    border-radius: 2px;
    border: 1px solid var(--gis-line-strong);
    background: var(--gis-surface);
    color: var(--gis-ink-sub);
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
  }

  body:not(.simple-sheet-mode) .report-tab-all-btn.is-active {
    background: var(--gis-slate);
    color: #ffffff;
    border-color: var(--gis-slate);
  }

  /* ----- レポート各セクションのAI感徹底排除（ヘアライン＋スレート＋タブラー数字） ----- */
  body:not(.simple-sheet-mode) .report-detail-pane {
    background: var(--gis-canvas);
  }

  body:not(.simple-sheet-mode) .report-detail-pane > .section-block {
    background: var(--gis-surface);
    border: 1px solid var(--gis-line);
    border-radius: 3px;
    padding: 14px 16px;
    margin: 12px 16px;
    box-shadow: none;
  }

  body:not(.simple-sheet-mode) .report-detail-pane > .section-block .section-head {
    border-bottom: 1.5px solid var(--gis-slate);
    padding-bottom: 6px;
    margin-bottom: 12px;
  }

  body:not(.simple-sheet-mode) .report-detail-pane > .section-block .section-head h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--gis-ink);
    letter-spacing: 0.02em;
  }

  /* AI感の象徴だったレインボー上枠線カード・丸ピルを技術台帳スタイルへ刷新 */
  body:not(.simple-sheet-mode) .pop-card,
  body:not(.simple-sheet-mode) .pop-card.is-trend,
  body:not(.simple-sheet-mode) .pop-card.is-age,
  body:not(.simple-sheet-mode) .pop-kpi-card,
  body:not(.simple-sheet-mode) .pop-chart-card,
  body:not(.simple-sheet-mode) .pop-estat-box,
  body:not(.simple-sheet-mode) .pop-estat-panel,
  body:not(.simple-sheet-mode) .pop-table-details,
  body:not(.simple-sheet-mode) .market-kpi-card,
  body:not(.simple-sheet-mode) .hazard-card,
  body:not(.simple-sheet-mode) .minpaku-card,
  body:not(.simple-sheet-mode) .land-price-card,
  body:not(.simple-sheet-mode) .summary-box {
    border-radius: 3px !important;
    box-shadow: none !important;
    border-color: var(--gis-line) !important;
  }

  body:not(.simple-sheet-mode) .pop-card,
  body:not(.simple-sheet-mode) .pop-card.is-trend,
  body:not(.simple-sheet-mode) .pop-card.is-age,
  body:not(.simple-sheet-mode) .pop-kpi-card {
    border-top: 2px solid var(--gis-slate) !important;
    background: var(--gis-surface) !important;
  }

  body:not(.simple-sheet-mode) .pop-estat-box {
    background: var(--gis-canvas) !important;
    border: 1px solid var(--gis-line) !important;
    border-top: 2px solid var(--gis-navy) !important;
  }

  body:not(.simple-sheet-mode) .pop-estat-title {
    color: var(--gis-ink);
  }

  body:not(.simple-sheet-mode) .pop-hero-num,
  body:not(.simple-sheet-mode) .pop-kpi-value,
  body:not(.simple-sheet-mode) .market-kpi-value,
  body:not(.simple-sheet-mode) .land-price-value {
    font-family: var(--gis-mono);
    letter-spacing: -0.02em;
    color: var(--gis-ink);
  }

  body:not(.simple-sheet-mode) .pop-badge,
  body:not(.simple-sheet-mode) .pop-delta-pill,
  body:not(.simple-sheet-mode) .pop-estat-scope-badge,
  body:not(.simple-sheet-mode) .market-kicker-badge,
  body:not(.simple-sheet-mode) .minpaku-kicker-badge,
  body:not(.simple-sheet-mode) .summary-tag,
  body:not(.simple-sheet-mode) .compliance-tag,
  body:not(.simple-sheet-mode) .hazard-badge {
    border-radius: 2px !important;
    font-weight: 700;
  }

  body:not(.simple-sheet-mode) .pop-tl-bar,
  body:not(.simple-sheet-mode) .pop-estat-bar-fill {
    background: var(--gis-navy) !important;
    border-radius: 1px !important;
  }

  body:not(.simple-sheet-mode) .pop-tl-bar.is-baseline {
    background: var(--gis-teal) !important;
  }

  body:not(.simple-sheet-mode) .pop-radius-bar {
    border-radius: 2px;
    background: var(--gis-canvas);
    border: 1px solid var(--gis-line);
    padding: 5px 8px;
  }

  body:not(.simple-sheet-mode) .pop-radius-btn {
    border-radius: 2px !important;
    font-family: var(--gis-mono);
    border: 1px solid var(--gis-line-strong);
    background: #ffffff;
    color: var(--gis-ink-sub);
  }

  body:not(.simple-sheet-mode) .pop-radius-btn.is-active {
    background: var(--gis-slate) !important;
    border-color: var(--gis-slate) !important;
    color: #ffffff !important;
  }

  body:not(.simple-sheet-mode) .summary-box {
    border: 1.5px solid var(--gis-slate) !important;
    background: var(--gis-surface) !important;
  }

  body:not(.simple-sheet-mode) .minpaku-section {
    border: 1px solid var(--gis-line) !important;
    border-top: 2px solid var(--gis-navy) !important;
    background: var(--gis-surface) !important;
  }

  /* ----- 災害リスク一覧：高級GIS 活版調書レイアウト（ゴシック体×純白・墨/朱・1px角印枠／AI箱撤廃） ----- */
  body:not(.simple-sheet-mode) #hazardCards.hazard-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-top: 1.5px solid var(--gis-slate);
    border-bottom: 1.5px solid var(--gis-slate);
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) auto;
    gap: 4px 14px;
    align-items: start;
    padding: 12px 4px;
    margin: 0;
    border: none !important;
    border-bottom: 1px solid #e5e9f0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-card:last-child {
    border-bottom: none !important;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-card-top {
    display: contents;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-icon-badge {
    display: none !important;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-title-group {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: block;
    min-width: 0;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-card-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--gis-ink);
    line-height: 1.35;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-card-sub {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-body-row {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    align-items: flex-start;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-main-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--gis-ink);
    line-height: 1.5;
    margin: 0;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-main-val.is-muted {
    color: #64748b;
    font-weight: 500;
    font-size: 12px;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-card.state-urgent .hazard-main-val,
  body:not(.simple-sheet-mode) #hazardCards .hazard-card.state-detected .hazard-main-val {
    color: #9f1239;
    font-weight: 800;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-sub-lines {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 11.5px;
    color: #475569;
    line-height: 1.65;
  }

  body:not(.simple-sheet-mode) #hazardCards .hazard-sub-lines li {
    margin-bottom: 2px;
  }

  body:not(.simple-sheet-mode) #hazardCards .nearby-chip {
    grid-column: 2;
    grid-row: 2;
    margin: 3px 0 0;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #9f1239;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
  }

  body:not(.simple-sheet-mode) #hazardCards .nearby-chip::before {
    content: "◆ ";
    font-size: 10px;
    color: #9f1239;
  }

  /* 右端の1px角印枠（塗りつぶし・丸み・パステルを全廃） */
  body:not(.simple-sheet-mode) #hazardCards .status-badge {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 1px !important;
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) #hazardCards .status-badge.badge-urgent,
  body:not(.simple-sheet-mode) #hazardCards .status-badge.badge-detected,
  body:not(.simple-sheet-mode) #hazardCards .status-badge.badge-error {
    border-color: #9f1239 !important;
    color: #9f1239 !important;
  }

  body:not(.simple-sheet-mode) #hazardCards .status-badge.badge-unconfirmed,
  body:not(.simple-sheet-mode) #hazardCards .status-badge.badge-ref {
    border-color: var(--gis-slate) !important;
    color: var(--gis-ink) !important;
  }

  /* 下部の公式ハザード・過去実績リンクも静かな活版行へ統一 */
  body:not(.simple-sheet-mode) #historyVsHazardBar.history-vs-hazard-bar {
    margin-top: 10px;
    padding: 10px 2px 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    gap: 7px;
  }

  body:not(.simple-sheet-mode) #historyVsHazardBar .hvh-pill,
  body:not(.simple-sheet-mode) #historyVsHazardBar .hvh-pill.is-history {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 104px;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
  }

  body:not(.simple-sheet-mode) #historyVsHazardBar .hvh-link {
    border: none;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 0;
    background: transparent;
    padding: 1px 0;
    color: var(--gis-ink);
    font-size: 11.5px;
    font-weight: 600;
  }

  body:not(.simple-sheet-mode) #historyVsHazardBar .hvh-link:hover,
  body:not(.simple-sheet-mode) #historyVsHazardBar .hvh-link:focus-visible {
    background: transparent;
    color: var(--gis-teal);
    border-bottom-color: var(--gis-teal);
    outline: 2px solid var(--gis-teal);
    outline-offset: 2px;
  }

  @media (max-width: 640px) {
    body:not(.simple-sheet-mode) #hazardCards .hazard-card {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 6px 10px;
    }
    body:not(.simple-sheet-mode) #hazardCards .hazard-title-group {
      grid-column: 1;
      grid-row: 1;
    }
    body:not(.simple-sheet-mode) #hazardCards .status-badge {
      grid-column: 2;
      grid-row: 1;
    }
    body:not(.simple-sheet-mode) #hazardCards .hazard-body-row {
      grid-column: 1 / -1;
      grid-row: 2;
    }
    body:not(.simple-sheet-mode) #hazardCards .nearby-chip {
      grid-column: 1 / -1;
      grid-row: 3;
    }
  }

  /* 3. この物件の現地確認事項（2.災害リスク一覧と完全統一した純白・1px罫線・角印・墨/朱調書） */
  body:not(.simple-sheet-mode) #guidanceSection .guidance-ledger {
    border-top: 1.5px solid #18222f;
    border-bottom: 1.5px solid #18222f;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #guidanceList {
    display: block;
    gap: 0;
  }

  body:not(.simple-sheet-mode) #guidanceList .guidance-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    padding: 12px 6px;
    margin: 0;
    background: #ffffff;
    border: none;
    border-left: none;
    border-radius: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  body:not(.simple-sheet-mode) #guidanceList .guidance-item.level-urgent,
  body:not(.simple-sheet-mode) #guidanceList .guidance-item.level-warn,
  body:not(.simple-sheet-mode) #guidanceList .guidance-item.level-info,
  body:not(.simple-sheet-mode) #guidanceList .guidance-item.level-note {
    background: #ffffff;
    border-left: none;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-icon {
    display: none;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-head {
    display: block;
    margin: 0;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-seal-col {
    display: flex;
    align-items: flex-start;
    padding-top: 1px;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 2px 6px;
    border-radius: 1px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.25;
    white-space: nowrap;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-seal.is-warn {
    color: #9f1239;
    border: 1px solid #9f1239;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-seal.is-ink {
    color: #18222f;
    border: 1px solid #18222f;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-seal.is-muted {
    color: #64748b;
    border: 1px solid #cbd5e1;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-main-col {
    min-width: 0;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #18222f;
    line-height: 1.4;
    margin: 0;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-body {
    margin: 3px 0 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    white-space: pre-line;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-sub-note {
    margin: 3px 0 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-side-col {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    padding-top: 2px;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-side-col.is-warn {
    color: #9f1239;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-side-col.is-ink {
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-note-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 0 0 1px;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 0;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-note-toggle.is-row-trigger {
    margin-top: 0;
    border-bottom: none;
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-note-toggle:hover,
  body:not(.simple-sheet-mode) #guidanceSection .guidance-note-toggle:focus-visible {
    color: #9f1239;
    border-bottom-color: #9f1239;
    outline: 2px solid #9f1239;
    outline-offset: 2px;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-note-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf2f7;
  }

  /* 最寄り避難場所への1行道案内（水色ボタン廃止 → 墨テキストリンク） */
  body:not(.simple-sheet-mode) #guidanceSection .guidance-shelter-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-shelter-row[hidden] {
    display: none;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-shelter-meta {
    font-weight: 400;
    font-size: 11.5px;
    color: #64748b;
    margin-left: 4px;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-text-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #18222f;
    text-decoration: none;
    border-bottom: 1px solid #94a3b8;
    padding-bottom: 1px;
    white-space: nowrap;
    transition: color 0.14s ease, border-color 0.14s ease;
  }

  body:not(.simple-sheet-mode) #guidanceSection .guidance-text-link:hover,
  body:not(.simple-sheet-mode) #guidanceSection .guidance-text-link:focus-visible {
    color: #9f1239;
    border-bottom-color: #9f1239;
    outline: 2px solid #9f1239;
    outline-offset: 2px;
  }

  /* 現地内見チェックリスト（デフォルト折りたたみ・1px罫線・角丸なし正方形朱チェック） */
  body:not(.simple-sheet-mode) #guidanceSection .inspect-details {
    margin: 0;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary {
    list-style: none;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s ease;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary::-webkit-details-marker {
    display: none;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary:hover {
    background: #f8fafc;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary:focus-visible {
    outline: 2px solid #18222f;
    outline-offset: -2px;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    min-width: 0;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-caret {
    display: inline-block;
    font-size: 11px;
    color: #18222f;
    transition: transform 0.15s ease;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-details[open] .inspect-caret {
    transform: rotate(90deg);
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary-sub {
    font-size: 11.5px;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-summary-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-check-count {
    font-variant-numeric: tabular-nums;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-check-count.has-checked {
    color: #9f1239;
    font-weight: 700;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-toggle-hint {
    font-size: 11px;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-details-body {
    border-top: 1px solid #e2e8f0;
    padding: 4px 6px 12px 74px;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-grid {
    display: block;
    margin: 0;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 2px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item:last-child {
    border-bottom: none;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin: 2px 0 0;
    border: 1px solid #18222f;
    border-radius: 0;
    background: #ffffff;
    position: relative;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item input[type='checkbox']:checked {
    background: #9f1239;
    border-color: #9f1239;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item input[type='checkbox']:checked::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 1px;
    width: 4.5px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item input[type='checkbox']:focus-visible {
    outline: 2px solid #9f1239;
    outline-offset: 2px;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #18222f;
    line-height: 1.35;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item input[type='checkbox']:checked + span strong {
    color: #9f1239;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-item small {
    font-size: 11px;
    color: #64748b;
    line-height: 1.45;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-disclaimer {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #edf2f7;
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-link {
    background: transparent;
    border: none;
    border-bottom: 1px solid #18222f;
    border-radius: 0;
    padding: 0 0 1px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #18222f;
    cursor: pointer;
    transition: color 0.14s ease, border-color 0.14s ease;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-link:hover,
  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-link:focus-visible {
    color: #9f1239;
    border-bottom-color: #9f1239;
    outline: 2px solid #9f1239;
    outline-offset: 2px;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-link.is-sub {
    font-size: 11.5px;
    font-weight: 400;
    color: #64748b;
    border-bottom-color: transparent;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-link.is-sub:hover,
  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-link.is-sub:focus-visible {
    color: #18222f;
    border-bottom-color: #64748b;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-sep {
    color: #cbd5e1;
    font-size: 11px;
  }

  body:not(.simple-sheet-mode) #guidanceSection .inspect-action-feedback {
    margin-right: auto;
    font-size: 11px;
    font-weight: 600;
    color: #0f766e;
  }

  body:not(.simple-sheet-mode) #guidanceSection .agent-memo-box {
    margin-top: 12px;
    border: 1px solid #cbd5e1;
    border-top: 1.5px solid #18222f;
    border-radius: 0;
    padding: 10px 12px;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #guidanceSection .agent-memo-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #18222f;
  }

  @media (max-width: 640px) {
    body:not(.simple-sheet-mode) #guidanceList .guidance-item,
    body:not(.simple-sheet-mode) #guidanceSection .guidance-shelter-row,
    body:not(.simple-sheet-mode) #guidanceSection .inspect-summary {
      grid-template-columns: 50px minmax(0, 1fr) auto;
      column-gap: 8px;
      padding: 10px 4px;
    }

    body:not(.simple-sheet-mode) #guidanceSection .inspect-details-body {
      padding: 4px 4px 10px 8px;
    }
  }

  /* 4. 暮らしの高低差（断面図）＆ 最寄り駅（セクション2・3と完全統一した純白・1px罫線・角印・墨/朱調書） */
  body:not(.simple-sheet-mode) #terrainSection .terrain-box {
    border: none;
    border-radius: 0;
    padding: 0;
    background: #ffffff;
    margin-bottom: 14px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 6px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tabs {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-group {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-group.is-secondary {
    margin-left: auto;
    gap: 4px 12px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn,
  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn.is-shelter-tab {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    padding: 4px 2px 6px;
    margin-bottom: -6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.14s ease, border-color 0.14s ease;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn.is-axis-tab {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn:hover,
  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn.is-shelter-tab:hover {
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn:focus-visible,
  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn.is-shelter-tab:focus-visible {
    outline: 2px solid #18222f;
    outline-offset: 2px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn.active,
  body:not(.simple-sheet-mode) #terrainSection .terrain-tab-btn.is-shelter-tab.active {
    background: transparent;
    color: #18222f;
    font-weight: 700;
    border-bottom-color: #18222f;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-right-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-overlay-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: #475569;
    cursor: pointer;
    user-select: none;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-overlay-toggle input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin: 0;
    border: 1px solid #18222f;
    border-radius: 0;
    background: #ffffff;
    position: relative;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-overlay-toggle input[type='checkbox']:checked {
    background: #18222f;
    border-color: #18222f;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-overlay-toggle input[type='checkbox']:checked::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 1px;
    width: 4.5px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-overlay-toggle input[type='checkbox']:focus-visible {
    outline: 2px solid #9f1239;
    outline-offset: 2px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-active-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #18222f;
    letter-spacing: 0.02em;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-shelter-route-note {
    font-size: 11px;
    color: #9f1239;
    margin: 0 0 6px;
    padding: 4px 0;
    border-bottom: 1px solid #edf2f7;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-chart-wrap {
    margin-bottom: 8px;
    border: none;
    border-radius: 0;
    background: #ffffff;
  }

  /* 断面図下の2行調書（高低・勾配） */
  body:not(.simple-sheet-mode) #terrainSection .terrain-ledger {
    border-top: 1.5px solid #18222f;
    border-bottom: 1.5px solid #18222f;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-summary,
  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-guide {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    margin: 0;
    padding: 11px 6px;
    border: none;
    border-left: none;
    border-radius: 0;
    background: #ffffff;
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-summary {
    border-bottom: 1px solid #e2e8f0;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-guide.is-steep,
  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-guide.is-warn {
    background: #ffffff;
    border: none;
    border-left: none;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-guide[hidden] {
    display: none;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-seal-col {
    display: flex;
    align-items: flex-start;
    padding-top: 1px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 2px 6px;
    border-radius: 1px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.25;
    white-space: nowrap;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-seal.is-warn {
    color: #9f1239;
    border: 1px solid #9f1239;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-seal.is-ink {
    color: #18222f;
    border: 1px solid #18222f;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-seal.is-muted {
    color: #64748b;
    border: 1px solid #cbd5e1;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-main-col {
    min-width: 0;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-row-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #18222f;
    line-height: 1.4;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-row-sub {
    margin-top: 3px;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-side-col {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding-top: 2px;
    color: #475569;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-side-col.is-warn {
    color: #9f1239;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-side-col.is-ink {
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 0 0 1px;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-toggle:hover,
  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-toggle:focus-visible {
    color: #18222f;
    border-bottom-color: #18222f;
    outline: 2px solid #18222f;
    outline-offset: 2px;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-ref-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf2f7;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-scale {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-chip {
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    padding: 6px 8px;
    font-size: 10.5px;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-chip:last-child {
    border-right: none;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-chip.is-hit {
    background: #fffafb;
    color: #9f1239;
    border-color: #e2e8f0;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-chip.is-hit strong {
    color: #9f1239;
  }

  body:not(.simple-sheet-mode) #terrainSection .terrain-bf-foot {
    margin-top: 6px;
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.5;
  }

  /* 最寄り駅：純白1列3行の調書テーブル（3枚カード・水色ボタン6個を廃止） */
  body:not(.simple-sheet-mode) #terrainSection .station-ledger-wrap {
    margin-top: 12px;
  }

  body:not(.simple-sheet-mode) #terrainSection .station-ledger-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
    margin-bottom: 6px;
  }

  body:not(.simple-sheet-mode) #terrainSection .station-ledger-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #18222f;
    letter-spacing: 0.02em;
  }

  body:not(.simple-sheet-mode) #terrainSection .station-ledger-col-note {
    font-size: 10.5px;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #stationList.station-grid {
    display: block;
    gap: 0;
    border-top: 1.5px solid #18222f;
    border-bottom: 1.5px solid #18222f;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #stationList .station-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    min-height: 46px;
    padding: 0 8px 0 0;
    margin: 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: none;
    transition: background 0.12s ease;
  }

  body:not(.simple-sheet-mode) #stationList .station-row:last-child {
    border-bottom: none;
  }

  body:not(.simple-sheet-mode) #stationList .station-row:hover {
    background: #f8fafc;
  }

  body:not(.simple-sheet-mode) #stationList .station-row.is-selected {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: inset 2.5px 0 0 #18222f;
  }

  body:not(.simple-sheet-mode) #stationList .station-row-btn {
    display: grid;
    grid-template-columns: minmax(120px, 1.15fr) minmax(96px, 0.85fr) minmax(136px, 1.15fr);
    align-items: center;
    column-gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 9px 4px 9px 8px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  body:not(.simple-sheet-mode) #stationList .station-row-btn.is-static {
    cursor: default;
  }

  body:not(.simple-sheet-mode) #stationList .station-row-btn:focus-visible {
    outline: 2px solid #18222f;
    outline-offset: -2px;
  }

  body:not(.simple-sheet-mode) #stationList .station-col-name {
    display: block;
    min-width: 0;
  }

  body:not(.simple-sheet-mode) #stationList .station-name-head {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  body:not(.simple-sheet-mode) #stationList .station-sel-dot {
    font-size: 9px;
    color: #94a3b8;
    line-height: 1;
  }

  body:not(.simple-sheet-mode) #stationList .station-row.is-selected .station-sel-dot {
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #stationList .station-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #18222f;
    margin: 0;
  }

  body:not(.simple-sheet-mode) #stationList .station-line {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin: 1px 0 0 15px;
  }

  body:not(.simple-sheet-mode) #stationList .station-col-dist {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #18222f;
    white-space: nowrap;
  }

  body:not(.simple-sheet-mode) #stationList .station-col-elev {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: #64748b;
  }

  body:not(.simple-sheet-mode) #stationList .station-elev-sep {
    color: #cbd5e1;
  }

  body:not(.simple-sheet-mode) #stationList .station-diff-text {
    font-weight: 700;
    color: #18222f;
  }

  body:not(.simple-sheet-mode) #stationList .station-card-actions {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  body:not(.simple-sheet-mode) #stationList .station-route-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 700;
    color: #18222f;
    text-decoration: none;
    border-bottom: 1px solid #94a3b8;
    white-space: nowrap;
    transition: color 0.14s ease, border-color 0.14s ease;
  }

  body:not(.simple-sheet-mode) #stationList .station-route-link:hover,
  body:not(.simple-sheet-mode) #stationList .station-route-link:focus-visible {
    color: #9f1239;
    border-bottom-color: #9f1239;
    outline: 2px solid #9f1239;
    outline-offset: 2px;
  }

  body:not(.simple-sheet-mode) #terrainSection .station-ledger-disclaimer {
    margin: 7px 0 0;
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.55;
  }

  @media (max-width: 640px) {
    body:not(.simple-sheet-mode) #terrainSection .terrain-summary,
    body:not(.simple-sheet-mode) #terrainSection .terrain-bf-guide {
      grid-template-columns: 48px minmax(0, 1fr) auto;
      column-gap: 8px;
      padding: 10px 4px;
    }

    body:not(.simple-sheet-mode) #terrainSection .terrain-bf-scale {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.simple-sheet-mode) #stationList .station-row {
      padding: 0 6px 0 0;
    }

    body:not(.simple-sheet-mode) #stationList .station-row-btn {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 3px;
      padding: 10px 4px 10px 6px;
    }

    body:not(.simple-sheet-mode) #stationList .station-col-dist,
    body:not(.simple-sheet-mode) #stationList .station-col-elev {
      padding-left: 15px;
    }
  }

  /* =========================================================================
     セクション5：最寄りの指定緊急避難場所（GEODOCK台帳スタイル）
     ========================================================================= */
  body:not(.simple-sheet-mode) #shelterSection .shelter-map-frame {
    border: 1px solid #18222f;
    border-radius: 0;
    margin-bottom: 4px;
    background: #ffffff;
  }

  body:not(.simple-sheet-mode) #shelterSection .shelter-map-caption {
    justify-content: flex-end;
    margin: 0 0 8px;
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.4;
  }

  body:not(.simple-sheet-mode) #shelterSection .shelter-ledger-row {
    transition: background 0.12s ease;
  }

  body:not(.simple-sheet-mode) #shelterSection .shelter-ledger-row.is-clickable:hover {
    background: #f8fafc;
  }

  body:not(.simple-sheet-mode) #shelterSection .shelter-ledger-row.is-selected {
    background: #f8fafc;
    box-shadow: inset 2.5px 0 0 #18222f;
  }

  body:not(.simple-sheet-mode) #shelterSection .shelter-ledger-row-btn:focus-visible {
    outline: 2px solid #18222f;
    outline-offset: -2px;
  }

  @media (max-width: 640px) {
    body:not(.simple-sheet-mode) #shelterSection .shelter-ledger-row-btn {
      grid-template-columns: 74px minmax(0, 1fr) auto;
      column-gap: 8px;
      padding: 9px 6px;
    }

    body:not(.simple-sheet-mode) #shelterSection .shelter-ledger-seals {
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
    }
  }

  body:not(.simple-sheet-mode) .report-detail-pane > .report-footer {
    margin: 12px 16px 20px;
    padding: 12px 16px;
    background: var(--gis-surface);
    border: 1px solid var(--gis-line);
    border-radius: 3px;
  }

  /* =========================================================================
     PC横2ペインワークスペース（1180px以上 × 非1枚シート）
     ========================================================================= */
  @media screen and (min-width: 1180px) {
    body:not(.simple-sheet-mode):not(.is-landing) .workspace-split {
      display: grid;
      grid-template-columns: minmax(0, 52%) minmax(0, 48%);
      height: calc(100vh - var(--workspace-top-offset, 102px));
      min-height: 580px;
      align-items: stretch;
      background: var(--gis-canvas);
    }

    body:not(.simple-sheet-mode):not(.is-landing) .map-expand-btn {
      display: inline-flex;
    }

    body:not(.simple-sheet-mode):not(.is-landing) .report-tab-sync-btn {
      display: inline-flex;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
      border-right: 1.5px solid var(--gis-slate);
      background: var(--gis-surface);
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection .map-frame {
      flex: 1 1 auto;
      min-height: 360px;
      height: auto !important;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection .map-canvas {
      height: 100% !important;
      min-height: 360px;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection #gmapPlacesPanel:not([hidden]),
    body:not(.simple-sheet-mode):not(.is-landing) #mapSection #facilityBlock:not([hidden]) {
      max-height: 26vh;
      overflow-y: auto;
      margin: 0;
      border-radius: 0;
      border-left: none;
      border-right: none;
      flex-shrink: 0;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection #landPriceTrendPanel:not([hidden]) {
      margin: 0;
      border-radius: 0;
      border-left: none;
      border-right: none;
      border-bottom: none;
      flex-shrink: 0;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection #landPriceTrendPanel:not([hidden]).is-collapsed {
      padding: 6px 12px;
      max-height: none;
      overflow: visible;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection #landPriceTrendPanel:not([hidden]):not(.is-collapsed) {
      max-height: 36vh;
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #mapSection #facilityBlock.is-collapsed {
      max-height: none;
      overflow: visible;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #reportDetailPane {
      height: 100%;
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    body:not(.simple-sheet-mode):not(.is-landing) #reportDetailPane #reportCategoryTabs {
      position: sticky;
      top: 0;
      z-index: 45;
    }

    /* 2ペイン右列のチャートグリッドを窮屈・見切れにならないよう最適化 */
    body:not(.simple-sheet-mode):not(.is-landing) #reportDetailPane .pop-charts-grid,
    body:not(.simple-sheet-mode):not(.is-landing) #reportDetailPane .pop-estat-grid,
    body:not(.simple-sheet-mode):not(.is-landing) #reportDetailPane .pop-table-wrap {
      grid-template-columns: 1fr;
    }

    /* 「地図を広げる」全画面モード（横だけでなく縦もしっかり確保） */
    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #reportHeader {
      display: none;
    }

    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) .workspace-split {
      grid-template-columns: 100% 0;
      height: calc(100vh - var(--workspace-top-offset, 52px));
    }

    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection {
      border-right: none;
    }

    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection .map-credit {
      padding: 2px 10px;
      font-size: 10px;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection .map-legend {
      padding: 4px 10px;
      font-size: 11px;
    }

    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection #gmapPlacesPanel:not([hidden]),
    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection #facilityBlock:not([hidden]) {
      max-height: 18vh;
    }

    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection #landPriceTrendPanel:not([hidden]):not(.is-collapsed) {
      max-height: 30vh;
    }

    body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #reportDetailPane {
      display: none;
    }
  }

  @media (min-width: 1360px) {
    body:not(.simple-sheet-mode):not(.is-landing) .workspace-split {
      grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    }
  }

  /* 1179px以下（タブレット・ノート小画面・スマホ）では縦積み（案1型） */
  @media (max-width: 1179px) {
    body:not(.simple-sheet-mode) .workspace-split,
    body:not(.simple-sheet-mode) .report-detail-pane {
      display: block;
      height: auto;
      overflow: visible;
    }
    body:not(.simple-sheet-mode) .map-expand-btn,
    body:not(.simple-sheet-mode) .report-tab-sync-btn {
      display: none !important;
    }
  }

  @media (max-width: 860px) {
    body:not(.is-landing):not(.simple-sheet-mode) .control-bar {
      position: static;
    }
    body:not(.is-landing):not(.simple-sheet-mode) .action-buttons {
      flex-wrap: wrap;
    }
    body:not(.simple-sheet-mode) .map-settings-popover {
      position: fixed;
      left: 12px;
      right: 12px;
      top: 60px;
      width: auto;
      max-height: 75vh;
      overflow-y: auto;
    }
    body:not(.simple-sheet-mode) .report-detail-pane > .section-block {
      margin: 10px 8px;
    }
  }
}

/* =========================================================================
   かんたん1枚シート & A4詳細印刷 完全保護ルール
   ========================================================================= */
body.simple-sheet-mode .workspace-split,
body.simple-sheet-mode .report-detail-pane {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  position: static !important;
}

body.simple-sheet-mode .report-header.is-meta-collapsed .report-header-details {
  display: block !important;
  margin-top: 3px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

body.simple-sheet-mode .property-meta-grid-secondary {
  margin-top: 3px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

body.simple-sheet-mode #togglePropMetaDetailsBtn,
body.simple-sheet-mode #mapModeSubbar,
body.simple-sheet-mode .ui-menu-panel,
body.simple-sheet-mode #toggleMapExpandBtn,
body.simple-sheet-mode #reportTabSyncToggle {
  display: none !important;
}

/* 会員ログイン・アカウントモーダル（GEODOCK 調書トーン） */
.account-trigger-btn {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.account-trigger-btn.is-pro {
  border-color: #0f766e !important;
  color: #0f766e !important;
}

.auth-modal-panel {
  max-width: 440px;
  width: calc(100% - 24px);
  padding: 20px 22px 22px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 2px solid #18222f;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.auth-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.auth-modal-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748b;
  margin-bottom: 2px;
}

.auth-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #18222f;
}

.auth-modal-close {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  border-color: #18222f;
  color: #18222f;
}

.auth-modal-notice {
  margin-bottom: 12px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.auth-modal-notice.is-error {
  border-color: #9f1239;
  background: #fffafb;
  color: #9f1239;
}

.auth-modal-notice.is-ok {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}

.auth-tab-bar {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 2px 8px;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.auth-tab-btn.is-active {
  color: #18222f;
  font-weight: 700;
  border-bottom-color: #18222f;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #18222f;
  background: #ffffff;
  color: #18222f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.14s ease;
}

.auth-google-btn:hover {
  background: #f8fafc;
}

.auth-google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #18222f;
  font-size: 11px;
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 11px;
  color: #64748b;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #18222f;
}

.auth-field input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  color: #18222f;
  background: #ffffff;
}

.auth-field input:focus {
  outline: 2px solid #18222f;
  outline-offset: -1px;
  border-color: #18222f;
}

.auth-submit-btn {
  margin-top: 4px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #18222f;
  background: #18222f;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit-btn:hover:not(:disabled) {
  background: #0f172a;
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-plan-summary {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  color: #475569;
}

.auth-plan-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.auth-plan-tag {
  display: inline-block;
  min-width: 96px;
  padding: 1px 6px;
  border: 1px solid #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  white-space: nowrap;
}

.auth-plan-tag.is-pro {
  border-color: #9f1239;
  color: #9f1239;
}

.auth-account-ledger {
  border-top: 1.5px solid #18222f;
  border-bottom: 1.5px solid #18222f;
  margin-bottom: 14px;
}

.auth-account-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12.5px;
}

.auth-account-row:last-child {
  border-bottom: none;
}

.auth-account-label {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
}

.auth-account-val {
  color: #18222f;
  font-weight: 700;
  text-align: right;
}

.auth-upgrade-box {
  margin-bottom: 14px;
  padding: 12px 13px;
  border: 1px solid #cbd5e1;
  border-top: 1.5px solid #9f1239;
  background: #ffffff;
}

.auth-upgrade-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #18222f;
  margin-bottom: 8px;
}

.auth-upgrade-terms {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: #334155;
}

.auth-upgrade-terms > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid #edf2f7;
}

.auth-upgrade-terms dt {
  color: #64748b;
  font-weight: 600;
}

.auth-upgrade-terms dd {
  margin: 0;
  color: #18222f;
}

.auth-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #475569;
  cursor: pointer;
}

.auth-consent-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-consent-check a {
  color: #18222f;
  text-decoration: underline;
}

.auth-pro-manage {
  margin-bottom: 14px;
}

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
  font-size: 11px;
}

.auth-legal-links a {
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid #cbd5e1;
}

.auth-legal-links a:hover {
  color: #18222f;
  border-bottom-color: #18222f;
}

.auth-account-footer-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.auth-danger-link {
  background: transparent;
  border: none;
  padding: 2px 0;
  font-family: inherit;
  font-size: 11px;
  color: #9f1239;
  cursor: pointer;
  text-decoration: underline;
}

.auth-account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-upgrade-note {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
}

.auth-logout-btn {
  align-self: flex-end;
  background: transparent;
  border: none;
  border-bottom: 1px solid #64748b;
  padding: 2px 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.auth-logout-btn:hover {
  color: #9f1239;
  border-bottom-color: #9f1239;
}

@media print {
  .workspace-split,
  .report-detail-pane {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
  }

  .report-header.is-meta-collapsed .report-header-details {
    display: block !important;
    margin-top: 4px !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .property-meta-grid-secondary {
    margin-top: 4px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .map-print-heading {
    display: block !important;
  }

  .guidance-note-body,
  .terrain-bf-ref-body {
    display: block !important;
  }

  .guidance-seal-col,
  .guidance-side-col,
  .terrain-seal-col,
  .terrain-side-col {
    display: none !important;
  }

  .shelter-map-frame {
    border: 1px solid #18222f;
    border-radius: 0;
  }

  .shelter-ledger-row {
    break-inside: avoid;
  }

  .shelter-ledger-row.is-selected {
    background: transparent !important;
    box-shadow: none !important;
  }

  #togglePropMetaDetailsBtn,
  #mapModeSubbar,
  .ui-menu-panel,
  #toggleMapExpandBtn,
  #restoreKartePaneBtn,
  #reportTabSyncToggle {
    display: none !important;
  }
}


/* =========================================================
   地価変動MAP（2Dヒートマップ・数値ピン / 3D六角柱 / 6年推移パネル）
   ========================================================= */

.layer-btn.is-landtrend-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.layer-btn.is-landtrend-btn.active {
  background: #1a232e;
  border-color: #1a232e;
  color: #ffffff;
}

.landtrend-pin-wrap {
  background: transparent;
  border: none;
  pointer-events: auto;
  transition: opacity 0.16s ease;
}

.landtrend-zoom-far .landtrend-pin-wrap,
.landtrend-pin-wrap.is-crowded-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.landtrend-pin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  border-radius: 3px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.landtrend-pin-badge:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.34);
}

.landtrend-pin-badge.is-up-strong {
  background: #be123c;
  color: #ffffff;
}

.landtrend-pin-badge.is-up-mid {
  background: #c2410c;
  color: #ffffff;
}

.landtrend-pin-badge.is-up-mild {
  background: #fef9c3;
  color: #854d0e;
  border-color: #ca8a04;
}

.landtrend-pin-badge.is-flat {
  background: #f8fafc;
  color: #334155;
  border-color: #64748b;
}

.landtrend-pin-badge.is-down-mild {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #1d4ed8;
}

.landtrend-pin-badge.is-down-strong {
  background: #1e3a8a;
  color: #ffffff;
}

.landtrend-pin-badge.is-na {
  background: #f1f5f9;
  color: #475569;
  border-color: #94a3b8;
}

.landtrend-pin-badge.is-selected {
  background: #1a232e !important;
  color: #ffffff !important;
  border: 2px solid #facc15 !important;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.45);
}

.landtrend-map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-left: 3px solid #055e57;
}

.landtrend-map-bar[hidden],
.landtrend-legend-strip[hidden],
.popmesh-mode-bar[hidden],
body.simple-sheet-mode .landtrend-legend-strip,
body.simple-sheet-mode .popmesh-mode-bar,
body.is-landing .landtrend-legend-strip,
body.is-landing .popmesh-mode-bar {
  display: none !important;
}

/* 人口メッシュ 地図直上スリム凡例帯（選択中モード見出し＋常時可視ミニ凡例） */
.popmesh-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 5px 10px;
  background: #132032;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

.popmesh-mode-title {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ea580c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.popmesh-mode-title.is-trend {
  background: linear-gradient(90deg, #1d4ed8 0%, #e11d48 100%);
}

.popmesh-mini-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.popmesh-mini-caption {
  font-size: 10.5px;
  font-weight: 700;
  color: #93c5fd;
  white-space: nowrap;
}

.popmesh-mini-caption.is-rise {
  color: #fda4af;
}

.popmesh-mini-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.popmesh-mini-sw {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.popmesh-mini-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: #e2e8f0;
}

body.is-mobile-ui .popmesh-mode-bar {
  padding: 5px 8px;
  gap: 4px 8px;
}

.landtrend-legend-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 5px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 1px solid #e2e8f0;
  border-bottom: none;
  border-left: 3px solid #055e57;
  font-size: 11px;
  color: #1e293b;
}

.landtrend-strip-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.landtrend-strip-target {
  font-weight: 800;
  color: #0f172a;
}

.landtrend-strip-years {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.landtrend-strip-stat {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.landtrend-strip-stat.is-up-strong {
  background: #fff1f2;
  color: #be123c;
  border-color: #fda4af;
}

.landtrend-strip-stat.is-up-mid {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.landtrend-strip-stat.is-up-mild {
  background: #fefce8;
  color: #854d0e;
  border-color: #eab308;
}

.landtrend-strip-stat.is-down-mild,
.landtrend-strip-stat.is-down-strong {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.landtrend-strip-stat.is-muted {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
  font-weight: 600;
}

.landtrend-strip-ramp-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  flex: 0 1 280px;
}

.landtrend-strip-bar-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.landtrend-strip-end {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.landtrend-strip-end.is-down {
  color: #1e3a8a;
}

.landtrend-strip-end.is-up {
  color: #be123c;
}

.landtrend-strip-gradient {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: linear-gradient(
    90deg,
    #1e3a8a 0%,
    #1d4ed8 9%,
    #3b82f6 18%,
    #f8fafc 25%,
    #fcd34d 32.5%,
    #f97316 46%,
    #ff4d5a 68.5%,
    #e11d48 100%
  );
}

.landtrend-strip-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #475569;
  line-height: 1.1;
}

.landtrend-mapbar-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.landtrend-mapbar-right {
  margin-left: auto;
}

.landtrend-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.land-trend-panel {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 3px solid #1a232e;
  padding: 12px 14px;
  color: #1e293b;
}

.land-trend-panel[hidden] {
  display: none !important;
}

.land-trend-panel.is-collapsed {
  padding: 7px 12px;
}

.landtrend-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.landtrend-summary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  font-size: 12px;
  color: #1e293b;
}

.landtrend-summary-kicker {
  font-size: 11px;
  font-weight: 800;
  color: #1a232e;
  letter-spacing: 0.03em;
}

.landtrend-summary-loc {
  font-weight: 700;
  color: #0f172a;
}

.landtrend-summary-price {
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.landtrend-summary-pct {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.landtrend-summary-pct.is-up-strong {
  background: #be123c;
  color: #ffffff;
}

.landtrend-summary-pct.is-up-mid {
  background: #c2410c;
  color: #ffffff;
}

.landtrend-summary-pct.is-up-mild {
  background: #fef3c7;
  color: #92400e;
}

.landtrend-summary-pct.is-down-strong,
.landtrend-summary-pct.is-down-mild {
  background: #dbeafe;
  color: #1d4ed8;
}

.landtrend-summary-pct.is-flat,
.landtrend-summary-pct.is-na {
  background: #f1f5f9;
  color: #475569;
}

.landtrend-summary-count {
  font-size: 11px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.landtrend-panel-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #1a232e;
  border-radius: 3px;
  background: #1a232e;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.landtrend-panel-toggle-btn:hover {
  background: #334155;
  border-color: #334155;
}

.landtrend-panel-toggle-btn.is-collapse {
  background: #ffffff;
  color: #1a232e;
  border-color: #94a3b8;
}

.landtrend-panel-toggle-btn.is-collapse:hover {
  background: #f1f5f9;
}

.landtrend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

.landtrend-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.landtrend-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1a232e;
  letter-spacing: 0.02em;
}

.landtrend-sub {
  font-size: 11.5px;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.landtrend-close-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
}

.landtrend-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.landtrend-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

.landtrend-ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.landtrend-ctrl-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.landtrend-seg {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.landtrend-seg-btn {
  border: none;
  border-right: 1px solid #e2e8f0;
  background: transparent;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
}

.landtrend-seg-btn:last-child {
  border-right: none;
}

.landtrend-seg-btn:hover {
  background: #f1f5f9;
}

.landtrend-seg-btn.is-active {
  background: #1a232e;
  color: #ffffff;
}

.landtrend-toggle-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
}

.landtrend-toggle-btn:hover {
  background: #f1f5f9;
}

.landtrend-toggle-btn.is-active {
  background: #055e57;
  border-color: #055e57;
  color: #ffffff;
}

.landtrend-loading {
  padding: 18px 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #055e57;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}

.landtrend-notice {
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
  border: 1px solid #cbd5e1;
}

.landtrend-notice.is-info {
  background: #f8fafc;
  color: #334155;
  border-left: 3px solid #055e57;
}

.landtrend-notice.is-warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
  border-left: 3px solid #d97706;
}

.landtrend-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 2px 0 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.landtrend-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 4px 8px;
  font-size: 11.5px;
  cursor: pointer;
  color: #1e293b;
}

.landtrend-chip:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.landtrend-chip.is-selected {
  background: #1a232e;
  border-color: #1a232e;
  color: #ffffff;
}

.landtrend-chip-name {
  font-weight: 600;
}

.landtrend-chip-pct {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.landtrend-chip-pct.is-up-strong,
.landtrend-chip-pct.is-up-mid {
  color: #be123c;
}

.landtrend-chip-pct.is-up-mild {
  color: #b45309;
}

.landtrend-chip-pct.is-down-mild,
.landtrend-chip-pct.is-down-strong {
  color: #2563eb;
}

.landtrend-chip.is-selected .landtrend-chip-pct {
  color: #fde047;
}

.landtrend-pt-head {
  margin-bottom: 10px;
}

.landtrend-pt-loc {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.landtrend-pt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.landtrend-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.landtrend-tag.is-kind {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.landtrend-tag.is-code {
  font-variant-numeric: tabular-nums;
  color: #475569;
}

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

.landtrend-kpi {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landtrend-kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.landtrend-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.landtrend-kpi-val.is-up-strong,
.landtrend-kpi-val.is-up-mid {
  color: #be123c;
}

.landtrend-kpi-val.is-up-mild {
  color: #b45309;
}

.landtrend-kpi-val.is-down-mild,
.landtrend-kpi-val.is-down-strong {
  color: #1d4ed8;
}

.landtrend-kpi-sub {
  font-size: 11px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.landtrend-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: start;
}

.landtrend-chart-box,
.landtrend-table-box {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 9px 10px;
  min-width: 0;
}

.landtrend-table-box {
  overflow-x: auto;
}

.landtrend-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.landtrend-box-title {
  font-size: 12px;
  font-weight: 800;
  color: #1a232e;
}

.landtrend-box-sub {
  font-size: 11px;
  color: #64748b;
}

.landtrend-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #475569;
}

.landtrend-lg-item.is-point {
  font-weight: 700;
  color: #c2410c;
}

.landtrend-lg-item.is-peer {
  color: #64748b;
}

.landtrend-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.landtrend-chart-grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.landtrend-chart-axis {
  stroke: #94a3b8;
  stroke-width: 1.2;
}

.landtrend-chart-ylabel,
.landtrend-chart-xlabel {
  font-size: 10.5px;
  fill: #64748b;
  font-variant-numeric: tabular-nums;
}

.landtrend-chart-xlabel.is-key {
  fill: #0f172a;
  font-weight: 700;
}

.landtrend-chart-band-lbl {
  font-size: 10px;
  fill: #055e57;
  font-weight: 700;
}

.landtrend-chart-peer-line {
  stroke: #64748b;
  stroke-width: 1.6;
  stroke-dasharray: 4 3;
}

.landtrend-chart-val {
  font-size: 10px;
  fill: #475569;
  font-variant-numeric: tabular-nums;
}

.landtrend-chart-val.is-key {
  font-size: 10.5px;
  font-weight: 800;
  fill: #0f172a;
}

.landtrend-chart-err {
  font-size: 11px;
  fill: #dc2626;
  font-weight: 800;
}

.landtrend-chart-miss {
  font-size: 14px;
  fill: #94a3b8;
}

.landtrend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.landtrend-table th,
.landtrend-table td {
  padding: 5px 4px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.landtrend-table th,
.landtrend-table td:first-child,
.landtrend-table td.is-num,
.landtrend-table td.is-note {
  white-space: nowrap;
}

.landtrend-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  font-size: 11px;
}

.landtrend-table td.is-num,
.landtrend-table th:nth-child(2),
.landtrend-table th:nth-child(3) {
  text-align: right;
}

.landtrend-table tr.is-latest {
  background: #f0fdfa;
  font-weight: 700;
}

.landtrend-table tr.is-base {
  background: #f8fafc;
}

.landtrend-table td.is-up {
  color: #b91c1c;
  font-weight: 700;
}

.landtrend-table td.is-down {
  color: #1d4ed8;
  font-weight: 700;
}

.landtrend-table td.is-muted,
.landtrend-table td.is-note {
  color: #64748b;
  font-size: 11px;
}

.landtrend-disclaimer {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width: 860px) {
  .landtrend-kpi-grid {
    grid-template-columns: 1fr;
  }

  .landtrend-body-grid {
    grid-template-columns: 1fr;
  }

  .landtrend-controls {
    gap: 6px 10px;
  }
}

body.simple-sheet-mode .landtrend-map-el,
body.simple-sheet-mode #landTrendMapBar,
body.simple-sheet-mode #landPriceTrendPanel {
  display: none !important;
}

@media print {
  .landtrend-map-el,
  #landTrendMapBar,
  #landPriceTrendPanel {
    display: none !important;
  }
}

.auth-plan-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  margin-bottom: 10px;
}

.auth-plan-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  border-right: 1px solid #cbd5e1;
}

.auth-plan-tab:last-child {
  border-right: 0;
}

.auth-plan-tab.is-active {
  background: #18222f;
  color: #ffffff;
}

.auth-upgrade-overlap-note {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-left: 2px solid #9f1239;
  background: #fff5f7;
  font-size: 11px;
  color: #881337;
}

/* =========================================================================
   スマホハイブリッドUI・スマート3Dバッジ・Google外部リンク整理・印刷保護
   ========================================================================= */
/* PRO バッジ＆ロック案内カード（無料会員→1日パス/Pro転換導線） */
.pro-badge-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 3px;
  background: #f59e0b;
  color: #111827;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

body.has-pro-access .pro-badge-chip {
  display: none;
}

.pro-lock-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-lock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pro-lock-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #18222f;
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
}

.pro-lock-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.pro-lock-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.pro-lock-cta-btn {
  align-self: flex-start;
  appearance: none;
  border: none;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.pro-lock-cta-btn:hover {
  background: #115e59;
}

.pro-lock-print-note {
  display: none;
  margin: 0;
  font-size: 11px;
  color: #475569;
}

/* スマホ専用 地図種類切替バー（デフォルト非表示・body.is-mobile-ui のみ表示） */
.mob-map-view-bar {
  display: none;
}

.btn-mob-menu {
  display: none;
}

.gmap-sv-direct-btn {
  text-decoration: none;
  color: #a7f3d0 !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
  background: rgba(16, 185, 129, 0.14) !important;
}

.gmap-sv-direct-btn:hover:not(.is-disabled) {
  background: rgba(16, 185, 129, 0.28) !important;
  color: #ffffff !important;
}

.gmap-sv-direct-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.map-pop-focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.map-pop-focus-row .ui-menu-item {
  flex: 1 1 auto;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11.5px;
  background: #f8fafc;
  color: #0f172a;
}

.map3d-net-note {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 3px;
  padding: 2px 6px;
}

.map3d-net-note[hidden] {
  display: none !important;
}

.map3d-btn.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.soft-auto-toast {
  position: fixed;
  top: auto;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 2500;
  max-width: min(92vw, 480px);
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.32);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

body.is-mobile-ui .soft-auto-toast {
  top: auto;
  bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}

.soft-auto-toast.is-tone-alert {
  background: rgba(69, 10, 10, 0.94);
  border-color: rgba(248, 113, 113, 0.72);
  color: #fef2f2;
}

.soft-auto-toast.is-tone-warn {
  background: rgba(69, 26, 3, 0.94);
  border-color: rgba(251, 191, 36, 0.68);
  color: #fffbeb;
}

.soft-auto-toast.is-tone-teal {
  background: rgba(15, 58, 56, 0.95);
  border-color: rgba(94, 234, 212, 0.72);
  color: #f0fdfa;
}

.soft-auto-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.soft-auto-toast[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .soft-auto-toast {
    transition: opacity 0.12s linear;
    transform: translate(-50%, 0);
  }
}

/* スマート3D自動表示バッジ（地図フレーム上端・帰属表示と非干渉） */
.smart3d-mode-pill {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 620;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 140px);
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
}

.smart3d-mode-pill,
.smart3d-mode-pill[hidden] {
  display: none !important;
}

/* スマート3Dピル表示中は読込・広域ズームヒントピルを下に逃がして重なりを完全防止 */
body:not(.simple-sheet-mode) .map-frame:has(#smart3dModePill:not([hidden])) .plateau-loading-pill {
  margin-top: 44px;
}

.smart3d-mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  flex-shrink: 0;
}

.smart3d-mode-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart3d-quick-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #0f766e;
  color: #ffffff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.smart3d-quick-btn:hover {
  background: #115e59;
}

/* 「周辺・坂」タブ下部の最新店舗・Googleマップ確認帯 */
.around-google-links-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
  background: #f0fdf4;
}

.around-google-links-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 8px;
}

.around-google-links-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #065f46;
}

.around-google-links-sub {
  font-size: 11px;
  color: #047857;
}

.around-google-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.around-google-links-grid .gmap-near-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.around-google-links-grid .gmap-near-link:hover:not(.is-disabled) {
  border-color: #0f766e;
  color: #0f766e;
  background: #f8fafc;
}

.around-google-links-grid .gmap-near-link.is-open-map {
  border-color: #0f766e;
  color: #0f766e;
}

.around-google-links-grid .gmap-near-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mob-map-quick-summary {
  display: none;
}

/* スマホ専用ドロワー・出力アクションシート */
.mob-sheet-backdrop {
  align-items: flex-end;
  padding: 0;
  z-index: 1200;
}

.mob-sheet-panel {
  width: 100%;
  max-width: 520px;
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
}

.mob-sheet-section {
  margin-top: 12px;
}

.mob-sheet-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.mob-sheet-seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
}

.mob-proxy-btn {
  appearance: none;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.mob-proxy-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.mob-proxy-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-family: inherit;
}

.mob-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.mob-sheet-action-btn {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.mob-sheet-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mob-sheet-action-btn.is-line-primary {
  background: #06c755;
  border-color: #06c755;
  color: #ffffff;
  text-align: center;
}

.mob-sheet-action-btn.is-accent {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  text-align: center;
}

/* =========================================================================
   スマホハイブリッドUI（screen限定・詳細度を一元管理・PC/印刷/1枚シート非干渉）
   ========================================================================= */
@media screen {
  /* 0. スマホ専用トップ画面（is-landing）：すっきりモダンなアプリ風ヒーローUI */
  body.is-mobile-ui.is-landing .control-bar {
    margin: 12px 10px 20px;
    padding: 16px 14px 18px;
    border-radius: 14px;
    border-top: 3px solid var(--gis-slate);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
  }

  body.is-mobile-ui.is-landing .control-inner {
    gap: 14px;
  }

  body.is-mobile-ui.is-landing .brand-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
  }

  body.is-mobile-ui.is-landing .brand-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  body.is-mobile-ui.is-landing .app-title {
    gap: 8px;
    min-width: 0;
  }

  body.is-mobile-ui.is-landing .brand-mark-svg {
    width: 32px;
  }

  body.is-mobile-ui.is-landing .brand-en {
    font-size: clamp(19px, 5.4vw, 23px);
    letter-spacing: 0.035em;
  }

  body.is-mobile-ui.is-landing .brand-sub {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    font-size: 9.5px;
    white-space: nowrap;
  }

  body.is-mobile-ui.is-landing .brand-sep,
  body.is-mobile-ui.is-landing .brand-desc {
    display: inline;
  }

  body.is-mobile-ui.is-landing .action-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    margin-left: auto;
  }

  body.is-mobile-ui.is-landing .brand-row .audience-toggle {
    display: none;
  }

  body.is-mobile-ui.is-landing #openSettingsBtn {
    height: 30px;
    padding: 0 7px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  body.is-mobile-ui.is-landing #accountTriggerBtn {
    height: 30px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  body.is-mobile-ui.is-landing .search-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border: none;
    background: transparent;
    overflow: visible;
  }

  body.is-mobile-ui.is-landing .search-input-row:focus-within {
    box-shadow: none;
  }

  body.is-mobile-ui.is-landing #addressInput {
    grid-column: 1 / -1;
    width: 100%;
    height: 46px;
    padding: 0 13px;
    font-size: 16px;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
  }

  body.is-mobile-ui.is-landing #addressInput:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
  }

  body.is-mobile-ui.is-landing #searchBtn {
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 800;
  }

  body.is-mobile-ui.is-landing #gpsBtn {
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
  }

  body.is-mobile-ui.is-landing .quick-conditions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  body.is-mobile-ui.is-landing .cond-inline-label {
    display: none;
  }

  body.is-mobile-ui.is-landing .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 38px;
    padding: 2px;
    border-radius: 9px;
    overflow: hidden;
    width: 100%;
  }

  body.is-mobile-ui.is-landing .seg-btn {
    min-width: 0;
    height: 32px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 13px;
  }

  body.is-mobile-ui.is-landing #floorSelect {
    height: 38px;
    min-width: 108px;
    line-height: 18px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
  }

  body.is-mobile-ui.is-landing .demo-inline-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
  }

  body.is-mobile-ui.is-landing .demo-buttons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
  }

  body.is-mobile-ui.is-landing .demo-buttons .demo-btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.is-mobile-ui.is-landing .demo-buttons .demo-btn::after {
    content: '→';
    color: #0f766e;
    font-weight: 800;
    margin-left: 8px;
    flex-shrink: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* 1. 300px空白バグ＆横はみ出しの根治＋統一ロゴ入りスリム検索ヘッダー */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .control-bar {
    position: sticky;
    top: 0;
    z-index: 820;
    padding: 5px 8px 6px;
    overflow-x: clip;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .control-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    min-width: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .brand-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .brand-left {
    display: flex !important;
    align-items: center;
    min-width: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .brand-mark-svg {
    width: 26px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .brand-en {
    font-size: 19px;
    letter-spacing: 0.035em;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .brand-sub {
    display: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .action-buttons {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin: 0;
    flex-shrink: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .action-buttons > :not(#accountTriggerBtn),
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .quick-conditions,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .demo-inline-row {
    display: none !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #accountTriggerBtn {
    display: inline-flex !important;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(30, 41, 59, 0.9);
    color: #f8fafc;
    white-space: nowrap;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .quick-bar {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block;
    margin: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .quick-bar .search-box-wrap {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .search-input-row {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #addressInput {
    height: 36px;
    font-size: 16px; /* iOS Safari 自動ズーム防止 */
    padding: 0 9px;
    min-width: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #searchBtn,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #gpsBtn {
    height: 36px;
    font-size: 12px;
    padding: 0 9px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .btn-mob-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 36px;
    padding: 0;
    border: none;
    border-left: 1px solid var(--gis-slate-border);
    border-radius: 0;
    background: #1e293b;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  /* 2. コンテナの横はみ出し完全防止 */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet {
    max-width: 100%;
    overflow-x: clip;
    padding: 0;
    margin: 0;
    border: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .report-header {
    padding: 8px 10px;
    margin: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .report-header-top,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .property-meta-grid,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .property-meta-grid > div {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* 3. 地図タブ表示時：フルスクリーン3D地図化（ヘッダー下の余計な帯を最小化） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] .report-header {
    display: none !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):has(#reportSheet[data-mobtab="map"]) #mobileSectionTabs {
    display: none !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapSection {
    margin: 0;
    padding: 0;
    border: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] .map-print-heading,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #facilityBlock,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapNowSourceBadge,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapNowDetail,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapPendingSyncHint,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapNowOpacityWrap,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapActiveLabel {
    display: none !important;
  }

  /* スマホ地図タブ時：凡例は上部の共通スリム凡例バー、出典は地図内(i)チップに集約し、
     下のPC用凡例(.map-footer-bar)と詳細・免責フッター群(#reportDetailPane)を非表示にする
     （免責・全データ出典フッターはレポートタブ末尾とA4印刷・1枚シートに維持） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) #reportSheet[data-mobtab="map"] .map-footer-bar,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) #reportSheet[data-mobtab="map"] #reportDetailPane {
    display: none !important;
  }

  /* 地図直下に追従パネル（地価変動グラフ／Googleマップ周辺店舗）が出ていない通常縦表示時は、
     body 下部パディングによる無用な縦スクロールを抑えて地図を1画面に収める */
  @media (min-height: 501px) {
    body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing):has(#reportSheet[data-mobtab="map"]):not(:has(#landPriceTrendPanel:not([hidden]))):not(:has(#gmapPlacesPanel:not([hidden]))) {
      padding-bottom: 0;
    }
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapNowViewingBar {
    padding: 3px 8px;
    gap: 4px;
    justify-content: flex-start;
  }

  /* 横スワイプ1行の厳選レイヤーバー（スクロールバー非表示でネイティブ風チップバー化） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar {
    padding: 4px 26px 4px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar::-webkit-scrollbar {
    display: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar .map-toolbar-top-left,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar .map-toolbar-row2,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar .gis-tb-sep,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar #pinQuickToggleBtn,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar #pinQuickMenuBtn,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar #mapDisplaySettingsBtn,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar #gmapStreetViewLink,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar #toggleMapExpandBtn {
    display: none !important;
  }

  /* fixed ポップオーバー（表示設定・施設ピン個別）を親 display:none で殺さないようラッパーは display:contents */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar .map-toolbar-row-top,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar .map-toolbar-right,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar #pinQuickSplitWrap,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar #mapDisplaySettingsWrap {
    display: contents;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapDisplaySettingsPopover,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #pinQuickPopover {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: auto;
    min-width: 0;
    max-height: 62svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 2400;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.34), 0 8px 24px rgba(15, 23, 42, 0.22);
  }

  /* スマホ専用 2行目：地図の種類（3D / 2D / Google）＋ストビュー＋設定（縦幅増ゼロで既存サブバー見出しを置換） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobMapViewBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px;
    background: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-seg {
    display: inline-flex;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-btn {
    appearance: none;
    border: none;
    border-right: 1px solid #cbd5e1;
    background: transparent;
    color: #334155;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-btn:last-child {
    border-right: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-btn.is-active {
    background: #0f172a;
    color: #ffffff;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #10b981;
    background: #ecfdf5;
    color: #065f46;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-set-btn {
    appearance: none;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 800;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-set-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapModeSubbar .map-mode-subbar-head {
    display: none !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-toolbar-primary {
    flex-wrap: nowrap;
    width: max-content;
    gap: 5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerTabs.layer-tabs-grouped {
    flex-wrap: nowrap;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-toolbar-primary .layer-btn:not(.ui-menu-item),
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .layer-menu-trigger,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .gis-tb-btn,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .basemap-toggle .basemap-btn {
    height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  /* スマホ時は PLATEAU と常駐回線注記を完全非表示（#toggle3dQualityBtn はスマホでも軽量/標準切替で表示） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) [data-viewdim="plateau"],
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #qualityNetNote {
    display: none !important;
  }

  /* 3D設定サブバーのスマホ折り返し・はみ出し防止 */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-mode-subbar-body {
    max-height: 34vh;
    padding: 6px 8px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-control-group,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-preset-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-hint {
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
  }

  /* 地図フレームを画面いっぱいに（svh でアドレスバー伸縮ガタつき防止・横向き時は min-height を緩和） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] .map-canvas {
    height: calc(100svh - var(--mob-map-offset, 165px)) !important;
    min-height: 260px;
    max-height: 78svh;
  }

  @media (max-height: 500px) {
    body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] .map-canvas {
      min-height: 170px;
      max-height: 70svh;
    }
  }

  /* 地図上オーバーレイがスマホ幅で切れないよう調整（コンパス縮小＋ピル干渉防止） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .compass-rose-btn {
    top: 6px;
    right: 6px;
    gap: 1px;
    min-width: 44px;
    min-height: 44px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .compass-rose-svg {
    width: 42px;
    height: 42px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .compass-heading-pill {
    font-size: 9px;
    padding: 1px 5px;
    line-height: 1.25;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-angle-dock {
    top: 68px;
    right: max(6px, env(safe-area-inset-right, 0px));
    gap: 6px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-angle-btn {
    min-width: 46px;
    min-height: 44px;
    padding: 5px 5px;
    border-radius: 10px;
    font-size: 10px;
  }

  @media (max-height: 500px) {
    body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-angle-dock {
      top: 58px;
      gap: 4px;
    }

    body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-angle-btn {
      min-height: 36px;
      padding: 3px 5px;
    }
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .smart3d-mode-pill {
    top: 6px;
    left: 8px;
    right: 58px;
    transform: none;
    max-width: none;
    justify-content: space-between;
    font-size: 11px;
  }

  /* スマホの物件クイック情報：宙ぶらりん配置(78px)を廃止し、左上へスリム密着 */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-info-hud {
    top: 8px;
    left: 8px;
    width: auto;
    max-width: calc(100% - 72px);
    border-radius: 8px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame:has(#smart3dModePill:not([hidden])) .map-info-hud {
    top: 38px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-info-hud:not(.is-collapsed) {
    width: min(210px, calc(100% - 72px));
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-info-hud.is-collapsed .map-info-hud-head {
    padding: 3px 6px 3px 9px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-info-hud.is-collapsed .map-info-hud-title {
    font-size: 10.5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-info-hud.is-collapsed .map-info-hud-toggle {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  /* スマホの読込・広域ズームヒントピル：上部の情報窓・コンパス密集帯を避け、右下ボタン直上の広い余白へ配置 */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .plateau-loading-hud {
    inset: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .plateau-loading-hud .plateau-loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .plateau-loading-pill {
    margin: 0 10px 84px 50px;
    max-width: calc(100% - 60px);
    font-size: 11px;
    line-height: 1.35;
    padding: 5px 11px;
    border-radius: 10px;
    text-align: left;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame:has(#gmapProCanvas:not([hidden]), #gmapFrame:not([hidden])) .plateau-loading-pill {
    margin-bottom: 100px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-float-actions {
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 112px);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame:has(#gmapProCanvas:not([hidden]), #gmapFrame:not([hidden])) .map-float-actions {
    bottom: 30px;
  }

/* ハザードレイヤータブの該当あり／周辺ありドット（インライン配置で文字と非干渉・該当なしも通常明度で押せる感を維持） */
#layerTabs .layer-btn {
  position: relative;
}

#layerTabs .layer-btn.is-hazard-detected::before,
#layerTabs .layer-btn.is-hazard-nearby::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
  pointer-events: none;
}

#layerTabs .layer-btn.is-hazard-detected::before {
  background: #ef4444;
}

#layerTabs .layer-btn.is-hazard-nearby::before {
  background: #f59e0b;
}

#layerTabs .layer-btn.active.is-hazard-detected::before,
#layerTabs .layer-btn.active.is-hazard-nearby::before {
  background: #ffffff;
}

  /* フレーム外1行ミニ結論バー（帰属表示と非干渉） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapQuickSummary:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    font-size: 12px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapQuickSummary.is-alert:not([hidden]) {
    background: #fef2f2;
    border-top-color: #fca5a5;
    border-bottom-color: #fca5a5;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapQuickSummary.is-alert .mob-map-quick-text {
    color: #991b1b;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapQuickSummary.is-warn:not([hidden]) {
    background: #fffbeb;
    border-top-color: #fcd34d;
    border-bottom-color: #fcd34d;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapQuickSummary.is-warn .mob-map-quick-text {
    color: #92400e;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapQuickSummary.is-clear:not([hidden]) {
    background: #f0fdf4;
    border-top-color: #86efac;
    border-bottom-color: #86efac;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapQuickSummary.is-clear .mob-map-quick-text {
    color: #166534;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-map-quick-text {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-map-jump-btn {
    appearance: none;
    flex-shrink: 0;
    border: none;
    background: #0f766e;
    color: #ffffff;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-map-jump-btn.is-alert-btn {
    background: #dc2626;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-map-jump-btn.is-warn-btn {
    background: #d97706;
  }

  /* 4. 下部固定4タブナビ（アイコン付き・不透明フッター・安全余白・キーボード時退避） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #0f172a;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #334155;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.22);
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar .mob-bar-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 46px;
    padding: 4px 2px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.1;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar .mob-bar-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar .mob-bar-btn.is-active {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(45, 212, 191, 0.45);
    color: #ffffff;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar .mob-bar-btn.is-line {
    background: #06c755;
    border-color: #06c755;
    color: #ffffff;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar .mob-bar-btn:disabled {
    opacity: 0.45;
  }

  body.is-mobile-ui.is-mob-keyboard #mobileBottomBar {
    display: none !important;
  }

  body.is-mobile-ui.is-landing #mobileBottomBar,
  body.is-mobile-ui.simple-sheet-mode #mobileBottomBar,
  body.is-mobile-ui.simple-sheet-mode #mobileMenuModal,
  body.is-mobile-ui.simple-sheet-mode #mobileShareModal,
  body.is-mobile-ui.simple-sheet-mode #mobMapViewBar,
  body.is-mobile-ui.simple-sheet-mode #mobMapQuickSummary,
  body.is-mobile-ui.simple-sheet-mode #smart3dModePill {
    display: none !important;
  }
}

/* =========================================================================
   @media print：スマホ専用UI・外部リンク非表示＆メモ印刷トグル保護
   ========================================================================= */
body:not(.is-landing) #landingShowcase,
body.simple-sheet-mode #landingShowcase {
  display: none !important;
}

.landing-showcase {
  display: none;
}

body.is-landing .landing-showcase {
  display: block;
  position: relative;
  z-index: 6;
  max-width: 800px;
  margin: 0 auto 44px;
  padding: 0 2px;
}

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

.landing-feature-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd5e1;
  border-top: 2px solid #0f766e;
  border-radius: 6px;
  padding: 14px 14px 13px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.landing-feature-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f766e;
  margin-bottom: 5px;
}

.landing-feature-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.landing-feature-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.landing-plans-wrap {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 16px 18px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.landing-plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.landing-plans-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.landing-plans-sub {
  font-size: 11.5px;
  color: #475569;
}

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

.landing-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 13px 13px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.landing-plan-card.is-recommended {
  border: 1.5px solid #0f766e;
  background: #f0fdfa;
}

.landing-plan-badge {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.landing-plan-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.landing-plan-price {
  margin: 4px 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
  color: #0f172a;
}

.landing-plan-price strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.landing-plan-price span {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

.landing-plan-list {
  margin: 0 0 12px;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #334155;
  flex: 1 1 auto;
}

.landing-plan-btn {
  appearance: none;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.landing-plan-btn:hover {
  background: #f1f5f9;
}

.landing-plan-btn.is-primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.landing-plan-btn.is-primary:hover {
  background: #115e59;
}

.landing-legal-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 11px;
  color: #64748b;
}

.landing-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-legal-links a {
  color: #334155;
  text-decoration: underline;
  font-weight: 600;
}

@media screen and (max-width: 720px) {
  body.is-landing .landing-showcase {
    margin: 0 10px 28px;
    padding: 0;
  }

  .landing-features-grid,
  .landing-plans-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing-plans-wrap {
    padding: 14px 13px;
    border-radius: 12px;
  }

  .landing-feature-card {
    border-radius: 12px;
  }

  .landing-plan-btn {
    min-height: 42px;
    font-size: 13px;
  }
}

@media print {
  #landingShowcase,
  #landTrendLegendStrip,
  #map3dAngleDock,
  #mobileBottomBar,
  #mobileMenuModal,
  #mobileShareModal,
  #mobMapViewBar,
  #smart3dModePill,
  #mobMapQuickSummary,
  #aroundGoogleLinksBox,
  #mobHeaderMenuBtn,
  #qualityNetNote,
  .pro-badge-chip {
    display: none !important;
  }

  .pro-lock-card {
    border: none;
    background: transparent;
    padding: 2px 0;
  }

  .pro-lock-head,
  .pro-lock-desc,
  .pro-lock-cta-btn {
    display: none !important;
  }

  .pro-lock-print-note {
    display: block !important;
  }

  body:not(.print-include-memo) #agentMemoBox {
    display: none !important;
  }
}


/* ============================================================================
   2層レイヤー重ね表示・共通透過度・ステータス閉じる・スマホUI/PC高さ改善
   ============================================================================ */
.status-banner:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}

.status-banner-close {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.78;
}

.status-banner-close:hover {
  opacity: 1;
}

.map-now-viewing-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.map-now-opacity-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  flex-shrink: 0;
}

.map-now-opacity-wrap input[type="range"] {
  width: 78px;
  height: 16px;
  accent-color: #055e57;
  cursor: pointer;
}

.map-now-opacity-val {
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

body:not(.simple-sheet-mode) .map-now-opacity-wrap {
  color: #cbd5e1;
}

body:not(.simple-sheet-mode) .map-now-opacity-wrap input[type="range"] {
  accent-color: #14b8a6;
}

body:not(.simple-sheet-mode) .map-now-opacity-val {
  color: #f8fafc;
}

.map-pop-opacity-row {
  padding: 4px 0 8px;
}

.map-pop-opacity-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.map-pop-opacity-label input[type="range"] {
  flex: 1 1 auto;
  accent-color: #055e57;
  cursor: pointer;
}

.map-pop-opacity-val {
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #055e57;
}

/* 2層重ね時の凡例2段レイアウト */
.legend-stack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  width: 100%;
  padding: 2px 0;
}

.legend-stack-row + .legend-stack-row {
  border-top: 1px dashed #cbd5e1;
  margin-top: 3px;
  padding-top: 5px;
}

.legend-stack-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.legend-stack-tag.is-hazard {
  background: #fee2e2;
  color: #991b1b;
}

.legend-stack-tag.is-context {
  background: #e0f2fe;
  color: #075985;
}

.legend-blend-note {
  display: block;
  width: 100%;
  margin-top: 3px;
  font-size: 11px;
  color: #475569;
}

.land-layer-inline-slot:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* PC 2ペイン表示でサブバー展開時も地図が潰れすぎないよう最小高さを確保 */
@media (min-width: 1101px) {
  body:not(.is-landing):not(.simple-sheet-mode):not(.is-map-expanded) .workspace-split .map-canvas {
    min-height: min(440px, 76vh);
  }
}

/* スマホUI追加改善：航空トグル・横スクロールフェード・下部ドック被り解消 */
@media (max-width: 860px), ((pointer: coarse) and (max-height: 500px)) {
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-section-head {
    position: relative;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobMapViewBar {
    gap: 4px;
    padding: 4px 6px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-btn {
    padding: 5px 7px;
    font-size: 11.5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-map-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    gap: 6px;
    padding: 4px 6px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-map-bar::-webkit-scrollbar {
    display: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-mapbar-group {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-map-bar button {
    flex-shrink: 0;
    white-space: nowrap;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-legend-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 5px 8px 4px;
    font-size: 10.5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-strip-ramp-wrap {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-strip-ticks {
    padding: 0 24px;
    font-size: 9px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .landtrend-mapbar-right {
    margin-left: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-right {
    gap: 4px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-link,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-set-btn {
    padding: 5px 6px;
    font-size: 11px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-base-btn {
    appearance: none;
    padding: 5px 6px;
    border-radius: 6px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-base-btn.is-active {
    background: #055e57;
    border-color: #055e57;
    color: #ffffff;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #smart3dModePill[hidden] {
    display: none !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] .map-canvas {
    height: calc(100svh - var(--mob-map-offset, 185px) - env(safe-area-inset-bottom, 0px)) !important;
    min-height: 240px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobMapQuickText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* ============================================================================
   高精細ベクターSVGハンドカーソル（Windows低解像度grabアイコンを刷新）
   ============================================================================ */
:root {
  --cursor-hand-grab: url('/cursor-grab.svg') 14 14, grab;
  --cursor-hand-grabbing: url('/cursor-grabbing.svg') 14 14, grabbing;
}

.leaflet-grab,
.maplibregl-canvas-container.maplibregl-interactive,
.plateau3d-canvas .cesium-widget canvas {
  cursor: var(--cursor-hand-grab);
}

.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable,
.maplibregl-canvas-container.maplibregl-interactive:active,
.plateau3d-canvas .cesium-widget canvas:active {
  cursor: var(--cursor-hand-grabbing);
}


/* ============================================================================
   2D 淡色地図での重ねレイヤー乗算合成（文字・海岸線をくっきり残し色も鮮やかに）
   ============================================================================ */
#map.is-pale-basemap .leaflet-landtrendHeatPane-pane {
  mix-blend-mode: multiply;
}

#map.is-pale-basemap .leaflet-landtrendHeatPane-pane img {
  filter: saturate(1.16) contrast(1.06);
}

#map.is-pale-basemap .leaflet-contextOverlayPane-pane,
#map.is-pale-basemap .leaflet-hazardOverlayPane-pane {
  mix-blend-mode: multiply;
}

/* 2D 高低差の広域表示（z<=10）時は、淡色地図の巨大な焼き込み地名文字が
   茶色地形にホラー調で透けないよう乗算合成を切って高低差タイルをくっきり表示 */
#map.is-pale-basemap.is-elev-wide-clean .leaflet-contextOverlayPane-pane {
  mix-blend-mode: normal;
}


/* ============================================================================
   「地図を広げる」を 861px〜1179px（ノートPC・分割画面・サイドペイン付）でも有効化
   ============================================================================ */
@media (min-width: 861px) and (max-width: 1179px) {
  body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #reportSheet {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #reportHeader,
  body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #reportDetailPane {
    display: none;
  }

  body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) .workspace-split {
    display: grid;
    grid-template-columns: 100%;
    height: calc(100vh - var(--workspace-top-offset, 52px));
    overflow: hidden;
  }

  body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
  }

  body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection .map-frame {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  body.is-map-expanded:not(.simple-sheet-mode):not(.is-landing) #mapSection .map-canvas {
    height: 100% !important;
    min-height: 0 !important;
  }
}


/* ============================================================================
   第4案・プロGIS調デザイン：ネオンピル廃止／シャープ2px／静かな色数／高さ統一
   ============================================================================ */
body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-controls-bar {
  padding: 0;
  background: #141d29;
  border-bottom: 1px solid #2b3a4d;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 5px 10px;
  background: #141d29;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-top-left {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .basemap-toggle {
  border-radius: 2px;
  border-color: #344459;
  background: #1c2838;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .basemap-toggle .basemap-btn {
  height: 24px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 600;
  color: #b8c5d6;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .basemap-toggle .basemap-btn.active {
  background: #eef3f8;
  color: #0f172a;
  font-weight: 700;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .gis-tb-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 2px;
  border-color: #344459;
  background: #1c2838;
  color: #d5dfec;
  font-size: 11px;
  font-weight: 600;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .gis-tb-btn:hover {
  background: #27364a;
  border-color: #506682;
  color: #ffffff;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-layers {
  padding: 6px 8px;
  background: #142030;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

/* 上段「地図」などの静かなテキスト見出し */
body:not(.simple-sheet-mode) .toolbar-row-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0 3px 0 0;
  margin-right: 1px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #7e92aa;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* カテゴリ切替タブ（防災 / 街・地形）＋横スクロールチップ帯 */
body:not(.simple-sheet-mode) .map-toolbar-row-layers #layerTabs.layer-tabs-grouped {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

body:not(.simple-sheet-mode) .layer-cat-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px;
  gap: 2px;
  border-radius: 8px;
  background: #0b1320;
  border: 1px solid #33465e;
}

body:not(.simple-sheet-mode) .layer-cat-btn {
  position: relative;
  appearance: none;
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body:not(.simple-sheet-mode) .layer-cat-btn[data-layer-cat="hazard"].is-active {
  background: #991b1b;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}

body:not(.simple-sheet-mode) .layer-cat-btn[data-layer-cat="context"].is-active {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}

body:not(.simple-sheet-mode) .layer-cat-btn.has-active-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f59e0b;
  display: inline-block;
}

body:not(.simple-sheet-mode) .layer-chips-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

body:not(.simple-sheet-mode) .layer-chips-scroll::-webkit-scrollbar {
  display: none;
}

body:not(.simple-sheet-mode) #layerTabs[data-active-cat="hazard"] [data-cat-panel="context"],
body:not(.simple-sheet-mode) #layerTabs[data-active-cat="context"] [data-cat-panel="hazard"] {
  display: none !important;
}

body:not(.simple-sheet-mode) .map-toolbar-row-layers .toolbar-layer-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

body:not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn:not(.ui-menu-item) {
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid #384c66;
  background: #1c2a3c;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

body:not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn.is-none-btn {
  background: #152030;
  border-color: #2d3e54;
  color: #cbd5e1;
  font-weight: 600;
}

body:not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn.is-none-btn.active {
  background: #334155;
  border-color: #94a3b8;
  color: #ffffff;
  font-weight: 700;
}

/* 選択色：くっきり塗り＋明るい縁取り */
body:not(.simple-sheet-mode) .map-toolbar-row-layers .is-hazard-group .layer-btn.active {
  background: #dc2626;
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px rgba(252, 165, 165, 0.35);
  color: #ffffff;
  font-weight: 700;
}

body:not(.simple-sheet-mode) .map-toolbar-row-layers .is-context-group .layer-btn:not(.is-landtrend-btn).active {
  background: #2563eb;
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.35);
  color: #ffffff;
  font-weight: 700;
}

body:not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn.is-landtrend-btn.active {
  background: #b45309;
  border-color: #fcd34d;
  box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.35);
  color: #ffffff;
  font-weight: 700;
}

/* 防災ハザードへの「＋高低差」重ねトグル（実線ティール枠で押せるボタンとして明示） */
body:not(.simple-sheet-mode) .layer-elev-sep {
  width: 1px;
  height: 20px;
  background: #33465e;
  margin: 0 2px;
  flex-shrink: 0;
}

body:not(.simple-sheet-mode) .layer-elev-toggle {
  appearance: none;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1.5px solid #22a89a;
  background: #12282a;
  color: #5eead4;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

body:not(.simple-sheet-mode) .layer-elev-toggle.is-on {
  background: #0f766e;
  border-color: #5eead4;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.38);
  color: #ffffff;
}

body:not(.simple-sheet-mode) .layer-elev-toggle.is-on::before {
  content: '✓';
  font-size: 11px;
  line-height: 1;
}

@media (hover: hover) {
  body:not(.simple-sheet-mode) .layer-cat-btn:not(.is-active):hover {
    color: #f1f5f9;
  }

  body:not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn:not(.ui-menu-item):not(.active):hover {
    background: #24364d;
    border-color: #526d8f;
    color: #ffffff;
  }

  body:not(.simple-sheet-mode) .layer-elev-toggle:not(.is-on):hover {
    background: #17383a;
    color: #ffffff;
  }
}

/* [施設ピン ON | ▾]：派手な青塗りをやめ、落ち着いたスレート＋状態ドット（●）でプロGIS調 */
body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-wrap {
  display: inline-flex;
  align-items: stretch;
  border-radius: 2px;
  border: 1px solid #344459;
  background: #1c2838;
  overflow: visible;
  position: relative;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-wrap[hidden] {
  display: none !important;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-wrap.is-on {
  border-color: #4f6b8a;
  background: #223246;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-main,
body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-caret {
  appearance: none;
  border: none;
  background: transparent;
  color: #9cb0c7;
  height: 24px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-main::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 5px;
  background: #64748b;
  flex-shrink: 0;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-wrap.is-on .pin-split-main::before {
  background: #2dd4bf;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-wrap.is-on .pin-split-main,
body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-wrap.is-on .pin-split-caret {
  color: #f1f5f9;
  font-weight: 700;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-main {
  padding: 0 7px;
  border-radius: 1px 0 0 1px;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-caret {
  padding: 0 5px;
  border-left: 1px solid #344459;
  border-radius: 0 1px 1px 0;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-main:hover,
body:not(.simple-sheet-mode):not(.is-mobile-ui) .pin-split-caret:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body:not(.is-mobile-ui) #pinQuickPopover {
  right: 0;
  left: auto;
  width: 320px;
}

.pin-pop-hint {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--gis-muted);
}

/* ストビューボタンも派手なネオン緑をやめ、静かなスレート基調で統一 */
body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top #gmapStreetViewLink {
  border-color: #344459;
  background: #1c2838;
  color: #d5dfec;
}

body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top #gmapStreetViewLink:hover {
  background: #27364a;
  border-color: #506682;
  color: #ffffff;
}

/* ============================================================================
   スマホ専用（320px〜860px）：落ち着いたシャープ2段＋絶対はみ出し防止＋ボトムシート
   ============================================================================ */
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobMapViewBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 6px;
  background: #141d29;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-seg {
  border: 1px solid #344459;
  border-radius: 3px;
  background: #1c2838;
  flex-shrink: 0;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-btn {
  height: 28px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
  color: #b8c5d6;
  border-right: 1px solid #2b3a4d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-btn.is-active {
  background: #eef3f8;
  color: #0f172a;
  font-weight: 800;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-shrink: 1;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-base-btn,
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-set-btn,
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-link {
  height: 28px;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid #344459;
  background: #1c2838;
  color: #d5dfec;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-base-btn.is-active {
  background: #eef3f8;
  border-color: #eef3f8;
  color: #0f172a;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split {
  display: inline-flex;
  align-items: stretch;
  height: 28px;
  border-radius: 3px;
  border: 1px solid #344459;
  background: #1c2838;
  overflow: hidden;
  flex-shrink: 0;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split[hidden] {
  display: none !important;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split.is-on {
  border-color: #4f6b8a;
  background: #223246;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split-main,
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split-caret {
  appearance: none;
  border: none;
  background: transparent;
  color: #9cb0c7;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split-main::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 999px;
  margin-right: 4px;
  background: #64748b;
  flex-shrink: 0;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split.is-on .mob-pin-split-main::before {
  background: #2dd4bf;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split-caret {
  padding: 0 5px;
  border-left: 1px solid #344459;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split.is-on .mob-pin-split-main,
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split.is-on .mob-pin-split-caret {
  color: #f8fafc;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar {
  padding: 6px 8px;
  background: #101b2a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  overflow-x: visible;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-toolbar-row-layers {
  padding: 0;
  border-top: none;
  background: transparent;
  width: 100%;
  min-width: 0;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .layer-cat-btn {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn:not(.ui-menu-item),
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .layer-elev-toggle {
  height: 38px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* スマホ2行目はSVGアイコンを隠して横幅をスッキリ保つ */
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn:not(.ui-menu-item) svg {
  display: none;
}

/* スマホ極狭幅（〜360px）でも1行目が絶対にはみ出さない最終セーフティ */
@media (max-width: 374px) {
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewdim-btn {
    padding: 0 5px;
    font-size: 10.5px;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-base-btn,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-set-btn,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-viewbar-link,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .mob-pin-split-main {
    padding: 0 5px;
    font-size: 10.5px;
  }
}

/* キーボードフォーカス視認性＆Windowsハイコントラスト対応 */
body:not(.simple-sheet-mode) .map-controls-bar :is(.gis-tb-btn, .layer-cat-btn, .layer-btn, .layer-elev-toggle, .pin-split-main, .pin-split-caret, .basemap-btn):focus-visible,
body.is-mobile-ui:not(.simple-sheet-mode) #mobMapViewBar button:focus-visible,
body.is-mobile-ui:not(.simple-sheet-mode) #mobMapViewBar a:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 1px;
}

@media (forced-colors: active) {
  body:not(.simple-sheet-mode) .map-toolbar-row-layers .layer-btn.active,
  body:not(.simple-sheet-mode) .layer-cat-btn.is-active,
  body:not(.simple-sheet-mode) .layer-elev-toggle.is-on {
    outline: 2px solid Highlight;
  }

  body:not(.simple-sheet-mode) .pin-split-main::before,
  body.is-mobile-ui:not(.simple-sheet-mode) .mob-pin-split-main::before {
    forced-color-adjust: none;
  }
}

/* ============================================================================
   地図下部の情報量スリム化（重複する地図内黒帯を通常画面で非表示・右下ボタン整理）
   ============================================================================ */
@media print {
  #map3d {
    display: none !important;
  }
}

@media screen {
  body:not(.simple-sheet-mode) #mapActiveLabel {
    display: none !important;
  }

  .map-float-btn[hidden] {
    display: none !important;
  }

  body:not(.simple-sheet-mode) .map-float-actions {
    bottom: 10px;
  }

  body:not(.simple-sheet-mode) .map-frame:has(#gmapProCanvas:not([hidden]), #gmapFrame:not([hidden])) .map-float-actions {
    bottom: 34px;
  }
}

/* ============================================================================
   スマホ専用 地価変動UX（1本柱＋小ドット＋地図外4枚スワイプカード帯）
   ============================================================================ */
.landtrend-dot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.16s ease, transform 0.12s ease;
}

.landtrend-dot-core {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.36);
}

.landtrend-zoom-far .landtrend-dot-wrap,
.landtrend-dot-wrap.is-crowded-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.landtrend-pin-badge.is-mob-compact {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  line-height: 1.2;
}

.landtrend-pin-badge.is-mob-compact.is-nearest:not(.is-selected) {
  border-color: #0f172a;
}

.landtrend-mob-cards {
  display: block;
  background: #f8fafc;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 6px 8px 6px;
}

.landtrend-mob-cards[hidden],
body:not(.is-mobile-ui) .landtrend-mob-cards,
body.simple-sheet-mode .landtrend-mob-cards,
body.is-landing .landtrend-mob-cards,
body.is-printing .landtrend-mob-cards {
  display: none !important;
}

@media print {
  .landtrend-mob-cards {
    display: none !important;
  }
}

.landtrend-mob-cards.is-collapsed {
  padding: 4px 8px;
}

.landtrend-mob-cards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.landtrend-mob-cards.is-collapsed .landtrend-mob-cards-head {
  margin-bottom: 0;
}

.landtrend-mob-cards-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.landtrend-mob-cards-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landtrend-mob-cards-ghost-hint {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
}

.landtrend-mob-cards-toggle {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.landtrend-mob-cards-toggle:active {
  background: #e2e8f0;
}

.landtrend-mob-cards-msg {
  font-size: 11px;
  color: #475569;
  padding: 4px 2px;
}

.landtrend-mob-cards-msg.is-warn {
  color: #b91c1c;
}

.landtrend-mob-cards-row {
  display: flex;
  flex-direction: row;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.landtrend-mob-cards-row::-webkit-scrollbar {
  display: none;
}

.landtrend-mob-card {
  flex: 0 0 auto;
  width: 204px;
  scroll-snap-align: start;
  appearance: none;
  text-align: left;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.landtrend-mob-card.is-active {
  border-color: #0f172a;
  background: #fefce8;
  box-shadow: 0 0 0 1.5px #facc15, 0 2px 6px rgba(15, 23, 42, 0.14);
}

.landtrend-mob-card.is-prev {
  border-style: dashed;
  border-color: #64748b;
  background: #f8fafc;
}

.landtrend-mob-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.landtrend-mob-tag {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #1e293b;
  white-space: nowrap;
}

.landtrend-mob-tag.is-near {
  background: #fef3c7;
  color: #92400e;
}

.landtrend-mob-tag.is-top {
  background: #fee2e2;
  color: #b91c1c;
}

.landtrend-mob-tag.is-res {
  background: #dcfce7;
  color: #166534;
}

.landtrend-mob-tag.is-com {
  background: #dbeafe;
  color: #1e40af;
}

.landtrend-mob-tag.is-sel {
  background: #0f172a;
  color: #facc15;
}

.landtrend-mob-dist {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.landtrend-mob-card-loc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.landtrend-mob-loc-text {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landtrend-mob-cat {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 0 4px;
}

.landtrend-mob-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 1px;
}

.landtrend-mob-card-metrics {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.landtrend-mob-pct {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.landtrend-mob-pct.is-up-strong { color: #be123c; }
.landtrend-mob-pct.is-up-mid { color: #c2410c; }
.landtrend-mob-pct.is-up-mild { color: #b45309; }
.landtrend-mob-pct.is-flat { color: #475569; }
.landtrend-mob-pct.is-down-mild { color: #1d4ed8; }
.landtrend-mob-pct.is-down-strong { color: #1e3a8a; }
.landtrend-mob-pct.is-na { color: #64748b; }

.landtrend-mob-price {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.landtrend-mob-spark-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex: 0 0 auto;
}

.landtrend-mob-spark {
  display: block;
  overflow: visible;
}

.landtrend-mob-spark-lbl {
  font-size: 9px;
  color: #64748b;
  line-height: 1;
}

.landtrend-mob-cards-note {
  margin: 4px 0 0;
  font-size: 9.5px;
  line-height: 1.3;
  color: #64748b;
}

/* 地図下の常設ミニハザードバーは廃止（「レポート」タブ＋該当ありドットへ一本化） */
#mobMapQuickSummary {
  display: none !important;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar .mob-bar-btn {
  position: relative;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar #mobNavSummaryBtn.has-hazard-alert::after,
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar #mobNavSummaryBtn.has-hazard-warn::after {
  content: '';
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 1.5px #0f172a;
  pointer-events: none;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar #mobNavSummaryBtn.has-hazard-warn::after {
  background: #f59e0b;
}

@media (forced-colors: active) {
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar #mobNavSummaryBtn.has-hazard-alert::after,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobileBottomBar #mobNavSummaryBtn.has-hazard-warn::after {
    background: CanvasText;
    forced-color-adjust: none;
  }
}

/* ============================================================================
   全画面共通の非ブロッキング安心読み込みピル（経過時間でやさしいメッセージを表示）
   ============================================================================ */
.global-loading-pill {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 66px);
  left: 50%;
  transform: translate(-50%, -10px) scale(0.97);
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  padding: 9px 16px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.90);
  color: #f8fafc;
  border: 1px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.global-loading-pill:has(.global-loading-sub:not([hidden])) {
  border-radius: 16px;
}

.global-loading-pill.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.global-loading-pill:not(.is-visible) .global-loading-spinner,
.global-loading-pill:not(.is-visible) .global-loading-shimmer::after {
  animation-play-state: paused;
}

.global-loading-spinner {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.4px solid rgba(148, 163, 184, 0.35);
  border-top-color: #2dd4bf;
  animation: globalLoadingSpin 0.8s linear infinite;
}

.global-loading-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.global-loading-main {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.global-loading-sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #99f6e4;
  overflow-wrap: anywhere;
}

.global-loading-sub[hidden] {
  display: none !important;
}

.global-loading-shimmer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: rgba(45, 212, 191, 0.16);
  overflow: hidden;
}

.global-loading-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #2dd4bf, #5eead4, transparent);
  animation: globalLoadingSlide 1.35s ease-in-out infinite;
}

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

@keyframes globalLoadingSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

@media (max-width: 860px) {
  body.is-mobile-ui:not(.is-landing) .global-loading-pill {
    top: 40%;
    transform: translate(-50%, -50%) scale(0.97);
  }

  body.is-mobile-ui:not(.is-landing) .global-loading-pill.is-visible {
    transform: translate(-50%, -50%) scale(1);
  }

  .global-loading-pill {
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    padding: 8px 14px 10px;
  }

  .global-loading-main {
    font-size: 12px;
  }

  .global-loading-sub {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-loading-pill {
    transition: opacity 0.12s ease, visibility 0.12s ease;
    transform: translateX(-50%);
  }

  .global-loading-pill.is-visible {
    transform: translateX(-50%);
  }

  body.is-mobile-ui:not(.is-landing) .global-loading-pill,
  body.is-mobile-ui:not(.is-landing) .global-loading-pill.is-visible {
    transform: translate(-50%, -50%);
  }

  .global-loading-spinner,
  .global-loading-shimmer::after {
    animation: none;
  }
}

@media print {
  .global-loading-pill {
    display: none !important;
  }
}

/* =============================================================================
   事業用（物流・倉庫・工場・ラボ）モード専用スタイル
   ============================================================================= */
.commercial-section {
  border: 1.5px solid #0f766e;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 140px);
  padding: 14px 16px;
}

.commercial-kicker-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #115e59;
  font-size: 11px;
  font-weight: 700;
}

.commercial-zoning-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #99f6e4;
  margin-bottom: 10px;
}

.commercial-zone-main {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.commercial-ratio-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
}

.commercial-use-grid,
.commercial-bcp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.commercial-use-card,
.commercial-bcp-card {
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left-width: 4px;
}

.commercial-use-card.tone-fewer,
.commercial-bcp-card.tone-fewer {
  border-left-color: #0f766e;
  background: #f0fdfa;
}

.commercial-use-card.tone-limited,
.commercial-bcp-card.tone-limited {
  border-left-color: #d97706;
  background: #fffbeb;
}

.commercial-use-card.tone-restricted,
.commercial-bcp-card.tone-restricted {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.commercial-use-card.tone-unconfirmed,
.commercial-bcp-card.tone-unconfirmed {
  border-left-color: #64748b;
  background: #f8fafc;
}

.commercial-use-head,
.commercial-neighbor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.commercial-use-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.commercial-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.commercial-status-pill.is-fewer {
  background: #ccfbf1;
  color: #115e59;
}

.commercial-status-pill.is-limited {
  background: #fef3c7;
  color: #92400e;
}

.commercial-status-pill.is-restricted {
  background: #fee2e2;
  color: #991b1b;
}

.commercial-status-pill.is-unconfirmed {
  background: #e2e8f0;
  color: #334155;
}

.commercial-bcp-main {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.commercial-use-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #334155;
}

.commercial-port-warning {
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}

.commercial-port-warning.is-coastal {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.commercial-notes-box {
  margin-bottom: 10px;
}

.commercial-note-line {
  margin: 0 0 3px;
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
}

.commercial-neighbor-box {
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  margin-bottom: 10px;
}

.commercial-facility-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.commercial-fac-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
}

.commercial-fac-chip.is-near {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.commercial-labor-line {
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px dashed #cbd5e1;
  font-size: 11.5px;
  line-height: 1.5;
  color: #1e293b;
}

.commercial-checklist-box {
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  margin-bottom: 8px;
}

.commercial-checklist-head {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.commercial-checklist {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #334155;
}

.commercial-checklist li + li {
  margin-top: 4px;
}

.commercial-disclaimer {
  font-size: 10.5px;
  line-height: 1.5;
  color: #475569;
}

/* 1枚シート・市場カードの事業用カラー */
.simple-mode-badge.is-commercial {
  background: #0f766e;
  color: #ffffff;
}

.simple-mode-btn.active.is-commercial {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.simple-summary-pill.is-commercial {
  background: #0f766e;
  color: #ffffff;
}

.simple-card.tone-commercial {
  border-left-color: #0f766e;
}

.market-card.is-industrial {
  border-top: 3px solid #0f766e;
}

.market-card.is-business {
  border-top: 3px solid #4338ca;
}

.market-filter-btn.is-commercial.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

@media (max-width: 768px) {
  .commercial-use-grid,
  .commercial-bcp-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .commercial-section {
    border-color: #0f766e;
    background: #ffffff;
    padding: 10px 12px;
  }
}

/* =====================================================================
 * 地図参照元・時点チップ ＋ 過去航空写真年代切替タイムラインバー
 * ===================================================================== */
.photo-era-bar[hidden],
.photo-era-watermark[hidden],
.photo-era-status-note[hidden],
.photo-era-3d-btn[hidden],
.map-source-meta-popover[hidden] {
  display: none !important;
}

/* 過去航空写真表示時の透かし帯（画面では控えめ、A4印刷時はくっきり焼き込み） */
.photo-era-watermark {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 460;
  pointer-events: none;
  max-width: calc(100% - 24px);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.88);
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

/* Leaflet 2D 過去航空写真時の下地減光（範囲外と年代混在の誤認防止） */
.leaflet-base-dimmed {
  filter: grayscale(100%);
  opacity: 0.34 !important;
}

/* 航空写真モード専用 1行タイムラインバー（フレーム外配置） */
.photo-era-bar {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  padding: 4px 10px;
  margin: 4px 0 0;
  border-radius: 8px 8px 0 0;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  font-size: 11.5px;
  color: #1e293b;
  overflow: hidden;
}

.photo-era-bar-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.photo-era-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 1px 0;
  -webkit-overflow-scrolling: touch;
}

.photo-era-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.photo-era-pill:hover {
  background: #f1f5f9;
  border-color: #64748b;
}

.photo-era-pill.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.photo-era-pill.is-historic.is-active {
  background: #b45309;
  border-color: #b45309;
  color: #ffffff;
}

.photo-era-pill-sub {
  font-size: 9.5px;
  opacity: 0.78;
  font-weight: 600;
}

.photo-era-status-note {
  font-size: 10.5px;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.photo-era-3d-btn {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #d97706;
  background: #fffbeb;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.photo-era-3d-btn:hover {
  background: #fef3c7;
}

/* 測量GIS調ダークテーマ（通常画面）での年代バー */
body:not(.simple-sheet-mode) .photo-era-bar {
  margin: 0;
  padding: 4px 12px;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--gis-line);
  background: #162133;
  color: #e2e8f0;
}

body:not(.simple-sheet-mode) .photo-era-bar-label {
  color: #94a3b8;
}

body:not(.simple-sheet-mode) .photo-era-pill {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
}

body:not(.simple-sheet-mode) .photo-era-pill:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(148, 163, 184, 0.65);
}

body:not(.simple-sheet-mode) .photo-era-pill.is-active {
  background: #0d9488;
  border-color: #14b8a6;
  color: #ffffff;
}

body:not(.simple-sheet-mode) .photo-era-pill.is-historic.is-active {
  background: #b45309;
  border-color: #f59e0b;
  color: #ffffff;
}

body:not(.simple-sheet-mode) .photo-era-status-note {
  color: #94a3b8;
}

body:not(.simple-sheet-mode) .photo-era-3d-btn {
  background: rgba(180, 83, 9, 0.22);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

body:not(.simple-sheet-mode) .photo-era-3d-btn:hover {
  background: rgba(180, 83, 9, 0.38);
}

/* 参照元・時点チップ ＆ 詳細ポップオーバー */
.map-source-meta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-shrink: 1;
  min-width: 0;
}

.map-source-meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.map-source-meta-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.map-source-meta-btn.is-historic {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.map-source-meta-ico {
  font-size: 11px;
  opacity: 0.78;
  flex-shrink: 0;
}

body:not(.simple-sheet-mode) .map-source-meta-btn {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

body:not(.simple-sheet-mode) .map-source-meta-btn:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.65);
  color: #f8fafc;
}

body:not(.simple-sheet-mode) .map-source-meta-btn.is-historic {
  background: rgba(180, 83, 9, 0.32);
  border-color: rgba(251, 191, 36, 0.7);
  color: #fef3c7;
}

.map-source-meta-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 620;
  width: min(360px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
}

.map-source-meta-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 7px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  color: #0f172a;
}

.map-source-meta-close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
}

.map-source-meta-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.map-source-meta-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
}

.map-source-meta-list dt {
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
}

.map-source-meta-list dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

.map-source-meta-foot {
  margin: 8px 0 0;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  font-size: 10.5px;
  color: #475569;
  line-height: 1.45;
}

.map-source-meta-foot a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .photo-era-watermark {
    top: 46px;
    left: 10px;
    transform: none;
    max-width: calc(100% - 96px);
    font-size: 10.5px;
    padding: 2px 9px;
  }

  .photo-era-bar {
    padding: 4px 8px;
    gap: 5px;
  }

  .map-source-meta-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--mob-nav-h, 58px) + 10px);
    width: auto;
    max-height: 62vh;
    max-height: 62dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1200;
  }
}

@media print {
  .photo-era-watermark {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: #fef3c7 !important;
    color: #78350f !important;
    border: 1.5px solid #b45309 !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ============================================================================
   スマホ専用 全レイヤー共通 1行凡例バー ＋ 畳む再表示チップ ＋ 全色ボトムシート
   ============================================================================ */
.map-topleft-stack {
  display: contents;
}

.mob-common-legend-bar,
.mob-legend-restore-chip,
.mob-legend-sheet-backdrop,
.mob-legend-sheet {
  display: none;
}

.mob-common-legend-bar[hidden],
.mob-legend-restore-chip[hidden],
.mob-legend-sheet-backdrop[hidden],
.mob-legend-sheet[hidden],
body:not(.is-mobile-ui) .mob-common-legend-bar,
body:not(.is-mobile-ui) .mob-legend-restore-chip,
body:not(.is-mobile-ui) .mob-legend-sheet-backdrop,
body:not(.is-mobile-ui) .mob-legend-sheet,
body.is-landing .mob-common-legend-bar,
body.is-landing .mob-legend-restore-chip,
body.is-landing .mob-legend-sheet-backdrop,
body.is-landing .mob-legend-sheet,
body.simple-sheet-mode .mob-common-legend-bar,
body.simple-sheet-mode .mob-legend-restore-chip,
body.simple-sheet-mode .mob-legend-sheet-backdrop,
body.simple-sheet-mode .mob-legend-sheet,
body.is-printing .mob-common-legend-bar,
body.is-printing .mob-legend-restore-chip,
body.is-printing .mob-legend-sheet-backdrop,
body.is-printing .mob-legend-sheet {
  display: none !important;
}

/* スマホでは人口密度・地価変動の個別凡例帯を共通1行バーへ統一（二重表示防止） */
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #popMeshModeBar,
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #landTrendLegendStrip {
  display: none !important;
}

/* 1. 地図直上の共通1行スリム凡例バー */
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) #reportSheet[data-mobtab="map"] .mob-common-legend-bar:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 4px 8px;
  background: #132032;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
  box-sizing: border-box;
  overflow: visible;
}

.mob-legend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: #0f766e;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
}

.mob-legend-quick-switch {
  appearance: none;
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1.25;
}

.mob-legend-quick-switch[hidden] {
  display: none !important;
}

.mob-legend-quick-switch:active {
  background: #334155;
}

.mob-legend-scroll {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  padding: 2px 14px 2px 0;
  cursor: pointer;
}

.mob-legend-scroll::-webkit-scrollbar {
  display: none;
}

.mob-legend-scroll.has-right-fade {
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 84%, transparent 100%);
}

.mob-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mob-legend-sw {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  flex-shrink: 0;
}

.mob-legend-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
}

.mob-legend-strip-div {
  font-size: 10px;
  font-weight: 800;
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mob-legend-strip-summary {
  font-size: 10.5px;
  font-weight: 800;
  color: #f8fafc;
  background: rgba(15, 118, 110, 0.4);
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mob-legend-strip-summary.is-up-strong,
.mob-legend-strip-summary.is-up-mid {
  background: rgba(190, 18, 60, 0.42);
  border-color: rgba(253, 164, 175, 0.55);
}

.mob-legend-strip-summary.is-down-mild,
.mob-legend-strip-summary.is-down-strong {
  background: rgba(29, 78, 216, 0.42);
  border-color: rgba(147, 197, 253, 0.55);
}

.mob-legend-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mob-legend-expand-btn,
.mob-legend-collapse-btn {
  position: relative;
  appearance: none;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 5px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.mob-legend-expand-btn {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  background: #243447;
  border-color: #64748b;
}

.mob-legend-collapse-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  color: #cbd5e1;
}

/* タップ領域を上下に拡張して押しやすさを確保（見た目33px・実ヒット領域約40px） */
.mob-legend-expand-btn::after,
.mob-legend-collapse-btn::after {
  content: '';
  position: absolute;
  inset: -7px -4px;
}

.mob-legend-expand-btn:active,
.mob-legend-collapse-btn:active {
  background: #334155;
}

.mob-legend-expand-btn:focus-visible,
.mob-legend-collapse-btn:focus-visible,
.mob-legend-quick-switch:focus-visible,
.mob-legend-restore-chip:focus-visible,
.mob-legend-sheet-close:focus-visible,
.mob-legend-seg-btn:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 1px;
}

/* 2. 左上スタック＆畳み中の再表示チップ（HUDと絶対に重ならない縦並び配置） */
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-topleft-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 620;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: calc(100% - 72px);
  pointer-events: none;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame:has(#smart3dModePill:not([hidden])) .map-topleft-stack {
  top: 38px;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-topleft-stack > .map-info-hud {
  position: static;
  top: auto;
  left: auto;
  max-width: 100%;
  pointer-events: auto;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) #reportSheet[data-mobtab="map"] .mob-legend-restore-chip:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 191, 0.65);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(5px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.32);
  cursor: pointer;
  pointer-events: auto;
}

.mob-legend-restore-swatches {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.mob-legend-restore-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.mob-legend-restore-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. 全色一覧ボトムシート（body直下配置・下部ナビ高さを変数参照） */
body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) .mob-legend-sheet-backdrop:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2440;
  background: rgba(2, 6, 23, 0.42);
  touch-action: none;
}

body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) .mob-legend-sheet:not([hidden]) {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--mob-nav-h, 58px);
  z-index: 2450;
  max-height: min(68svh, calc(100svh - 110px));
  background: #0f172a;
  color: #f8fafc;
  border-top: 1px solid #475569;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 28px rgba(2, 6, 23, 0.48);
  overscroll-behavior: contain;
  animation: mobLegendSheetIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mob-legend-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 9px;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}

.mob-legend-sheet-titles {
  min-width: 0;
  flex: 1 1 auto;
}

.mob-legend-sheet-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.mob-legend-sheet-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.mob-legend-sheet-close {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mob-legend-sheet-body {
  padding: 10px 14px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mob-legend-sheet-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mob-legend-sheet-group-title {
  font-size: 11px;
  font-weight: 800;
  color: #5eead4;
  letter-spacing: 0.02em;
}

.mob-legend-sheet-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}

.mob-legend-sheet-tag.is-hazard {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.mob-legend-sheet-tag.is-context {
  background: rgba(14, 165, 233, 0.22);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.mob-legend-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mob-legend-sheet-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.65);
  min-width: 0;
}

.mob-legend-sheet-sw {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

.mob-legend-sheet-cell-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.mob-legend-sheet-cell-main {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-legend-sheet-cell-sub {
  font-size: 9.5px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-legend-sheet-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mob-legend-seg-btn {
  appearance: none;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.mob-legend-seg-btn.is-active {
  background: #0f766e;
  border-color: #2dd4bf;
  color: #ffffff;
}

.mob-legend-sheet-summary {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
}

.mob-legend-sheet-summary.is-up-strong,
.mob-legend-sheet-summary.is-up-mid {
  background: rgba(190, 18, 60, 0.35);
  border-color: rgba(253, 164, 175, 0.6);
  color: #ffe4e6;
}

.mob-legend-sheet-summary.is-down-mild,
.mob-legend-sheet-summary.is-down-strong {
  background: rgba(29, 78, 216, 0.35);
  border-color: rgba(147, 197, 253, 0.6);
  color: #dbeafe;
}

.mob-legend-sheet-ramp {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 8px;
  padding: 8px 10px;
}

.mob-legend-sheet-ramp .landtrend-strip-end,
.mob-legend-sheet-ramp .landtrend-strip-ticks {
  color: #cbd5e1;
}

.mob-legend-sheet-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.mob-legend-sheet-note {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(71, 85, 105, 0.55);
  font-size: 10.5px;
  line-height: 1.5;
  color: #94a3b8;
}

/* 横向きスマホ（高さ<=500px）：シートを右側ドロワー型にして地図の視界を確保 */
@media (max-height: 500px) {
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) .mob-legend-sheet:not([hidden]) {
    left: auto;
    right: 0;
    width: min(360px, 84vw);
    max-height: calc(100svh - var(--mob-nav-h, 54px) - 24px);
    border-left: 1px solid #475569;
    border-radius: 14px 0 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode):not(.is-printing) .mob-legend-sheet:not([hidden]) {
    animation: none;
  }
}

@media print {
  .mob-common-legend-bar,
  .mob-legend-restore-chip,
  .mob-legend-sheet-backdrop,
  .mob-legend-sheet {
    display: none !important;
  }
}

/* =============================================================================
   Phase 2: 高速道路ICアクセス＆距離圏リング（同心円）スタイル
   ============================================================================= */
.commercial-expressway-box {
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #99f6e4;
  margin-bottom: 10px;
}

.commercial-ic-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}

.commercial-ic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.commercial-ic-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.commercial-ic-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.commercial-ic-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.commercial-ic-kind {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 10.5px;
  font-weight: 700;
}

.commercial-ic-kind.is-sic {
  background: #fef3c7;
  color: #92400e;
}

.commercial-ic-dist {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f766e;
}

.commercial-ic-route-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 7px;
  background: #0f766e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.commercial-ic-route-btn:hover {
  background: #115e59;
}

.commercial-ic-credit {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: #475569;
}

.commercial-credit-link {
  color: #0f766e;
  text-decoration: underline;
  font-weight: 700;
}

/* 地図下 距離圏リングコントロールバー */
.distance-ring-bar[hidden] {
  display: none !important;
}

.distance-ring-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-top: 6px;
  border-radius: 10px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}

.distance-ring-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #115e59;
  white-space: nowrap;
}

.distance-ring-radios {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dist-ring-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid #99f6e4;
  background: #ffffff;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.dist-ring-btn.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.dist-ring-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.distance-ring-select {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #99f6e4;
  background: #ffffff;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 600;
}

.distance-ring-info {
  font-size: 11.5px;
  font-weight: 700;
  color: #115e59;
}

.distance-ring-info.is-warn {
  color: #b45309;
}

.distance-ring-2d-note {
  font-size: 11px;
  color: #64748b;
}

/* Leaflet 2D 距離円ラベル */
.dist-ring-label {
  background: transparent;
  border: none;
  pointer-events: none;
}

.dist-ring-label span {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid #0f766e;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.dist-ring-label.is-outer span {
  border-color: #dc2626;
  color: #b91c1c;
}
