/* まちの防犯マップ（bouhan.app）試作 — やわらかい角丸・空色と緑 */
:root {
  --sky: #2b9fd9;
  --sky-d: #1677b0;
  --sky-l: #e6f4fb;
  --green: #35b26b;
  --green-l: #e7f6ee;
  --yellow: #ffc83d;
  --yellow-l: #fff6dc;
  --pink: #f27a8a;
  --ink: #23323f;
  --ink-2: #5a6b78;
  --line: #dbe7ee;
  --bg: #f2f8fb;
  --card: #fff;
  --radius: 22px;
  --gap: 24px; /* 下層ページのブロックの間はすべてこれにそろえる */
  --shadow: 0 6px 24px rgba(30, 90, 130, 0.08);
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; }
a { color: var(--sky-d); }
img, svg { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー：浮いた白い角丸のバー（上下の余白を同じにする） ---------- */
.hdr { position: sticky; top: 0; z-index: 20; padding: 12px 16px 0; }
.hdr-in { max-width: 1160px; margin: 0 auto; height: 64px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--round); font-weight: 900; }
.logo-mark { width: 38px; height: 38px; flex: none; display: block; }
.logo span { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.logo small { display: block; font-size: 11px; line-height: 1; color: var(--sky-d); font-weight: 700; letter-spacing: .04em; }
.logo b { display: block; font-size: 19px; line-height: 1.1; white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; padding: 0 14px; height: 44px; display: flex; align-items: center; border-radius: 999px; }
.nav a:hover { background: var(--sky-l); color: var(--sky-d); }
.cta { text-decoration: none; background: var(--sky); color: #fff; font-weight: 700; font-size: 14px; padding: 0 18px; height: 44px; display: flex; align-items: center; border-radius: 999px; white-space: nowrap; }
.cta:hover { background: var(--sky-d); }
/* ハンバーガー：太めの3本線 */
.burger { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--sky-l); display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.burger i { display: block; width: 22px; height: 4px; border-radius: 4px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 860px) { .nav { display: none; } .cta { margin-left: auto; } }
@media (max-width: 420px) { .hdr { padding: 10px 10px 0; } .hdr-in { height: 58px; padding: 0 8px 0 14px; gap: 6px; } .logo { gap: 8px; } .logo b { font-size: 16px; } .logo-mark { width: 32px; height: 32px; } .cta { padding: 0 12px; font-size: 13px; height: 40px; } .burger { width: 40px; height: 40px; } }
/* 幅の狭い機種では「町名で検索」を「検索」にする */
@media (max-width: 359px) { .cta .long { display: none; } .logo b { font-size: 15px; } }

/* メニュー（ハンバーガーで開く） */
.drawer { max-width: 1160px; margin: 10px auto 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); max-height: calc(100vh - 100px); overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer-in { padding: 22px 24px; }
.dr-hd { font-family: var(--round); font-weight: 900; margin: 0 0 8px; font-size: 15px; color: var(--sky-d); }
.dr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 700; }
@media (max-width: 600px) { .dr-cols { grid-template-columns: 1fr; } }

/* 都道府県のリンクの並び（メニューとフッターで共通） */
.rg { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rg:first-of-type { border-top: 0; }
.rg > b { font-weight: 700; color: var(--ink-2); }
.rg > span { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rg a { color: var(--ink); text-decoration: none; }
.rg a:hover { color: var(--sky-d); text-decoration: underline; }
.rg .off { color: #a8b4bd; }

/* ---------- トップのヒーロー：イラストを上まで引き上げ、入口の3つのボタンを1画面目に収める ---------- */
.hero { position: relative; overflow: hidden; margin-top: -76px; padding: 104px 0 0; background: linear-gradient(180deg, #d8effa 0%, #eef8fd 22%, #fff 40%, #fff 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.hero .catch { font-family: var(--round); font-weight: 700; color: var(--sky-d); font-size: clamp(15px, 1.8vw, 19px); margin: 0; }
.hero h1 { font-family: var(--round); font-weight: 900; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3; margin: 2px 0 14px; letter-spacing: .02em; }
.nw { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--sky); background: linear-gradient(transparent 68%, var(--yellow) 68%); }
.hero-stats { background: rgba(255, 255, 255, .94); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.hs-title { margin: 0 0 10px; font-family: var(--round); font-weight: 900; color: var(--sky-d); font-size: 14px; line-height: 1.4; }
.hs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hs-grid div { background: var(--sky-l); border-radius: 14px; padding: 8px 12px; }
.hs-grid b { display: block; font-family: var(--round); font-size: 26px; line-height: 1.3; color: var(--ink); }
.hs-grid b small { font-size: 13px; margin-left: 2px; }
.hs-grid span { display: block; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
/* イラストは空（白）の部分を見出しの下にもぐらせる。高さは画面の高さに合わせ、はみ出す分は上（空）から切る */
.hero-ill { position: relative; z-index: 1; display: block; width: 100%; margin-top: -70px; height: min(33.35vw, max(240px, calc(100vh - 380px))); object-fit: cover; object-position: 50% 100%; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-ill { margin-top: -20px; height: auto; }
}
@media (max-width: 760px) {
  .hero-stats { padding: 10px; border-radius: 16px; }
  .hs-title { display: none; }
  .hs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .hs-grid div { padding: 6px 4px; text-align: center; border-radius: 10px; }
  .hs-grid b { font-size: 18px; }
  .hs-grid b small { font-size: 10px; }
  .hs-grid span { font-size: 10px; line-height: 1.4; }
  .hero-ill { height: 220px; object-position: 45% 100%; margin-top: 0; }
}

/* 検索 */
.search { display: flex; width: 100%; max-width: 560px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 5px; border: 3px solid var(--sky); }
.search input { flex: 1 1 0; min-width: 0; width: 100%; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 6px 14px; background: transparent; -webkit-appearance: none; appearance: none; }
.search button { flex: none; border: 0; background: var(--sky); color: #fff; font: inherit; font-weight: 700; border-radius: 999px; padding: 6px 20px; cursor: pointer; white-space: nowrap; }
.search-results { max-width: 560px; margin-top: 8px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: none; position: relative; z-index: 5; }
.search-results a { display: block; padding: 10px 18px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.search-results a:first-child { border-top: 0; }
.search-results a:hover { background: var(--sky-l); }
.search-results small { color: var(--ink-2); margin-left: 8px; }
/* ニュースのヘッドライン（PCは見出しの右、スマホは検索窓の下） */
.hero-news { position: relative; z-index: 4; }
.hero-news .headlines { max-width: none; margin-top: 0; }
.headlines { position: relative; z-index: 4; max-width: 560px; margin-top: 12px; background: rgba(255, 255, 255, .95); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 14px 8px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: start; }
.hl-label { grid-row: 1 / span 2; margin-top: 6px; background: var(--pink); color: #fff; font-family: var(--round); font-weight: 900; font-size: 11px; letter-spacing: .08em; border-radius: 999px; padding: 2px 8px; }
.headlines ul { list-style: none; margin: 0; padding: 0; }
.headlines li a { display: flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; overflow: hidden; border-top: 1px dashed var(--line); }
.headlines li:first-child a { border-top: 0; }
.headlines li a:hover .hl-p { text-decoration: underline; color: var(--sky-d); }
.headlines b { font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.headlines .chip { margin: 0; flex: none; }
.hl-p { overflow: hidden; text-overflow: ellipsis; }
.hl-more { grid-column: 2; justify-self: end; font-size: 12px; font-weight: 700; padding: 2px 0 0; }
/* 表示した最初だけのパタパタ（発車標ふう）。行が上から順にめくれて出て、文字が入れ替わってから止まる（site/app.js） */
.flap-row { animation: flap-row .6s cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: 50% 0; }
@keyframes flap-row { from { opacity: 0; transform: perspective(400px) rotateX(-80deg); } to { opacity: 1; transform: none; } }
.fl { display: inline-block; min-width: .6em; text-align: center; }
.fl.t1, .fl.t2 { background: linear-gradient(#e9f2f8 0 48%, #c9dbe7 48% 52%, #dde9f2 52%); color: var(--sky-d); border-radius: 2px; }
.fl.t1 { animation: flap-a .12s ease-out; }
.fl.t2 { animation: flap-b .12s ease-out; }
@keyframes flap-a { from { transform: scaleY(.3); } }
@keyframes flap-b { from { transform: scaleY(.3); } }
.fl.done { animation: flap-done .18s ease-out; }
@keyframes flap-done { from { transform: scaleY(.4); background: #dde9f2; } }
/* スマホでは1件を2行に（日時と種別／町名） */
@media (max-width: 600px) {
  .headlines { grid-template-columns: minmax(0, 1fr); padding: 8px 12px; }
  .hl-label { grid-row: auto; justify-self: start; margin: 0 0 2px; }
  .headlines li a { flex-wrap: wrap; white-space: normal; row-gap: 0; padding: 5px 0; }
  .hl-p { flex-basis: 100%; font-size: 13px; }
  .hl-more { grid-column: 1; }
}
.hint { font-size: 13px; color: var(--ink-2); margin: 6px 0 0 14px; }

/* 入口の3つのボタン */
.doors { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: -48px auto 0; }
.door { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: var(--ink); border: 3px solid transparent; transition: transform .15s, border-color .15s; }
.door:hover { transform: translateY(-3px); border-color: var(--sky); }
.door .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--round); font-weight: 900; font-size: 23px; color: #fff; }
.door b { display: block; font-family: var(--round); font-size: 18px; line-height: 1.4; }
.door span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.door .arr { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
@media (max-width: 860px) { .doors { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: -24px; } }

/* ---------- セクション（トップ） ---------- */
.sec { margin: 72px 0; }
.sec-hd { text-align: center; margin-bottom: 28px; }
.sec-hd .en { display: inline-block; font-family: var(--round); font-weight: 700; color: var(--sky); letter-spacing: .12em; font-size: 14px; position: relative; padding: 0 18px; }
.sec-hd .en::before, .sec-hd .en::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--yellow); }
.sec-hd .en::before { left: 0; } .sec-hd .en::after { right: 0; }
.sec-hd h2 { font-family: var(--round); font-weight: 900; font-size: clamp(24px, 3.4vw, 32px); margin: 4px 0 6px; line-height: 1.4; }
.sec-hd p { color: var(--ink-2); margin: 0; }

/* 数字の帯（トップの ABOUT） */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border-radius: 18px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--round); font-size: 28px; color: var(--sky-d); line-height: 1.3; }
.stat span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; min-width: 0; }
.card-hd { margin-bottom: 14px; }
.card-hd h2 { font-family: var(--round); font-size: 20px; line-height: 1.45; margin: 0; }
.card-hd p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.card h3 { font-family: var(--round); font-size: 20px; margin: 0 0 12px; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .card { padding: 18px; } }

/* 都道府県の一覧（トップ） */
.region { margin-bottom: 14px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.region h4 { margin: 6px 0 0; font-family: var(--round); color: var(--ink-2); font-size: 15px; }
.prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.pref { text-decoration: none; background: var(--sky-l); color: var(--sky-d); font-weight: 700; border-radius: 999px; padding: 6px 16px; font-size: 15px; }
.pref:hover { background: var(--sky); color: #fff; }
.pref.off { background: #eef1f3; color: #9aa7b1; cursor: default; }
@media (max-width: 600px) { .region { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* 手口カード */
.teguchi { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tg { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 100px; }
.card .tg { box-shadow: none; border: 1px solid var(--line); }
.tg-hd { display: flex; align-items: center; gap: 12px; }
.badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--round); font-weight: 900; font-size: 20px; flex: none; }
.tg-hd b { font-family: var(--round); font-size: 18px; }
.tg .num { font-family: var(--round); font-size: 26px; font-weight: 900; color: var(--ink); }
.tg .num small { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.tg p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.tip { background: var(--yellow-l); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin: 12px 0 0; }
.tg .tip { margin: 4px 0 0; }

/* グラフ */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--sans); fill: var(--ink-2); font-size: 12px; }
.chart .v { fill: var(--ink); font-weight: 700; }
.hours .hb { cursor: pointer; }
.hours .hb.on rect:not(.hit) { stroke: var(--ink); stroke-width: 2; }
.chart-tip { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); min-height: 1.8em; }
.chart-tip b { color: var(--ink); }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 14px; margin: 6px 0; }
.hbar .bar { height: 14px; border-radius: 999px; background: var(--sky-l); overflow: hidden; }
.hbar .bar i { display: block; height: 100%; border-radius: 999px; }
.hbar .n { text-align: right; font-weight: 700; }
@media (max-width: 420px) { .hbar { grid-template-columns: 96px minmax(0, 1fr) 52px; font-size: 13px; } }

/* ---------- 下層ページ ---------- */
.page-hd { margin-top: -76px; padding: 92px 0 20px; background: linear-gradient(180deg, #d8effa 0%, var(--bg) 100%); }
/* 見出しの右のイラスト */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.has-ill .ph-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; }
.ph-ill { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; object-position: right center; }
.has-ill { padding-bottom: 20px; }
@media (max-width: 760px) { .has-ill .ph-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; } .ph-ill { max-height: 150px; margin: 6px 0 -8px auto; width: auto; max-width: 80%; } }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs a { color: var(--ink-2); }
.page-hd h1 { font-family: var(--round); font-weight: 900; font-size: clamp(24px, 3.8vw, 36px); line-height: 1.35; margin: 0; }
.lead { color: var(--ink-2); margin: 6px 0 0; }
.lead:empty { display: none; }
.stack > * + * { margin-top: var(--gap); }
/* 見出しの下の数字の帯（以前の大きなカード3枚を、見出しの列にまとめた） */
.ph-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ph-stat { background: #fff; border-radius: 14px; padding: 8px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.ph-stat > span:first-child { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-stat b { font-family: var(--round); font-size: 22px; line-height: 1.3; }
.ph-stat b small { font-size: 13px; color: var(--ink-2); }
.ph-stat .up { color: #d9485e; font-size: 12px; font-weight: 700; }
.ph-stat .down { color: #1f8a4f; font-size: 12px; font-weight: 700; }
.ph-stat .same { color: var(--ink-2); font-size: 12px; }
.tsearch { margin-top: 12px; max-width: none; }
.ph-text .search-results { max-width: none; position: absolute; left: 0; right: 0; }
.ph-text { position: relative; }
/* 見出しの下の目次（カードへ飛ぶ） */
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.toc a { font-size: 12px; font-weight: 700; color: var(--sky-d); background: #fff; border: 1px solid #cfe6f3; border-radius: 999px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.toc a:hover { background: var(--sky-l); }
.stack > .card[id], .grid2 > .card[id] { scroll-margin-top: 90px; }
/* 町・字の範囲の地図 */
.town-map { height: 340px; border-radius: 14px; overflow: hidden; background: var(--sky-l); position: relative; z-index: 0; }
@media (max-width: 600px) { .town-map { height: 260px; } }
/* 人口・世帯数あたりの件数 */
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rate { background: var(--sky-l); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; }
.rate span { font-size: 12px; color: var(--ink-2); }
.rate b { font-family: var(--round); font-size: 26px; line-height: 1.3; }
.rate b small { font-size: 13px; color: var(--ink-2); margin-left: 2px; }
.rate em { font-style: normal; font-size: 12px; color: var(--ink-2); }
@media (max-width: 600px) { .ph-stats { gap: 6px; margin-top: 10px; } .ph-stat { padding: 6px 8px; border-radius: 12px; } .ph-stat > span:first-child { font-size: 11px; } .ph-stat b { font-size: 17px; } .ph-stat .up, .ph-stat .down, .ph-stat .same { font-size: 11px; } .page-hd .ph-ill { max-height: 110px; margin-top: 8px; } }
/* すべての町・字（五十音の行ごと） */
.kana-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.kana-nav a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 999px; background: var(--sky-l); color: var(--sky-d); font-weight: 700; text-decoration: none; }
.kana-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); scroll-margin-top: 90px; }
.kana { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: #fff; font-family: var(--round); }

/* 件数の多い順の一覧 */
ol.rank { list-style: none; margin: 0; padding: 0; }
ol.rank li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1.4fr) 150px minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); border-radius: 10px; }
ol.rank li:first-child { border-top: 0; }
/* 行のどこを押しても、その地域のページへ（名前のリンクを行いっぱいに広げる） */
ol.rank .nm::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
ol.rank li:hover { background: #f3f9fd; }
ol.rank li:hover .nm { color: var(--sky-d); text-decoration: underline; }
ol.rank .rk { width: 30px; height: 30px; border-radius: 50%; background: var(--sky-l); color: var(--sky-d); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
ol.rank li:nth-child(-n+3) .rk { background: var(--sky); color: #fff; }
ol.rank .nm { font-weight: 700; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.rank .nm:hover { color: var(--sky-d); text-decoration: underline; }
ol.rank .ct { white-space: nowrap; font-size: 14px; color: var(--ink-2); }
ol.rank .ct b { font-family: var(--round); font-size: 20px; color: var(--ink); margin-right: 2px; }
ol.rank .bar { height: 10px; border-radius: 999px; background: var(--sky-l); overflow: hidden; }
ol.rank .bar i { display: block; height: 100%; background: var(--sky); border-radius: 999px; }
ol.rank .tt { font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 4px; background: #eef1f3; color: var(--ink-2); vertical-align: 2px; }
.chip.up { background: #fde8eb; color: #d9485e; }
.chip.down { background: var(--green-l); color: #1f8a4f; }
@media (max-width: 760px) {
  ol.rank li { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "rk nm ct" "rk bar tt"; gap: 4px 10px; }
  ol.rank .rk { grid-area: rk; } ol.rank .nm { grid-area: nm; white-space: normal; line-height: 1.5; } ol.rank .ct { grid-area: ct; text-align: right; }
  ol.rank .bar { grid-area: bar; } ol.rank .tt { grid-area: tt; }
}

/* 丁目ごとの件数 */
table.chome { border-collapse: collapse; width: 100%; max-width: 480px; font-size: 14px; }
table.chome th, table.chome td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; }
table.chome th:first-child, table.chome td:first-child { text-align: left; }
table.chome th { font-size: 12px; color: var(--ink-2); background: var(--sky-l); }
/* 不審者情報の一覧 */
ul.fs { list-style: none; margin: 16px 0 0; padding: 0; }
ul.fs li { border-top: 1px solid var(--line); padding: 10px 2px; }
ul.fs li:first-child { border-top: 0; }
.fs-d { font-weight: 700; font-size: 14px; margin-right: 6px; }
.fs-p { font-size: 13px; margin-left: 6px; }
ul.fs p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.grid2.inner { gap: 20px; }
/* 安全に関する施設 */
.pois { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.poi { display: flex; align-items: center; gap: 8px; background: var(--sky-l); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.poi b { margin-left: auto; font-family: var(--round); font-size: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
h3.sub { font-family: var(--round); font-size: 16px; margin: 20px 0 8px; }
.plist { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 24px; font-size: 14px; }
.plist li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line); }
.plist small { display: block; color: var(--ink-2); font-size: 12px; }
.pill { display: inline-block; border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 700; background: var(--sky-l); color: var(--sky-d); margin-right: 6px; }
.ptown { display: grid; grid-template-columns: 12px 120px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ptown:first-of-type { border-top: 0; }
.src { font-size: 12px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.7; }
.src a { color: var(--ink-2); }
@media (max-width: 600px) { .ptown { grid-template-columns: 12px minmax(0, 1fr); } .ptown span:last-child { grid-column: 2; } }
.towns { columns: 4 180px; column-gap: 20px; font-size: 14px; }
.towns a { display: block; text-decoration: none; padding: 3px 0; break-inside: avoid; }
.towns small { color: var(--ink-2); }
.more { margin: 14px 0 0; font-weight: 700; }
.note { font-size: 13px; color: var(--ink-2); background: #fff; border-radius: 16px; padding: 14px 18px; border: 1px dashed var(--line); margin-bottom: 0; }
.prose p { margin: 0 0 10px; } .prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0; padding-left: 1.2em; }

/* ---------- フッター ---------- */
/* フッター：上は白でイラスト（site/ill/footer.webp、下のふちは #e3f3ea）、その下のメニューはイラストの地面の色につなげる */
.ftr { margin-top: 90px; background: #fff; border-radius: 40px 40px 0 0; box-shadow: 0 -6px 24px rgba(30, 90, 130, 0.05); overflow: hidden; }
.ftr-ill { display: block; width: 100%; height: auto; margin-top: -2%; }
.ftr-body { background: #e3f3ea; }
@media (max-width: 760px) { .ftr-ill { height: 150px; object-fit: cover; object-position: 30% 100%; margin-top: 0; } }
.ftr-grid { display: grid; grid-template-columns: 1.1fr 1.7fr .8fr .9fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; font-size: 14px; }
.ftr h5 { font-family: var(--round); font-size: 15px; margin: 0 0 10px; color: var(--sky-d); }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { padding: 3px 0; }
.ftr li a { color: var(--ink); text-decoration: none; }
.ftr li a:hover { color: var(--sky-d); text-decoration: underline; }
.ftr-brand p { color: var(--ink-2); margin: 12px 0 0; line-height: 1.7; }
.ftr-meta { font-size: 12px; }
.ftr .rg { grid-template-columns: 84px minmax(0, 1fr); font-size: 13px; }
.ftr-bottom { background: var(--sky-d); color: #fff; font-size: 12px; }
.ftr-bottom .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.ftr-bottom span:last-child { opacity: .85; }
@media (max-width: 1000px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand, .ftr-prefs { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* 上に戻る */
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 52px; height: 52px; border-radius: 50%; background: var(--sky); box-shadow: 0 6px 18px rgba(22, 119, 176, .35); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop svg { width: 26px; height: 26px; }
.totop:hover { background: var(--sky-d); }
