:root {
  --navy-950: #062247;
  --navy-900: #092b59;
  --navy-800: #0d3a72;
  --ink: #18202c;
  --muted: #687384;
  --canvas: #f4f7fb;
  --surface: #ffffff;
  --line: #d9e0e8;
  --line-strong: #bdc9d6;
  --green: #4c8c3d;
  --yellow: #f1ca18;
  --orange: #ff8413;
  --red: #e51e2a;
  --shadow: 0 8px 18px rgba(20, 50, 83, .08);
  --radius: 7px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; font-size: 15px; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(44, 113, 188, .3); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 30; min-height: 72px; display: flex; align-items: center; gap: 30px; padding: 0 28px; color: #fff; background: var(--navy-950); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 350px; }
.brand-emblem { width: 56px; height: 56px; flex: 0 0 auto; object-fit: contain; }
.brand-emblem--footer { width: 56px; height: 56px; grid-row: span 2; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 22px; letter-spacing: .06em; line-height: 1.2; }
.brand-copy small { margin-top: 3px; color: rgba(255,255,255,.83); font-size: 12px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(24px, 3.4vw, 56px); flex: 1; font-size: 15px; font-weight: 700; white-space: nowrap; }
.main-nav a { padding: 24px 0 21px; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-color: #fff; }
.mobile-menu-button { display: none; margin-left: auto; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; padding: 5px 9px; }
.mobile-toc { position: absolute; top: calc(100% + 8px); right: 16px; z-index: 40; width: min(300px, calc(100vw - 24px)); overflow: hidden; background: #fff; border: 1px solid #c8d5e2; border-radius: 8px; box-shadow: 0 10px 24px rgba(12,42,78,.2); }
.mobile-toc a { display: block; padding: 12px 15px; color: var(--navy-900); background: #fff; font-size: 14px; font-weight: 800; line-height: 1.35; }
.mobile-toc a + a { border-top: 1px solid #e5ebf1; }
.mobile-toc a:hover, .mobile-toc a:focus-visible { background: #edf4fb; }

.app-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 334px minmax(0, 1fr); }
.filter-sidebar { position: sticky; top: 0; align-self: start; height: calc(100vh - 72px); max-height: calc(100vh - 72px); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9eafc1 #edf1f5; padding: 22px 22px 26px; background: var(--surface); border-right: 1px solid var(--line); z-index: 5; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.filter-head h2 { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 19px; letter-spacing: .03em; }
.filter-heading-icon, .filter-group-icon { flex: 0 0 auto; object-fit: contain; opacity: .74; }
.filter-heading-icon { width: 22px; height: 22px; }
.filter-group-icon { width: 22px; height: 22px; }
.clear-button { padding: 7px 13px; color: #5e6774; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13px; cursor: pointer; }
.filter-group { margin: 0; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--line); }
.filter-group + .filter-group { padding-top: 12px; }
.filter-summary { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; color: #222d3c; font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.filter-summary::-webkit-details-marker { display: none; }
.filter-summary:focus-visible { outline: 3px solid rgba(44, 113, 188, .3); outline-offset: 4px; border-radius: 4px; }
.filter-legend-label { display: inline-flex; align-items: center; gap: 8px; }
.filter-chevron { font-size: 20px; line-height: 1; }
.filter-group[open] .filter-chevron { transform: rotate(180deg); }
.filter-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 20px; margin-top: 10px; }
.filter-option { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #4b5665; font-size: 14px; cursor: pointer; }
.filter-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-800); }
.filter-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.color-picker { display: grid; gap: 9px; margin-top: 11px; }
.color-canvas { width: 100%; height: 112px; display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: #f6ce29; cursor: crosshair; touch-action: none; }
.color-canvas:focus-visible { outline: 3px solid rgba(44, 113, 188, .3); outline-offset: 3px; }
.color-hue-label { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; color: #566374; font-size: 12px; font-weight: 800; }
.color-hue-label input { width: 100%; margin: 0; accent-color: var(--navy-800); }
.color-picker-readout { display: flex; align-items: center; gap: 8px; min-width: 0; color: #49586a; font-size: 12px; }
.color-picker-preview { width: 20px; height: 20px; flex: 0 0 auto; border: 1px solid #aab5c0; border-radius: 50%; background: transparent; }
.color-picker-readout > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.color-clear { margin-left: auto; padding: 4px 8px; color: #5e6774; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; cursor: pointer; }
.color-clear:disabled { cursor: default; opacity: .45; }
.color-picker-help { margin: -2px 0 0; color: #7a8592; font-size: 11px; line-height: 1.45; }
.risk-dot { width: 10px; height: 10px; display: inline-block; margin-left: -2px; border-radius: 50%; }
.risk-dot--低 { background: var(--green); }
.risk-dot--中 { background: var(--yellow); }
.risk-dot--高 { background: var(--orange); }
.risk-dot--劇毒 { background: var(--red); }
.filter-submit { width: 100%; min-height: 56px; margin-top: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: var(--navy-900); border: 0; border-radius: 5px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.filter-submit:hover { background: var(--navy-800); }
.filter-count { margin: 13px 0 0; color: #596575; text-align: center; font-size: 13px; }
.filter-count strong { margin-right: 3px; color: #1d2735; font-size: 19px; }

.main-content { min-width: 0; background: var(--canvas); }
.main-inner { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 24px; }
.search-section { padding: 0 16px 23px; }
.situation-guide { margin: 0 0 18px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.situation-guide-lead { margin: 7px 0 13px; color: var(--muted); line-height: 1.75; }
.situation-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.situation-guide-card { display: grid; gap: 5px; min-height: 102px; padding: 13px 14px; color: inherit; text-decoration: none; background: #fff8ed; border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s ease, transform .2s ease; }
.situation-guide-card:hover, .situation-guide-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.situation-guide-card strong { font-size: 16px; }
.situation-guide-card span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.situation-guide-card em { color: var(--accent); font-size: 12px; font-style: normal; font-weight: 700; }
.section-kicker { display: flex; align-items: center; gap: 12px; }
.section-kicker h1, .section-kicker h2 { margin: 0; font-size: 23px; line-height: 1.35; }
.ui-icon { width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain; }
.ui-icon--search { width: 38px; height: 38px; }
.ui-icon--filter { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 18px; margin-top: 16px; }
.search-form input { width: 100%; height: 52px; padding: 0 19px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 15px; }
.search-form button { height: 52px; color: #fff; background: var(--navy-900); border: 0; border-radius: 6px; font-size: 15px; font-weight: 800; cursor: pointer; }
.search-form button:hover { background: var(--navy-800); }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 11px; color: #6a7481; font-size: 13px; }
.suggestions button { padding: 6px 12px; color: #344256; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; }
.suggestions button:hover { border-color: var(--navy-800); color: var(--navy-900); }
.eyebrow { margin: 0 0 2px; color: var(--navy-800); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.pest-section, .sightings-section, .lower-grid { margin-top: 0; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-note { color: #707b89; font-size: 12px; }
.pest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 13px; }
.pest-grid:not(.is-expanded):not(.has-active-filter) > .pest-card:nth-child(n+7) { display: none; }
.pest-grid-toggle { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 16px auto 0; padding: 7px 20px; color: var(--navy-900); background: #fff; border: 1px solid #9cafc3; border-radius: 5px; font-size: 14px; font-weight: 800; cursor: pointer; }
.pest-grid-toggle::after { content: "⌄"; margin-left: 8px; font-size: 18px; line-height: .8; transition: transform 150ms ease; }
.pest-grid-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.pest-grid-toggle:hover { background: #edf4fb; border-color: var(--navy-800); }
.pest-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid #dce2e9; border-radius: var(--radius); box-shadow: 0 2px 5px rgba(20,50,83,.04); }
.pest-card-main { display: grid; grid-template-columns: minmax(0, .46fr) minmax(0, 1fr); gap: 14px; padding: 12px 12px 6px; }
.pest-image-wrap { height: 164px; overflow: hidden; border-radius: 5px; background: #e7edf1; }
.pest-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pest-card-copy { min-width: 0; }
.pest-card-copy h3 { margin: 1px 0 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 20px; line-height: 1.35; }
.pest-card-kind { display: inline-flex; align-items: center; min-height: 20px; margin-bottom: 4px; padding: 2px 8px; color: #fff; background: #5d738d; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.pest-card-kind--beast { background: #6b4d80; }
.scientific-name { margin: 0 0 7px; color: #516172; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.color-feature { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin: 0 0 6px; color: #566577; font-size: 11px; line-height: 1.35; }
.color-feature strong { flex: 0 0 auto; color: var(--navy-800); font-size: 10px; }
.color-feature span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; color: #3d4856; font-size: 12px; line-height: 1.45; }
.fact-list li::before { content: "✓"; margin-right: 5px; color: #1c2d45; font-weight: 800; }
.risk-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 45px; align-items: center; gap: 9px; padding: 10px 12px 6px; font-size: 14px; }
.risk-row strong { font-size: 14px; }
.risk-row b { text-align: right; font-size: 17px; }
.risk-track { height: 10px; overflow: hidden; background: #cdd2d7; border-radius: 99px; }
.risk-track i { display: block; height: 100%; border-radius: inherit; }
.risk-low .risk-track i { background: var(--green); }.risk-low .risk-row b { color: var(--green); }
.risk-medium .risk-track i { background: var(--yellow); }.risk-medium .risk-row b { color: #ae9900; }
.risk-high .risk-track i { background: var(--orange); }.risk-high .risk-row b { color: #dd6e00; }
.risk-critical .risk-track i { background: var(--red); }.risk-critical .risk-row b { color: var(--red); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 12px 13px; }
.risk-caption { overflow: hidden; color: #737e8a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.outline-button { min-width: 150px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 12px; color: #203655; background: #fff; border: 1px solid #8798ad; border-radius: 4px; font-size: 13px; font-weight: 800; }
.outline-button:hover { background: #eff4fa; border-color: var(--navy-800); }
.outline-button span { font-size: 17px; line-height: .8; }
.empty-state { display: grid; gap: 3px; place-items: center; padding: 36px 20px; color: #596575; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state strong { color: var(--navy-900); font-size: 16px; }
.empty-state span { font-size: 12px; }
.detail-legal-note { display: grid; grid-template-columns: auto auto auto 1fr; gap: 8px 14px; align-items: center; margin: 12px 0 0; padding: 12px 16px; color: #4c3d1b; background: #fff8e7; border: 1px solid #e8d18c; border-radius: 8px; }
.detail-legal-note strong { color: #795e11; }
.detail-legal-note span { font-size: 13px; font-weight: 700; }
.detail-legal-note small { grid-column: 1 / -1; color: #6d634d; line-height: 1.6; }
@media (max-width: 860px) { .detail-legal-note { grid-template-columns: 1fr; gap: 5px; } .detail-legal-note small { grid-column: auto; } }

.sightings-section { margin-top: 20px; padding: 0 0 8px; }
.secondary-link { color: var(--navy-800); font-size: 13px; font-weight: 800; white-space: nowrap; }
.secondary-link:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin-top: 9px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.sightings-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12px; }
.sightings-table th, .sightings-table td { padding: 7px 13px; text-align: left; border-bottom: 1px solid #e3e7ec; white-space: nowrap; }
.sightings-table th { color: #324357; background: #eef2f6; font-size: 12px; font-weight: 800; }
.sightings-table tr:last-child td { border-bottom: 0; }
.sightings-table td:nth-child(4) { width: 34%; overflow: hidden; text-overflow: ellipsis; }
.table-risk { display: inline-block; min-width: 31px; padding: 2px 5px; border-radius: 3px; text-align: center; font-weight: 800; }
.table-risk--低 { color: #35752d; background: #dff2db; }.table-risk--中 { color: #887600; background: #fff5ae; }.table-risk--高 { color: #cc5b00; background: #ffe1c5; }

.lower-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.1fr); gap: 20px; margin-top: 14px; }
.column-card, .provider-card { min-width: 0; padding: 16px 16px 13px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.column-card .section-kicker h2, .provider-card .section-kicker h2 { font-size: 20px; }
.article-list { display: grid; gap: 12px; margin-top: 13px; }
.article-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; min-width: 0; padding: 0; }
.article-item img { width: 170px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.article-item-copy { display: grid; align-content: start; gap: 3px; min-width: 0; }
.article-item-copy strong { font-size: 16px; line-height: 1.35; }
.article-item-copy small { color: #667383; font-size: 12px; line-height: 1.45; }
.article-item-copy em { color: #7a8592; font-size: 11px; font-style: normal; }
.article-badge { width: fit-content; padding: 2px 7px; color: #fff; background: var(--green); font-size: 10px; }
.provider-list { display: grid; gap: 10px; margin-top: 8px; }
.provider-item { display: grid; grid-template-columns: 124px minmax(0, 1fr) 166px; gap: 14px; align-items: center; padding: 5px 0 13px; border-bottom: 1px solid #e3e7ec; }
.provider-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.provider-site-link { display: block; width: 120px; height: 68px; }
.provider-site-thumb { display: block; width: 120px; height: 68px; object-fit: cover; border: 1px solid #d5e1ec; border-radius: 5px; background: #eef4f9; }
.provider-copy { min-width: 0; display: grid; gap: 2px; }
.provider-copy > strong { font-size: 16px; }
.provider-copy > small { overflow: hidden; color: #586778; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.stars { color: #edb600; font-size: 13px; }.stars b { color: #283548; font-size: 13px; }.stars small { color: #727f8d; font-size: 11px; }
.provider-tags { display: flex; gap: 5px; margin-top: 5px; }.provider-tags i { padding: 4px 8px; color: #304d72; background: #edf3fa; border-radius: 3px; font-size: 10px; font-style: normal; }
.provider-actions { display: grid; gap: 6px; }
.provider-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 12px; color: #fff; background: var(--navy-900); border: 1px solid var(--navy-900); border-radius: 7px; font-size: 13px; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none; white-space: nowrap; }.provider-button:hover { background: var(--navy-800); }
.provider-affiliate-button { background: #ad3430; }.provider-affiliate-button:hover { background: #8f2926; }
.prototype-note { margin: 3px 0 0; color: #7d8794; font-size: 10px; line-height: 1.5; text-align: right; }

.site-footer { display: grid; grid-template-columns: 1.25fr 1.2fr; gap: 46px; padding: 32px 56px 34px; color: #fff; background: var(--navy-950); }
.footer-brand { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; align-content: start; }
.footer-brand strong, .footer-brand small { display: block; }.footer-brand strong { font-family: "Yu Mincho", serif; font-size: 19px; }.footer-brand small { color: rgba(255,255,255,.78); font-size: 11px; }
.footer-brand p { grid-column: 1 / -1; max-width: 340px; margin: 17px 0 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.6; }
.footer-brand .footer-copyright { grid-column: 1 / -1; margin-top: 10px; color: rgba(255,255,255,.62); font-size: 11px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 26px; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.55); font-size: 12px; }.footer-links strong { grid-column: 1 / -1; font-size: 15px; }.footer-links a:hover { text-decoration: underline; }
.footer-sources { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.6; }.footer-sources strong { color: #fff; font-size: 13px; }.footer-sources a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }.footer-sources a:hover { color: #f3c86b; }

[hidden] { display: none !important; }
.entity-image-shell { position: relative; display: block; width: 100%; height: 100%; min-width: 0; overflow: hidden; background: #f7f3e9; border-radius: inherit; }
.entity-image-shell > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* 記事のアイキャッチはタイトルを含む入口画像のため、画像表示設定のぼかし対象から除外する */
html[data-image-mode="soft"] .entity-image-shell:not(.image-filter-exempt) > img { filter: blur(4px) saturate(.78) brightness(1.04); transform: scale(1.03); }
html[data-image-mode="soft"] .entity-image-shell:not(.image-filter-exempt)::after { position: absolute; inset: 0; content: ""; background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(235,242,247,.14) 48%, rgba(255,255,255,.24)); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(1px); pointer-events: none; }
html[data-image-mode="soft"] .entity-image-shell:not(.image-filter-exempt)[data-soft-level="strong"] > img { filter: blur(7px) saturate(.58) brightness(1.08); transform: scale(1.06); }
html[data-image-mode="soft"] .entity-image-shell:not(.image-filter-exempt)[data-soft-level="strong"]::after { background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(235,242,247,.24) 48%, rgba(255,255,255,.38)); backdrop-filter: blur(2px); }
.entity-image-shell.image-filter-exempt > img { filter: none !important; transform: none !important; }
.entity-image-shell.image-filter-exempt::after { display: none !important; }
.image-preference-trigger { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 11px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.image-preference-trigger:hover, .image-preference-trigger:focus-visible { background: rgba(255,255,255,.22); border-color: #fff; }
.image-preference-trigger:focus-visible { outline: 2px solid #f3c86b; outline-offset: 2px; }
.mobile-toc .image-preference-trigger { width: 100%; min-height: 42px; margin-top: 8px; color: var(--navy-900); background: #fff; border-color: #afc1d3; border-radius: 6px; }
.image-preference-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(5,22,43,.68); backdrop-filter: blur(8px); }
.image-preference-modal[hidden] { display: none; }
body.image-preference-open { overflow: hidden; }
.image-preference-dialog { width: min(100%, 560px); padding: 30px; color: #26384d; background: #fff; border: 1px solid #c9d8e5; border-radius: 12px; box-shadow: 0 18px 60px rgba(4,24,48,.28); }
.image-preference-eyebrow { margin: 0 0 7px; color: #315f91; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.image-preference-dialog h2 { margin: 0; color: var(--navy-900); font-size: clamp(22px, 4vw, 30px); line-height: 1.35; }
.image-preference-lead { margin: 12px 0 0; color: #5e6f80; font-size: 14px; line-height: 1.75; }
.image-preference-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.image-preference-option { display: grid; gap: 6px; min-height: 104px; padding: 16px; color: var(--navy-900); background: #f6f9fc; border: 1px solid #bdcedd; border-radius: 8px; text-align: left; cursor: pointer; }
.image-preference-option:hover, .image-preference-option:focus-visible { background: #edf5fb; border-color: #315f91; box-shadow: 0 0 0 3px rgba(49,95,145,.12); }
.image-preference-option--soft { background: #f4f7fa; border-color: #c5d1dc; }
.image-preference-option--soft:hover, .image-preference-option--soft:focus-visible { background: #edf3f7; border-color: #71869a; }
.image-preference-option strong { font-size: 16px; }
.image-preference-option span { color: #647487; font-size: 12px; line-height: 1.45; }
.image-preference-note { margin: 16px 0 0; color: #7b8795; font-size: 11px; line-height: 1.5; }
.mobile-floating-tools { display: none; }
.mobile-filter-backdrop { display: none; }
.filter-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.filter-modal-close { display: none; }
.home-mobile-ranking-button { display: none; }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .filter-sidebar { padding-left: 17px; padding-right: 17px; }
  .main-inner { width: min(100% - 28px, 960px); }
  .main-nav { gap: 20px; font-size: 13px; }
  .brand { min-width: 280px; }.brand-copy strong { font-size: 19px; }
  .pest-card-main { grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 10px; }.pest-image-wrap { height: 148px; }
  .article-item { grid-template-columns: 140px minmax(0, 1fr); }.article-item img { width: 140px; height: auto; aspect-ratio: 16 / 9; }
  .provider-item { grid-template-columns: 100px minmax(0, 1fr); }.provider-site-link { width: 96px; height: 62px; }.provider-site-thumb { width: 96px; height: 62px; }.provider-actions { grid-column: 2; }
}
@media (max-width: 860px) {
  .site-header { min-height: 68px; padding: 0 16px; }.main-nav { display: none; }.mobile-menu-button { display: block; }
  .app-shell { display: block; }.filter-sidebar { position: relative; display: none; height: auto; max-height: min(72vh, 640px); min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }.filter-sidebar.is-open { display: block; }
  .main-inner { width: min(100% - 28px, 720px); padding-top: 22px; }
  .pest-grid, .lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pest-card-main { grid-template-columns: minmax(0, .44fr) minmax(0, 1fr); }.article-item { grid-template-columns: 140px minmax(0, 1fr); }.article-item img { width: 140px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 30px 28px; }
  .mobile-toc { display: grid; }
  .mobile-floating-tools { display: block; position: fixed; right: 12px; bottom: 16px; z-index: 41; }
  .mobile-filter-backdrop { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(6,34,71,.52); backdrop-filter: blur(2px); }
  .mobile-filter-backdrop.is-active { display: block; }
  body.filter-modal-open { overflow: hidden; }
  body.filter-modal-open .mobile-floating-tools { visibility: hidden; pointer-events: none; }
  body.filter-modal-open .detail-floating-cta { visibility: hidden; pointer-events: none; }
  .detail-floating-cta ~ .mobile-floating-tools { bottom: 84px; }
  .filter-sidebar.is-open { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; bottom: auto; left: 12px; z-index: 81; width: auto; height: calc(100vh - 24px); max-height: calc(100vh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; touch-action: pan-y; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 44px rgba(6,34,71,.28); padding: 18px 16px 112px; }
  @supports (height: 100dvh) {
    .filter-sidebar.is-open { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  }
  .filter-sidebar.is-open .filter-head { align-items: flex-start; }
  .filter-sidebar.is-open .filter-head h2 { min-width: 0; }
  /* Keep the action visible while an accordion is open; do not force users
     to collapse a filter group just to reach the search button. */
  .filter-sidebar.is-open .filter-submit { position: sticky; right: auto; bottom: 0; left: auto; z-index: 3; width: 100%; min-height: 52px; margin-top: 18px; box-shadow: 0 -8px 18px rgba(255,255,255,.92), 0 8px 22px rgba(6,34,71,.3); }
  .filter-modal-close { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 12px; color: var(--navy-900); background: #eef4fa; border: 1px solid #b8cadc; border-radius: 6px; font-size: 13px; font-weight: 800; cursor: pointer; }
  .filter-modal-close:hover, .filter-modal-close:focus-visible { background: #e2edf7; }
  .mobile-filter-toggle { min-width: 108px; min-height: 42px; padding: 8px 13px; color: #fff; background: var(--navy-900); border: 1px solid rgba(255,255,255,.55); border-radius: 999px; box-shadow: 0 5px 16px rgba(6,34,71,.24); font-size: 13px; font-weight: 800; cursor: pointer; }
  .mobile-filter-toggle:hover { background: var(--navy-800); }
}
@media (max-width: 620px) {
  .brand { min-width: 0; gap: 9px; }.brand-emblem { width: 46px; height: 46px; }.brand-copy strong { font-size: 17px; }.brand-copy small { font-size: 10px; }
  .main-inner { width: calc(100% - 20px); }.search-section { padding-left: 3px; padding-right: 3px; }.search-form { grid-template-columns: 1fr; gap: 9px; }.search-form button { width: 100%; }
  .pest-grid, .lower-grid, .situation-guide-grid { grid-template-columns: 1fr; }.pest-card-main { grid-template-columns: minmax(0, .43fr) minmax(0, 1fr); }.pest-image-wrap { height: 144px; }
  .section-title-row { align-items: flex-start; }.section-note { display: none; }.secondary-link { font-size: 12px; }.article-item { grid-template-columns: 132px minmax(0, 1fr); }.article-item img { width: 132px; height: auto; aspect-ratio: 16 / 9; }
  .provider-item { grid-template-columns: 92px minmax(0, 1fr); }.provider-site-link { width: 88px; height: 58px; }.provider-site-thumb { width: 88px; height: 58px; }.provider-actions { grid-column: 2; }.provider-button { width: 100%; }.provider-copy > small { white-space: normal; }.provider-tags { flex-wrap: wrap; }
  .site-footer { grid-template-columns: 1fr; padding: 28px 20px; gap: 27px; }.footer-links { padding-left: 0; border-left: 0; }
  .image-preference-dialog { padding: 24px 20px; }
  .image-preference-options { grid-template-columns: 1fr; }
  .home-page .main-content { padding-bottom: 84px; }
  .home-page .mobile-floating-tools { bottom: 78px; }
  .home-mobile-ranking-button { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 42; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 16px; color: #fff; background: var(--navy-900); border: 1px solid var(--navy-900); border-radius: 9px; box-shadow: 0 8px 22px rgba(6,34,71,.25); font-size: 14px; font-weight: 800; line-height: 1.3; text-decoration: none; }
  .home-mobile-ranking-button:hover, .home-mobile-ranking-button:focus-visible { color: #fff; background: var(--navy-800); }
  .home-mobile-ranking-button:focus-visible { outline: 3px solid #f1bf4a; outline-offset: 2px; }
}

.affiliate-disclosure { display: flex; align-items: center; min-height: 24px; margin: 0 0 11px; color: #657486; font-size: 12px; line-height: 1.4; }
.affiliate-disclosure-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; color: #665200; background: #fff8d9; border: 1px solid #dfc75c; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 620px) {
  .affiliate-disclosure { margin-bottom: 9px; font-size: 11px; }
  .affiliate-disclosure-badge { min-height: 23px; padding: 3px 8px; font-size: 10px; }
}
