/* 町別の相場ページ（/town/）専用。基本の見た目は style.css（.page-hero・.section・.home-faq・.btn など）を使う。
   scripts/build_town_pages.py が出力するページから読み込む。 */
.town-container { max-width: 880px; }
.town-lead { margin-bottom: 12px; }
.town-source { font-size: 0.82rem; color: var(--text-light); margin-bottom: 28px; }
.town-h2 { font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin: 32px 0 14px; line-height: 1.5; }
.town-container > .town-h2:first-child, .town-container > .section-label + .town-h2 { margin-top: 0; }
.town-text { color: var(--text-muted); line-height: 1.9; margin-bottom: 20px; }
.town-fine { font-size: 0.82rem; color: var(--text-light); line-height: 1.8; margin-top: 12px; }
.town-fine a { text-decoration: underline; }

.town-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.town-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.92rem; }
.town-table th, .town-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.town-table thead th { background: var(--beige); color: var(--text); font-weight: 700; white-space: nowrap; }
.town-table tbody th { background: var(--accent-light); font-weight: 700; white-space: nowrap; }
.town-table strong { color: var(--primary-dark); font-size: 1.02rem; }
.town-table .town-short { color: var(--text-light); }
.town-table .town-note-cell { font-size: 0.82rem; color: var(--text-muted); min-width: 14em; }
.town-table-compact td { text-align: right; }
.town-table-compact th[scope="col"]:not(:first-child) { text-align: right; }
.bg-beige .town-table tbody th { background: var(--beige-dark); }

.town-cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.town-cta-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.town-cta-card h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--secondary); }
.town-cta-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; }
.town-cta-actions { margin: 14px 0 4px; }
.town-cta-actions .btn { width: 100%; text-align: center; justify-content: center; }
.town-chips-label { margin-top: 14px; font-size: 0.8rem !important; color: var(--text-light) !important; }
.town-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.town-chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary-dark); font-size: 0.86rem; font-weight: 700; background: var(--primary-light); min-height: 40px; line-height: 22px; }
.town-chips a:hover { background: var(--white); }
.town-area-link { margin-top: 18px; font-size: 0.9rem; color: var(--text-muted); }
.town-area-link a { text-decoration: underline; color: var(--primary-dark); }

.town-neighbors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.town-neighbors li a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-weight: 700; font-size: 0.92rem; min-height: 44px; }
.town-neighbors li a:hover { border-color: var(--primary); }
.town-neighbors li { position: relative; }
.town-neighbors li span { position: absolute; right: 14px; top: 12px; font-size: 0.78rem; color: var(--text-light); font-weight: 400; }
.town-neighbors li a { padding-right: 56px; }
.town-more { margin-top: 16px; font-weight: 700; }
.town-more a { color: var(--primary-dark); text-decoration: underline; }


.town-watch { background: #EAF7EE; border: 1px solid #BFE5CB; border-radius: var(--radius-md); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.town-watch .town-watch-title { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin: 0 0 12px; line-height: 1.55; }
.town-watch .town-watch-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; margin: 0 0 20px; }
.town-watch .btn { display: flex; width: 100%; max-width: 360px; min-height: 52px; text-align: center; justify-content: center; align-items: center; }
@media (max-width: 720px) { .town-watch { padding: 22px 18px; } .town-watch .btn { max-width: none; } }

.town-disclaimer-sec { padding-top: 0; }
.town-disclaimer { background: var(--accent-light); border-radius: var(--radius-md); padding: 20px 22px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.85; }
.town-disclaimer h2 { font-size: 0.95rem; color: var(--secondary); margin-bottom: 8px; }
.town-disclaimer ul { padding-left: 1.2em; margin-bottom: 10px; }
.town-disclaimer li { margin-bottom: 4px; }
.town-disclaimer a { text-decoration: underline; word-break: break-all; }

@media (max-width: 720px) {
  .town-cta-grid { grid-template-columns: 1fr; }
  .town-neighbors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .town-h2 { font-size: 1.12rem; }
  .town-table { font-size: 0.85rem; }
  .town-table th, .town-table td { padding: 8px 9px; }
}
@media (max-width: 420px) {
  .town-neighbors { grid-template-columns: 1fr; }
}

/* スマホ：画面下に固定された3ボタン（匿名で査定／電話／LINE）が、ページ末尾の免責・フッターに重ならないよう余白を足す */
@media (max-width: 768px) {
  body:has(.town-container) { padding-bottom: 116px; }
  body:has(.town-container) .scroll-top-btn { bottom: 96px; }
}
