:root {
  --paper: #f7f5ee;
  --card: #ffffff;
  --ink: #2b2a26;
  --ink-2: #57544c;
  --muted: #8a867c;
  --rule: #e6e1d5;
  --rule-2: #d8d2c3;
  --accent: #3f7d5c;
  --accent-ink: #2e6047;
  --accent-soft: #e8f1ea;
  --warn: #a8573a;
  --warn-soft: #fbefe8;
  --gutter: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.85 var(--sans); }
a { color: var(--accent-ink); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 760px; }
.after { margin-top: 40px; }
.small { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: 0.04em; }
.logo-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); box-shadow: inset 0 -6px 0 rgb(0 0 0 / 12%); }
.hd-nav { display: flex; gap: 14px; font-size: 14px; }
.hd-nav a { color: var(--ink-2); text-decoration: none; }

/* トップ */
.hero { padding: 34px 0 30px; background: linear-gradient(180deg, var(--accent-soft), var(--paper)); border-bottom: 1px solid var(--rule); }
.hero-kicker, .kicker { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.1em; color: var(--accent-ink); font-weight: 700; }
.hero-title, .title, .block-h { word-break: auto-phrase; }
.hero-title { margin: 0; font-size: clamp(26px, 7vw, 40px); line-height: 1.4; letter-spacing: 0.02em; }
.hero-lead { margin: 14px 0 20px; color: var(--ink-2); max-width: 36em; }
.search input { width: 100%; max-width: 560px; height: 54px; padding: 0 16px; font: inherit; font-size: 17px; border: 2px solid var(--accent); border-radius: 14px; background: var(--card); color: var(--ink); }
.results { max-width: 560px; margin-top: 10px; }
.results ul { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.results li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.results li:last-child a { border-bottom: 0; }
.results .r-city { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; display: block; }
.results .r-yen { white-space: nowrap; font-weight: 700; }
.results p { margin: 0; font-size: 14px; color: var(--muted); }

/* ブロック */
.block { margin: 34px 0; }
.block-h { margin: 0 0 12px; font-size: 20px; line-height: 1.5; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.block-lead { margin: -4px 0 14px; color: var(--ink-2); }
.title { margin: 6px 0 4px; font-size: clamp(24px, 6.4vw, 32px); line-height: 1.45; }
.meta { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 10px; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }

/* 市のカード */
.ccards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ccard { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--ink); }
.ccard:hover { border-color: var(--accent); }
.ccard-name { font-weight: 800; font-size: 17px; }
.ccard-name small { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--muted); }
.ccard-fee { font-size: 14px; color: var(--accent-ink); font-weight: 700; }
.ccard-meta { font-size: 12px; color: var(--muted); }

.pref-h { margin: 22px 0 10px; font-size: 16px; color: var(--accent-ink); }
.pref-more { margin-left: 8px; font-size: 13px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.chip small { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--accent); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { position: relative; padding: 14px 14px 14px 52px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps strong { display: block; }

/* ひと目で */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.glance-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-label { margin: 0; font-size: 12px; color: var(--muted); }
.g-val { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.35; }
.g-val span { font-size: 13px; font-weight: 400; margin: 0 2px; }
.g-small { font-size: 14px; font-weight: 700; }
.jump { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 6px; padding: 2px var(--gutter) 8px; scrollbar-width: none; }
.jump a { flex: none; padding: 7px 14px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--card); font-size: 13.5px; text-decoration: none; color: var(--ink-2); }

.note { padding: 12px 16px; margin: 14px 0; background: var(--accent-soft); border-radius: 12px; font-size: 15px; }
.note p { margin: 0 0 8px; }
.note p:last-child { margin: 0; }
.note-warn { background: var(--warn-soft); }

/* 料金表 */
.steps-fee { margin: 0 0 6px; }
.pill { display: inline-block; margin: 0 4px 4px 0; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.filter { width: 100%; height: 48px; margin: 10px 0; padding: 0 14px; font: inherit; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--card); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
table.fee { width: 100%; border-collapse: collapse; font-size: 15px; }
table.fee th, table.fee td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
table.fee thead th { font-size: 12.5px; color: var(--muted); background: #faf8f2; }
table.fee tbody tr:last-child th, table.fee tbody tr:last-child td { border-bottom: 0; }
table.fee .num { text-align: right; white-space: nowrap; font-weight: 700; }
.rel { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.6; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; border-radius: 4px; background: #f1eee5; color: var(--ink-2); vertical-align: 1px; }
.range { font-size: 15px; color: var(--accent-ink); }
.city-row .block-h a { color: var(--ink); }

.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 0; }
.go { display: inline-block; margin-left: 8px; font-size: 13px; }
.checks { margin: 0; padding-left: 1.2em; }
.checks li { margin: 6px 0; }
.sources { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; }
.sources h2 { font-size: 15px; margin: 0 0 8px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }

/* フッター */
.ft { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.ft-name { font-weight: 800; color: var(--ink); }

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .ccards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 54px 0 46px; }
}
@media (min-width: 1000px) {
  .ccards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 品目のページ：自分の市で調べる・ランキング・よくある質問 */
.pick { margin: 18px 0 8px; padding: 16px; background: var(--accent-soft); border-radius: 14px; }
.pick .block-h { font-size: 17px; margin-bottom: 10px; }
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pick select { flex: 1 1 140px; height: 48px; padding: 0 12px; font: inherit; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--card); color: var(--ink); }
.pick-out:not(:empty) { margin-top: 12px; padding: 12px; background: var(--card); border-radius: 12px; }
.pick-out .fee th, .pick-out .fee td { padding: 8px 6px; }
.pick-h { margin: 0 0 6px; font-weight: 800; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rank { margin: 4px 0 0; padding-left: 1.3em; }
.rank li { margin: 4px 0; }
.rank span { margin-left: 8px; font-weight: 700; color: var(--accent-ink); }
.faq details { padding: 12px 14px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; }

/* トップ：タップで選ぶ */
.quick { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.q-step, .q-list { min-width: 0; }
.q-step { padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; }
.q-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 800; }
.q-label span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; }
.q-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.q-cities { margin-top: 10px; max-height: 260px; overflow-y: auto; }
.q-tile { min-height: 46px; padding: 8px 6px; font: inherit; font-size: 14.5px; line-height: 1.35; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 12px; cursor: pointer; }
.q-tile.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.q-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; }
.q-item small { font-size: 12px; color: var(--accent-ink); font-weight: 700; }
.q-item.on small { color: #fff; }
.q-filter { width: 100%; height: 44px; margin-top: 10px; padding: 0 12px; font: inherit; border: 1px solid var(--rule-2); border-radius: 12px; }
.q-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 17px; }
.q-change { padding: 6px 14px; font: inherit; font-size: 13px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 999px; cursor: pointer; }
.q-cats { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; padding-bottom: 4px; scrollbar-width: none; }
.q-cat { flex: none; padding: 6px 12px; font: inherit; font-size: 13.5px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.q-cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.q-list { padding: 14px; background: var(--card); border: 2px solid var(--accent); border-radius: 16px; scroll-margin-top: 70px; }
.q-total { margin: 0 0 6px; font-size: 16px; }
.q-total b { font-size: 22px; color: var(--accent-ink); }
.q-row { padding: 10px 0; border-top: 1px solid var(--rule); }
.q-row-h { display: flex; justify-content: space-between; align-items: center; }
.q-x { width: 32px; height: 32px; font-size: 18px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.q-sel { width: 100%; height: 42px; margin: 6px 0; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); }
.q-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.q-qty button { width: 36px; height: 36px; font-size: 18px; border: 1px solid var(--rule-2); border-radius: 50%; background: var(--paper); cursor: pointer; }
.q-qty b { margin-left: auto; font-size: 16px; }
.q-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--rule); }
.q-bar button { width: 100%; max-width: 560px; display: block; margin: 0 auto; height: 50px; font: inherit; font-weight: 800; color: #fff; background: var(--accent); border: 0; border-radius: 14px; cursor: pointer; }
.q-search { margin-top: 16px; }
.q-search summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.q-search .search { margin-top: 10px; }
@media (min-width: 760px) { .q-tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }

/* 市のページ：よく出す物のボタンで表を絞り込む */
.qf { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.qf button { padding: 6px 12px; font: inherit; font-size: 13.5px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink); cursor: pointer; }
.qf button.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 家電：指定引取場所 */
.pts { margin: 8px 0; padding: 10px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.pts summary { cursor: pointer; font-weight: 700; }
.pt-list { margin: 8px 0 0; padding-left: 1.1em; }
.pt-list li { margin: 8px 0; }
