:root {
  --green: #6fa252;
  --green-dark: #4f7c37;
  --brown: #463323;
  --ink: #2c3328;
  --sky: #e8f4f8;
  --coral: #d76f52;
  --yellow: #f3c85a;
  --cream: #FEF9F0;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(61, 79, 45, 0.18);
  --max-width: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brown);
  background: #FEF9F0;
  /* 本文は自然な改行に任せる。極端に長い英単語はどこでも折返し可。 */
  overflow-wrap: anywhere;
}

/* CJK 賢い折返しは見出しだけに適用（本文は自然改行に） */

h1, h2, h3, h4 {
  word-break: keep-all;
  line-break: strict;
}

a { color: inherit; }

button,
select { font: inherit; }

.site { min-height: 100vh; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg-wrap {
  display: block;
}

.hero__bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__overlay {
  display: none;
}

.hero__header {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 96px, 1180px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero__header .brand { margin-left: -40px; }

.hero__count {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 26px 12px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(70, 51, 35, 0.12);
  white-space: nowrap;
  font-family: inherit;
  font-feature-settings: "tnum" 1;
}

.hero__count-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
}

.hero__count-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-left: 2px;
}

.hero__count-unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-left: -2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--brown);
  text-decoration: none;
}

.brand__logo {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(70, 51, 35, 0.14));
}

.brand__text { display: grid; gap: 5.5px; }

.brand__sub { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; }

.brand__name { font-size: 27px; font-weight: 600; letter-spacing: 0.03em; line-height: 1.14; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.2vw, 52px);
  padding-top: 18px;
}

.section-shell {
  width: min(100% - 96px, 1180px);
  margin: 0 auto;
}

.section {
  padding: 92px 0;
  background: #FEF9F0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-label {
  color: #4f8a43;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}

.address {
  color: #475247;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
  font-weight: 600;
}

.description {
  color: #1f2b22;
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  font-weight: 600;
}

.basic-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 14px;
  gap: 10px;
}

.basic-info div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 64px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #f7faf5;
  border: 1px solid #e7eee4;
}

.basic-info span {
  color: #4f8a43;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.basic-info strong {
  color: #1f2b22;
  font-size: 14px;
  line-height: 1.5;
}

.facility-grid {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 6px;
}

.facility-grid li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(31, 43, 34, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #1f2b22;
  font-size: 14px;
  font-weight: 600;
}

.key-facts {
  margin: 26px 0 22px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e7eee4;
  border-bottom: 1px solid #e7eee4;
}

.key-facts__cell {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-right: 1px solid #e7eee4;
}

.key-facts__cell:last-child {
  border-right: none;
}

.key-facts__cell dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b7568;
}

.key-facts__cell dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2b22;
  white-space: pre-line;
}

.key-facts__cell.is-positive dd { color: #2f7a35; }

@media (max-width: 700px) {
  .key-facts {
    grid-template-columns: 1fr;
    padding: 6px 0;
  }

  .key-facts__cell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-right: none;
    border-bottom: 1px solid #e7eee4;
  }

  .key-facts__cell:last-child {
    border-bottom: none;
  }

  .key-facts__cell dt {
    font-size: 13px;
  }

  .key-facts__cell dd {
    font-size: 15px;
  }
}

.official-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  width: 100%;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f8a43, #2f6f35);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(79, 138, 67, 0.25);
}

.map-area {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(31, 43, 34, 0.08);
  border: 1px solid rgba(31, 43, 34, 0.08);
  position: relative;
}

.pseudo-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #eef4ea;
}

/* Google Maps JavaScript API のマップコンテナ */

.google-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- マップピン（DOGPIN ロゴ画像）AdvancedMarkerElement の content として ---- */

.pin {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 8px rgba(31, 43, 34, 0.28));
  transition: transform .18s ease, filter .18s ease;
}

.pin__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.pin:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 14px rgba(31, 43, 34, 0.38));
}

.pin.active {
  transform: scale(1.28);
  z-index: 7;
  filter: drop-shadow(0 6px 14px rgba(215, 111, 82, 0.55));
}

.pin.active::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  opacity: 0;
  animation: pin-pulse 1.6s ease-out infinite;
}

@keyframes pin-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }

  100% { transform: scale(1.7); opacity: 0; }
}

/* ---- ホバーツールチップ ---- */

/* ===== マップ＋絞り込み統合セクション ===== */

.map-explore {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  background:
    radial-gradient(circle at 92% 4%, rgba(111, 162, 82, 0.12), transparent 18%),
    radial-gradient(circle at 0% 92%, rgba(111, 162, 82, 0.1), transparent 22%),
    #FEF9F0;
}

.map-explore__layout {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 1fr;
  gap: 24px;
  align-items: start;
}

.map-explore__filters {
  min-width: 0;
  /* マップと同じ高さに収め、内側だけスクロールさせる */
  height: clamp(640px, 82vh, 820px);
  position: sticky;
  top: 88px;
  align-self: start;
}

.map-explore__filters .filter-board {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-explore__filters .filter-groups {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 43, 34, 0.18) transparent;
}

.map-explore__filters .filter-groups::-webkit-scrollbar { width: 8px; }

.map-explore__filters .filter-groups::-webkit-scrollbar-thumb {
  background: rgba(31, 43, 34, 0.18);
  border-radius: 999px;
}

/* マップ横の狭いフィルタ列用：アイコン＋見出しを上、チップは下に全幅で並べる
   全7行が縦スクロールなしで収まるよう、要素を一回り小さく */

.map-explore__filters .filter-board {
  padding: 14px 16px;
}

.map-explore__filters .filter-groups { gap: 6px; }

.map-explore__filters .filter-row {
  grid-template-columns: 32px 1fr;
  grid-template-areas: "icon title" "options options";
  gap: 2px 10px;
  padding: 9px 12px;
  min-height: auto;
  align-items: center;
}

.map-explore__filters .filter-row__mark {
  grid-area: icon;
  width: 30px;
  height: 30px;
}

.map-explore__filters .filter-row__mark svg { width: 17px; height: 17px; }

.map-explore__filters .filter-row h3 {
  grid-area: title;
  font-size: 13.5px;
}

.map-explore__filters .filter-row .filter-options {
  grid-area: options;
  gap: 6px 8px;
  margin-top: 2px;
}

/* PC: map-explore はフィルタ列の高さに制約があるためチップを少し小さく（base 52px から縮小） */

.map-explore__filters .filter-row .filter-options button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

@media (max-width: 880px) {
  /* マップ列が縦積みになりスクロールが許容される → チップを base に近づける */

  .map-explore__filters .filter-row .filter-options {
    gap: 8px 10px;
  }

  .map-explore__filters .filter-row .filter-options button {
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
  }
}

.filter-clear {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  border: 1px solid rgba(31, 43, 34, 0.16);
  background: #fff;
  color: #4f8a43;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(31, 43, 34, 0.13);
}

.filter-clear:hover { background: #eef5ea; border-color: #4f8a43; }

/* 右マップ：左フィルターをスクロールしても追従 */

.map-explore .map-area {
  position: sticky;
  top: 88px;
  height: clamp(640px, 82vh, 820px);
}

/* ピンのコンテナ（空白部分は地図操作を透過） */

/* 件数バッジ */

.map-result {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 8;
  background: #fff;
  color: #1f2b22;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(31, 43, 34, 0.13);
}

.map-result.is-empty { color: #a13030; }

/* マップ内ポップアップカード */

.map-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  z-index: 9;
  background: #fff;
  border-radius: 20px;
  padding: 24px 24px 22px;
  box-shadow: 0 24px 60px rgba(31, 43, 34, 0.28);
  border: 1px solid rgba(31, 43, 34, 0.06);
}

.map-popup[hidden] { display: none; }

.map-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f2efe6;
  color: #5b6c5f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.map-popup__close:hover { background: #e6e2d4; }

.map-popup__name {
  margin: 6px 0 8px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: #1f2b22;
}

.map-popup .key-facts { margin: 18px 0 16px; }

.map-popup .key-facts__cell { padding: 0 10px; }

.map-popup .key-facts__cell dt { white-space: nowrap; }

.map-popup .facility-grid { margin-bottom: 18px; }

.map-popup .official-button { width: 100%; }

/* ボタン 2 つは key-facts の直下 → 下の特徴チップとの間隔を確保 */

.map-popup .map-jump-button { margin-bottom: 18px; }

/* Google マップで開くボタン（ポップアップ内） */

.map-jump-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.map-jump-button:hover {
  background: var(--green);
  color: #fff;
}

.map-jump-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 880px) {
  .map-explore__layout { grid-template-columns: 1fr; }

  .map-explore .map-area {
    position: static;
    height: clamp(420px, 62vh, 560px);
  }

  /* pseudo-map を map-area と同じ高さで埋める（白領域防止） */

  .map-explore .map-area .pseudo-map {
    height: 100%;
    min-height: 0;
  }

  .map-explore__filters {
    position: static;
    height: auto;
  }

  .map-explore__filters .filter-board { height: auto; }

  .map-explore__filters .filter-groups { overflow: visible; padding-right: 0; }
}

/* スマホ：ポップアップをボトムシート風に */

@media (max-width: 720px) {
  .map-popup {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    max-height: 78%;
    border-radius: 18px;
  }

  /* ポップアップ内の key-facts も縦並び用に padding を上書き */

  .map-popup .key-facts__cell { padding: 12px 0; }

  /* ワクチン証明とボタンの間隔を詰める */

  .map-popup .key-facts { margin: 12px 0 6px; }

  .map-popup .map-jump-button { margin-bottom: 12px; }

  .map-popup .facility-grid { margin-bottom: 12px; padding: 6px 0 0; gap: 8px; }

  .map-popup .facility-grid:empty { display: none; margin: 0; padding: 0; }
}

.feature-filter-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.section-kicker__line {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}

.feature-filter-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  font-weight: 700;
}

.feature-filter-heading__lead {
  margin: 0;
  color: rgba(31, 43, 34, 0.7);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 500;
}

/* ===== トップの「大阪のドッグラン一覧」 ===== */

.dogrun-list__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dogrun-list__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e3e0d4;
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dogrun-list__card:hover {
  border-color: var(--green, #4f8a43);
  box-shadow: 0 8px 22px rgba(31, 43, 34, 0.08);
  transform: translateY(-2px);
}

.dogrun-list__area {
  font-size: 12.5px;
  font-weight: 600;
  color: #4f8a43;
  letter-spacing: 0.02em;
}

.dogrun-list__name {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b22;
  line-height: 1.35;
}

.dogrun-list__meta {
  font-size: 13px;
  color: #5b6c5f;
  line-height: 1.7;
}

/* 折りたたみ: 11 件目以降を視覚的に隠す（リンクは DOM に残す＝SEO 維持） */

.dogrun-list__grid.is-collapsed .dogrun-list__card:nth-child(n+11) {
  display: none;
}

.dogrun-list__more-wrap {
  text-align: center;
  margin-top: 22px;
}

.dogrun-list__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--green, #4f8a43);
  background: #fff;
  color: #4f8a43;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.dogrun-list__more:hover {
  background: var(--green, #4f8a43);
  color: #fff;
}

@media (max-width: 640px) {
  .dogrun-list__grid { grid-template-columns: 1fr; gap: 12px; }

  .dogrun-list__card { padding: 16px 18px; }
}

.filter-board,
.selected-filter-card {
  border: 1px solid rgba(31, 43, 34, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(31,43,34,0.08);
}

.filter-board {
  padding: 22px;
}

.filter-groups {
  display: grid;
  gap: 10px;
}

.filter-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 56px 172px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(31, 43, 34, 0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31,43,34,0.04);
}

.filter-row__mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef5eb;
  color: #2f8f3d;
  font-size: 15px;
  font-weight: 600;
}

.filter-row__mark svg {
  width: 26px;
  height: 26px;
  display: block;
}

.filter-row h3 {
  margin: 0;
  color: #1f2b22;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.filter-options button {
  min-height: 52px;
  padding: 0 22px;
  border: 1.5px solid rgba(31, 43, 34, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #1f2b22;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 100ms ease, box-shadow 160ms ease;
}

.filter-options button:hover {
  border-color: var(--green-dark);
  background: #f6faef;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 138, 67, 0.12);
}

.filter-options button:active {
  transform: translateY(0);
}

.filter-options button.is-selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(79, 138, 67, 0.25);
}

.filter-options button.is-selected:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* ===== Guide セクション ===== */

.guide {
  position: relative;
  overflow: hidden;
  padding-bottom: 150px;
}

.guide__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: stretch;
}

/* ---- 左カラム ---- */

.guide__intro {
  position: relative;
  display: flex;
  flex-direction: column;
}

.guide__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.guide__kicker-line {
  display: inline-block;
  width: 42px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.guide__title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.28;
  font-weight: 700;
}

.guide__subtitle {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 700;
}

.guide__lead {
  margin: 0 0 28px;
  max-width: 46ch;
  color: rgba(44, 51, 40, 0.72);
  font-size: 15px;
  line-height: 2;
  font-weight: 500;
}

/* 犬の写真（切り抜き済み・形は画像に焼き込み） */

.guide__photo {
  position: relative;
  margin: 0;
  margin-top: auto;       /* 左カラムを下端に揃える */
  margin-left: -38px;     /* 画像内の透明左余白(38px)を補正、見える左端を GUIDE 文字と揃える */
  width: 100%;
  max-width: 480px;
  transform: translateY(-20px);  /* カード06の下辺と写真の下辺を揃える（layout 不変） */
}

.guide__photo-img {
  display: block;
  width: 100%;
  height: auto;          /* 切り抜き画像の元のアスペクト比で表示（二重マスクしない） */
}

/* 写真未配置のときだけ、波形にマスクした緑のプレースホルダを表示 */

.guide__photo[data-empty="true"] {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, #f4faef 0%, #e6f1da 60%, #dcecc9 100%);
  clip-path: polygon(
    0% 11%, 9% 5%, 19% 10%, 31% 4%, 44% 9%, 57% 3%, 70% 8%, 84% 4%, 100% 9%,
    100% 100%, 0% 100%
  );
}

.guide__photo-caption {
  display: none;
  position: absolute;
  inset: auto 0 18px;
  text-align: center;
  color: rgba(79, 124, 55, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.guide__photo[data-empty="true"] .guide__photo-caption { display: block; }

/* 装飾の肉球 */

.guide__paw {
  position: absolute;
  color: rgba(111, 162, 82, 0.28);
  pointer-events: none;
}

.guide__paw--1 { width: 38px; height: 38px; top: -6px; right: 54px; transform: rotate(18deg); }

.guide__paw--2 { width: 26px; height: 26px; top: 44px; right: 22px; transform: rotate(-12deg); }

/* 手書きアクセント */

.guide__accent {
  position: absolute;
  right: 120px;
  bottom: 96px;
  margin: 0;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
  color: var(--green-dark);
  text-align: center;
  transform: rotate(-7deg);
  pointer-events: none;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 0 4px rgba(255, 255, 255, 1),
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.6);
}

/* ---- 右カラム ---- */

.guide__right { position: relative; }

.guide__cards {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(44, 51, 40, 0.07);
}

.guide-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.guide-card__num {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.guide-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.guide__cards .guide-card:nth-child(6) .guide-card__title {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.guide-card__rule {
  margin: 0 0 12px;
  border: 0;
  border-top: 1px solid rgba(44, 51, 40, 0.10);
}

.guide-card__desc {
  margin: 0;
  color: rgba(44, 51, 40, 0.66);
  font-size: 13.5px;
  line-height: 1.8;
  font-weight: 500;
}

/* ---- セクション下部の芝生の波 ---- */

.guide-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 0;
  pointer-events: none;
}

.guide-grass svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* スマホでは Guide 左カラムの写真＋手書き＋肉球を非表示 */

@media (max-width: 720px) {
  .guide__intro .guide__photo,
  .guide__intro .guide__paw,
  .guide__intro .guide__accent { display: none; }
}

@media (max-width: 980px) {
  .hero { min-height: 820px; }

  .hero__header { width: min(100% - 40px, 1180px); }

  .nav { display: none; }

  .hero__overlay { background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.68) 42%, rgba(255,255,255,0.08) 100%); }

  .section-shell { width: min(100% - 40px, 1180px); }

  .map-section__inner,
  .feature-filter-layout,
  .guide__layout,
  .favorite-strip__inner {
    grid-template-columns: 1fr;
  }

  .guide__layout { gap: 36px; }

  .guide__cards { grid-template-columns: repeat(2, 1fr); }

  .guide { padding-bottom: 120px; }

  .map-area,
  .pseudo-map {
    height: auto;
    min-height: 500px;
  }

  .feature-filter-heading { align-items: start; flex-direction: column; gap: 10px; }

  .filter-row {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 8px;
  }

  .filter-row__mark { grid-row: 1; grid-column: 1; }

  .filter-row h3 { grid-row: 1; grid-column: 2; padding-top: 0; }

  .filter-options { grid-row: 2; grid-column: 2; }
}

@media (max-width: 720px) {
  .hero { min-height: 0; }

  .hero__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100% - 32px, 1180px);
  }

  .hero__header .brand { margin-left: 0; }

  /* スマホ用に縮小して折返しを防ぐ */

  .brand { gap: 0; }

  .brand__logo { width: 44px; height: 44px; }

  .brand__text { gap: 4px; }

  .brand__sub { font-size: 11px; line-height: 1.2; letter-spacing: 0.03em; }

  .brand__name { font-size: 18px; line-height: 1.16; letter-spacing: 0.02em; }

  /* カウントバッジを縮小 */

  .hero__count {
    padding: 7px 14px 7px 12px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(70, 51, 35, 0.10);
  }

  .hero__count-label,
  .hero__count-unit { font-size: 11.5px; }

  .hero__count-num { font-size: 17px; }
}

@media (max-width: 640px) {
  .hero__bg { background-position: 64% center; }

  .brand { gap: 0; }

  .brand__logo { width: 48px; height: 48px; }

  .brand__text { gap: 5px; }

  .brand__sub { font-size: 11px; line-height: 1.16; }

  .brand__name { font-size: 19px; line-height: 1.14; }

  .section { padding: 64px 0; }

  .feature-filter-heading h2 { font-size: 28px; line-height: 1.3; }

  .feature-filter-heading > p { font-size: 14px; line-height: 1.7; }

  .filter-board,
  .selected-filter-card { border-radius: 16px; }

  .filter-board { padding: 16px; }

  .filter-row {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .filter-row__mark { width: 40px; height: 40px; font-size: 12px; }

  .filter-row__mark svg { width: 22px; height: 22px; }

  .filter-row h3 { font-size: 17px; }

  .filter-options { gap: 8px 10px; }

  .filter-options button { min-height: 46px; padding: 0 18px; font-size: 14px; }

  .description { font-size: 13.5px; line-height: 1.72; }

  .basic-info { gap: 8px; margin: 20px 0 16px; }

  .basic-info div { min-height: 72px; padding: 12px 10px; }

  .basic-info strong { font-size: 13px; }

  .facility-grid { gap: 8px; padding: 14px 0 16px; }

  .facility-grid li { min-height: 40px; padding: 0 14px; font-size: 13px; }

  .official-button { margin-top: 20px; }

  .map-area,
  .pseudo-map { min-height: 300px; }

  .guide__cards { grid-template-columns: 1fr; gap: 14px; }

  .guide__layout { gap: 28px; }

  .guide__photo { max-width: 100%; margin-inline: auto; }

  .guide__accent { font-size: 24px; right: 4px; bottom: 52px; }

  .guide__paw--1, .guide__paw--2 { display: none; }

  .guide-grass svg { height: 60px; }

  .guide { padding-bottom: 90px; }
}

/* ==========================================================================
   Detail page
   ========================================================================== */

.detail-body { background: #FEF9F0; }

.detail-shell {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 43, 34, 0.06);
}

.detail-topbar__inner {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.detail-topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* コラム（記事）ページはアイコンとテキストの間隔をトップページと揃える（狭め） */

.article-body .detail-topbar .brand { gap: 2px; }

.detail-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 43, 34, 0.35);
  background: #fff;
  color: #3f463b;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.detail-topbar__back:hover {
  background: #f4f3ec;
  border-color: rgba(31, 43, 34, 0.55);
}

.detail-breadcrumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: #6b7568;
}

.detail-breadcrumb .detail-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-breadcrumb a {
  color: #4f8a43;
  text-decoration: none;
  font-weight: 600;
}

.detail-breadcrumb a:hover { text-decoration: underline; }

.detail-breadcrumb [aria-current="page"] {
  color: #1f2b22;
  font-weight: 600;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 14px;
}

@media (max-width: 900px) {
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}

@media (max-width: 640px) {
  .detail-shell { width: min(100% - 32px, 1180px); }

  .detail-topbar__inner { width: min(100% - 32px, 1180px); height: 64px; }

  .detail-topbar__back { padding: 8px 14px; font-size: 12px; }

  .detail-topbar .brand__sub { display: none; }

  /* コラム（記事）ページはモバイルでもサブタイトルを表示する */

  .article-body .detail-topbar .brand__sub { display: block; }
}

/* Detail page refresh */

.detail-body {
  background:
    radial-gradient(circle at 88% 6%, rgba(199, 224, 187, 0.34), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7faf5 44%, #f3f7ef 100%);
}

.detail {
  padding-bottom: 0;
}

/* 概要カード（白カード）直下の「記事編集日」— 中央寄せ、左右に細い横線。
   .summary-card grid の右カラム 2 行目に置いてカードと同じ幅にする */

.detail-edited-date {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #5b6c5f;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.detail-edited-date::before,
.detail-edited-date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3e0d4;
}

.detail-edited-date svg { flex: 0 0 auto; }

.detail-edited-date span { margin-left: -4px; }

.detail-edited-date time { font-weight: 600; }

/* 施設名 + 訪問済みスタンプの行（setText が h1 の中身を上書きするため img は h1 の外に置く） */

/* 訪問済み注記 — 施設名の下、左寄せ */

/* 訪問済みスタンプ — 施設名の右に -8° 傾けて添える */

.detail-visited-stamp {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%; /* 白背景の画像でも円形にクリップして beige 背景に馴染ませる */
  transform: rotate(-8deg);
  filter: drop-shadow(0 3px 8px rgba(31, 43, 34, 0.18));
  pointer-events: none;
}

/* ───────────────────────────────────────────────────
   改行の一括反映: textContent / esc() 経由で渡る \n を
   そのまま改行表示する（detail page・トップの map popup 含む）。
   body の overflow-wrap: anywhere と相性が悪い場合に備えて
   word-break/overflow-wrap は default に戻す。
   ─────────────────────────────────────────────────── */

.summary-card__lead,
.detail-info-card h3,
.detail-info-card p,
.photo-story__body p,
.parking-list-card__body p,
.parking-list-card__info dd,
.parking-list-card__note strong,
.detail-rules li strong,
.detail-rules li span,
.detail-related-card__meta,
.map-popup .description,
.map-popup .address,
.map-popup__name {
  white-space: pre-line;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 980px) {
  /* 1 カラム時は grid-column: 2 を解除（暗黙カラムが生えるのを防ぐ） */

  .detail-edited-date {
    grid-column: auto;
  }

  /* モバイルはスタンプを少し小さく、はみ出し防止 */

  .detail-visited-stamp {
    width: 58px;
    height: 58px;
  }
}

/* Detail gallery hero */

.detail-gallery-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}

.detail-gallery-hero__main {
  position: relative;
  min-height: clamp(300px, 34vw, 455px);
  overflow: hidden;
  border-radius: 18px;
  background-image:
    linear-gradient(180deg, rgba(31, 43, 34, 0.06), rgba(31, 43, 34, 0.16));
  background-size: cover;
  background-position: center 44%;
  box-shadow: 0 20px 52px rgba(31, 43, 34, 0.12);
  transition: background-image 180ms ease, background-position 180ms ease;
}

/* 実写真（URL）は枠いっぱいに表示（cover）。余白・縮小表示はしない */

.detail-gallery-hero__main.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.detail-gallery-hero__main[data-tone="grass"],
.detail-gallery-hero__thumb[data-tone="grass"] {
  background-image:
    linear-gradient(180deg, rgba(31, 43, 34, 0.03), rgba(31, 43, 34, 0.12));
  background-position: 44% 54%;
}

.detail-gallery-hero__main[data-tone="trees"],
.detail-gallery-hero__thumb[data-tone="trees"] {
  background-image:
    linear-gradient(180deg, rgba(31, 43, 34, 0.06), rgba(31, 43, 34, 0.18));
  background-position: left center;
}

.detail-gallery-hero__main[data-tone="walk"],
.detail-gallery-hero__thumb[data-tone="walk"] {
  background-image:
    linear-gradient(180deg, rgba(31, 43, 34, 0.04), rgba(31, 43, 34, 0.16));
  background-position: right center;
}

.detail-gallery-hero__main[data-tone="dogs"],
.detail-gallery-hero__thumb[data-tone="dogs"] {
  background:
    radial-gradient(circle at 34% 54%, rgba(255, 255, 255, 0.66) 0 7%, transparent 8%),
    radial-gradient(circle at 63% 48%, rgba(230, 95, 69, 0.28) 0 9%, transparent 10%),
    linear-gradient(145deg, #c9e4b6, #6fa252);
}

.detail-gallery-hero__main[data-tone="field"],
.detail-gallery-hero__thumb[data-tone="field"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(145deg, #d9edc8, #8dbb66 48%, #4f8a43);
}

.detail-gallery-hero__count {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2; /* has-photo の ::after より手前に出す */
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(31, 43, 34, 0.78);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.detail-gallery-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 26px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 43, 34, 0.14);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.detail-gallery-hero__nav:hover {
  background: rgba(31, 43, 34, 0.48);
  opacity: 1;
}

.detail-gallery-hero__nav:focus-visible,
.detail-gallery-hero__thumb:focus-visible {
  outline: 3px solid rgba(230, 95, 69, 0.6);
  outline-offset: 3px;
}

.detail-gallery-hero__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}

.detail-gallery-hero__nav--prev {
  left: 16px;
}

.detail-gallery-hero__nav--prev::before {
  left: 9px;
  border-right: 7px solid rgba(255, 255, 255, 0.9);
}

.detail-gallery-hero__nav--next {
  right: 16px;
}

.detail-gallery-hero__nav--next::before {
  right: 9px;
  border-left: 7px solid rgba(255, 255, 255, 0.9);
}

/* 枚数が少なくても横に伸びないよう、サムネは固定サイズ（4:3） */

.detail-gallery-hero__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.detail-gallery-hero__thumb {
  flex: 0 0 auto;
  width: 148px;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 12px;
  background-image:
    linear-gradient(180deg, rgba(31, 43, 34, 0.02), rgba(31, 43, 34, 0.10));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(31, 43, 34, 0.08);
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
  opacity: 0.88;
}

.detail-gallery-hero__thumb:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.detail-gallery-hero__thumb.is-active {
  box-shadow:
    inset 0 0 0 3px #4f8a43,
    0 8px 18px rgba(31, 43, 34, 0.12);
  opacity: 1;
}

.detail-gallery-hero__thumb[data-tone="grass"] { background-position: 45% 52%; }

.detail-gallery-hero__thumb[data-tone="trees"] { background-position: left center; }

.detail-gallery-hero__thumb[data-tone="walk"] { background-position: right center; }

/* リード文の長短に左右されないよう縦積み構成:
   タイトル + リード（全幅）→ 重要情報カード（全幅・2 カラム）→ 記事編集日 */

/* 重要情報: ラベル上・値下のセルを 3 列グリッドで敷き詰める。
   罫線で区切ることで値が長い項目が混ざっても崩れない */

/* デスクトップ（3 列）: 各行の先頭セルは左罫線なし、最終行は下罫線なし */

/* タブレット（2 列） */

/* ── 概要リデザイン: タイトル+バッジ / クイック情報 / 2 カラムパネル / 注意バンド ── */

.summary-map {
  height: 220px;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2ea;
}

.summary-map[hidden] {
  display: none;
}

/* 住所パネル内は塗りの公式サイトボタン */

/* 営業時間（詳細）: ラベル + 値 の行 */

/* 利用料金: ラベル左・価格右寄せの行 */

/* ご利用前にご確認ください（淡い緑のバンド） */

@media (max-width: 980px) {
  .detail-gallery-hero__thumbs {
    gap: 10px;
  }

  .detail-gallery-hero__thumb {
    width: 116px;
  }
}

@media (max-width: 640px) {
  .detail-gallery-hero {
    gap: 10px;
    margin-bottom: 28px;
  }

  .detail-gallery-hero__main {
    min-height: 230px;
    border-radius: 14px;
  }

  .detail-gallery-hero__thumbs {
    gap: 8px;
  }

  .detail-gallery-hero__thumb {
    width: 88px;
    border-radius: 10px;
  }

  /* モバイルは 1 列。左罫線なし・下罫線のみ（最後のセルは消す） */
}

/* Detail page visual polish */

.detail-body {
  --detail-ink: #1f2b22;
  --detail-text: #344237;
  --detail-muted: #58685b;
  --detail-green: #4f8a43;
  --detail-green-dark: #2f6f35;
  --detail-green-soft: #eef7ea;
  --detail-accent: #e65f45;
  --detail-line: rgba(31, 43, 34, 0.1);
  --detail-line-strong: rgba(79, 138, 67, 0.22);
  --detail-card: rgba(255, 255, 255, 0.96);
  --detail-shadow: 0 14px 36px rgba(31, 43, 34, 0.075);
  --detail-shadow-soft: 0 8px 22px rgba(31, 43, 34, 0.055);
  color: var(--detail-ink);
  background:
    radial-gradient(circle at 88% 5%, rgba(199, 224, 187, 0.32), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7faf5 42%, #f3f7ef 100%);
  letter-spacing: 0.05em;
}

.detail-body,
.detail-body * {
  letter-spacing: 0.05em !important;
}

.detail-body :where(p, li, dd, small) {
  color: var(--detail-text);
  font-weight: 600;
  line-height: 1.82;
}

.detail-body :where(h1, h2, h3, strong, dt) {
  color: var(--detail-ink);
}

.detail-topbar {
  border-bottom-color: var(--detail-line);
  background: rgba(255, 255, 255, 0.92);
}

.detail-breadcrumb {
  color: var(--detail-muted);
}

.detail-gallery-hero__main {
  box-shadow: 0 18px 42px rgba(31, 43, 34, 0.11);
}

.detail-gallery-hero__thumb {
  box-shadow: inset 0 0 0 1px rgba(31, 43, 34, 0.08), var(--detail-shadow-soft);
}

.detail-gallery-hero__thumb.is-active {
  box-shadow:
    inset 0 0 0 3px var(--detail-green),
    0 10px 22px rgba(31, 43, 34, 0.12);
}

@media (max-width: 640px) {
  .detail-body :where(p, li, dd, small) {
    line-height: 1.78;
  }
}

/* Global typography polish */

body,
body * {
  letter-spacing: 0.05em !important;
}

body :where(h1, h2, h3, h4, strong, dt) {
  font-weight: 600 !important;
}

body :where(
  p,
  li,
  dd,
  small,
  .hero__lead,
  .detail-section__lead,
  .summary-card__lead,
  .photo-story__body p,
  .recommend-point-card__body p,
  .detail-info-card p,
  .parking-list-card__body p,
  .support-card p,
  .description
) {
  font-weight: 400 !important;
}

body :where(
  .brand__name,
  .nav__item,
  button,
  .hero__eyebrow,
  .section-kicker,
  .section-head__label,
  .summary-card__badge,
  .summary-card__chips span,
  .parking-disclaimer,
  .detail-info-card span,
  .parking-list-card__title span,
  .tags span,
  .filter-options button,
  .official-button,
  .summary-card__button,
  .parking-route-button,
  .detail-related__more,
  .favorite-strip__button
) {
  font-weight: 600 !important;
}

/* ==========================================================================
   Detail page — Typography revamp & new components (revision)
   ========================================================================== */

/* Body solid bg to prevent black flash during scroll */

body.detail-body {
  background-color: #FEF9F0;
}

/* Typography hierarchy reset for detail page */

.detail-body { color: #1f2b22; }

.detail-topbar .brand__name { font-weight: 600; letter-spacing: 0.02em; }

.detail-topbar .brand__sub { font-weight: 400; color: #6b7568; }

.detail-topbar__back {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.detail-breadcrumb { font-weight: 400; }

.detail-breadcrumb a { font-weight: 600; }

.detail-breadcrumb [aria-current="page"] { font-weight: 600; }

/* Section head label / titles */

/* Summary */

/* Summary facts: tabular */

/* Photo story */

/* Detail info cards */

/* Detail rules — critical highlighting */

/* Related cards */

/* Final CTA section */

/* Footer typography */

/* Mobile adjustments */

@media (max-width: 640px) {
  .detail-breadcrumb { display: none; }
}

/* Detail official site button */

/* Common site footer */

.site-footer {
  background: #1f2b22;
  color: #ffffff;
  padding: 28px 16px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-footer__regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 14px;
}

.site-footer__region {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
}

a.site-footer__region:hover { text-decoration: underline; }

 /* 公開後の有効リンク用 */

.site-footer__region.is-soon { color: rgba(255, 255, 255, 0.45); cursor: default; }

/* 現在表示中の地域（リンクにせず下線で示す） */
.site-footer__region.is-active { text-decoration: underline; cursor: default; font-weight: 700; }

.site-footer__soon { font-size: 11px; margin-left: 2px; color: rgba(255, 255, 255, 0.4); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 6px 0 12px;
}

.site-footer__legal-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-footer__legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */

.legal-body { background: #FEF9F0; }

.legal-page {
  padding: 48px 20px 80px;
}

.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 56px 56px 48px;
  box-shadow: 0 2px 14px rgba(31, 43, 34, 0.05);
}

.legal-page__head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(31, 43, 34, 0.08);
}

.legal-page__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green-dark, #4f7c37);
}

.legal-page__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink, #2c3328);
  word-break: keep-all;
  line-break: strict;
}

.legal-page__updated {
  margin: 0;
  font-size: 13px;
  color: rgba(44, 51, 40, 0.6);
}

.legal-page__intro {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--brown, #463323);
}

.legal-page__section {
  margin: 0 0 30px;
}

.legal-page__section h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink, #2c3328);
  word-break: keep-all;
  line-break: strict;
}

.legal-page__section p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--brown, #463323);
}

.legal-page__section ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.legal-page__section li {
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--brown, #463323);
}

.legal-page__section a {
  color: var(--green-dark, #4f7c37);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__contact {
  font-size: 15.5px;
  font-weight: 700;
}

.legal-page__date {
  margin: 40px 0 0;
  text-align: right;
  font-size: 13px;
  color: rgba(44, 51, 40, 0.7);
}

@media (max-width: 720px) {
  .legal-page { padding: 32px 14px 60px; }

  .legal-page__inner { padding: 36px 24px 32px; border-radius: 16px; }

  .legal-page__head { margin-bottom: 28px; padding-bottom: 18px; }

  .legal-page__section { margin-bottom: 26px; }
}

/* ==========================================================================
   Admin page
   ========================================================================== */

body.admin-body { background: #FEF9F0; color: #1f2b22; }

.admin-shell {
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-header h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.admin-header__lead {
  margin: 0;
  font-size: 13.5px;
  color: #5b6c5f;
  font-weight: 400;
  line-height: 1.65;
}

/* 管理モード切替（ドッグラン ⇄ 記事） */

.admin-modeswitch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #efe9da;
  border-radius: 999px;
  margin-bottom: 20px;
}

.admin-modeswitch__btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 20px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #5b6c5f;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.admin-modeswitch__btn.is-active {
  background: #fff;
  color: #1f2b22;
  box-shadow: 0 1px 3px rgba(31, 43, 34, 0.12);
}

/* 記事編集フォームは 1 カラム（施設のような左ナビ無し） */

#articleForm .admin-formbody { display: flex; flex-direction: column; gap: 18px; }

/* ----- 管理画面トップのテーブル一覧 ----- */

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e3e0d4;
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

.admin-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #5b6c5f;
  padding: 12px 14px;
  border-bottom: 1px solid #ecead8;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #f1eee0;
  vertical-align: middle;
  /* CJK は単語境界が無くどこでも改行されてしまうので、表セルは全部 nowrap。
     列幅が足りなければ .admin-table-wrap の overflow-x で横スクロールに。
     body に overflow-wrap:anywhere / word-break:keep-all が掛かっているので、
     ここで明示的に上書きしないと「fukakita」が途中で改行されてしまう */
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-table tbody td code,
.admin-table tbody td span {
  overflow-wrap: normal;
  word-break: normal;
}

.admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-table tbody tr:hover td { background: #fafaf2; }

.admin-table__area { color: #4f8a43; white-space: nowrap; font-weight: 500; }

.admin-table__name { font-weight: 700; color: #1f2b22; }

.admin-table__slug code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #f3efe3;
  padding: 2px 7px;
  border-radius: 5px;
  color: #5b6c5f;
}

/* 公開状態 — 色付き ● + ラベル */

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}

.admin-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.admin-status--published { color: #4f8a43; }

.admin-status--published .admin-status__dot { background: #4f8a43; }

.admin-status--draft { color: #8a948a; }

.admin-status--draft .admin-status__dot { background: #c3c8be; border: 1px solid #8a948a; box-sizing: border-box; }

/* 操作列 — 細いテキストリンク + アイコン */

.admin-table__actions {
  white-space: nowrap;
  text-align: right;
}

.admin-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #4f8a43;
  font-weight: 600;
  font-size: 12.5px;
  padding: 4px 6px;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.admin-table-action:hover { text-decoration: underline; }

.admin-table-action--delete { color: #c84545; }

.admin-table-action--disabled { color: #c3c8be; cursor: default; }

.admin-table-action--disabled:hover { text-decoration: none; }

.admin-table-action__sep {
  color: #d6d1c0;
  margin: 0 4px;
  user-select: none;
}

.admin-list__count {
  margin: 20px 0 0;
  text-align: center;
  color: #8a948a;
  font-size: 13px;
}

.admin-empty-row {
  text-align: center;
  padding: 40px 20px;
  color: #8a948a;
  font-size: 14px;
}

/* モバイル: スラッグ列を畳んで横スクロール抑制 */

@media (max-width: 640px) {
  .admin-table { min-width: 580px; }

  .admin-table thead .is-slug-col,
  .admin-table tbody .is-slug-col { display: none; }
}

.admin-card {
  background: #fff;
  border: 1px solid #e3e0d4;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d8d2c0;
  color: #1f2b22;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-btn:hover { background: #f5f1e3; }

.admin-btn--primary {
  background: #4f8a43;
  border-color: #4f8a43;
  color: #fff;
}

.admin-btn--primary:hover { background: #3f7a37; border-color: #3f7a37; }

.admin-btn--danger {
  background: #fff;
  border-color: #d46161;
  color: #a13030;
}

.admin-btn--danger:hover { background: #fdf1f1; }

.admin-btn--ghost { background: transparent; border-color: transparent; color: #4f8a43; }

.admin-btn--ghost:hover { background: #eef5ea; }

.admin-empty {
  padding: 60px 20px;
  text-align: center;
  color: #6b7568;
  font-weight: 400;
}

/* 編集フォーム */

.admin-form {
  background: #fff;
  border: 1px solid #e3e0d4;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-form__title { font-weight: 600; font-size: 15px; }

.admin-fieldset {
  border: 1px solid #ecead8;
  border-radius: 12px;
  padding: 16px 18px 20px;
  margin: 0;
}

.admin-fieldset legend {
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b6555;
  letter-spacing: 0.04em;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: #5b6c5f;
  font-weight: 600;
}

.admin-field--wide { grid-column: 1 / -1; }

.admin-field > span { letter-spacing: 0.02em; }

/* 緯度経度入力欄のレイアウト */

.admin-latlng {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-latlng input { flex: 1 1 140px; min-width: 0; }

.admin-latlng__sep { color: rgba(31, 43, 34, 0.45); font-weight: 600; }

.admin-latlng a {
  white-space: nowrap;
  text-decoration: none;
  flex: 0 0 auto;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  border: 1px solid #d6d1c0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  color: #1f2b22;
  background: #fff;
  font-weight: 400;
  width: 100%;
  box-sizing: border-box;
}

.admin-field textarea { resize: vertical; line-height: 1.5; }

/* 重要情報の textarea は最低 2 行ぶんの高さを確保 */

#sec-facts textarea { min-height: 56px; }

/* 緯度経度は flex で 2 入力を横並びにしているので width:100% を上書き */

.admin-latlng input { width: auto; }

/* セクション内のサブ設定トグル（「各カードに画像を表示する」など） */

/* 詳細カード行の写真フィールド: チェック + 画像 UI をまとめる */

.admin-photo-field { align-items: flex-start; }

.admin-photo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fafaf2;
  border: 1px solid #ecead8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5b6c5f;
  cursor: pointer;
  align-self: flex-start;
  white-space: nowrap;
}

.admin-photo-toggle input[type="checkbox"] {
  accent-color: #4f8a43;
  margin: 0;
}

.admin-photo-toggle:hover { border-color: #4f8a43; color: #4f8a43; }

.admin-photo-field .admin-card-image { margin-top: 10px; }

/* チェックなし → 写真 UI（サムネ + ボタン）を非表示。:has() でチェック状態に
   即応するので JS でのトグル不要。Chrome 105+/Safari 15.4+/Firefox 121+ 対応 */

.admin-photo-field:has(input[data-key="showImage"]:not(:checked)) .admin-card-image {
  display: none;
}

/* フィールド / 詳細カード 内の 1 枚画像アップ UI（コンパクト版） */

.admin-card-image {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 6px;
}

.admin-card-image__thumb {
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 4 / 3;
  background-color: #eef5eb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  border: 1px solid #e3e0d4;
}

.admin-card-image[data-empty="true"] .admin-card-image__thumb {
  /* 未設定時はプレースホルダーアイコン（写真の絵柄） */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23a3b094' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='7' width='24' height='18' rx='2'/><circle cx='11' cy='14' r='2'/><path d='M4 21l6-5 5 4 7-7 6 6'/></svg>");
  background-size: 38px 38px;
}

.admin-card-image__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  align-items: stretch;
}

.admin-card-image__actions .admin-btn {
  font-size: 12.5px;
  padding: 6px 14px;
  width: auto;
}

/* 管理画面 写真セクション（auto-fill グリッドでサムネ並べ替え） */

.admin-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.admin-image-card {
  background: #fff;
  border: 1px solid #e3e0d4;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-image-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #eef5eb;
  background-repeat: no-repeat;
}

.admin-image-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(31, 43, 34, 0.78);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.admin-image-card__tone {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(31, 43, 34, 0.65);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
}

.admin-image-card__actions {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #fafaf2;
  border-top: 1px solid #ecead8;
}

.admin-image-card__actions button {
  flex: 1;
  border: 1px solid #d6d1c0;
  background: #fff;
  border-radius: 6px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.admin-image-card__actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-image-card__actions button:hover:not(:disabled) {
  background: #eef5ea;
  border-color: #4f8a43;
  color: #4f8a43;
}

.admin-images__status {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #4f8a43;
  font-weight: 600;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: 2px solid #4f8a43;
  outline-offset: -1px;
  border-color: #4f8a43;
}

.admin-dynamic {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-row {
  border: 1px dashed #d6d1c0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fafaf2;
}

.admin-row__remove {
  background: transparent;
  border: none;
  color: #a13030;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.admin-row__remove:hover { background: #fdecec; }

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
}

.admin-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 16px;
}

.admin-tools {
  margin-top: 40px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e3e0d4;
  border-radius: 14px;
}

.admin-tools h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.admin-tools__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-io {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 12px;
  border: 1px solid #d6d1c0;
  border-radius: 8px;
  resize: vertical;
}

/* ===== 編集フォーム リデザイン ===== */

/* 左ナビ＋本文の2カラム */

.admin-form--cols {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

/* 左サイドのセクションナビ */

.admin-formnav {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-formnav__link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b6555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.admin-formnav__link:hover { background: #f0ece1; color: #2c3328; }

.admin-formnav__link.is-active {
  color: #2c3328;
  background: #e7e2d2;
  font-weight: 600;
}

.admin-formbody {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.admin-section { scroll-margin-top: 90px; }

/* 見出し（左にタイトル / 右に表示トグル） */

.admin-section__body {
  transition: opacity 0.15s;
}

.admin-section.is-off .admin-section__body { opacity: 0.45; }

.admin-vistoggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5b6c5f;
  cursor: pointer;
}

.admin-vistoggle input { accent-color: #4f8a43; }

/* 繰り返し行のカード化 */

.admin-card-row {
  border-style: solid;
  border-color: #e3e0d4;
  background: #fff;
  padding: 0;
  flex-direction: column;
  /* .admin-row の align-items: flex-start を上書き
     → __head と __body が cross-axis でカード幅一杯に伸びる
     （これが無いと grid 1fr セルが内容ベースに縮む） */
  align-items: stretch;
  gap: 0;
  counter-increment: cardrow;
}

.admin-dynamic { counter-reset: cardrow; }

.admin-card-row__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #ecead8;
  background: #fafaf2;
  border-radius: 10px 10px 0 0;
}

.admin-card-row__num {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 6px;
  background: #eef5ea;
  color: #4f8a43;
  font-weight: 700;
  font-size: 12px;
}

.admin-card-row__num::before { content: counter(cardrow); }

.admin-card-row__label {
  font-size: 12.5px;
  font-weight: 600;
  color: #5b6c5f;
  margin-right: auto;
}

.admin-card-row__body {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.admin-btn--add {
  width: 100%;
  border-style: dashed;
  color: #4f8a43;
  background: #fff;
}

.admin-btn--add:hover { background: #eef5ea; }

.admin-empty-row {
  padding: 18px;
  text-align: center;
  color: #8a948a;
  font-size: 13px;
  font-weight: 400;
  border: 1px dashed #d6d1c0;
  border-radius: 10px;
  background: #fafaf2;
  margin: 0 0 12px;
}

/* 画面下に固定するアクションバー */

.admin-actionbar {
  position: sticky;
  bottom: 0;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px -24px -24px;
  background: #fff;
  border-top: 1px solid #ecead8;
  box-shadow: 0 -6px 18px rgba(31, 43, 34, 0.06);
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

.admin-actionbar__left,
.admin-actionbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 画像トーンの色見本プレビュー */

.admin-tone-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-tone-pick select { flex: 1; }

.admin-tone-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex: none;
}

.admin-hint {
  font-size: 11.5px;
  color: #8a948a;
  font-weight: 400;
  margin-top: 2px;
}

/* トースト通知 */

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: #1f2b22;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}

.admin-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-toast--ok { background: #4f8a43; }

.admin-toast--error { background: #a13030; }

/* ===== 公開ステータス（一覧カード + 編集中インジケータ） ===== */

/* 編集中のアクションバー左に出すラベル */

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 12px;
}

.admin-status-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.admin-status-badge--published { color: #4f7c37; }

.admin-status-badge--published::before { background: #4f7c37; }

.admin-status-badge--draft { color: #8a8470; }

.admin-status-badge--draft::before { background: #b9b29c; }

/* ===== アクションバーの「下書き保存」ボタン ===== */

.admin-btn--secondary {
  background: #fff;
  color: #4a443a;
  border: 1px solid #c8c0ad;
}

.admin-btn--secondary:hover {
  background: #f0ece1;
  border-color: #a89e85;
}

/* ===== 編集履歴ビュー ===== */

.admin-history__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.admin-history__title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.admin-history__lead {
  margin: 0 0 20px;
  font-size: 13px;
  color: #5b6c5f;
  line-height: 1.65;
}

.admin-history__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-hentry {
  background: #fff;
  border: 1px solid #e3e0d4;
  border-radius: 14px;
  padding: 16px 18px;
}

.admin-hentry__top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-hentry__target { font-size: 14px; font-weight: 600; color: #1f2b22; }

.admin-hentry__spacer { flex: 1; }

.admin-hentry__time {
  font-size: 12px;
  color: #8a948a;
  font-family: ui-monospace, monospace;
}

/* アクションバッジ */

.admin-hbadge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.04em;
}

.admin-hbadge--save { background: #4f8a43; }

.admin-hbadge--delete { background: #a13030; }

.admin-hbadge--import { background: #6fa252; }

.admin-hbadge--reset { background: #b8a06a; }

.admin-hbadge--restore { background: #3f7a37; }

/* 差分（native <details>） */

.admin-hdiff {
  margin-top: 12px;
  border-top: 1px solid #ecead8;
  padding-top: 10px;
}

.admin-hdiff > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: #5b6c5f;
  font-weight: 600;
}

.admin-diff-record {
  margin: 10px 0 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2c3328;
}

.admin-diff-rchip {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 6px;
}

.admin-diff-rchip--added { background: #e7f3e1; color: #2f6a27; }

.admin-diff-rchip--removed { background: #fbe7e7; color: #a13030; }

.admin-diff-rchip--modified { background: #f3ecd6; color: #7a6420; }

.admin-diff-empty { font-size: 12.5px; color: #8a948a; margin: 6px 0 0; }

.admin-diff-row {
  font-size: 12px;
  font-family: ui-monospace, monospace;
  padding: 3px 8px;
  border-radius: 6px;
  margin: 3px 0;
  line-height: 1.5;
  word-break: break-word;
}

.admin-diff-row--added { background: #eef7e9; color: #2f6a27; }

.admin-diff-row--removed { background: #fcefef; color: #a13030; }

.admin-diff-row--changed { background: #fbf4df; color: #7a6420; }

.admin-diff-row__path { font-weight: 700; }

@media (max-width: 700px) {
  .admin-shell { width: min(100% - 24px, 1100px); padding: 20px 0 60px; }

  .admin-header { flex-direction: column; align-items: flex-start; }

  .admin-grid { grid-template-columns: 1fr; }

  .admin-related { grid-template-columns: 1fr; }

  .admin-form--cols { grid-template-columns: 1fr; }

  .admin-formnav {
    position: sticky;
    top: 64px;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
    background: #fff;
    z-index: 6;
  }

  .admin-formnav__link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .admin-formnav__link.is-active {
    border-left-color: transparent;
    border-bottom-color: #4f8a43;
  }

  .admin-card-row__body { grid-template-columns: 1fr; }

  .admin-actionbar {
    margin-left: -16px;
    margin-right: -16px;
    flex-wrap: wrap;
  }

  @media (prefers-reduced-motion: reduce) {
    .admin-toast { transition: none; }
  }
}

/* ========== オウンドメディア（コラム記事・一覧）========== */

.detail-shell--narrow {
  width: min(100% - 48px, 760px);
}

.article,
.article-index {
  padding-bottom: 72px;
}

.article-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #6fa252;
}

/* ----- 記事本文 ----- */

.article-head {
  padding: 24px 0 4px;
}

.article-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.35;
  font-weight: 700;
  color: #1f2b22;
  letter-spacing: 0.01em;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: #8a948a;
}

.article-date svg { flex: 0 0 auto; }

.article-hero {
  margin: 22px 0 8px;
}

.article-hero__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background-color: #eef1e6;
  background-size: cover;
  background-position: center;
}

.article-lead {
  margin: 22px 0 8px;
  font-size: 16.5px;
  line-height: 2;
  color: #3f4a3f;
  font-weight: 500;
}

.article-lead:empty { display: none; }

.article-sections {
  margin-top: 8px;
}

.article-section {
  margin: 34px 0 0;
}

/* ----- コラム一覧 ----- */

.article-index__head {
  padding: 24px 0 8px;
  text-align: center;
}

.article-index__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #1f2b22;
}

.article-index__lead {
  margin: 0 auto;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.9;
  color: #5b6c5f;
}

.article-index__empty {
  margin: 48px 0;
  text-align: center;
  color: #8a948a;
  font-size: 15px;
}

.article-cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ecead8;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31, 43, 34, 0.12);
  border-color: #d8e2cc;
}

.article-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #eef1e6;
  background-size: cover;
  background-position: center;
}

.article-card__img--placeholder {
  background-image: linear-gradient(135deg, #e7efdc 0%, #dbe8cd 100%);
}

.article-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
  color: #1f2b22;
}

.article-card__date {
  margin: 0;
  font-size: 12.5px;
  color: #8a948a;
}

.article-card__excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #5b6c5f;
}

@media (max-width: 640px) {
  .detail-shell--narrow { width: min(100% - 32px, 760px); }

  .article-cards { grid-template-columns: 1fr; gap: 18px; }
}

/* ========== 記事本文ブロックエディタ（管理画面）========== */

.block {
  border: 1px solid #e3e0d4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

/* ブロック間の追加インサータ */

/* ========== 記事本文ブロックの表示（media ページ）========== */

.article-block__heading {
  margin: 34px 0 14px;
  font-weight: 800;
  color: #1f2b22;
  line-height: 1.5;
}

.article-block__heading--h2 {
  padding-left: 14px;
  border-left: 4px solid #6fa252;
  font-size: clamp(19px, 2.6vw, 23px);
}

.article-block__p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 2;
  color: #463323;
}

.article-block__p a { color: #3f7a37; text-decoration: underline; }

.article-block__p a:hover { color: #4f8a43; }

.article-block__figure { margin: 20px 0; }

.article-block__imglink {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 150ms ease, box-shadow 150ms ease;
}

.article-block__imglink:hover {
  opacity: 0.94;
  box-shadow: 0 6px 18px rgba(31, 43, 34, 0.18);
}

.article-block__imglink .article-block__img { border-radius: 0; }

.article-block__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background-color: #eef1e6;
  background-size: cover;
  background-position: center;
}

.article-block__caption {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #8a948a;
}

.article-block__list {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.article-block__list li {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.9;
  color: #463323;
}

/* ========== 本文 Markdown エディタ（管理画面）========== */

.md-toolbar { margin-bottom: 8px; }

.md-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.md-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 360px;
  border: 1px solid #d8d2c0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #1f2b22;
  background: #fff;
  resize: vertical;
}

.md-input:focus { outline: 2px solid #b7d3a6; outline-offset: 0; }

.md-preview {
  min-height: 360px;
  max-height: 680px;
  overflow-y: auto;
  border: 1px solid #ecead8;
  border-radius: 10px;
  padding: 6px 18px 14px;
  background: #fffdf7;
}

.md-preview.is-empty::before {
  content: "ここに本文プレビューが表示されます";
  color: #b7b3a2;
  font-size: 13px;
}

/* プレビュー内は記事表示スタイル(.article-block__*)を流用。上端の余白だけ調整 */

.md-preview > :first-child { margin-top: 6px; }

@media (max-width: 720px) {
  .md-editor { grid-template-columns: 1fr; }

  .md-input, .md-preview { min-height: 240px; }
}

/* ═══════════════════════════════════════════════════════════════
   詳細ページ タイポグラフィ規則
   このページの文字階層はすべてここで一元管理する（個別指定より後勝ち）。

   階層:
     L1 ページタイトル      = --dt-fs-h1 / 700
     L2 セクション見出し    = --dt-fs-h2 / 700
     L3 小見出し（プロース）= --dt-fs-h3 / 700
     L4 カード・項目見出し  = --dt-fs-card / 700
     L4' パネル見出し（緑） = --dt-fs-panel / 700 / green
     ラベル                = --dt-fs-label / 700
     値（データ）・本文      = 400（太字は見出し・ラベル・ボタンのみ）
     補足・注記            = --dt-fs-note / 400

   フォントは Noto Sans JP のみ。ウェイトは読み込んでいる
   400 / 500 / 700 だけを使う（600 や 800 は指定しない）。

   font-weight に !important が付いているのは、上方の
   「Global typography polish」ブロックが body :where(...) に
   !important で一括指定しているため（あちらは 0 詳細度なので
   こちらのクラスセレクタ + !important が優先される）。
   ═══════════════════════════════════════════════════════════════ */

:root {
  --dt-c-heading: #1f2b22;
  --dt-c-body: #2c3328;
  --dt-c-label: #5b6c5f;
  --dt-c-green: #2f7a35;
  --dt-fs-h1: clamp(28px, 3.2vw, 38px);
  --dt-fs-h2: clamp(21px, 2vw, 26px);
  --dt-fs-h3: 18px;
  --dt-fs-card: 16px;
  --dt-fs-panel: 15px;
  --dt-fs-value: 15px;
  --dt-fs-body: 15px;
  --dt-fs-label: 13px;
  --dt-fs-note: 13px;
}

/* L1: ページタイトル（施設名） */

/* L2: セクション見出し（フィールドの様子 / 詳細情報 / 駐車場情報 …） */

/* L3: 小見出し（フィールドの様子のキャッチ見出し） */

/* L4: カード・項目見出し（詳細カード / 駐車場名 / 注意事項 / 周辺施設名） */

/* L4': パネル見出し（概要エリアの緑見出し） */

/* ラベル（データ項目名） */

/* クイック情報のラベルだけはパネル見出しと同じ緑 */

/* 値（データ）— 見出し以外は太字にしない */

/* 値の補助（利用料金の項目名は値より一段軽く） */

/* 本文（説明文はすべて 400・行間 1.9） */

/* 補足・注記（小さめの説明） */

/* 記事編集日・訪問済みバッジは注記サイズの 500 */

.detail-edited-date,
.detail-visited-badge {
  font-size: var(--dt-fs-note);
  font-weight: 500 !important;
}

.detail-edited-date time { font-weight: 700 !important; }

/* ボタン類 */

/* ═══════════════════════════════════════════════════════════════
   詳細ページ v3（現地確認レポート型レイアウト）
   タイポグラフィは末尾の規則ブロックの変数（--dt-fs-*）に従う。
   font-weight の !important は「Global typography polish」対策。
   ═══════════════════════════════════════════════════════════════ */

:root {
  --dv3-green: #1f6b35;
  --dv3-green-dark: #14532d;
  --dv3-green-bg: #eef5eb;
  --dv3-line: #e3e8e0;
  --dv3-th-bg: #f4f6f1;
  --dv3-orange: #b45309;
  --dv3-orange-bg: #fdf3e3;
}

/* ページ直下の article のみ（カードの <article> に効かせない） */

.dv3 > article {
  padding: 36px 0 64px;
}

.dv3 article .detail-shell > * + * {
  margin-top: 40px;
}

/* ── ヘッダー ── */

/* 現地確認済みスタンプ: h1 のテキスト末尾に付くインライン画像。
   最後の 1 文字と nowrap ユニットなので、折り返してもスタンプ単独行にならない */

.dv3-title-tail {
  white-space: nowrap;
}

.dv3-head h1 .detail-visited-stamp {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  margin-left: 12px;
  vertical-align: -0.3em;
}

.dv3-head h1 {
  margin: 0;
  color: var(--dt-c-heading);
  font-size: var(--dt-fs-h1);
  font-weight: 700 !important;
  line-height: 1.25;
}

.dv3-lead {
  max-width: 860px;
  margin: 16px 0 0;
  color: var(--dt-c-body);
  font-size: 15px;
  font-weight: 400 !important;
  line-height: 1.9;
  white-space: pre-line;
}

/* ── 写真ギャラリー + アクセスカード ── */

.dv3-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: stretch;
}

.dv3-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 14px;
  min-height: 440px;
}

.dv3-gallery .detail-gallery-hero__main {
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  box-shadow: none;
  border: 1px solid var(--dv3-line);
}

.dv3-gallery .detail-gallery-hero__thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.dv3-gallery .detail-gallery-hero__thumb {
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
}

/* アクセスカード + 記事編集日（右カラム） */

.dv3-hero__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dv3-hero__side .dv3-access {
  flex: 1;
}

.dv3-hero__side .detail-edited-date {
  grid-column: auto;
  margin-top: 14px;
}

.dv3-access {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 14px;
  background: #fff;
}

.dv3-access__title {
  margin: 0;
  padding: 14px 20px;
  background: var(--dv3-green-dark);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700 !important;
}

.dv3-access__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.dv3-access__address {
  margin: 0 0 14px;
  color: var(--dt-c-heading);
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.7;
  white-space: pre-line;
}

.dv3-access .summary-map {
  height: 170px;
  margin: 0 0 14px;
  border-radius: 10px;
}

.dv3-access__rows {
  margin: 0 0 16px;
}

.dv3-access__rows > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--dv3-line);
}

.dv3-access__rows > div:first-child {
  border-top: 1px solid var(--dv3-line);
}

.dv3-access__rows dt {
  margin: 0 0 3px;
  color: var(--dt-c-label);
  font-size: 12px;
  font-weight: 700 !important;
}

.dv3-access__rows dd {
  margin: 0;
  color: var(--dt-c-heading);
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.6;
  white-space: pre-line;
}

.dv3-gmap-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  border-radius: 9px;
  background: var(--dv3-green-dark);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700 !important;
  transition: background 0.15s ease;
}

.dv3-gmap-button:hover {
  background: var(--dv3-green);
}

/* 公式サイト / Instagram のアウトラインボタン（横並び、片方だけなら全幅） */

.dv3-access__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.dv3-outline-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border: 1.5px solid #bcd8b6;
  border-radius: 11px;
  background: #fff;
  color: var(--dv3-green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700 !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dv3-outline-btn:hover {
  background: var(--dv3-green-bg);
  border-color: var(--dv3-green);
}

.dv3-outline-btn svg {
  flex: 0 0 auto;
}

/* 公式サイトは緑の塗りボタン */

.dv3-outline-btn--solid {
  background: var(--dv3-green);
  border-color: var(--dv3-green);
  color: #fff;
}

.dv3-outline-btn--solid:hover {
  background: var(--dv3-green-dark);
  border-color: var(--dv3-green-dark);
}

/* Instagram: 公式グラデーションアイコン + 黒文字 */

.dv3-outline-btn--ig {
  color: #1f2b22;
}

.dv3-outline-btn__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
}

.dv3-outline-btn__chip img {
  display: block;
}

/* ── セクション見出し（番号バッジ付き） ── */

.dv3-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--dt-c-heading);
  font-size: 20px;
  font-weight: 700 !important;
  line-height: 1.3;
}

.dv3-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--dv3-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700 !important;
}

/* ── 1. 基本情報（列見出し + 値のグリッド表） ── */

.dv3-basic {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 10px;
  background: var(--dv3-line);
}

.dv3-basic__row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1px;
}

.dv3-basic__cell {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: 1px;
}

.dv3-basic__th {
  padding: 10px 14px;
  background: var(--dv3-th-bg);
  color: var(--dt-c-body);
  text-align: center;
  font-size: 13px;
  font-weight: 700 !important;
}

.dv3-basic__td {
  padding: 15px 16px;
  background: #fff;
  color: var(--dt-c-heading);
  text-align: left;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.7;
  white-space: pre-line;
}

/* ── ならでは カード ── */

.dv3-section__title--plain {
  gap: 0;
}

.dv3-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dv3-card {
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 12px;
  background: #fff;
}

.dv3-card__image {
  aspect-ratio: 16 / 10;
  background-color: #eef2ea;
  background-size: cover;
  background-position: center;
}

.dv3-card__body {
  padding: 18px 20px 16px;
}

.dv3-card__body h3 {
  margin: 0 0 10px;
  color: var(--dt-c-heading);
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1.5;
}

.dv3-card__body p {
  margin: 0;
  color: var(--dt-c-body);
  font-size: 13.5px;
  font-weight: 400 !important;
  line-height: 1.85;
  white-space: pre-line;
}

/* ── 2 カラム行 ── */

.dv3-two {
  display: grid;
  gap: 24px;
  align-items: start;
}

.dv3-two--check { grid-template-columns: 1.55fr 1fr; }

.dv3-two--price { grid-template-columns: 1fr 1.5fr; }

.dv3-two--single { grid-template-columns: 1fr; }

/* パネル枠 */

.dv3-panelbox {
  min-width: 0;
  padding: 24px 26px;
  border: 1px solid var(--dv3-line);
  border-radius: 12px;
  background: #fff;
  overflow-x: auto;
}

.dv3-panelbox .dv3-section__title {
  margin-bottom: 6px;
  font-size: 18px;
}

.dv3-panelbox__head {
  margin-bottom: 18px;
}

/* 現地チェック: 項目ごとに薄い罫線で区切る */

.dv3-checkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.dv3-check {
  padding: 14px 0;
  border-bottom: 1px solid var(--dv3-line);
}

/* デスクトップ（2 列）: 先頭行は上詰め、最終行は罫線なし */

@media (min-width: 641px) {
  .dv3-check:nth-child(-n+2) {
    padding-top: 0;
  }

  .dv3-check:nth-child(2n+1):nth-last-child(-n+2),
  .dv3-check:nth-child(2n+1):nth-last-child(-n+2) ~ .dv3-check {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* モバイル（1 列） */

@media (max-width: 640px) {
  .dv3-check:first-child {
    padding-top: 0;
  }

  .dv3-check:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.dv3-check__label {
  margin: 0 0 4px;
  color: var(--dt-c-heading);
  font-size: 14px;
  font-weight: 700 !important;
}

.dv3-check__text {
  margin: 0;
  color: var(--dt-c-label);
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1.75;
  white-space: pre-line;
}

/* 編集部の総評 */

.dv3-review + .dv3-review {
  margin-top: 18px;
}

.dv3-review__label {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700 !important;
}

.dv3-review__label--good { color: var(--dv3-green); }

.dv3-review__label--concern { color: var(--dv3-orange); }

.dv3-review__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dv3-review__list li {
  position: relative;
  padding: 4px 0 4px 24px;
  color: var(--dt-c-body);
  font-size: 13.5px;
  font-weight: 400 !important;
  line-height: 1.7;
}

.dv3-review__list li::before {
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 700;
}

.dv3-review__list--good li::before {
  content: "✓";
  color: var(--dv3-green);
}

.dv3-review__list--concern li::before {
  content: "！";
  color: var(--dv3-orange);
}

/* ── テーブル（利用料金 / 駐車場）: 白カードなしで直接置く ── */

.dv3-tablesection {
  min-width: 0;
  overflow-x: auto;
}

.dv3-table {
  width: 100%;
  border-collapse: collapse;
}

.dv3-table td {
  background: #fff;
}

.dv3-table th {
  padding: 10px 14px;
  border: 1px solid var(--dv3-line);
  background: var(--dv3-th-bg);
  color: var(--dt-c-body);
  text-align: center;
  font-size: 13px;
  font-weight: 700 !important;
}

.dv3-table td {
  padding: 13px 14px;
  border: 1px solid var(--dv3-line);
  color: var(--dt-c-heading);
  text-align: center;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.6;
}

/* 縦積み（全幅）時も間延びしないよう幅を制限する */

.dv3-table--price {
  max-width: 560px;
}

/* 区分は固定幅・料金側を広く取る（金額や補足の長さ変動に耐える） */

.dv3-table--price th:first-child,
.dv3-table--price td:first-child {
  width: 38%;
}

/* 駐車場テーブル: 列幅を固定して、料金が長文でも他の列が縦割れしないようにする。
   狭い画面では横スクロール（.dv3-tablesection の overflow-x） */

.dv3-table--parking {
  table-layout: fixed;
  min-width: 640px;
}

.dv3-table--parking th {
  white-space: nowrap;
  overflow: hidden;
}

.dv3-table--parking th:nth-child(1) { width: 17%; }

.dv3-table--parking th:nth-child(2) { width: 16%; }

.dv3-table--parking th:nth-child(3) { width: 92px; }

.dv3-table--parking th:nth-child(5) { width: 112px; }

/* 料金（4 列目）は残り幅を全部使う */

/* 駐車場テーブル内の Google マップボタン */

.dv3-table-mapbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--dv3-green-dark);
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700 !important;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.dv3-table-mapbtn:hover {
  background: var(--dv3-green);
}

/* ── 6. ルール・注意事項 ── */

.dv3-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dv3-rules li {
  display: flex;
  gap: 10px;
  color: var(--dt-c-body);
  font-size: 13.5px;
  font-weight: 400 !important;
  line-height: 1.7;
}

.dv3-rules__check {
  flex: 0 0 auto;
  color: var(--dv3-green);
  font-weight: 700 !important;
}

/* ルール本文は改行を保持 */

.dv3-rules li span:last-child {
  white-space: pre-line;
}

/* ── 7. 周辺のドッグラン + 情報の確認方法 ── */

.dv3-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dv3-related-head .dv3-section__title {
  margin-bottom: 20px;
}

.dv3-related-more {
  margin-bottom: 20px;
  color: var(--dv3-green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700 !important;
}

.dv3-related-more:hover {
  text-decoration: underline;
}

.dv3-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dv3-related-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--dv3-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dv3-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 43, 34, 0.1);
}

.dv3-related-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d9edc8, #8dbb66);
  background-size: cover;
  background-position: center;
}

.dv3-related-card__body {
  padding: 14px 16px 14px;
}

.dv3-related-card__body h3 {
  margin: 0 0 4px;
  color: var(--dt-c-heading);
  font-size: 14.5px;
  font-weight: 700 !important;
  line-height: 1.5;
}

.dv3-related-card__area {
  margin: 0;
  color: var(--dt-c-label);
  font-size: 12px;
  font-weight: 400 !important;
}

/* ── レスポンシブ ── */

@media (max-width: 980px) {
  .dv3-hero,
  .dv3-two--check,
  .dv3-two--price {
    grid-template-columns: 1fr;
  }

  .dv3-gallery {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dv3-gallery .detail-gallery-hero__main {
    min-height: 300px;
  }

  .dv3-gallery .detail-gallery-hero__thumbs {
    flex-direction: row;
  }

  .dv3-gallery .detail-gallery-hero__thumb {
    width: 96px;
  }

  .dv3-cards,
  .dv3-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dv3 article .detail-shell > * + * {
    margin-top: 30px;
  }

  .dv3-cards,
  .dv3-related,
  .dv3-checkgrid,
  .dv3-rules {
    grid-template-columns: 1fr;
  }

  .dv3-panelbox {
    padding: 20px 18px;
  }

  .dv3-section__title {
    font-size: 18px;
  }

  /* 基本情報: モバイルは 1 セル 1 行（ラベル左・値右） */

  .dv3-basic__row {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .dv3-basic__cell {
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .dv3-basic__th {
    display: flex;
    align-items: center;
    text-align: left;
  }

  .dv3-basic__td {
    padding: 12px 14px;
    text-align: left;
  }
}

/* dv3 カード画像: 写真未設定（tone 指定）のときは緑系のプレースホルダ */

.dv3-card__image[data-tone] {
  background-image: linear-gradient(145deg, #dcecd0, #9cc07e 55%, #6fa252);
}

.dv3-card__image[data-tone="water"],
.dv3-card__image[data-tone="wash"] {
  background-image:
    radial-gradient(circle at 42% 52%, rgba(255, 255, 255, 0.7) 0 12%, transparent 13%),
    linear-gradient(145deg, #d9edc8, #7cb46e 45%, #a6d6e8 100%);
}

.dv3-card__image[data-tone="parking"] {
  background-image: linear-gradient(165deg, #b8d9f0 0 30%, #8fbf74 30% 52%, #75817a 52% 100%);
}
