/* 駅・エリア別ページ — 一覧シェルは search-page.css、ここは route 固有のみ */

body.site-theme-conversion.tp-station-route .tp-home-hero,
body.site-theme-conversion.tp-station-route .tp-home-articles,
body.site-theme-conversion.tp-station-route .tp-home-strengths,
body.site-theme-conversion.tp-station-route .tp-home-seo-note,
body.site-theme-conversion.tp-station-route .tp-home-new,
body.site-theme-conversion.tp-station-route #listSearchSection,
body.site-theme-conversion.tp-station-route #homeViewAllWrap,
body.site-theme-conversion.tp-station-route #homeStationSection {
  display: none !important;
}

body.site-theme-conversion .tp-station-page .tp-station-panel {
  margin: 0 0 18px;
}

body.site-theme-conversion .tp-station-page .station-feature-card p,
body.site-theme-conversion .tp-station-page .station-cta-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
}

body.site-theme-conversion .tp-station-page .station-cta-card__title,
body.site-theme-conversion .tp-station-page .station-feature-card .tp-search-filter-card__title {
  margin: 0 0 8px;
}

body.site-theme-conversion .tp-station-page .station-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.site-theme-conversion .tp-station-page .station-featured-section {
  margin: 0 0 22px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid #fed7aa;
  background: linear-gradient(145deg, #fff7ed 0%, #ffffff 55%, #fffbeb 100%);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.08);
}

body.site-theme-conversion .tp-station-page .station-featured-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.site-theme-conversion .tp-station-page .station-featured-grid .building-card {
  width: 100%;
}

body.site-theme-conversion .tp-station-page .station-popular-condition-links {
  margin: 22px 0 0;
}

body.site-theme-conversion .tp-station-page .station-links {
  margin: 18px 0 0;
}

body.site-theme-conversion .tp-station-page .station-empty-cta {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
}

body.site-theme-conversion .tp-station-page #status.status-box {
  display: none;
}

body.site-theme-conversion .tp-station-page .tp-list-pagination {
  margin-top: 16px;
}

/* ===== 駅ページ限定: サイドバーの絞り込みカード見出しの立体化（2026-07） =====
   対象:「月額賃料／間取りタイプ／徒歩分数／築年／面積（㎡）／こだわり条件」の6項目。
   body.tp-station-route:not(.tp-area-route) でスコープし、エリアページ・
   /test/search/・TOP など他ページのサイドバーへは影響させない。
   <details>/<summary> の開閉挙動（JS側）には一切手を加えない。表示のみの変更。 */
body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-filter-card {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 72%);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-filter-card__title {
  font-weight: 900;
}

body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-acc__summary {
  font-weight: 800;
  transition: color 0.15s ease;
}

body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-filter-card:hover,
body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-filter-card:has(.tp-search-acc[open]) {
  border-color: #16a34a;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.14);
}

body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-acc__summary:hover,
body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-acc[open] > .tp-search-acc__summary {
  color: #166534;
}

/* ===== 駅ページ限定: 検索結果ヘッダー整理（2026-07） =====
   並び順（#stationSort）をヒーローの該当/掲載中と同じ行の右端へ配置し、
   「該当」の件数をより強調する（掲載中は既存の可読性を維持）。
   エリアページ・/test/search/・TOP には影響させない。JS側の #stationSort 参照は不変。 */
body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-hero__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-hero__sort label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-list-count-summary__cell--matched .tp-list-count-summary__num {
  font-size: 1.55rem;
  font-weight: 900;
}

@media (max-width: 480px) {
  body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-list-count-summary__cell--matched .tp-list-count-summary__num {
    font-size: 1.25rem;
  }

  body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-hero__sort {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===== 駅ページ限定: 駅特徴文のヒーロー統合（2026-07） =====
   駅特徴文をヒーロー説明文へ統合したため、長文でもPC/スマホでヒーローからはみ出さないようにする。
   エリアページ・/test/search/・TOP には影響させない。 */
body.site-theme-conversion.tp-station-route:not(.tp-area-route) .tp-search-hero__lead {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 900px) {
  /* スマホ：駅・エリアのサイドバー絞り込みカード・バナーを非表示（条件ドロワー用 DOM は維持） */
  body.site-theme-conversion.tp-station-route .tp-list-layout.tp-search-shell-layout > aside.tp-side-banners.tp-search-side {
    order: 999;
    width: 0 !important;
    max-width: 0 !important;
    min-height: 0 !important;
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    position: static;
  }

  body.site-theme-conversion.tp-station-route .tp-list-layout.tp-search-shell-layout > main.tp-search-main {
    border-radius: 16px;
  }

  body.site-theme-conversion.tp-station-route aside.tp-search-side #stationSidebar,
  body.site-theme-conversion.tp-station-route aside.tp-search-side .tp-search-sidebar {
    width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  body.site-theme-conversion.tp-station-route aside.tp-search-side .tp-search-sidebar__head,
  body.site-theme-conversion.tp-station-route aside.tp-search-side .tp-side-banners__nav--promos,
  body.site-theme-conversion.tp-station-route aside.tp-search-side .tp-search-filters-toggle[data-station-filters-toggle] {
    display: none !important;
  }

  /* search-page.css の固定ボタン化を駅・エリアサイドバーでは無効化 */
  body.site-theme-conversion.tp-station-route aside.tp-search-side .tp-search-filters-toggle {
    display: none !important;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    box-shadow: none;
  }
}
