/* hcm-cs-* キャンプ場一覧（記事3153）薄い行用。2026-10-14。
   行の td にクラスを付けないので、列は nth-child で指定する。
   列順: 1 施設名 / 2 エリア / 3 市町村 / 4 料金 / 5 電源 / 6 乗り入れ / 7 営業期間 / 8 ペット / 9 予約 / 10 最寄り空港 / 11 詳細
   スマホ幅の各行のラベル（言語ごと）は記事側の小さな <style> で出す。配色は design.md（moss #1e3522 / clay #b06a3b）。 */
.hcm-cs-wrap { font-size: 0.95em; }
.hcm-cs-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #f7f6f2; border: 1px solid #d9d6cd; border-radius: 6px; padding: 12px 14px; margin: 16px 0 10px; }
.hcm-cs-filter { display: flex; flex-direction: column; gap: 4px; font-size: 0.85em; color: #1f2419; }
.hcm-cs-filter--search { flex: 1 1 200px; }
.hcm-cs-select, .hcm-cs-search { border: 1px solid #d9d6cd; border-radius: 4px; padding: 6px 8px; font-size: 0.95em; background: #fff; color: #1f2419; min-width: 120px; }
.hcm-cs-select:focus, .hcm-cs-search:focus { outline: none; border-color: #b06a3b; box-shadow: 0 0 0 2px rgba(176, 106, 59, 0.2); }
.hcm-cs-count { font-weight: bold; color: #1e3522; margin: 6px 2px 10px; font-size: 0.92em; }
.hcm-cs-tablewrap { overflow-x: auto; }
.hcm-cs-table { width: 100%; font-size: 0.9em; margin: 0 0 6px; }
.hcm-cs-wrap table.hcm-cs-table { border-collapse: separate; border-spacing: 0; overflow: visible; }
.hcm-cs-table th, .hcm-cs-table td { border: 1px solid #d9d6cd; padding: 6px 10px; text-align: left; vertical-align: top; white-space: nowrap; }
.hcm-cs-table th + th, .hcm-cs-table td + td { border-left: none; }
.hcm-cs-table th { background: #1e3522; color: #fff; }
.hcm-cs-table tbody tr:nth-child(even) { background: #f7f6f2; }
.hcm-cs-table th.sortable { cursor: pointer; user-select: none; }
.hcm-cs-table th.sortable:hover { background: #2b4a2f; }
.hcm-cs-table .hcm-cs-sort-icon { opacity: .6; margin-left: 2px; font-size: 0.85em; }
.hcm-cs-table td a { color: #1e3522; font-weight: bold; text-decoration: underline; }
.hcm-cs-table td a:hover { color: #b06a3b; }
.hcm-cs-footnote { font-size: 0.82em; color: #5b5a54; margin-top: 6px; }
.hcm-cs-table td:nth-child(1), .hcm-cs-table th:first-child { white-space: normal; min-width: 280px; }
.hcm-cs-table td:nth-child(2) { min-width: 64px; }
.hcm-cs-table td:nth-child(3) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.hcm-cs-table td:nth-child(4) { min-width: 88px; }
.hcm-cs-table td:nth-child(5), .hcm-cs-table td:nth-child(6), .hcm-cs-table td:nth-child(7), .hcm-cs-table td:nth-child(8), .hcm-cs-table td:nth-child(9) { min-width: 56px; }
.hcm-cs-table td:nth-child(10) { min-width: 130px; }
.hcm-cs-table td:nth-child(11) { min-width: 64px; text-align: center; }
.hcm-cs-table th:first-child, .hcm-cs-table td:nth-child(1) { position: sticky; left: 0; z-index: 1; }
.hcm-cs-table th:first-child { z-index: 2; background: #1e3522; }
.hcm-cs-table td:nth-child(1) { background: #fff; }
.hcm-cs-table tbody tr:nth-child(even) td:nth-child(1) { background: #f7f6f2; }
.hcm-cs-table tr.hcm-cs-detail td { white-space: normal; background: #fbfaf7; position: static; }
.hcm-cs-table tr.hcm-cs-detail td p { margin: 0 0 4px; font-size: 0.95em; }
.hcm-cs-table tr[data-hcm-cs-hidden="1"] { display: none; }
.hcm-cs-source-note { color: #5b5a54; font-size: 0.82em; margin-left: 2px; }
.hcm-cs-table tbody td button { font: inherit; font-size: 0.9em; cursor: pointer; padding: 3px 10px; border-radius: 4px; border: 1px solid #b06a3b; background: #fff; color: #b06a3b; }
.hcm-cs-table tbody td button[aria-expanded="true"] { background: #b06a3b; color: #fff; }
.hcm-cs-table tbody td button:disabled { opacity: .5; cursor: wait; }
.hcm-cs-wrap.hcm-cs-collapsed .hcm-cs-table tr[data-hcm-cs-more="1"] { display: none !important; }
.hcm-cs-morebar { text-align: center; margin: 12px 0 4px; }
.hcm-cs-morebar[hidden] { display: none; }
.hcm-cs-morebtn { font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; padding: 10px 28px; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; }
.hcm-cs-morebtn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hcm-cs-map img { width: 100%; height: auto; display: block; border: 1px solid #cfd8d2; border-radius: 6px; }

@media (max-width: 600px) {
  .hcm-cs-filters { flex-direction: column; align-items: stretch; }
  .hcm-cs-select, .hcm-cs-search { width: 100%; }
  .hcm-cs-filter--search { flex: none; }
}
/* スマホ幅: 1施設1カード。DOM は表のまま、見た目だけ変える（並べ替え・絞り込みはそのまま動く） */
@media (max-width: 640px) {
  .hcm-cs-tablewrap { overflow-x: visible; }
  .hcm-cs-table thead { display: none; }
  .hcm-cs-table, .hcm-cs-table tbody, .hcm-cs-table tr, .hcm-cs-table td { display: block; width: 100%; box-sizing: border-box; }
  .hcm-cs-table tr { border: 1px solid #d9d6cd; border-radius: 8px; margin: 0 0 10px; padding: 8px 10px; background: #fff; }
  .hcm-cs-table tbody tr:nth-child(even) { background: #fff; }
  .hcm-cs-table td { border: none; border-bottom: 1px dashed #d9d6cd; padding: 4px 0; white-space: normal !important; max-width: none; min-width: 0; position: static; text-align: left; }
  .hcm-cs-table td:last-child { border-bottom: none; }
  .hcm-cs-table td:nth-child(n+2)::before { display: inline-block; min-width: 6.5em; font-weight: bold; color: #1e3522; }
  .hcm-cs-table td:nth-child(1) { font-size: 1.08em; font-weight: bold; border-bottom: 1px solid #d9d6cd; margin-bottom: 4px; padding-bottom: 6px; background: #fff; }
  .hcm-cs-table tbody tr:nth-child(even) td:nth-child(1) { background: #fff; }
  .hcm-cs-table td:nth-child(1), .hcm-cs-table td:nth-child(3) { min-width: 0; max-width: none; overflow: visible; }
  .hcm-cs-table td:nth-child(11)::before { content: none; }
  .hcm-cs-table td .hcm-cs-table tbody td button { width: 100%; padding: 6px 8px; }
  .hcm-cs-table tr.hcm-cs-detail td { padding: 4px 0; }
  .hcm-cs-table tr.hcm-cs-detail td::before { content: none; }
  .hcm-cs-table tr.hcm-cs-detail[hidden] { display: none; }
}

/* ---- 空港から近いキャンプ場（build_airport_camp_article.py / airport_table_cards.py）の表。2026-10-14 に記事内 <style> から移した ---- */
.hcm-ap-wrap { overflow-x: auto; margin: 0 0 12px; }
.hcm-ap-wrap table.hcm-airport-table { width: 100%; border-collapse: collapse; font-size: .92em; margin: 0; }
.hcm-airport-table th, .hcm-airport-table td { border: 1px solid #d9d6cd; padding: 6px 8px; text-align: left; vertical-align: top; }
.hcm-airport-table th { background: #1e3522; color: #fff; white-space: nowrap; }
.hcm-airport-table td.hcm-ap-dist { white-space: nowrap; }
.hcm-airport-table td a { color: #1e3522; font-weight: 700; }
@media (max-width: 640px) {
  .hcm-ap-wrap { overflow-x: visible; }
  .hcm-airport-table thead { display: none; }
  .hcm-airport-table, .hcm-airport-table tbody { display: block; width: 100%; }
  .hcm-airport-table tr { display: flex; flex-direction: column; width: 100%; box-sizing: border-box; border: 1px solid #d9d6cd; border-radius: 8px; margin: 0 0 10px; padding: 8px 10px; background: #fff; }
  .hcm-airport-table td { display: block; border: none; border-bottom: 1px dashed #d9d6cd; padding: 4px 0; white-space: normal; }
  .hcm-airport-table td:last-child { border-bottom: none; }
  .hcm-airport-table td[data-label]::before { content: attr(data-label) "："; display: inline-block; min-width: 6.5em; font-weight: 700; color: #1e3522; }
  .hcm-airport-table td.hcm-ap-name { order: -1; font-size: 1.08em; font-weight: 700; border-bottom: 1px solid #d9d6cd; margin-bottom: 4px; padding-bottom: 6px; }
  .hcm-airport-table td.hcm-ap-name::before { content: none; }
}

/* ---- 答えの箱（d26 案1 ①、2026-10-14）: 一覧記事の冒頭に「何件・何で絞れる・料金の幅」と節への札。3153 は build_3153.py が出す。645・8116 は本文に直接 ---- */
.hcm-answer { border: 2px solid #1e3522; border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; background: #f3f6f1; }
.hcm-answer__head { margin: 0 0 6px; font-weight: 700; color: #1e3522; font-size: 1.02em; }
.hcm-answer__facts { margin: 0 0 10px; padding-left: 1.2em; font-size: .95em; }
.hcm-answer__facts li { margin: 0 0 2px; }
.hcm-answer__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hcm-answer__chip { display: inline-block; padding: 8px 14px; border: 1px solid #b06a3b; border-radius: 999px; color: #b06a3b; font-weight: 700; text-decoration: none; font-size: .9em; line-height: 1.3; }
.hcm-answer__chip:hover, .hcm-answer__chip:focus-visible { background: #b06a3b; color: #fff; }
.hcm-answer__date { font-size: .82em; color: #5b5a54; margin: 6px 0 0; }

/* 2026-10-16 施設別ページの末尾の注記（このページについて・確認日・出典）。本文の段落色より優先して淡くする */
.editor-content > p.hcm-cs-footnote { color: #5b5a54 !important; font-size: 0.82em; line-height: 1.7; margin-top: 2em; padding-top: 1em; border-top: 1px solid #e3e0d8; }
.editor-content > p.hcm-cs-footnote a { color: inherit; }

/* 2026-10-16 施設別の一覧（category-facility.php、scripts/build_facility_list.py）。画像なし・地図＋絞り込み＋1行1施設。配色は moss #1e3522 / clay #b06a3b */
.hcm-fl { font-size: 0.95em; color: #1f2419; }
.hcm-fl-ctrl { background: #f7f6f2; border: 1px solid #d9d6cd; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; display: grid; gap: 8px; }
.hcm-fl-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hcm-fl-lab { font-size: 0.82em; color: #5b5a54; min-width: 6.5em; }
.hcm-fl-chip { font: inherit; font-size: 0.88em; line-height: 1.2; padding: 7px 12px; border-radius: 999px; border: 1px solid #c9c5b9; background: #fff; color: #1f2419; cursor: pointer; }
.hcm-fl-chip:hover { border-color: #b06a3b; }
.hcm-fl-chip.is-on { background: #1e3522; border-color: #1e3522; color: #fff; }
.hcm-fl-reset { font: inherit; font-size: 0.82em; margin-left: auto; padding: 6px 10px; border: none; background: none; color: #b06a3b; text-decoration: underline; cursor: pointer; }
.hcm-fl-count { margin: 2px 0 0; font-weight: 700; color: #1e3522; }
.hcm-fl-map { position: relative; max-width: 560px; margin: 0 auto 12px; }
.hcm-fl-map svg { width: 100%; height: auto; display: block; }
.hcm-fl-map svg path:not(.hcm-fl-air path) { fill: #e7e4da; stroke: #c9c5b9; stroke-width: .6; }
.hcm-fl-air path { fill: #5b6472; } .hcm-fl-air text { font-size: 9px; fill: #5b6472; }
.hcm-fl-pin { cursor: pointer; } .hcm-fl-pin:hover circle, .hcm-fl-pin:focus circle { r: 7; }
.hcm-fl-tip { position: absolute; left: 8px; bottom: 30px; background: #fff; border: 1px solid #d9d6cd; border-radius: 6px; padding: 8px 10px; font-size: 0.88em; box-shadow: 0 2px 8px rgba(0,0,0,.12); max-width: 85%; }
.hcm-fl-tip a { color: #1e3522; font-weight: 700; }
.hcm-fl-maphint, .hcm-fl-note { font-size: 0.82em; color: #5b5a54; margin: 4px 0; }
.hcm-fl-tablewrap { overflow-x: auto; }
.hcm-fl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92em; }
.hcm-fl-table th, .hcm-fl-table td { border-bottom: 1px solid #e3e0d8; padding: 8px 10px; text-align: left; vertical-align: top; }
.hcm-fl-table thead th { background: #1e3522; color: #fff; font-weight: 700; white-space: nowrap; }
.hcm-fl-table thead th button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
.hcm-fl-arrow::after { content: "↕"; opacity: .45; margin-left: 4px; font-size: .9em; }
th[aria-sort="ascending"] .hcm-fl-arrow::after { content: "▲"; opacity: 1; }
th[aria-sort="descending"] .hcm-fl-arrow::after { content: "▼"; opacity: 1; }
.hcm-fl-table tbody tr:nth-child(even) { background: #faf9f5; }
.hcm-fl-table tbody tr.is-flash { background: #fbe9d9; }
.hcm-fl-name { color: #1e3522; font-weight: 700; text-decoration: underline; }
.hcm-fl-why { display: block; font-size: 12px; color: #6b4e1f; font-weight: 400; margin-top: 2px; }
.hcm-fl-go { white-space: nowrap; }
.hcm-fl-btn { display: inline-block; padding: 5px 10px; border-radius: 6px; border: 1px solid #b06a3b; color: #b06a3b; font-size: 0.86em; font-weight: 700; text-decoration: none; margin: 2px 0; }
.hcm-fl-btn.is-book { background: #b06a3b; color: #fff; }
.hcm-fl-btn.is-page { border-color: #1e3522; color: #1e3522; }
@media (max-width: 760px) {
  .hcm-fl-lab { min-width: 100%; }
  .hcm-fl-table thead { display: none; }
  .hcm-fl-table, .hcm-fl-table tbody, .hcm-fl-table tr, .hcm-fl-table td { display: block; width: 100%; }
  .hcm-fl-table tr { border: 1px solid #d9d6cd; border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; background: #fff !important; }
  .hcm-fl-table tr.is-flash { background: #fbe9d9 !important; }
  .hcm-fl-table td { border: none; padding: 2px 0; display: flex; gap: 8px; }
  .hcm-fl-table td::before { content: attr(data-l); flex: 0 0 6.5em; color: #5b5a54; font-size: 0.85em; }
  .hcm-fl-table td:first-child { font-size: 1.05em; padding-bottom: 6px; }
  .hcm-fl-table td:first-child::before, .hcm-fl-table td.hcm-fl-go::before { content: none; }
  .hcm-fl-table td.hcm-fl-go { padding-top: 6px; gap: 6px; flex-wrap: wrap; }
}
.hcm-fl-table tr[hidden] { display: none !important; }

/* 2026-10-18 分からない値は出さない: スマホの1施設1ブロックでは空の項目を行ごと隠す */
@media (max-width: 760px) { .hcm-fl-table td:empty { display: none; } }
