/**
 * 周辺情報（地域ガイド）— 太平プラン系 黄緑アクセント・カード型
 */
.tp-area-guide {
  --ag-accent: #7cb342;
  --ag-accent-dark: #558b2f;
  --ag-accent-soft: #e8f5d4;
  --ag-card-border: #d7e6c8;
  --ag-text-muted: #4a5d3a;
}

.tp-area-guide .static-wrap {
  max-width: 1440px;
}

.ag-page .ag-hero {
  background: linear-gradient(135deg, var(--ag-accent-soft) 0%, #f8faf6 55%, #fff 100%);
  border: 1px solid var(--ag-card-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(85, 139, 47, 0.08);
}

.ag-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-accent-dark);
  margin: 0 0 0.35rem;
}

.ag-hero--portal {
  padding: 1.15rem 1.25rem 1rem;
  margin-bottom: 1.15rem;
}

.ag-hero--portal .ag-hero__title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.4;
  max-width: 980px;
  font-weight: 800;
}

.ag-hero--portal .ag-hero__lead,
.ag-hero--portal .ag-portal-intro {
  font-size: 15px;
  line-height: 1.8;
  max-width: 52rem;
}

.ag-hero--portal .ag-portal-intro {
  margin: 0.65rem 0 0;
}

.ag-hero__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.ag-hero__lead {
  margin: 0;
  color: var(--ag-text-muted);
  line-height: 1.65;
  max-width: 52rem;
}

.ag-hero--compact {
  padding: 1.25rem 1.25rem 1rem;
}

.ag-section {
  margin-bottom: 2rem;
}

.ag-h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--ag-accent);
  display: inline-block;
}

.ag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ag-card-border);
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.ag-pill:hover {
  background: var(--ag-accent-soft);
  border-color: var(--ag-accent);
}

.ag-region-root {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.ag-region-root a {
  font-weight: 600;
  color: var(--ag-accent-dark);
  text-decoration: none;
}

.ag-region-root a:hover {
  text-decoration: underline;
}

.ag-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* 周辺情報一覧: PC 4列 / タブレット 3列 / スマホ 1列 */
.ag-grid--spots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 1100px) {
  .ag-grid--spots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ag-grid--spots {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ag-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* 施設一覧: 探し方カードタブ・件数サマリー・キーワード検索（黄緑・管理画面 browse 相当） */
.tp-area-guide .ag-spot-filter {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(124, 179, 66, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfff5 0%, #fff 100%);
}

.tp-area-guide .ag-spot-filter__toolbar,
.tp-area-guide .ag-spot-filter__modes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.tp-area-guide .ag-spot-filter__mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 92px;
  margin: 0;
  padding: 0.85rem 0.55rem;
  border-radius: 12px;
  border: 1.5px solid rgba(124, 179, 66, 0.45);
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #3f4f2a;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tp-area-guide .ag-spot-filter__mode-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.tp-area-guide .ag-spot-filter__mode-text {
  line-height: 1.25;
  text-align: center;
}

.tp-area-guide .ag-spot-filter__mode:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124, 179, 66, 0.2);
  border-color: var(--ag-accent);
}

.tp-area-guide .ag-spot-filter__mode.is-active {
  border-color: var(--ag-accent);
  background: var(--ag-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 179, 66, 0.35);
}

.tp-area-guide .ag-spot-filter__mode.is-active:hover {
  transform: translateY(-2px);
  color: #fff;
}

.tp-area-guide .ag-spot-filter__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.tp-area-guide .ag-spot-filter__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  min-height: 72px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(124, 179, 66, 0.22);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tp-area-guide .ag-spot-filter__stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
}

.tp-area-guide .ag-spot-filter__stat-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: #166534;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tp-area-guide .ag-spot-filter__browse-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(124, 179, 66, 0.2);
  border-radius: 12px;
  background: rgba(251, 255, 245, 0.85);
}

.tp-area-guide .ag-spot-filter__panel {
  margin: 0;
}

.tp-area-guide .ag-spot-filter__search-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0.65rem 0.35rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

.tp-area-guide .ag-spot-filter__search-icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.75;
}

.tp-area-guide .ag-spot-filter__search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
}

.tp-area-guide .ag-spot-filter__search {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0.55rem 0.35rem 0.55rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.9375rem;
  box-sizing: border-box;
}

.tp-area-guide .ag-spot-filter__search:focus {
  outline: none;
}

.tp-area-guide .ag-spot-filter__search-wrap:focus-within {
  border-color: var(--ag-accent);
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.18);
}

.tp-area-guide .ag-spot-filter__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.tp-area-guide .ag-spot-filter__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 38px;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(124, 179, 66, 0.4);
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tp-area-guide .ag-spot-filter__pill--link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 179, 66, 0.16);
  border-color: var(--ag-accent);
  background: #f0fdf4;
  color: #166534;
}

.tp-area-guide .ag-spot-filter__pill.is-active {
  border-color: var(--ag-accent);
  background: var(--ag-accent);
  color: #fff;
}

.tp-area-guide .ag-spot-filter__pill-count {
  font-size: 0.72rem;
  font-weight: 800;
  color: inherit;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .tp-area-guide .ag-spot-filter__toolbar,
  .tp-area-guide .ag-spot-filter__modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-area-guide .ag-spot-filter__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tp-area-guide .ag-spot-filter__toolbar,
  .tp-area-guide .ag-spot-filter__modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tp-area-guide .ag-spot-filter__mun-sub {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(124, 179, 66, 0.35);
}

.tp-area-guide .ag-spot-filter__mun-sub-heading {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #475569;
}

.tp-area-guide .ag-spot-filter__empty {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.tp-area-guide .ag-spot-filter__mun-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
}

.tp-area-guide .ag-spot-filter__mun-select {
  display: block;
  margin-top: 0.35rem;
  min-height: 38px;
  padding: 0.35rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  max-width: 320px;
}

.tp-area-guide .ag-spot-filter__result-meta {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
}

.ag-detail__area-nav {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.ag-detail__area-nav-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
}

.ag-detail__area-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.ag-detail__area-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 179, 66, 0.35);
  background: #f8fafc;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3f4f2a;
  text-decoration: none;
}

.ag-detail__area-link:hover {
  background: var(--ag-accent-soft);
  border-color: var(--ag-accent);
}

.ag-region-tabs-wrap {
  margin: 0 0 1.1rem;
  padding: 0.2rem 0;
  overflow: hidden;
}

.ag-region-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem 0.85rem;
  margin: 0;
  padding: 0.35rem 0.25rem 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.ag-region-tabs::-webkit-scrollbar {
  height: 6px;
}

.ag-region-tabs::-webkit-scrollbar-thumb {
  background: rgba(124, 179, 66, 0.35);
  border-radius: 999px;
}

.ag-region-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 179, 66, 0.35);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  color: #3f4f2a;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ag-region-tab:hover {
  background: var(--ag-accent-soft);
  border-color: var(--ag-accent);
  color: #1e293b;
  box-shadow: 0 6px 18px rgba(85, 139, 47, 0.14);
  transform: translateY(-2px);
}

.ag-region-tab.is-active {
  color: #1b3308;
  border-color: var(--ag-accent);
  background: linear-gradient(180deg, #f9fff0 0%, #fff 55%);
  box-shadow: 0 8px 22px rgba(85, 139, 47, 0.22);
  transform: translateY(-1px);
}

.ag-region-tab--busy {
  border-color: rgba(230, 126, 34, 0.45);
  background: linear-gradient(180deg, #fffaf2 0%, #fff 60%);
}

.ag-region-tab--busy:hover {
  border-color: #e67e22;
}

.ag-region-tab__label {
  white-space: nowrap;
}

.ag-region-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  font-size: 0.72rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(124, 179, 66, 0.14);
  border: 1px solid rgba(124, 179, 66, 0.25);
  color: var(--ag-accent-dark);
}

.ag-region-tab.is-active .ag-region-tab__count {
  background: var(--ag-accent);
  color: #fff;
  border-color: var(--ag-accent-dark);
}

.ag-section--spot-list .ag-h2 {
  margin-bottom: 0.65rem;
}

.ag-card {
  border-radius: 14px;
  border: 1px solid var(--ag-card-border);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.ag-card:hover {
  box-shadow: 0 12px 32px rgba(85, 139, 47, 0.16);
  transform: translateY(-4px);
  border-color: var(--ag-accent);
}

.ag-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

.ag-card__thumb-wrap {
  position: relative;
}

.ag-card__thumb {
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: none;
  overflow: hidden;
  background: linear-gradient(160deg, #eef6e8, #f1f5f9);
}

.ag-card:hover .ag-card__thumb img {
  transform: scale(1.05);
}

.ag-card__thumb img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.ag-card__thumb--empty {
  aspect-ratio: 16 / 10;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-card__thumb-placeholder {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.ag-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
  min-width: 0;
}

.ag-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--ag-accent-soft);
  color: var(--ag-accent-dark);
  margin-bottom: 0.35rem;
}

.ag-badge--lg {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}

.ag-badge--cat-transit {
  background: #e8f5d4;
  color: #33691e;
  border: 1px solid rgba(124, 179, 66, 0.45);
}

.ag-badge--cat-retail {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid rgba(230, 126, 34, 0.35);
}

.ag-badge--cat-school {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid rgba(33, 150, 243, 0.35);
}

.ag-badge--cat-park {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.ag-badge--cat-mall {
  background: #f3e5f5;
  color: #6a1b9a;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.ag-badge--cat-default {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.ag-card__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0.25rem 0 0.2rem;
  color: #0f172a;
}

.ag-card__loc {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.ag-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.15rem;
}

.ag-card__meta-row .ag-badge {
  margin-bottom: 0;
}

.ag-card__area-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ag-accent-dark);
  background: #f1f8e9;
  border: 1px solid rgba(124, 179, 66, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-card__excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #475569;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.ag-card__more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ag-accent-dark);
}

.ag-subnav {
  background: #f8faf6;
  border: 1px solid var(--ag-card-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.ag-subnav__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ag-accent-dark);
  margin: 0 0 0.5rem;
}

.ag-subnav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.ag-subnav__list a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.ag-subnav__list a:hover {
  text-decoration: underline;
}

.ag-detail-hero {
  max-width: 100%;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--ag-card-border);
  box-shadow: 0 12px 32px rgba(30, 41, 59, 0.1);
}

.ag-detail-hero--banner {
  border-radius: 16px;
  margin-bottom: 1rem;
}

.ag-detail-hero--banner .ag-detail-hero__media {
  position: relative;
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: hidden;
  border-radius: inherit;
  background: #e2e8f0;
}

.ag-detail-hero--banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: min(52vh, 420px);
  min-height: 200px;
  object-fit: cover;
  object-position: center;
}

.ag-detail__intro {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--ag-card-border);
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.05);
}

.ag-detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
}

.ag-detail__meta-row .ag-badge {
  margin-bottom: 0;
}

.ag-detail__area-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ag-accent-dark);
  background: var(--ag-accent-soft);
  border: 1px solid rgba(124, 179, 66, 0.4);
}

.ag-detail__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 900;
  margin: 0;
  color: #0f172a;
}

.ag-detail__spec {
  margin: 0;
}

.ag-spec dt {
  font-weight: 700;
  color: var(--ag-accent-dark);
  font-size: 0.8rem;
  margin-top: 0.65rem;
}

.ag-spec dd {
  margin: 0.15rem 0 0;
  color: #334155;
}

.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.ag-btn--map {
  background: #fff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.ag-btn--map:hover {
  background: #f8fafc;
}

.ag-btn--primary {
  background: var(--ag-accent);
  color: #fff;
  border-color: var(--ag-accent-dark);
}

.ag-btn--primary:hover {
  background: var(--ag-accent-dark);
}

.ag-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.ag-gallery__item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ag-card-border);
}

.ag-gallery__item img {
  width: 100%;
  max-width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 詳細: 施設概要直下のサムネイルギャラリー */
.ag-gallery--thumbs .ag-gallery__strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.ag-gallery__thumb {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ag-card-border);
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: zoom-in;
  scroll-snap-align: start;
  width: clamp(72px, 18vw, 120px);
}

.ag-gallery__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ag-lightbox {
  padding: 0;
  border: none;
  max-width: min(96vw, 960px);
  width: auto;
  background: transparent;
  overflow: visible;
}

.ag-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.82);
}

.ag-lightbox__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.ag-lightbox__inner img {
  display: block;
  max-width: min(96vw, 920px);
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.ag-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ag-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

.ag-lightbox__nav--prev {
  left: 24px;
}

.ag-lightbox__nav--next {
  right: 24px;
}

.ag-lightbox__nav:hover {
  background: #fff;
}

.ag-lightbox__nav[hidden] {
  display: none;
}

.ag-lightbox__count {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.ag-lightbox__count[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .ag-lightbox__inner img {
    max-width: 92vw;
    max-height: 78vh;
  }

  .ag-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .ag-lightbox__nav--prev {
    left: 12px;
  }

  .ag-lightbox__nav--next {
    right: 12px;
  }

  .ag-lightbox__count {
    bottom: 12px;
    font-size: 0.8rem;
  }
}

@media (min-width: 640px) {
  .ag-gallery--thumbs .ag-gallery__strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    gap: 0.5rem;
  }

  .ag-gallery__thumb {
    width: auto;
  }
}

/* 詳細: 地図埋め込み（Google / OSM） */
.ag-map--embed .ag-map__frame {
  box-shadow: 0 8px 28px rgba(30, 41, 59, 0.08);
}

.ag-map__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--ag-card-border);
  background: #e2e8f0;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.ag-map__frame--tall {
  aspect-ratio: auto;
  height: 420px;
  min-height: 320px;
}

.ag-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ag-map__external {
  margin: 0.85rem 0 0;
}

.ag-prose {
  line-height: 1.85;
  color: #334155;
}

.ag-prose--html p,
.ag-prose--html ul,
.ag-prose--html ol,
.ag-prose--html blockquote,
.ag-prose--html hr {
  margin: 0 0 1rem;
}

.ag-prose--html h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.ag-prose--html h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

.ag-prose--html ul,
.ag-prose--html ol {
  padding-left: 1.5rem;
}

.ag-prose--html blockquote {
  padding: 0.75rem 1rem;
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.ag-prose--html hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.ag-prose--html a {
  color: #2563eb;
  text-decoration: underline;
}

.ag-prose--html img.article-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.ag-prose--html img.article-img--size-sm {
  max-width: min(280px, 100%);
}

.ag-prose--html img.article-img--size-md {
  max-width: min(560px, 100%);
}

.ag-prose--html img.article-img--size-lg {
  max-width: 100%;
}

.ag-prose--html img.article-img--left {
  float: left;
  display: block;
  max-width: 34%;
  margin: 0 1.5rem 1rem 0;
}

.ag-prose--html img.article-img--center {
  display: block;
  float: none;
  max-width: 70%;
  margin: 1rem auto;
}

.ag-prose--html img.article-img--right {
  float: right;
  display: block;
  max-width: 34%;
  margin: 0 0 1rem 1.5rem;
}

.ag-prose--html::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 768px) {
  .ag-prose--html img.article-img--left,
  .ag-prose--html img.article-img--center,
  .ag-prose--html img.article-img--right {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1rem 0;
  }
}

.ag-voice__text {
  margin: 0;
  line-height: 1.75;
  color: #334155;
}

.ag-rent__lead {
  margin: 0 0 0.75rem;
  color: #475569;
}

.ag-attribution {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.ag-breadcrumb a {
  color: #2563eb;
}

/* ----- 一覧: Google 写真クレジット（サムネ下） ----- */
.ag-card__photo-credit {
  margin: 0;
  padding: 0.35rem 0.65rem 0.45rem;
  font-size: 0.65rem;
  line-height: 1.35;
  color: #64748b;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #f8fafc);
  border-top: 1px solid #e2e8f0;
}

/* ----- 詳細: Google 写真クレジット・横スクロールギャラリー ----- */
.ag-photo-credit {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

.ag-gallery--slider .ag-slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ag-gallery--slider .ag-slider__item {
  flex: 0 0 min(88vw, 520px);
  margin: 0;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ag-card-border);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.08);
}

.ag-gallery--slider .ag-slider__item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ag-detail--article .ag-gallery--slider .ag-slider__item img {
  height: 200px;
}

@media (min-width: 768px) {
  .ag-gallery--slider .ag-slider__item img {
    height: 280px;
  }

  .ag-detail--article .ag-gallery--slider .ag-slider__item img {
    height: 220px;
  }
}

.ag-contact-cta__actions {
  margin: 0;
}

.ag-ls-related-properties {
  margin: 0 0 1rem;
}

.ag-ls-related-properties__lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

.ag-contact-cta .ag-ls-related-properties .pd-related {
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.ag-card__facts {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.ag-card__station,
.ag-card__rating {
  display: block;
}

.ag-detail__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.ag-review-badge {
  margin: 0;
  font-size: 0.9rem;
  color: #b45309;
}

.ag-review-badge__stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
}

.ag-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.ag-review-item {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.ag-review-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.ag-review-item__stars {
  color: #f59e0b;
}

.ag-review-item__date {
  color: #94a3b8;
  font-size: 0.8rem;
}

.ag-review-item__body {
  margin: 0;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
}

.ag-review-item__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ag-review-item__photo {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.ag-reviews__notice {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.ag-reviews__form-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.ag-reviews__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}

.ag-reviews__input,
.ag-reviews__textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.ag-reviews__stars-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ag-reviews__form-msg--ok {
  color: #15803d;
}

.ag-reviews__form-msg--err {
  color: #b91c1c;
}

.ag-reviews__photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.ag-reviews__photo-thumb {
  position: relative;
  display: inline-block;
}

.ag-reviews__photo-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.ag-reviews__photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 2px 5px;
}

.ag-btn--outline {
  background: #fff;
  color: var(--ag-accent-dark);
  border-color: var(--ag-accent);
}

.ag-hero--portal {
  position: relative;
  overflow: hidden;
}

.ag-hero--portal::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(124, 179, 66, 0.12), transparent 55%);
}

.ag-h2__sub {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: none;
  vertical-align: middle;
}

.ag-pills--dense {
  gap: 0.4rem 0.55rem;
}

.ag-pills--dense .ag-pill {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
}

.ag-section--pref-aside {
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

.ag-note--pref {
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

/* トップ: 暮らしトピック hub */
.ag-hub__intro {
  margin: 0 0 1rem;
  color: var(--ag-text-muted);
  line-height: 1.65;
  max-width: 48rem;
}

.ag-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

@media (max-width: 900px) {
  .ag-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ag-hub__grid {
    grid-template-columns: 1fr;
  }
}

.ag-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--ag-card-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 5.5rem;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.ag-hub__card:hover {
  transform: translateY(-3px);
  border-color: var(--ag-accent);
  box-shadow: 0 10px 26px rgba(85, 139, 47, 0.14);
}

.ag-hub__card-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
}

.ag-hub__card-lead {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
}

.ag-hub__card--areas .ag-hub__card-title {
  color: var(--ag-accent-dark);
}

/* 詳細: 生活感ヒント */
.ag-life-hints__lead {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #475569;
}

.ag-life-hints__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 800px) {
  .ag-life-hints__grid {
    grid-template-columns: 1fr;
  }
}

.ag-life-hints__item {
  padding: 0.65rem 0.5rem 0;
  border-top: 3px solid var(--ag-accent-soft);
}

.ag-life-hints__item-title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ag-accent-dark);
}

.ag-life-hints__item-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #475569;
}

/* 賃貸 CTA */
.ag-rent--cta .ag-rent__actions {
  margin: 0;
}

.ag-btn--rent {
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  border-radius: 999px;
}

.ag-region-tabs-wrap {
  filter: drop-shadow(0 2px 10px rgba(30, 41, 59, 0.06));
}

/* ポータル SEO 導入文・カテゴリ下部 */
.ag-portal-intro {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #334155;
}

.ag-portal-intro--category {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ag-portal-intro--category p {
  margin: 0 0 0.65rem;
}

.ag-portal-intro--category p:last-child {
  margin-bottom: 0;
}

.ag-section__lead {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.6;
}

.ag-area-counts__list,
.ag-related-schools__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem 0.75rem;
}

.ag-area-counts__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
}

.ag-area-counts__count {
  font-weight: 700;
  color: var(--ag-accent-dark, #0f766e);
  white-space: nowrap;
}

.ag-related-schools__list a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f766e;
  font-size: 0.88rem;
  text-decoration: none;
}

.ag-related-schools__list a:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.ag-category-properties {
  margin-top: 1.5rem;
}

.ag-category-properties .ag-ls-related-properties {
  margin-top: 0.5rem;
}

/* --- 施設詳細: 左サイドバー + 右本文（条件検索 tp-list-layout と同系） --- */
body.tp-area-guide .static-wrap .tp-list-layout.ag-detail-shell,
.tp-area-guide .static-wrap .tp-list-layout.ag-detail-shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 40px;
  gap: 24px;
}

body.tp-area-guide .ag-detail-left-sidebar,
.tp-area-guide .ag-detail-left-sidebar,
body.tp-area-guide .ag-detail-sidebar,
.tp-area-guide .ag-detail-sidebar {
  position: sticky;
  top: 16px;
  align-self: flex-start;
  width: 300px;
  min-width: 0;
}

body.tp-area-guide .ag-detail-left-sidebar.tp-side-banners,
.tp-area-guide .ag-detail-left-sidebar.tp-side-banners,
body.tp-area-guide .ag-detail-sidebar.tp-side-banners,
.tp-area-guide .ag-detail-sidebar.tp-side-banners {
  display: block;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.tp-area-guide .ag-detail-main,
.tp-area-guide .ag-detail-main {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-ls-nearby-properties--sidebar,
.tp-area-guide .ag-detail-left-sidebar .ag-ls-nearby-properties--sidebar,
body.tp-area-guide .ag-detail-sidebar .ag-ls-nearby-properties--sidebar,
.tp-area-guide .ag-detail-sidebar .ag-ls-nearby-properties--sidebar {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 40, 20, 0.1);
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 40, 20, 0.06);
}

.ag-ls-nearby-properties--empty .ag-detail-sidebar__empty {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.ag-ls-nearby-properties--empty .ag-detail-sidebar__empty-actions {
  margin: 0;
}

.ag-detail-sidebar__empty-actions .ag-btn--sm {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
}

.tp-area-guide .ag-detail-related {
  margin-top: 1.75rem;
}

.tp-area-guide .ag-detail-related .ag-section:first-child {
  margin-top: 0;
}

.tp-area-guide .ag-detail-hero__media img {
  width: 100%;
  max-width: 100%;
}

.ag-ls-nearby-properties__title {
  margin: 0 0 0.75rem;
}

.ag-ls-nearby-properties__title--bottom {
  margin: 0 0 1rem;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.45;
  color: #0f766e;
  letter-spacing: 0.01em;
}

.ag-ls-nearby-properties__lead {
  margin: -0.35rem 0 1rem;
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
}

.ag-ls-nearby-properties-wrap {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 40, 20, 0.06);
}

.ag-ls-nearby-properties-wrap .ag-ls-nearby-properties--bottom {
  padding: 0;
}

/* --- 近隣物件カード共通（周辺情報詳細専用・property-card--top とは分離） --- */
body.tp-area-guide .ag-nearby-prop-card__no-photo,
.tp-area-guide .ag-nearby-prop-card__no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 72px;
  font-size: 0.65rem;
  color: #94a3b8;
  background: #f1f5f9;
}

body.tp-area-guide .ag-nearby-prop-card__btn,
.tp-area-guide .ag-nearby-prop-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* --- サイドバー: styles.css .tp-side-banners a 競合リセット + 5件縦並び白カード --- */
/*
 * aside.tp-side-banners 内のため styles.css の黄緑グラデーションリンクが
 * サムネ・物件名にも当たる。カード内 a を一度リセットし、要素別に再指定する。
 */
body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar a,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar a,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar a,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar a {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  box-shadow: none !important;
  transform: none;
  filter: none;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar a:hover,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar a:hover,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar a:hover,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar a:hover {
  transform: none;
  filter: none;
  box-shadow: none !important;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__thumb,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__thumb,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__thumb,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__thumb,
body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb {
  display: block;
  width: 86px;
  height: 72px;
  padding: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9 !important;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: none !important;
  transform: none;
  filter: none;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__thumb:hover,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__thumb:hover,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__thumb:hover,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__thumb:hover {
  background: #f1f5f9 !important;
  transform: none;
  filter: none;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__name a,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__name a,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__name a,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__name a {
  color: #1e293b !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  box-shadow: none !important;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__name a:hover,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__name a:hover,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__name a:hover,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__name a:hover {
  color: #1e293b !important;
  background: transparent !important;
  transform: none;
  filter: none;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-props-grid--sidebar,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-props-grid--sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  background: #fff !important;
  border: 1px solid #d7e6c8;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  min-width: 0;
  overflow: hidden;
  min-height: 118px;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb img,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb img,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb img,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__body,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__body,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__body,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  justify-content: flex-start;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__rent,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__rent,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__rent,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__rent {
  margin: 0;
  color: #b91c1c !important;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name a,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name a,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name a,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__name a {
  color: #1e293b !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #64748b;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta-lbl,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta-lbl,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta-lbl,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__meta-lbl {
  color: var(--ag-accent-dark, #558b2f);
  font-weight: 700;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__cta,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__cta,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__cta,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card--sidebar .ag-nearby-prop-card__cta {
  margin: auto 0 0;
  padding-top: 4px;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn,
body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn--sidebar,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn--sidebar,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn--sidebar,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn--sidebar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 30px;
  padding: 6px 8px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.2;
  color: #fff !important;
  background: var(--ag-accent, #7cb342) !important;
  border: 1px solid var(--ag-accent-dark, #558b2f) !important;
  border-radius: 999px;
  box-shadow: none !important;
  transform: none;
  filter: none;
  text-decoration: none;
}

body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn:hover,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn:hover,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn:hover,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn:hover,
body.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn--sidebar:hover,
.tp-area-guide .ag-detail-left-sidebar .ag-nearby-prop-card__btn--sidebar:hover,
body.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn--sidebar:hover,
.tp-area-guide .ag-detail-sidebar .ag-nearby-prop-card__btn--sidebar:hover {
  background: var(--ag-accent-dark, #558b2f) !important;
  color: #fff !important;
  transform: none;
  filter: none;
  box-shadow: none !important;
}

/* --- 下部: PC 5列1行（専用カード・home-new-cards 非依存） --- */
body.tp-area-guide .ag-ls-nearby-properties-wrap .ag-nearby-props-grid--bottom,
.tp-area-guide .ag-ls-nearby-properties-wrap .ag-nearby-props-grid--bottom,
body.tp-area-guide .ag-nearby-props-grid--bottom,
.tp-area-guide .ag-nearby-props-grid--bottom {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

body.tp-area-guide .ag-ls-nearby-properties-wrap .ag-nearby-prop-card--bottom,
.tp-area-guide .ag-ls-nearby-properties-wrap .ag-nearby-prop-card--bottom,
body.tp-area-guide .ag-nearby-prop-card--bottom,
.tp-area-guide .ag-nearby-prop-card--bottom {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid #d7e6c8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__thumb--bottom,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__thumb--bottom {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  line-height: 0;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__thumb--bottom img,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__thumb--bottom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__body--bottom,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__body--bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 10px 10px 12px;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__rent--bottom,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__rent--bottom {
  margin: 0;
  color: #b91c1c;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__name--bottom,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__name--bottom {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__name--bottom a,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__name--bottom a {
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__chips,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__chip,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__chip {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ag-accent-dark, #558b2f);
  background: var(--ag-accent-soft, #e8f5d4);
  border: 1px solid #d7e6c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__chip--access,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__chip--access {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
  font-weight: 600;
  max-width: 100%;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

body.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__cta--bottom,
.tp-area-guide .ag-nearby-prop-card--bottom .ag-nearby-prop-card__cta--bottom {
  margin: auto 0 0;
  padding-top: 4px;
}

body.tp-area-guide .ag-nearby-prop-card__btn--bottom,
.tp-area-guide .ag-nearby-prop-card__btn--bottom {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff !important;
  background: var(--ag-accent, #7cb342) !important;
  border: 1px solid var(--ag-accent-dark, #558b2f);
  border-radius: 999px;
  box-shadow: none;
}

body.tp-area-guide .ag-nearby-prop-card__btn--bottom:hover,
.tp-area-guide .ag-nearby-prop-card__btn--bottom:hover {
  color: #fff !important;
  background: var(--ag-accent-dark, #558b2f) !important;
  transform: none;
  filter: none;
}

@media (max-width: 900px) {
  body.tp-area-guide .static-wrap .tp-list-layout.ag-detail-shell,
  .tp-area-guide .static-wrap .tp-list-layout.ag-detail-shell {
    flex-direction: column;
    padding: 0 0 32px;
  }

  body.tp-area-guide .ag-detail-left-sidebar,
  .tp-area-guide .ag-detail-left-sidebar,
  body.tp-area-guide .ag-detail-sidebar,
  .tp-area-guide .ag-detail-sidebar {
    position: static;
    width: 100%;
    margin-top: 0;
  }

  body.tp-area-guide .ag-detail-main,
  .tp-area-guide .ag-detail-main {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  body.tp-area-guide .ag-nearby-props-grid--bottom,
  .tp-area-guide .ag-nearby-props-grid--bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.tp-area-guide .ag-nearby-props-grid--bottom,
  .tp-area-guide .ag-nearby-props-grid--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.tp-area-guide .ag-nearby-props-grid--bottom,
  .tp-area-guide .ag-nearby-props-grid--bottom {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  body.tp-area-guide .ag-nearby-prop-card--bottom,
  .tp-area-guide .ag-nearby-prop-card--bottom {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }
}

/* --- ポータル（駅・市区町村・町名）一覧 UI --- */
.ag-h2--sub {
  font-size: 1rem;
  border-bottom-width: 1px;
}

.ag-cat-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.ag-cat-summary__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--ag-card-border);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ag-cat-summary__card:hover,
.ag-cat-summary__card.is-active {
  border-color: var(--ag-accent);
  box-shadow: 0 4px 14px rgba(85, 139, 47, 0.12);
}

.ag-cat-summary__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.ag-cat-summary__count {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ag-accent-dark);
}

.ag-livability__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ag-livability__item {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--ag-accent-soft);
  color: var(--ag-accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.ag-portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.ag-portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 auto;
}

.ag-portal-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ag-card-border);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.ag-portal-tab.is-active {
  background: var(--ag-accent);
  border-color: var(--ag-accent-dark);
  color: #fff;
}

.ag-portal-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #475569;
}

.ag-portal-sort__select {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
}

.ag-portal-result {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.ag-card__station-row {
  margin-bottom: 0.25rem;
}

.ag-card__nearest-station {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ag-accent-dark);
  background: var(--ag-accent-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.pd-nearby-walk-summary {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  color: #334155;
}

.pd-nearby-walk-summary__title {
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.pd-nearby-walk-summary__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-nearby-walk-summary__item a {
  color: var(--ag-accent-dark, #558b2f);
  font-weight: 700;
  text-decoration: underline;
}
