/* ===== 部品「土地の履歴」。クラス名はすべて rr- で始まる。色と書体は、AI査定の変数があればそれを使い、なければ同じ値を使う ===== */
.rr {
  --rr-ink: var(--ink, #1f2933);
  --rr-muted: var(--muted, #5f6b76);
  --rr-line: var(--line, #d9dee3);
  --rr-accent: var(--accent, #1f5fa8);
  --rr-navy: var(--navy, #0a1a2f);
  --rr-glow: var(--glow, #4F7FB8);
  --rr-chip: #c9d2db;
  --rr-panel: #F4F7FB;
  --rr-panel-line: #D6E0EC;
  --rr-jp: var(--jp, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif);
  --rr-head: var(--head, Geist, "Zen Kaku Gothic New", var(--rr-jp));
  --rr-num: var(--num, Geist, var(--rr-jp));
  color: var(--rr-ink); font-family: var(--rr-jp); font-size: 16px; line-height: 1.75;
}
.rr *, .rr *::before, .rr *::after { box-sizing: border-box; }
.rr [hidden] { display: none !important; }
.rr button { font-family: inherit; }
.rr button:focus-visible, .rr select:focus-visible, .rr input:focus-visible, .rr summary:focus-visible {
  outline: 2px solid var(--rr-glow); outline-offset: 3px;
}
.rr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rr-title { margin: 0 0 6px; font-family: var(--rr-head); font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.rr-lead { margin: 0 0 14px; font-size: .95rem; color: var(--rr-muted); }
.rr-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 6px; }
.rr-group { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-pill {
  background: #fff; color: var(--rr-ink);
  border: 1px solid var(--rr-line); border-radius: 999px;
  padding: 6px 14px; font-size: .88rem; line-height: 1.5; cursor: pointer;
}
.rr-pill:hover { border-color: var(--rr-accent); }
.rr-pill[aria-pressed="true"] { background: var(--rr-accent); border-color: var(--rr-accent); color: #fff; }
.rr-pill:disabled { opacity: .5; cursor: default; }
.rr-pill:disabled:hover { border-color: var(--rr-line); }
.rr-status { margin: 4px 0 8px; min-height: 1.5em; font-size: 13px; color: var(--rr-muted); }

.rr-stage {
  position: relative; height: clamp(320px, 56vh, 540px);
  border: 1px solid var(--rr-line); border-radius: 8px; overflow: hidden; background: #e9eef2;
}
.rr-map { position: absolute; inset: 0; z-index: 0; background: #e9eef2; }
.rr .leaflet-container { font-family: var(--rr-jp); }
.rr .leaflet-control-attribution { font-size: 11px; }
.rr-tag {
  position: absolute; top: 12px; z-index: 2; pointer-events: none;
  background: rgba(10, 26, 47, .84); color: #fff;
  font-family: var(--rr-num); font-size: 13px; font-weight: 700; line-height: 1.4;
  padding: 4px 10px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.rr-tag-a { left: 12px; }
.rr-tag-b { right: 12px; }
.rr-notice {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  max-width: calc(100% - 24px); margin: 0; padding: 6px 10px;
  background: #fff; color: var(--rr-ink); border: 1px solid var(--rr-line);
  border-radius: 8px; font-size: 13px; line-height: 1.6;
}
.rr-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 44px; margin-left: -22px; z-index: 3; cursor: ew-resize; touch-action: none;
}
.rr-divider::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 26, 47, .4);
}
.rr-grip {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; background: #fff; color: var(--rr-navy);
  box-shadow: 0 1px 6px rgba(10, 26, 47, .5);
  display: grid; place-items: center; font-size: 14px; font-weight: 700; letter-spacing: 2px;
}
.rr-divider:focus-visible { outline: none; }
.rr-divider:focus-visible .rr-grip { outline: 3px solid var(--rr-glow); outline-offset: 2px; }
.rr-stage.rr-armed .leaflet-container,
.rr-stage.rr-armed .leaflet-grab,
.rr-stage.rr-armed .leaflet-interactive { cursor: crosshair; }
.rr-pin { background: none; border: 0; }
.rr-pin svg { display: block; filter: drop-shadow(0 1px 2px rgba(10, 26, 47, .65)); }

.rr-note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--rr-muted); }
.rr-panel {
  margin-top: 14px; padding: 16px 16px 14px;
  background: var(--rr-panel); border: 1px solid var(--rr-panel-line); border-radius: 12px;
}
.rr-timeline {
  border: 0; margin: 0; padding: 0; min-width: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
}
.rr-era { position: relative; display: block; cursor: pointer; }
.rr-era input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rr-era .rr-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 54px; padding: 8px 2px;
  background: #fff; border: 1px solid var(--rr-chip); border-radius: 10px;
  font-family: var(--rr-num); font-variant-numeric: tabular-nums; line-height: 1.25;
}
.rr-era .rr-y { font-size: 15px; font-weight: 700; }
.rr-era .rr-e { font-size: 11px; color: var(--rr-muted); }
.rr-era:hover .rr-box { border-color: var(--rr-accent); }
.rr-era input:checked + .rr-box { background: var(--rr-accent); border-color: var(--rr-accent); color: #fff; }
.rr-era input:checked + .rr-box .rr-e { color: rgba(255, 255, 255, .85); }
.rr-era input:focus-visible + .rr-box { outline: 2px solid var(--rr-glow); outline-offset: 3px; }
.rr-help { margin: 8px 0 0; font-size: 13px; color: var(--rr-muted); }
.rr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rr-row label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.rr select {
  font: inherit; font-size: 15px; color: var(--rr-ink);
  background: #fff; border: 1px solid var(--rr-chip); border-radius: 8px;
  padding: 7px 10px; max-width: 100%;
}
.rr-sub { margin-top: 12px; }
.rr-sec {
  background: #fff; color: var(--rr-accent);
  border: 1px solid var(--rr-accent); border-radius: 8px;
  padding: 8px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.rr-sec:hover { background: var(--accent-soft, #e8f4fd); }

.rr-video { margin-top: 14px; border-top: 1px solid #e3e8ed; padding-top: 12px; }
.rr-video summary {
  cursor: pointer; width: fit-content; font-size: 14px; font-weight: 700; color: var(--rr-accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.rr-video-body { margin-top: 10px; }
.rr-primary {
  background: var(--rr-navy); color: #fff; border: 0; border-radius: 10px;
  min-height: 44px; padding: 0 22px; font-family: var(--rr-head); font-size: 15px; font-weight: 700; cursor: pointer;
}
.rr-primary:hover { background: #142c4b; }
.rr-primary:disabled { opacity: .55; cursor: progress; }
.rr-media {
  display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto;
  margin-top: 10px; border: 1px solid var(--rr-line); border-radius: 8px; background: #0a1a2f;
}
.rr-link { color: var(--rr-accent); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

.rr-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e3e8ed; font-size: 12px; line-height: 1.8; color: var(--rr-muted); }
.rr-foot ul { margin: 0; padding-left: 1.2em; }
.rr-foot p { margin: 8px 0 0; }
.rr-foot a { color: inherit; }

@media (max-width: 560px) {
  .rr-era .rr-y { font-size: 14px; }
  .demo-search { flex-wrap: wrap; }
  .demo-search button { height: 44px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rr .leaflet-fade-anim .leaflet-tile { transition: none !important; }
}

/* 重ねる地図（v0.5.0） */
.rr-over-h { font-size: 14px; font-weight: 700; }
.rr-over-sub { margin-top: 10px; }
.rr-over-row { margin-top: 10px; align-items: flex-start; }
.rr-over-g { flex: none; width: 7.5em; padding-top: 7px; font-size: 13px; color: var(--rr-muted); }
@media (max-width: 560px) { .rr-over-g { width: 100%; padding-top: 0; } }
.rr-over-sub input[type=range] { width: 160px; accent-color: var(--rr-accent); }
.rr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--rr-muted); }
.rr-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rr-sw { flex: none; width: 18px; height: 13px; border: 1px solid rgba(10,26,47,.25); border-radius: 2px; }
.rr-sw.rr-sw-wide { width: 72px; }