:root {
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: #d9dee3;
  --bg: #e9eef2;
  --navy: #0a1a2f;
  --navy-2: #071222;
  --sky: #7FA6D3;
  --mark: #2E5A8A;
  --glow: #4F7FB8;
  --pale: #C9DAEE;
  --tint: #E8EEF6;
  --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;
  --head: Geist, "Zen Kaku Gothic New", var(--jp);
  --num: Geist, var(--jp);
  --card: #ffffff;
  --accent: #1f5fa8;
  --accent-soft: #e8f4fd;
  --warn: #b45309;
  --above: #c2410c;
  --below: #1d4ed8;
  --within: #15803d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.75;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }

.page-head h1 { font-size: 1.6rem; line-height: 1.4; margin: 4px 0 8px; }
.lead { margin: 0 0 6px; }
.note { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.site-link { margin: 0; font-size: .85rem; }
.site-link a { color: var(--accent); text-decoration: none; }
.site-link a:hover { text-decoration: underline; }
.owner-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-size: .88rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; margin: 0 0 16px;
}
.card-title { font-size: 1.1rem; margin: 0 0 12px; }
.card-title small, .field small { color: var(--muted); font-weight: 400; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.field span { font-weight: 700; }
.field input, .field select {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; min-width: 0;
}
.field input:disabled, .field select:disabled { background: #f0f2f4; }
.hint { color: var(--muted); font-size: .88rem; margin: 6px 0 12px; }

.btn-primary, .btn-secondary, .btn-link { font: inherit; cursor: pointer; }
.btn-primary {
  width: 100%; padding: 12px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700;
}
.btn-primary { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(31, 95, 168, .28); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .75; cursor: wait; }

/* ボタンを押したあとの3段階の表示 */
.progress { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.progress ol { list-style: none; margin: 0; padding: 0; }
.progress li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: #9aa4ae; transition: color .3s ease; }
.progress li.active { color: var(--ink); font-weight: 700; }
.progress li.done { color: var(--ink); }
.progress .mark {
  flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid #c3cad1; position: relative;
  transition: background-color .25s ease, border-color .25s ease;
}
.progress li.active .mark { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done .mark { border-color: var(--within); background: var(--within); animation: pop .35s cubic-bezier(.2, .9, .3, 1.4) both; }
.progress li.done .mark::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-secondary { padding: 10px 18px; border: 1px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent); font-weight: 700; }
.btn-link { border: 0; background: none; color: var(--accent); text-decoration: underline; }
.actions { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 8px; }

.error { color: #b91c1c; font-weight: 700; }
.status { color: var(--muted); font-size: .9rem; min-height: 1.5em; margin: 8px 0 0; }

.report-head h2 { margin: 0 0 8px; font-size: 1.3rem; }
.meta { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; }
.meta div { display: flex; gap: 12px; }
.meta dt { flex: 0 0 4em; color: var(--muted); }
.meta dd { margin: 0; }

.estimate-main { font-size: 2rem; font-weight: 800; line-height: 1.3; margin: 0; }
.estimate-main .unit { font-size: 1rem; font-weight: 700; }
.estimate { text-align: center; }
.estimate-tsubo { margin: 0; font-size: 1.05rem; font-weight: 700; }
.estimate .warn-box { text-align: left; margin: 10px 0 0; }

/* AI査定のコメント（v0.16.0：左の線の箱をやめ、静かな段落に） */
.ai-comment { margin: 16px 0 0; padding: 16px 18px; border-radius: 12px; background: #f3f6f9; font-size: .95rem; line-height: 1.85; }
.ai-comment p { margin: 0; }
.ai-comment .ai-comment-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #47515c; }

/* AIの読み解き（v0.16.0：上のコメントと同じ明るい面に、見出しつきの3段落。大事な数字に下線） */
.ai-read { margin-top: 12px; padding: 20px 22px 16px; border-radius: 12px; color: var(--ink); background: #f3f6f9; }
.ai-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.ai-read .ai-comment-label { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 16px; font-weight: 900; letter-spacing: 0; color: var(--navy); }
.ai-read .ai-comment-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(79,127,184,.25); }
.ai-tag { font-size: 12px; color: #5c6773; border: 1px solid #d5dce3; background: #fff; border-radius: 999px; padding: 2px 10px; }
#r-ai-text { display: flex; flex-direction: column; }
.ai-para { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid #dfe5eb; animation: rise .5s ease-out both; animation-delay: calc(var(--i, 0) * .18s); }
.ai-para:first-child { border-top: 0; padding-top: 2px; }
.ai-para p { margin: 0; grid-column: 2; font-size: 15px; line-height: 1.95; }
.ai-para:not(:has(.ai-k)) p { grid-column: 1 / -1; }
.ai-k { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: var(--navy); padding-top: 3px; }
.ai-k b { font-family: var(--num); font-size: 12px; font-weight: 600; color: #2E5A8A; letter-spacing: .06em; }
.ai-para mark { background: linear-gradient(transparent 62%, rgba(79,127,184,.55) 62%); color: inherit; font-weight: 700; padding: 0 1px; }
.ai-read .ai-note { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid #dfe5eb; font-size: 12px; line-height: 1.7; color: #5c6773; }
.ai-wait { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 8px; }
.ai-wait-msg { font-size: 14px; color: #5c6773; }
.ai-wait-msg::after { content: "…"; display: inline-block; animation: blink 1.4s steps(4) infinite; }
.ai-wait .sk { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #e3e9ee 0%, #cfe6f2 50%, #e3e9ee 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.warn-box { border-left: 4px solid var(--warn); background: #fff7ed; padding: 10px 12px; border-radius: 4px; }

.chart { width: 100%; margin: 8px 0; position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-note { margin: 4px 0 0; font-size: .7rem; line-height: 1.6; color: var(--muted); }

/* 周辺相場：カーソル（指）を合わせた時期の数字 */
.tr-tip {
  position: absolute; z-index: 2; pointer-events: none; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff;
  font-size: .8rem; line-height: 1.55; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.tr-tip.below { transform: translate(-50%, 14px); }
.tr-tip strong { display: block; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.table th, .table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.table th:nth-child(1), .table td:nth-child(1),
.table th:nth-child(2), .table td:nth-child(2),
.table th:nth-child(3), .table td:nth-child(3) { text-align: left; }

.map { width: 100%; height: 320px; border-radius: 8px; border: 1px solid var(--line); }

/* 地図に重ねる情報（用途地域・ハザード）の切り替え */
.layer-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
/* 地図のボタンを見出しで4つに分ける（2026-11-22）。見出しの下にボタンが回り込まないよう、見出しとボタンの列を分ける */
.layer-bar { display: block; }
.layer-grp { display: flex; gap: 8px 12px; align-items: flex-start; margin: 0 0 8px; }
.layer-grp-h { flex: 0 0 7.5em; padding-top: 7px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.layer-grp-btns { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .layer-grp { flex-direction: column; gap: 4px; } .layer-grp-h { flex: none; padding-top: 0; } }
.layer-btn {
  font: inherit; font-size: .88rem; line-height: 1.4; padding: 6px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.layer-btn:hover { border-color: var(--accent); }
.layer-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.layer-btn:disabled { opacity: .5; cursor: default; }
.layer-legend { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; font-size: .85rem; }
.layer-legend section + section { margin-top: 10px; }
.layer-legend h3 { font-size: .9rem; margin: 0 0 6px; }
.layer-legend p { margin: 4px 0 0; }
.legend-chips { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.legend-chips li { display: flex; align-items: center; gap: 6px; }
.legend-chips i { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .15); opacity: .8; }
.legend-img { display: block; max-width: 100%; height: auto; margin: 4px 0; }
/* 凡例の画像が2枚あるときは見出しを付けて左右に並べる（2026-11-22） */
.legend-figs { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.legend-fig { margin: 0; }
.legend-cap { margin: 4px 0 2px; font-size: .9rem; font-weight: 700; }
.legend-note { color: var(--muted); }
.stations { margin-top: 12px; }
.stations h3 { font-size: 1rem; margin: 0 0 6px; }
.stations ol { margin: 0; padding-left: 1.4em; }
.stations li { margin: 6px 0; }
.stations .lines { color: var(--muted); font-size: .85rem; }
.stations .riders { font-size: .85rem; }
.landprice h3 { font-size: 1rem; margin: 0 0 6px; }
.landprice ol { margin: 0; padding-left: 1.4em; }
.landprice li { margin: 8px 0; }
.landprice .lines { color: var(--muted); font-size: .85rem; }
.lp-price { font-weight: 700; }
.lp-rate { font-weight: 700; white-space: nowrap; }
.population h3 { font-size: 1rem; margin: 0 0 6px; }
.pop-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .8rem; }
.pop-legend .lg::before { content: ''; display: inline-block; width: 18px; height: 3px; margin: 0 6px 3px 0; vertical-align: middle; background: #1f5fa8; }
.pop-legend .lg-city::before { background: #8a949e; }
.pop-legend .lg-n { margin-left: .5em; color: var(--muted); }
.sd-list { list-style: none; margin: 6px 0 8px; padding: 0; }
.sd-list li { margin: 8px 0; }
.sd-kind { display: inline-block; min-width: 5em; margin-right: .6em; font-size: .8rem; color: var(--muted); }
.sd-label-icon { background: none; border: 0; }
.sd-label { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font: 700 11px/1.2 sans-serif; pointer-events: none;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.sd-pin-icon { background: none; border: 0; }
.sd-pin { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; border: 2px solid; border-radius: 50%;
  background: #fff; font: 700 11px/1 sans-serif; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.sd-pin.here { color: #fff; font-size: 13px; }
.legend-chips .sd-pin { flex: 0 0 18px; width: 18px; height: 18px; font-size: 10px; box-shadow: none; }
.legend-here { margin: 6px 0 0; font-size: .85rem; }
/* 町の中心が区域に入っているかの一言は出さない（2026-11-22）。町の代表点ひとつの判定で、物件の位置ではないため */
.legend-center { display: none; }
/* 地図の町の代表点の札（2026-11-22）：物件の位置と誤解されないよう、丸い印ではなく文字の札 */
.town-tag-icon { background: none; border: 0; }
.town-tag { display: inline-block; transform: translate(-50%, -50%); padding: 3px 10px; border: 1.5px dashed #c2410c; border-radius: 999px; background: rgba(255,255,255,.88); color: #9a3412; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.legend-chips i.sd-line { height: 0; border: 0; border-top: 3px solid; border-radius: 0; background: none; opacity: 1; }
.lp-map { height: 240px; margin: 6px 0 10px; border-radius: 8px; border: 1px solid var(--line); }
.lp-num-icon { background: none; border: 0; }
.lp-num { display: block; width: 24px; height: 24px; border-radius: 50%; background: #7c5a1e; color: #fff; border: 2px solid #fff;
  box-sizing: border-box; font: 700 12px/20px sans-serif; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }

.notes ul { margin: 0; padding-left: 1.2em; font-size: .85rem; color: var(--muted); }

/* 結果が出るときの動き（OSで「動きを減らす」にしている人には出さない） */
@media (prefers-reduced-motion: no-preference) {
  .report.reveal > .card { animation: rise .55s ease-out both; }
  .report.reveal > .card:nth-of-type(2) { animation-delay: .08s; }
  .report.reveal > .card:nth-of-type(3) { animation-delay: .16s; }
  .report.reveal > .card:nth-of-type(n+4) { animation-delay: .24s; }
  .report.reveal .estimate-main { animation: glow 1.6s ease-out .25s both; }
  .report.reveal .estimate-tsubo { animation: fade .5s ease-out 1.45s both; }
  .report.reveal .rc-band { transform-box: fill-box; transform-origin: center; animation: grow .8s cubic-bezier(.2, .7, .2, 1) .35s both; }
  .report.reveal .rc-mid { animation: fade .3s ease-out 1.05s both; }
  .report.reveal .rc-label { animation: fade .4s ease-out 1.1s both; }
  .report.reveal .tr-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.6s ease-out .3s forwards; }
  .report.reveal .tr-dot { animation: fade .25s ease-out both; }
  .report.reveal .tr-fit { animation: fade .6s ease-out 1.9s both; }
  .report.reveal .ai-comment { animation: fade .5s ease-out 1.6s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes glow { 0% { color: #9aa4ae; } 70% { color: #2E5A8A; } 100% { color: var(--navy); } }

@media (max-width: 560px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .estimate-main { font-size: 1.6rem; }
  .page-head h1 { font-size: 1.35rem; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .form, .page-head, .no-print, .progress, .tr-tip { display: none !important; }
  .report .tr-guide, .report .tr-focus { display: none; }
  .report *, .report { animation: none !important; }
  .report .tr-line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .card { border: 1px solid #bbb; break-inside: avoid; page-break-inside: avoid; }
  .map { height: 260px; }
  a { color: inherit; text-decoration: none; }
}

/* ---- v0.16.0：サイトに合わせた上部と入力欄 ---- */
.site-bar { background: #f4f6f8; border-bottom: 1px solid #d5dce3; }
.site-bar-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; min-height: 60px; display: flex; align-items: center; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 16px; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: #47515c; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: #e2e8ee; color: var(--navy); }
.site-nav a[aria-current="page"] { background: #e2e8ee; color: var(--navy); font-weight: 700; }

.hero { background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; color: #fafafa; }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 40px 16px 120px; position: relative; display: flex; gap: 40px; align-items: flex-end; }
.hero .crumb { position: absolute; top: 18px; left: 16px; margin: 0; font-size: 13px; color: #a9b6c3; display: flex; gap: 10px; }
.hero .crumb a { color: #a9b6c3; text-decoration: none; }
.hero .crumb a:hover { color: #fff; }
.hero-text { flex: 1 1 560px; min-width: 0; padding-top: 24px; }
.hero-badge { margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: #dce4ec; }
.hero-badge .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-right: -4px; }
.hero-src { color: #a9b6c3; }
.hero h1 { margin: 0; font-family: var(--head); font-weight: 900; font-size: clamp(25px, 6.6vw, 48px); line-height: 1.2; letter-spacing: -.02em; }
.hero h1 .nw { white-space: nowrap; }
.h1-kicker { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--sky); }
.hero .lead { margin: 20px 0 0; max-width: 620px; font-size: 16px; line-height: 1.9; color: #c9d3dd; }
.hero-art { flex: 0 0 auto; margin-bottom: 10px; font-family: var(--jp); }
.owner-note { color: var(--ink); }

.form { position: relative; margin-top: -96px; padding: 30px 32px 28px; border: 0; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(10,26,47,.45), 0 0 0 1px rgba(10,26,47,.06); }
.form-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 20px; }
.form .card-title { margin: 0; font-family: var(--head); font-weight: 900; font-size: 22px; color: var(--navy); }
.form-sub { margin: 0; font-size: 13px; color: #5c6773; }
.form .grid { gap: 18px 20px; margin-bottom: 22px; }
.form .field { gap: 8px; font-size: 13px; }
.form .field > span:first-child { color: #2e3a46; }
.form .field small { font-weight: 400; color: #5c6773; margin-left: 4px; }
.form .field select, .form .input-wrap { height: 52px; border: 1px solid #c9d2db; border-radius: 12px; background-color: #fbfcfd; font-size: 16px; color: var(--navy); }
.form .field select { padding: 0 40px 0 16px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form .input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.form .input-wrap input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font: inherit; color: inherit; outline: none; }
.form .input-wrap.num input { font-family: var(--num); font-size: 20px; font-weight: 600; }
.form .input-wrap.search svg { color: #5c6773; flex: 0 0 auto; }
.form .unit { flex: 0 0 auto; font-size: 14px; color: #5c6773; white-space: nowrap; }
.form .field select:focus-visible, .form .input-wrap:focus-within { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(79,127,184,.45); background-color: #fff; }
.form .field select:disabled, .form .input-wrap:has(input:disabled) { background-color: #eef1f4; color: #7a8590; }
.form input[type=number] { -moz-appearance: textfield; }
.form input[type=number]::-webkit-outer-spin-button, .form input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-help { font-size: 12px; color: #5c6773; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #c9d2db; background: #fff; color: #2e3a46; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,127,184,.55); }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form .btn-primary { width: auto; min-height: 56px; padding: 0 32px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 14px; background: var(--navy); font-family: var(--head); font-weight: 900; font-size: 18px; }
.form .btn-primary svg { color: var(--sky); }
.form .btn-primary:hover { background: #142c4b; box-shadow: 0 10px 24px -10px rgba(10,26,47,.6); }
.submit-row .status { flex: 1 1 260px; margin: 0; font-size: 13px; color: #5c6773; }
.form .note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #e3e8ed; font-size: 12px; line-height: 1.8; color: #5c6773; }

.sources { margin: 28px 0 8px; }
.sources h2 { margin: 0 0 12px; font-size: 13px; color: #2e3a46; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sources li { padding: 12px 14px; border-radius: 12px; background: #f6f8fa; border: 1px solid #d5dce3; display: flex; flex-direction: column; gap: 2px; }
.sources b { font-size: 14px; color: var(--navy); }
.sources span { font-size: 12px; color: #5c6773; }
.sources li.is-ai { background: var(--navy); border-color: var(--navy); }
.sources li.is-ai b { color: #fff; }
.sources li.is-ai span { color: #a9b6c3; }
main:has(#report:not([hidden])) .sources { display: none; }

@media (max-width: 900px) {
  .hero-art { display: none; }
  .sources ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > .field:nth-child(3), .grid-3 > .field:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-bar-in { gap: 12px; min-height: 56px; }
  .site-logo span { display: none; }
  .hero-in { padding: 44px 16px 96px; }
  .hero .lead { font-size: 14px; }
  .form { margin-top: -72px; padding: 22px 16px 20px; border-radius: 16px; }
  .form .grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .form .card-title { font-size: 19px; }
  .form .input-wrap { padding: 0 12px; }
  .form .field select { padding-left: 12px; background-position: right 12px center; }
  .form .btn-primary { width: 100%; }
  .submit-row .status { flex-basis: 100%; text-align: center; }
  .ai-read { padding: 16px 14px 12px; }
  .ai-para { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ai-para p { grid-column: 1; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-para, .ai-wait .sk, .ai-wait-msg::after { animation: none; }
}
@media print {
  .site-bar, .hero, .sources { display: none !important; }
  .ai-read { background: #fff; border: 1px solid #bbb; }
  .ai-para { animation: none; }
  .ai-para mark { background: none; text-decoration: underline; }
}

/* ---- v0.16.0：価格とグラフ ---- */
.estimate-main { font-family: var(--num); letter-spacing: -.01em; color: var(--navy); }
.est-facts { margin: 14px auto 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); max-width: 640px; border: 1px solid #e1e7ed; border-radius: 12px; overflow: hidden; text-align: left; }
.est-facts > div { padding: 10px 14px; border-left: 1px solid #e1e7ed; }
.est-facts > div:first-child { border-left: 0; }
.est-facts dt { font-size: 11.5px; color: #5c6773; }
.est-facts dd { margin: 2px 0 0; font-family: var(--num); font-size: 16px; font-weight: 700; color: var(--navy); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.est-facts dd small { font-family: var(--jp); font-size: 11.5px; font-weight: 400; color: #5c6773; }
.rc-legend { margin: 2px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 12px; color: #5c6773; }
.rc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-bar { width: 10px; height: 12px; border-radius: 2px; background: #0a1a2f; }
.lg-mid { width: 3px; height: 14px; border-radius: 2px; background: #e8743b; }
.lg-band { width: 18px; height: 10px; border-radius: 2px; background: rgba(79,127,184,.35); }
.report.reveal .rc-bar { transform-box: fill-box; transform-origin: bottom; animation: growY .45s ease-out both; }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 560px) {
  .est-facts { grid-template-columns: minmax(0, 1fr); }
  .est-facts > div { border-left: 0; border-top: 1px solid #e1e7ed; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .est-facts > div:first-child { border-top: 0; }
  .est-facts dd { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .report.reveal .rc-bar { animation: none; } }
@media print { .report .rc-bar { animation: none !important; } }
.est-why { margin: 14px 0 0; padding: 14px 18px 12px; border: 1px solid #e1e7ed; border-radius: 12px; background: #fff; }
.est-why-h { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.est-why ol { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 1.85; color: #2e3a46; }
.est-why li + li { margin-top: 2px; }
.est-why b { color: var(--navy); }

/* ---- v0.16.0：AIモデルの推定 ---- */
.model { margin: 14px 0 0; padding: 20px 22px 16px; border-radius: 14px; background: #fff; border: 1px solid #d5dce3; box-shadow: 0 10px 30px -22px rgba(10,26,47,.4); }
.model-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.model-label { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 17px; font-weight: 900; color: var(--navy); }
.model-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(79,127,184,.25); }
.model-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.model-price { margin: 0; color: var(--navy); }
.model-price .v { font-family: var(--num); font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.model-price .u { font-size: 15px; font-weight: 700; margin-left: 2px; }
.model-range { margin: 0; font-size: 13px; color: #5c6773; }
.model-agree { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff7ed; font-size: 13px; color: #7a3e12; }
.model-agree.ok { background: #ecf6fb; color: #1d5a78; }
.model-sub { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.model-note { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: #5c6773; }
.model-check { margin-top: 14px; padding-top: 4px; border-top: 1px solid #e1e7ed; }
.model-check p { font-size: 14px; line-height: 1.85; margin: 0; }
.model-check .model-sub { margin-top: 12px; font-size: 13px; }
.model-check b { color: var(--navy); }
.model-check .model-fine { margin-top: 6px; font-size: 12px; line-height: 1.7; color: #5c6773; }
.report.reveal .wf-bar { transform-box: fill-box; transform-origin: left; animation: grow .45s ease-out both; }
@media (prefers-reduced-motion: reduce) { .report.reveal .wf-bar { animation: none; } }
@media print { .report .wf-bar { animation: none !important; } .model { box-shadow: none; } }
@media (max-width: 560px) {
  .model { padding: 16px 14px 12px; }
  .model-price .v { font-size: 28px; }
}

.table th small { display: block; font-size: 10.5px; font-weight: 400; color: #5c6773; }

/* ---- v0.16.0：AI査定価格の見せ方 ---- */
.est-panel { margin: 4px 0 0; padding: 22px 20px 20px; border-radius: 16px; background: #f5f9fc; border: 1px solid #d6e6f0; }
.est-label { margin: 0 0 6px; display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid #d6e6f0; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.est-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(79,127,184,.25); }
.est-panel .estimate-main { font-size: 46px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.est-panel .estimate-main .sep { font-weight: 500; color: #5c6773; margin: 0 .06em; }
.est-panel .estimate-main .unit { font-family: var(--jp); font-size: 18px; font-weight: 700; margin-left: 4px; }
.est-panel .estimate-tsubo { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: #2f4659; }
.estimate + .ai-comment, #r-estimate + .ai-comment { margin-top: 14px; }
@media (max-width: 560px) {
  .est-panel { padding: 18px 12px 16px; }
  .est-panel .estimate-main { font-size: 32px; }
  .est-panel .estimate-main .unit { font-size: 15px; }
  .est-panel .estimate-tsubo { font-size: 14px; }
}
@media print { .est-panel { background: #fff; } }

/* ---- v0.17.0：中心の価格を大きく、幅は1本の帯で ---- */
.est-panel .estimate-main .about { font-family: var(--jp); font-size: 22px; font-weight: 700; margin-right: 4px; }
.est-panel .estimate-main { font-size: 52px; line-height: 1.15; }
.est-band { max-width: 560px; margin: 26px auto 0; text-align: left; }
.est-band-h { margin: 0 0 30px; font-size: 12px; color: #5c6773; }
.est-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(79,127,184,.25), rgba(79,127,184,.9) 50%, rgba(79,127,184,.25)); }
/* 推定値の目印（2026-11-22）：つまんで動かす丸に見えないよう、縦の線と「AI査定価格 ▼」の文字にする */
.est-pin { position: absolute; top: 50%; width: 3px; height: 22px; border: 0; border-radius: 2px; box-shadow: none; background: var(--navy); transform: translate(-50%, -50%); pointer-events: none; }
.est-pin::before { content: "AI査定価格\A▼"; white-space: pre; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; color: var(--navy); }
.est-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.est-ends p { margin: 0; }
.est-ends p:last-child { text-align: right; }
.est-ends b { display: block; font-family: var(--num); font-size: 19px; font-weight: 700; color: var(--navy); }
.est-ends span { font-size: 12px; color: #5c6773; }
.est-band-note { margin: 14px auto 0; max-width: 560px; font-size: 12px; line-height: 1.7; color: #5c6773; text-align: left; }
.report.reveal .est-pin { animation: fade .5s ease-out 1.2s both; }
@media (max-width: 560px) {
  .est-panel .estimate-main { font-size: 40px; }
  .est-panel .estimate-main .about { font-size: 17px; }
  .est-ends b { font-size: 17px; }
}
@media print { .est-track { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.form .grid .field-wide { grid-column: 1 / -1; }

/* ---- v0.17.1：入力欄の並び（4列：都道府県・市区町村・町名／面積・築年・間取り／リフォーム）、わかることの一覧をそろえる ---- */
.form .grid.grid-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form .grid-form .span2 { grid-column: span 2; }
.form .grid-form .field-wide { grid-column: 1 / -1; }
.form .grid-form .chips { flex-wrap: wrap; gap: 6px; }
.form .grid-form .span2 .chip { padding: 0 11px; }
.sources li { background: #fff; border-color: #d5dce3; border-left: 3px solid var(--sky); }
@media (max-width: 720px) {
  .form .grid.grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .form .grid-form .span2 { grid-column: 1 / -1; }
}

/* ---- v0.18.0：テーマ（arukikata 0.1.21）の色にそろえる。白地の上の目印は #2E5A8A・#4F7FB8、薄い背景 #E8EEF6 ---- */
.est-panel { background: #F4F7FB; border-color: #D6E0EC; }
.est-label { border-color: #D6E0EC; }
.est-label .dot { background: var(--glow); box-shadow: 0 0 0 3px rgba(79,127,184,.2); }
.est-track { background: linear-gradient(90deg, rgba(79,127,184,.18), rgba(79,127,184,.7) 50%, rgba(79,127,184,.18)); }
.sources li { border-left-color: var(--glow); }
.form .field select:focus-visible, .form .input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(79,127,184,.35); }
.chip:focus-visible { box-shadow: none; outline: 2px solid var(--glow); outline-offset: 3px; }

/* ---- v0.18.1：キービジュアル（見出しの右の絵）を大きく。スマホでも見出しの下に出す ---- */
.hero { background-image: radial-gradient(ellipse 46% 60% at 74% 48%, rgba(79,127,184,.24), rgba(79,127,184,0) 70%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; }
.hero-in { max-width: 1240px; align-items: center; gap: 24px; padding-top: 36px; }
.hero-text { flex: 0 1 470px; }
.hero .fa-ah { flex: 1 1 680px; width: auto; max-width: 720px; margin: 0 -12px 0 0; }
@media (max-width: 900px) {
  .hero-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-text { flex: none; }
  .hero .fa-ah { display: block; flex: none; width: 100%; max-width: 560px; margin: 8px auto 0; }
}

.form .grid-form .span2 .chip { padding: 0 9px; }

/* v0.19.0 種類の切り替え（中古マンション・戸建て・土地） */
.form [hidden], .notes [hidden] { display: none !important; }
.kind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; padding: 4px; border-radius: 14px; background: #eef2f6; border: 1px solid #dde3ea; }
.kind-btn { font: inherit; font-size: 14px; font-weight: 700; height: 46px; border: 0; border-radius: 10px; background: transparent; color: #4b5866; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; white-space: nowrap; }
.kind-btn small { font-size: 11px; font-weight: 500; color: #7a8590; }
.kind-btn[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(10,26,47,.12), 0 0 0 1px rgba(10,26,47,.06); }
.kind-btn:disabled { cursor: default; color: #9aa4ae; }
.kind-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,127,184,.55); }
@media (max-width: 420px) { .kind-btn { font-size: 12.5px; letter-spacing: -.02em; } }
.land-ref { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #d6e6f0; text-align: left; font-size: 14px; line-height: 1.8; color: #2f4659; }
.land-ref b { font-family: var(--num); font-size: 17px; color: var(--navy); }
.land-ref .hint { margin: 6px 0 0; }
.est-panel .est-sub { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: #2f4659; }
/* v0.19.5 スマホの幅：注記の長いURLで横にはみ出さない */
.notes li { overflow-wrap: anywhere; }

/* 地価の地点の色（一覧の番号・地図の印・価格の動きでそろえる）と、価格の動きの欄（v0.23.0） */
.landprice ol > li::marker { color: var(--lp, inherit); font-weight: 700; }
.lp-hist { margin-top: 16px; }
.lh-list { margin: 4px 0 8px; padding-left: 0; list-style: none; }
.lh-list li { margin: 6px 0; padding-left: 10px; border-left: 4px solid var(--lp, var(--line)); }

/* 鑑定評価書の要点（v0.26.0） */
.lp-kd { margin: 6px 0 2px; font-size: .85rem; }
.lp-kd summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.lp-kd dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 6px 0; }
.lp-kd dt { color: var(--muted); }
.lp-kd dd { margin: 0; }
@media (max-width: 480px) { .lp-kd dl { grid-template-columns: 1fr; gap: 0; } .lp-kd dd { margin-bottom: 6px; } }

/* 町の犯罪の件数（v0.27.0） */
.crime-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.crime-table th, .crime-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.crime-table thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.crime-table td.num { text-align: right; white-space: nowrap; }
.crime-table thead th:not(:first-child) { text-align: right; }
.crime-table tr.em th, .crime-table tr.em td { font-weight: 700; }
#crime-card[hidden] { display: none; }

/* 立体で見る（v0.28.0） */
.v3d-card h3 { font-size: 1rem; margin: 0 0 6px; }
.vol { margin-bottom: 18px; }
.vol-wrap { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 12px 20px; align-items: center; }
.vol-svg { width: 100%; height: auto; display: block; }
.vol-list { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.vol-list li { margin: 4px 0; }
@media (max-width: 600px) { .vol-wrap { grid-template-columns: 1fr; } }
.v3d-view { height: 420px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #e5e7eb; }
@media (max-width: 600px) { .v3d-view { height: 340px; } }
.v3d-view .cesium-viewer-bottom { font-size: 10px; }
.v3d-ctl { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0; font-size: .9rem; }
.v3d-ctl input[type=range] { width: 180px; vertical-align: middle; }
.v3d-info { margin: 6px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }
.v3d-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; }
.v3d-info dt { color: var(--muted); }
.v3d-info dd { margin: 0; }

/* 「このレポートについて」は小さな字で（2026-11-22） */
.notes ul { font-size: .74rem; line-height: 1.55; }

/* 印刷（2026-11-22）：ブラウザが余白に入れるURL・題名・日付を出さない（@page の余白を0にし、本文の余白はページごとに付け直す）。操作のためのボタンは出さない。土地の履歴は動画を出していても写真で。「このレポートについて」は新しいページに、小さな字の2段でA4 1枚に */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff; }
  .wrap { padding: 12mm 12mm !important; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .layer-bar, #layer-legend ~ .hint, .leaflet-control-zoom, .rr-bar, .rr-lead, .rr-status, .rr-panel, .rr-video, [data-rr="vLink"] { display: none !important; }
  .rr-stage { display: block !important; }
  .notes { break-before: page; page-break-before: always; break-inside: auto; page-break-inside: auto; }
  .notes ul { font-size: 7pt; line-height: 1.4; columns: 2; column-gap: 7mm; }
  .notes li { break-inside: avoid; margin: 0 0 1.2mm; }
}
/* 市況（2026-11-22） */
.mk-text { margin: 0 0 10px; line-height: 1.85; }
.mk-list { margin: 0; padding-left: 1.2em; font-size: .85rem; color: var(--muted); }
.mk-list li { margin: 3px 0; }

/* 印刷ボタン（レポートの右上）と、印刷だけに出す部品（2026-11-22） */
.report-head { position: relative; }
.pr-btn { position: absolute; top: 16px; right: 16px; padding: 6px 14px; border: 1px solid #1b2a4a; border-radius: 999px; background: #fff; color: #1b2a4a; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.pr-btn:hover { background: #1b2a4a; color: #fff; }
.report-head h2 { padding-right: 150px; }
@media (max-width: 560px) { .pr-btn { position: static; display: block; margin: 0 0 10px auto; } .report-head h2 { padding-right: 0; } }
.print-only, .pr-contact[hidden] { display: none !important; }

/* 印刷のデザイン（2026-11-22）：紺の帯の表紙、番号つきの見出し、枠のない誌面、各ページの下に帯、最後に相談先とQR */
@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { color: #1d2433; font-size: 9.5pt; }
  .wrap { padding: 12mm 14mm 17mm !important; }
  .print-only { display: block !important; }
  .pr-contact[hidden], .pr-hide, .rr-grip, details:not([open]) { display: none !important; }

  .pr-cover { position: relative; overflow: hidden; height: 80mm; margin: -12mm -14mm 6mm; color: #fff; background: #14203a; border-bottom: 1.2mm solid #c8a24a; }
  .pr-ph { position: absolute; inset: 0; overflow: hidden; }
  .pr-ph img { position: absolute; width: 128px; height: 128px; max-width: none; }
  .pr-sh { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,24,44,.96) 0%, rgba(15,24,44,.86) 38%, rgba(15,24,44,.25) 75%, rgba(15,24,44,.1) 100%); }
  .pr-in { position: absolute; inset: 0; padding: 8mm 14mm 7mm; display: flex; flex-direction: column; }
  .pr-in p { margin: 0; }
  .pr-site { font-size: 8.5pt; font-weight: 700; letter-spacing: .2em; }
  .pr-in .pr-eyebrow { margin-top: auto; font-family: "Geist", sans-serif; font-size: 7.5pt; font-weight: 600; letter-spacing: .32em; color: #e0c37a; }
  .pr-in .pr-place { margin-top: 3mm; font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 28pt; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
  .pr-in .pr-kind { margin-top: 2mm; font-size: 10.5pt; letter-spacing: .25em; opacity: .85; }
  .pr-in .pr-sub { margin-top: 5mm; font-size: 8pt; letter-spacing: .06em; opacity: .8; }
  .pr-credit { position: absolute; right: 3mm; bottom: 2mm; font-size: 6.5pt; opacity: .8; }

  .report { counter-reset: sec; }
  .report .card { border: 0 !important; border-radius: 0; box-shadow: none; background: none; padding: 0; margin: 0 0 6mm; break-inside: avoid; page-break-inside: avoid; }
  .report .card > h2:first-child, .report .card > .card-title { counter-increment: sec; display: flex; align-items: baseline; gap: 3mm; margin: 0 0 3mm; padding: 0 0 1.5mm; border-bottom: .5mm solid #1b2a4a; color: #1b2a4a; font-size: 12pt; break-after: avoid; page-break-after: avoid; }
  .report .card > h2:first-child::before, .report .card > .card-title::before { content: counter(sec, decimal-leading-zero); color: #c8a24a; font-size: 10pt; font-weight: 700; letter-spacing: .05em; }
  .report .card h3 { color: #1b2a4a; break-after: avoid; page-break-after: avoid; }
  .report .card > h2 + *, .report .card h3 + * { break-before: avoid; page-break-before: avoid; }
  .report svg, .report .map, .report .rr-stage, .report figure, .report img, .report tr, .report li, .report .model, .report .ai-read, .report .mk-text, .report .legend, .report .layer-legend { break-inside: avoid; page-break-inside: avoid; }

  .report .report-head { margin-bottom: 8mm; }
  .report .report-head > h2, .report .report-head > .pr-btn { display: none !important; }
  .report .card.notes > h2.card-title:first-child { counter-increment: none; }
  .report .card.notes > h2.card-title:first-child::before { content: none; }
  .report .report-head .meta { display: block; margin: 0; padding: 0 0 2.5mm; background: none; border: 0; border-bottom: .2mm solid #c9cfdb; }
  .report .report-head .meta > div { display: none; }
  .report .report-head .meta > div:nth-child(4) { display: flex; gap: 4mm; align-items: baseline; }
  .report .report-head .meta dt { color: #a8862f; font-size: 7pt; font-weight: 700; letter-spacing: .15em; }
  .report .report-head .meta dd { margin: 0; color: #444; font-size: 8.5pt; }

  .report .mk-text { padding: 3mm 4mm; background: #f3f5f9; border-left: 1mm solid #c8a24a; }

  .pr-foot { display: flex !important; position: fixed; left: 14mm; right: 14mm; bottom: 7mm; justify-content: space-between; gap: 4mm; padding-top: 1.5mm; border-top: .3mm solid #1b2a4a; color: #6b7385; font-size: 7pt; }

  .pr-contact { display: grid !important; grid-template-columns: 22mm 1fr 34mm; align-items: center; gap: 5mm; position: relative; margin: 2mm 0 0; padding: 6mm; border: .5mm solid #1b2a4a; border-radius: 3mm; background: #f6f8fc; break-inside: avoid; page-break-inside: avoid; }
  .pr-contact-pr { position: absolute; top: 2mm; right: 3mm; font-size: 6.5pt; color: #999; }
  .pr-contact-photo { width: 20mm; height: 20mm; border-radius: 50%; object-fit: cover; }
  .pr-contact-lead { margin: 0 0 2mm; color: #1b2a4a; font-size: 11pt; font-weight: 700; line-height: 1.5; }
  .pr-contact-co { margin: 0 0 .5mm; color: #556; font-size: 8pt; }
  .pr-contact-who { margin: 0 0 .8mm; display: flex; align-items: baseline; gap: 3mm; }
  .pr-contact-pos { color: #556; font-size: 8.5pt; }
  .pr-contact-who strong { font-size: 13pt; letter-spacing: .08em; color: #1b2a4a; }
  .pr-contact-who > span:not(.pr-contact-pos) { display: block; color: #556; font-size: 7.5pt; }
  .pr-contact-q { margin: 0 0 2mm; color: #556; font-size: 7.5pt; }
  .pr-contact-note { margin: 0; font-size: 8pt; color: #333; }
  .pr-qr { text-align: center; font-size: 7pt; line-height: 1.4; color: #1b2a4a; }
  .pr-qr-pill { display: inline-block; margin: 0 0 2mm; padding: 1mm 4mm; border-radius: 999px; background: #06c755; color: #fff; font-size: 8pt; font-weight: 700; letter-spacing: .05em; }
  .pr-qr-img { width: 28mm; height: 28mm; margin: 0 auto 1.5mm; padding: 1.5mm; background: #fff; }
  .pr-qr-img svg { width: 100%; height: 100%; display: block; }
  /* ページ割り（2026-11-22）：1枚目＝表紙とAI査定、2枚目＝参考成約事例・周辺相場・市況、3枚目＝周辺の地価、4枚目＝人口と地図、5枚目＝土地の履歴、最後＝相談先とこのレポートについて。各ページの頭が必ず見出しになるようにそろえる */
  .report .pr-page, .report .pr-contact { break-before: page; page-break-before: always; }
  .report .pr-contact { margin-top: 0; }
  .report .pr-contact:not([hidden]) + .card.notes { break-before: auto; page-break-before: auto; margin-top: 8mm; }
  .report .table-wrap table { font-size: 8.5pt; }
  .report .table-wrap th, .report .table-wrap td { padding-top: 1.1mm; padding-bottom: 1.1mm; line-height: 1.4; }
  .report .mk-text { font-size: 9.5pt; line-height: 1.75; }
  .report .mk-list { font-size: 7.5pt; line-height: 1.55; }
  .report .mk-list li { margin: .6mm 0; }
  .report #landprice > ol { columns: 3; column-gap: 5mm; font-size: 8pt; }
  .report #landprice > ol li { break-inside: avoid; page-break-inside: avoid; }
  .report .lh-list { columns: 2; column-gap: 6mm; font-size: 8pt; }
  .report .lh-list li { break-inside: avoid; }
  .report #landprice .hint, .report #rireki .rr-note, .report #rireki ul, .report #rireki p, .report #rireki-pin-note { font-size: 7pt; line-height: 1.5; }
  .report #r-comps tr:nth-child(n+9) { display: none; }
  .report .pr-comps-note { margin: 1.5mm 0 0; font-size: 7pt; color: #6b7385; }
  .report .pr-comps-note[hidden] { display: none !important; }
  .report .mk-text { font-size: 9pt; }
  .report #landprice > ol li, .report #landprice > ol li * { font-size: 7.5pt !important; line-height: 1.5; }
  .report #landprice > ol li > *:first-child, .report #landprice > ol li strong, .report #landprice > ol li b { font-size: 8.5pt !important; }
  .report .lh-list li, .report .lh-list li * { font-size: 7.5pt !important; line-height: 1.5; }
}