/* 防犯くらべ */
:root {
  --paper: #F5F7F9; --paper-2: #EBEFF3; --surface: #FFFFFF; --ink: #17212B; --body: #364352; --sub: #5A6676; --muted: #8893A0;
  --line: #DFE4EA; --line-2: #CCD4DD;
  --accent: #24598C; --accent-2: #1A4670; --accent-soft: #E4EDF6;
  --amber: #B06F12; --amber-soft: #FBF1E1;
  --ok: #24724A; --ok-soft: #E2F2E9; --warn: #93461C; --warn-bg: #FFF4E8; --warn-line: #EBC9A5;
  --head: 'BIZ UDPGothic', system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --sans: system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
.note { font-size: 12.5px; color: var(--sub); }
.small { font-size: 13px; color: var(--sub); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo-name { font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: .06em; }
.logo-sub { display: block; font-size: 10.5px; color: var(--sub); letter-spacing: .02em; line-height: 1.3; font-weight: 400; }
.ad-flag { flex-shrink: 0; font-size: 12px; line-height: 1.5; color: var(--sub); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.ad-flag:hover { color: var(--ink); border-color: var(--sub); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav a { flex-shrink: 0; padding: 8px 10px 9px; font-size: 14px; color: var(--body); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
@media (max-width: 380px) { .logo-name { font-size: 18px; } .logo-sub { display: none; } }

/* 見出し */
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.sec { padding-top: 36px; }
.sec-title { font-family: var(--head); font-size: 21px; font-weight: 700; line-height: 1.5; margin: 2px 0 14px; }
.sec-lead { color: var(--body); margin: -6px 0 16px; font-size: 15px; }
.crumb { font-size: 12.5px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 8px; }
.crumb a { color: var(--sub); }
.page-head { padding-top: 4px; }
.page-title { font-family: var(--head); font-weight: 700; font-size: 25px; line-height: 1.5; margin: 4px 0 10px; word-break: auto-phrase; text-wrap: pretty; }
.page-title small { display: block; font-size: 15px; color: var(--sub); margin-top: 4px; font-weight: 400; }
.lead { color: var(--body); font-size: 15.5px; margin: 0 0 14px; }
.checked { display: inline-block; font-size: 12.5px; color: var(--sub); margin: 0 0 16px; }

/* ヒーロー */
.hero { padding-top: 28px; }
.hero-title { font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1.55; margin: 6px 0 12px; }
.hero-lead { color: var(--body); font-size: 15px; margin: 0; }

/* カード・一覧 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-card { display: grid; gap: 2px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.tool-card:hover { border-color: var(--accent); color: var(--ink); }
.tool-card .ico { color: var(--accent); margin-bottom: 4px; }
.tool-name { font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.tool-desc { font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 700; }
.list a::after { content: '›'; color: var(--muted); font-size: 20px; line-height: 1; font-weight: 400; }
.list small { display: block; color: var(--sub); font-size: 12.5px; font-weight: 400; }
.list .st { flex-shrink: 0; margin-left: auto; }

/* 受付の状態 */
.st { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; white-space: nowrap; line-height: 1.6; vertical-align: 1px; }
.st-open { background: var(--ok-soft); color: var(--ok); }
.st-planned { background: var(--accent-soft); color: var(--accent-2); }
.st-closed { background: var(--paper-2); color: var(--sub); }
.st-unknown { background: var(--amber-soft); color: var(--amber); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 0 6px; margin: 0 4px 2px 0; line-height: 1.7; background: var(--paper-2); color: var(--body); white-space: nowrap; }
.tag.pre { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.tag.lot { background: var(--amber-soft); color: var(--amber); }

/* 区市町村ページの要約 */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.summary-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--paper)); }
.summary-title { font-weight: 700; font-size: 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 8.5em 1fr; }
.summary dt, .summary dd { padding: 10px 16px; border-bottom: 1px solid var(--line); margin: 0; font-size: 14.5px; line-height: 1.7; }
.summary dt { font-weight: 700; color: var(--body); background: var(--paper); }
.summary dl > :nth-last-child(-n+2) { border-bottom: 0; }
.summary .big { font-size: 17px; font-weight: 700; color: var(--ink); }
@media (max-width: 480px) { .summary dl { grid-template-columns: 1fr; } .summary dt { border-bottom: 0; padding-bottom: 2px; background: none; color: var(--sub); font-size: 12.5px; } .summary dd { padding-top: 0; } }
.alert { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.75; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.alert b { color: var(--warn); }
.alert.info { background: var(--accent-soft); border-color: #C6D7E8; color: var(--accent-2); }
.alert.info b { color: var(--accent-2); }
.budget { margin: 10px 0 0; }
.budget-bar { height: 10px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.budget-bar i { display: block; height: 100%; background: var(--amber); border-radius: 6px; }
.budget small { font-size: 12.5px; color: var(--sub); }

/* フォーム・計算 */
.calc { display: grid; gap: 16px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .field > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.hint { font-size: 12.5px; color: var(--sub); margin: 6px 0 0; line-height: 1.7; }
.input-unit { display: flex; align-items: center; gap: 8px; max-width: 280px; }
.input-unit input { flex: 1; min-width: 0; }
.input-unit span { font-size: 14px; color: var(--sub); flex-shrink: 0; }
input[type="text"], input[type="tel"], select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 16px; }
select { appearance: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); margin: 0; accent-color: var(--accent); width: 17px; height: 17px; }
.choice span { display: block; padding: 9px 14px 9px 38px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choices.col { display: grid; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px; font-weight: 700; font-size: 15.5px; cursor: pointer; text-decoration: none; text-align: center; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-2); color: #fff; }
.btn-line { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--accent); color: var(--ink); }
.btn.wide { width: 100%; }
.result { margin-top: 14px; background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 18px; }
.res-head { display: grid; gap: 2px; text-align: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); margin-bottom: 10px; }
.res-label { font-size: 13.5px; font-weight: 700; color: var(--accent-2); }
.res-big { font-size: 34px; line-height: 1.3; font-variant-numeric: tabular-nums; font-weight: 700; }
.res-big small { font-size: 17px; margin-left: 2px; }
.res-rows { margin: 0; display: grid; }
.res-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.res-rows > div:last-child { border-bottom: 0; }
.res-rows dt { font-size: 14px; color: var(--body); }
.res-rows dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-note { font-size: 13.5px; color: var(--body); margin: 10px 0 0; line-height: 1.75; }

/* 総額のランキング（道具の結果） */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: r; }
.rank li { counter-increment: r; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 50px; position: relative; }
.rank li::before { content: counter(r); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); color: var(--body); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.rank .r-name { font-weight: 700; font-size: 15px; line-height: 1.5; }
.rank .r-total { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank .r-total small { font-size: 13px; font-weight: 400; color: var(--sub); margin-left: 6px; }
.rank .r-sub { font-size: 13px; color: var(--sub); line-height: 1.65; }
.rank .r-off { font-size: 12.5px; color: var(--amber); }
.rank-empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; color: var(--sub); font-size: 14px; }

/* 表 */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap thead th { background: var(--paper-2); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.table-wrap tbody th { font-weight: 700; white-space: nowrap; }
.table-wrap small { display: block; font-size: 11.5px; color: var(--sub); font-weight: 400; }
.table-wrap td.num, .table-wrap th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.wide { min-width: 640px; }
.table-note { font-size: 12.5px; color: var(--sub); margin: 8px 0 0; }

/* 本文 */
.toc { margin-top: 24px; }
.toc b { font-size: 13px; color: var(--sub); }
.toc ol { margin: 4px 0 0; padding: 12px 16px 12px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; }
.prose h3 { font-size: 16px; margin: 18px 0 8px; }
.prose p { color: var(--body); margin: 0 0 12px; }
.prose ul, .prose ol { color: var(--body); padding-left: 1.3em; margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.items { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.items li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; line-height: 1.6; }
.excl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.excl li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--body); }
.excl li::before { content: '×'; position: absolute; left: 2px; top: 0; color: var(--warn); font-weight: 700; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 14.5px; color: var(--body); line-height: 1.75; }
.points li b { color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px 11px 50px; font-size: 14.5px; color: var(--body); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.steps b { color: var(--ink); }
.near { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; margin: 0; padding: 0; font-size: 14px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.faq details + details { margin-top: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--body); font-size: 15px; }

/* 広告（PR） */
.pr { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; }
.pr + .pr { margin-top: 12px; }
.pr-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--sub); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; background: #fff; }
.pr-title { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.55; margin: 6px 0 4px; }
.pr p { margin: 0 0 10px; font-size: 14px; color: var(--body); }
.shop-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.shop-links a small { font-weight: 400; color: var(--sub); font-size: 12px; }
.shop-links a:hover { border-color: var(--accent); }
.prods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .prods { grid-template-columns: repeat(4, minmax(0, 1fr)); } .prods.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .prods.cols-2, .prods.cols-1 { grid-template-columns: repeat(2, minmax(0, 220px)); } }
.prod { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prod-main { display: flex; flex-direction: column; gap: 3px; padding: 0 10px 8px; text-decoration: none; color: var(--ink); flex: 1; }
.prod-main:hover { color: var(--ink); }
.prod-main:hover .prod-title { text-decoration: underline; }
.prod-img { display: block; margin: 0 -10px 6px; background: #fff; aspect-ratio: 1 / 1; }
.prod-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.prod-label { font-size: 11px; font-weight: 700; color: var(--accent); }
.prod-title { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-price { font-weight: 700; font-size: 15px; margin-top: 2px; }
.prod-rate { font-size: 11px; color: var(--sub); }
.prod-rate span { color: #B97A12; letter-spacing: -1px; }
.prod-more { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-align: center; padding: 8px 6px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; background: var(--surface); }
.prods + .shop-links { margin-top: 10px; }
.pr .pr-note { margin: 10px 0 0; font-size: 12px; color: var(--sub); }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc li { display: grid; gap: 4px; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.svc-label { font-size: 12px; font-weight: 700; color: var(--sub); }
.a8 { font-weight: 700; font-size: 15px; line-height: 1.6; }

/* 運営者情報など */
.legal dl { display: grid; grid-template-columns: 7em 1fr; gap: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 24px; }
.legal dt { font-weight: 700; } .legal dd { margin: 0; overflow-wrap: anywhere; }
.legal h2 { font-size: 19px; margin-top: 26px; }
.legal ul { padding-left: 1.3em; color: var(--body); }

/* フッター */
.site-footer { margin-top: 56px; padding: 30px 0 40px; border-top: 1px solid var(--line); background: var(--paper-2); text-align: center; }
.footer-logo { font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.footer-tag { font-size: 12.5px; color: var(--sub); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; font-size: 13.5px; }
.footer-nav a { color: var(--body); }
.footer-nav.sub { margin-top: 14px; font-size: 12.5px; }
.footer-nav.sub a { color: var(--sub); }
.site-footer .note { max-width: 36em; margin: 10px auto 0; }

@media (min-width: 720px) {
  .hero-title { font-size: 33px; }
  .page-title { font-size: 28px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .card, .result { padding: 22px 24px; }
}
@media print {
  .site-header, .site-footer, .crumb, .pr { display: none !important; }
  body { background: #fff; }
}
