/* 粗大ごみ手数料くらべ：収集所に出したソファと、貼る「粗大ごみ処理券」。清掃車の緑と処理券の黄色 */
:root {
  color-scheme: light;
  --paper: #f7f5ef; --white: #fffdf7; --ink: #1f2328; --ink-2: #4a4f55; --line: #d8d3c6;
  --green: #1f7a4d; --green-deep: #155a38; --ticket: #f5cf3a; --ticket-deep: #d9ab12; --red: #b8371f; --asphalt: #3b4148;
  --s0: #fbf1c7; --s1: #f6d87a; --s2: #eeaa4a; --s3: #b8461f; --s4: #7d2410; --sx: #dcd8cd;
  --head: "RocknRoll One", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --num: "Oswald", "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 16px; line-height: 1.8;
  background-image: radial-gradient(rgba(31, 35, 40, 0.05) 1px, transparent 1.2px); background-size: 14px 14px;
}
a { color: #155a8a; text-underline-offset: 3px; }
strong { font-weight: 900; }
img, svg { max-width: 100%; }

/* 頭：清掃車の車体（緑）と黄色の帯 */
.site-header { background: var(--green); color: var(--white); padding: 12px 16px 12px; border-bottom: 6px solid var(--ticket); position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 28px); opacity: 0.85; }
.site-name { font-family: var(--head); font-size: 1.12rem; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.site-name::before { content: "券"; display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 3px; background: var(--ticket); color: var(--ink); font-size: 0.85rem; font-weight: 900; transform: rotate(-6deg); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25); }
.pr-notice { margin: 4px 0 0; font-size: 0.8rem; color: #e6f2ea; }
.site-main { max-width: 760px; margin: 0 auto; padding: 22px 16px 28px; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.45; }
h1 { font-size: 1.6rem; margin: 6px 0 12px; }
h2 { font-size: 1.24rem; margin: 40px 0 12px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; flex: none; width: 22px; height: 16px; border-radius: 2px; background: var(--ticket); border: 2px solid var(--ink); transform: rotate(-6deg); }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p, li, dd { line-height: 1.8; }
.lead { font-size: 1rem; }
.lead strong { background: linear-gradient(transparent 60%, rgba(245, 207, 58, 0.75) 60%); }
.crumb { font-size: 0.85rem; color: var(--ink-2); margin: 0 0 4px; }
.note, .hint { font-size: 0.94rem; color: var(--ink-2); }
small { font-size: 0.8rem; color: var(--ink-2); }

/* ファーストビュー：収集所に出したソファ */
.hero { margin: 4px 0 6px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 2px 12px; border: 2px solid var(--green); border-radius: 999px; background: var(--white); color: var(--green-deep); font-size: 0.85rem; font-weight: 700; }
.tag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.hero h1 { margin: 4px 0 6px; }
.h1-a { display: block; font-size: 1.15rem; color: var(--ink-2); }
.h1-b { display: inline-block; font-size: 2.2rem; line-height: 1.25; }
.curb { margin: 4px -16px 6px; }
.curb-svg { display: block; width: 100%; height: auto; }
.curb-svg text { font-family: "Noto Sans JP", sans-serif; }
details.about { margin: 6px 0 0; border-top: 1px dashed var(--line); padding-top: 4px; }
details.about summary { cursor: pointer; color: var(--green-deep); font-weight: 700; font-size: 0.94rem; }
details.about p { font-size: 0.94rem; color: var(--ink-2); }

/* 早見：処理券の形の答え */
.hayami { margin: 18px 0; padding: 14px 14px 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--green); }
.hayami h2 { margin-top: 4px; }
.hayami-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
label { display: block; font-weight: 700; margin: 6px 0 4px; font-size: 0.94rem; }
select, input, button { font: inherit; }
select { width: 100%; min-height: 52px; padding: 8px 40px 8px 12px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 1l6 7 6-7' fill='none' stroke='%231f2328' stroke-width='2.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; box-shadow: 2px 2px 0 var(--green); font-weight: 700; border: 2px solid var(--ink); border-radius: 8px; background-color: var(--white); color: var(--ink); }
select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ticket-deep); outline-offset: 2px; }
.answer {
  position: relative; margin: 16px 0 12px; padding: 14px 16px 14px 22px; background: var(--ticket); color: var(--ink);
  border-radius: 6px; box-shadow: 0 2px 0 var(--ticket-deep), 3px 4px 0 rgba(31, 35, 40, 0.18);
}
.answer::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; border-left: 3px dotted rgba(31, 35, 40, 0.45); }
.answer::after { content: "粗大ごみ処理券"; position: absolute; right: 10px; top: -12px; padding: 0 8px; background: var(--ink); color: var(--ticket); font-size: 0.8rem; font-weight: 700; border-radius: 3px; letter-spacing: 0.1em; }
.answer-main { margin: 0; font-family: var(--head); font-size: 1.3rem; line-height: 1.5; }
.answer-sub { margin: 6px 0 0; font-size: 0.95rem; }
.answer-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.answer-range[hidden] { display: none; }
.ar-cell { margin: 0; padding: 6px 10px 8px; background: rgba(255, 255, 255, 0.55); border: 2px solid var(--ink); border-radius: 4px; display: flex; flex-direction: column; line-height: 1.3; }
.ar-max { background: var(--ink); color: var(--ticket); }
.ar-label { font-size: 0.85rem; font-weight: 700; }
.ar-yen { font-family: var(--num); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; }
.ar-city { font-size: 0.85rem; font-weight: 700; }
.answer-cond { margin: 6px 0 0; font-size: 0.94rem; color: #3d3a2e; }

/* 市の札：処理券のシールを地図のように並べる */
.fuda-map { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 54px; gap: 4px; margin: 10px 0 6px; }
.fuda {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; overflow: hidden;
  text-decoration: none; color: var(--ink); border-radius: 4px; border: 1.5px solid rgba(31, 35, 40, 0.35); line-height: 1.15;
  box-shadow: 1px 2px 0 rgba(31, 35, 40, 0.15); transition: background-color 0.3s ease;
}
.fuda-name { font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.fuda-yen { font-family: var(--num); font-weight: 700; font-size: 0.86rem; white-space: nowrap; letter-spacing: 0; }
.fuda-name.long { white-space: normal; width: 2.1em; text-align: center; line-height: 1.05; }
.fuda[data-step="0"], .sw[data-step="0"] { background: var(--s0); }
.fuda[data-step="1"], .sw[data-step="1"] { background: var(--s1); }
.fuda[data-step="2"], .sw[data-step="2"] { background: var(--s2); }
.fuda[data-step="3"], .sw[data-step="3"] { background: var(--s3); color: #ffffff; }
.fuda[data-step="4"], .sw[data-step="4"] { background: var(--s4); color: #ffffff; }
.fuda[data-step="x"], .sw[data-step="x"] { background: repeating-linear-gradient(45deg, var(--sx) 0 4px, #ebe8df 4px 8px); color: var(--ink); }
.fuda.is-mine { outline: 3px solid var(--green); outline-offset: 1px; z-index: 1; }
.fuda-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.85rem; color: var(--ink-2); margin: 6px 0 0; line-height: 1.6; }
.sw { display: inline-block; width: 18px; height: 12px; border: 1px solid rgba(31, 35, 40, 0.35); border-radius: 2px; }
.sw[data-step="x"] { margin-left: 8px; }
@media (max-width: 420px) {
  .hayami { padding: 12px 8px 14px; margin-left: -8px; margin-right: -8px; }
  .fuda-map { gap: 2px; grid-auto-rows: 52px; }
  .fuda-name { font-size: 0.8rem; }
  .fuda-yen { font-size: 0.8rem; }
}

/* 差が大きい品目・市の一覧 */
.top-diff { list-style: none; padding: 0; margin: 0; counter-reset: d; }
.top-diff li { counter-increment: d; position: relative; padding: 10px 12px 10px 48px; margin: 0 0 8px; background: var(--white); border: 1.5px solid var(--line); border-radius: 8px; }
.top-diff li::before { content: counter(d); position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); font-family: var(--num); font-weight: 700; line-height: 1; }
.top-diff strong { font-family: var(--num); font-size: 1.1rem; color: var(--red); }
.city-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.city-links a { display: block; text-align: center; padding: 9px 2px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.94rem; box-shadow: 2px 2px 0 var(--green); }
.conditions { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 10px; font-size: 0.95rem; }
.conditions dt { font-weight: 700; }
.conditions dd { margin: 0; color: var(--ink-2); }
.sources { padding-left: 1.2em; font-size: 0.95rem; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.summary { background: var(--white); border-left: 6px solid var(--ticket); padding: 10px 12px; border-radius: 0 8px 8px 0; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 12px 0; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--white); }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
thead th { background: var(--green); color: var(--white); font-size: 0.85rem; white-space: nowrap; }
caption { text-align: left; font-size: 0.85rem; color: var(--ink-2); padding: 6px 8px; }
.ranking td:first-child, .ranking th:first-child { white-space: nowrap; }
.ranking td:nth-child(n+2) { white-space: normal; }
.city-fees td.yen { font-family: var(--num); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.city-fees tr[data-status]:not([data-status="fee"]):not([data-status="free"]) td.yen { font-family: inherit; font-weight: 400; color: var(--ink-2); font-size: 0.85rem; white-space: normal; }
.city-fees .est { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--red); border: 1px solid var(--red); padding: 0 4px; border-radius: 2px; }
.table-wrap td:nth-child(n+2):not(.yen) { white-space: normal; }

/* 市のページ：収集所の掲示板 */
.fuda-tag { display: inline-block; background: var(--ticket); color: var(--ink); font-size: 0.9rem; padding: 2px 10px; margin-right: 8px; vertical-align: 0.2em; border-radius: 3px; border: 2px solid var(--ink); transform: rotate(-4deg); }
.notice-board { border: 2px solid var(--green); background: var(--white); padding: 4px 14px 12px; border-radius: 10px; }
.notice-board h2 { margin-top: 12px; }
.go-official { display: inline-block; padding: 10px 16px; background: var(--green); color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: 0 3px 0 var(--green-deep); }
.ad-slot:empty { display: none; }

/* 足：収集所の看板 */
.site-footer { margin-top: 36px; background: var(--asphalt); color: #eceae4; padding: 22px 16px 26px; border-top: 6px solid var(--ticket); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: 760px; margin: 0 auto; }
.site-footer a { color: #ffffff; font-size: 0.94rem; }
.copyright { max-width: 760px; margin: 10px auto 0; font-size: 0.85rem; color: #d6d3cb; }

@media (prefers-reduced-motion: no-preference) {
  .ticket-on-sofa { animation: stick 0.7s 0.3s cubic-bezier(0.2, 1.4, 0.4, 1) both; transform-origin: 182px 68px; }
  .sofa { animation: slide 0.6s ease-out both; }
  .answer { animation: peel 0.5s ease-out both; }
  @keyframes stick { from { opacity: 0; transform: translateY(-30px) scale(1.4); } to { opacity: 1; transform: none; } }
  @keyframes slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
  @keyframes peel { from { opacity: 0; transform: rotate(-2deg) translateY(6px); } to { opacity: 1; transform: none; } }
}

/* 手放し方でくらべる：答えのすぐ下。市に出す・回収を頼む・売るの 3 行（業者・買取の額は出どころが無いので書かない） */
.kurabe { margin: 4px 0 14px; }
.kurabe-title { margin: 0 0 8px; font-size: 1.05rem; }
.ways3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.w3 { background: var(--white); border: 2px solid var(--ink); border-left-width: 8px; border-radius: 8px; padding: 8px 12px 6px; }
.w3-self { border-left-color: var(--ticket-deep); }
.w3-pro { border-left-color: var(--green); }
.w3-sell { border-left-color: #155a8a; }
.w3 p { margin: 0 0 4px; }
.w3-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.w3-tag { flex: none; font-weight: 900; font-size: 1rem; }
.w3-yen { font-family: var(--num); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.w3-yen.w3-ask { font-family: inherit; font-size: 1rem; color: var(--green-deep); }
.w3-te { font-size: 0.94rem; color: var(--ink-2); }
.te-label { display: inline-block; margin-right: 6px; padding: 0 6px; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.kurabe-move { margin: 10px 0 4px; font-weight: 700; }
.kurabe-note { margin: 6px 0 0; font-size: 0.94rem; color: var(--ink-2); }

/* PC：スマホ幅の 1 列を真ん中に置かず、左に読む・右に絵と札の地図の 2 列にする（見た目採点 12/1「絵と余白」4 点） */
@media (min-width: 960px) {
  .site-main { max-width: 1200px; padding: 32px 32px 40px; }
  .site-header { padding-left: max(32px, calc((100% - 1200px) / 2 + 32px)); padding-right: 32px; }
  .site-footer nav, .copyright { max-width: 1136px; }

  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto 1fr; column-gap: 40px; align-items: start; margin: 8px 0 18px; }
  .hero > * { grid-column: 1; }
  .hero > .hero-tag { justify-self: start; }
  .hero > .curb { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
  .hero h1 { margin: 10px 0 14px; }
  .h1-a { font-size: 1.5rem; }
  .h1-b { font-size: 3.1rem; }
  .hero .lead { font-size: 1.1rem; }

  .hayami { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 36px; align-items: start; padding: 22px 26px 24px; }
  .hayami > * { grid-column: 1; }
  .hayami > .fuda-map { grid-column: 2; grid-row: 1 / span 7; align-self: center; grid-auto-rows: 78px; gap: 6px; margin: 0; }
  .fuda-name { font-size: 0.95rem; }
  .fuda-yen { font-size: 1.15rem; }
  .fuda-name.long { width: auto; white-space: nowrap; }
  .fuda { transition: background-color 0.3s ease, transform 0.15s ease; }
  .fuda:hover { transform: translateY(-2px); }

  .top-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .city-links { grid-template-columns: repeat(5, 1fr); }
  .conditions { grid-template-columns: 11em 1fr 11em 1fr; gap: 6px 16px; }
  .sources { columns: 2; column-gap: 40px; }
  .sources li { break-inside: avoid; }
  .site-main > section > p, .site-main > p { max-width: 46em; }
}
