/*
  file: home.css
  scope: / TOP（:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal)）
  purpose:
  - hero image tune
  - 人気のエリアから探す（住みたい街カード）
*/

/* ----- ヒーロー画像チューン（正本。site-content → .tp-home-hero の CSS 変数） ----- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero {
  --hero-overlay-opacity: 0.28;
  --hero-image-brightness: 1;
  --hero-image-saturation: 1;
  --hero-image-contrast: 1;
  --hero-image-sharpness: 0;
  --hero-image-natural: 0;
  --hero-image-white-wash: 0;
  --hero-image-object-position: center center;
}

/* ----- ヒーロー文言サイズ（site-content → .tp-home-hero inline の CSS 変数。styles.css の clamp 固定値を上書き） ----- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-kicker,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__eyebrow {
  font-size: var(--hero-kicker-font-size-pc, var(--hero-kicker-font-size, 20px)) !important;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-title,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__title {
  font-size: var(--hero-title-font-size-pc, var(--hero-title-font-size, 40px)) !important;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-sub,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__lead {
  font-size: var(--hero-lead-font-size-pc, var(--hero-lead-font-size, 16px)) !important;
}

@media (max-width: 900px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-kicker,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__eyebrow {
    font-size: var(--hero-kicker-font-size-sp, calc(var(--hero-kicker-font-size, 20px) * 0.75)) !important;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-title,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__title {
    font-size: var(--hero-title-font-size-sp, calc(var(--hero-title-font-size, 40px) * 0.75)) !important;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-sub,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__lead {
    font-size: var(--hero-lead-font-size-sp, calc(var(--hero-lead-font-size, 16px) * 0.75)) !important;
  }
}

/* styles.css の固定 filter / 全体 ::after は使わない */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__visual .tp-home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 推奨 1920×800（2.4:1）に合わせたヒーロー高さ */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__visual {
  aspect-ratio: 1920 / 800;
  width: 100%;
  min-height: unset !important;
  max-height: none !important;
  height: auto;
  position: relative;
  overflow: hidden;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__media img,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) #homeHeroImage {
  opacity: 1 !important;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: var(--hero-image-object-position, center center) !important;
  filter: brightness(var(--hero-image-brightness, 1))
    contrast(calc(var(--hero-image-contrast, 1) * (1 + var(--hero-image-sharpness, 0) * 0.1)))
    saturate(var(--hero-image-saturation, 1))
    sepia(calc(var(--hero-image-natural, 0) * 0.1))
    hue-rotate(calc(var(--hero-image-natural, 0) * -5deg))
    drop-shadow(
      0 0 calc(0.2px + var(--hero-image-sharpness, 0) * 0.9px) rgba(15, 40, 20, 0.22)
    ) !important;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__visual .tp-home-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0)) !important;
  pointer-events: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero__visual .tp-home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--hero-image-white-wash, 0.1) !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.82) 43%,
    rgba(255, 255, 255, 0.55) 66%,
    rgba(255, 246, 190, 0.48) 100%
  ) !important;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-overlay {
  background: transparent !important;
  position: absolute !important;
  inset: 0 !important;
  min-height: unset !important;
  max-height: none !important;
  height: 100%;
  box-sizing: border-box;
}

/* ----- TOP ポータル全幅背景シェル（SUUMO型: 外側 full-bleed / 内側 max-width） ----- */
/* 親 .tp-list-layout / .site-wrap の幅制限を解除（100vw は使わない） */
body:has(.tp-home-portal-shell) {
  overflow-x: clip;
}

body:has(.tp-home-portal-shell) .tp-list-layout {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body:has(.tp-home-portal-shell) .tp-list-layout .tp-side-banners {
  display: none !important;
}

body:has(.tp-home-portal-shell) .tp-list-layout .site-wrap.list-page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body:has(.tp-home-portal-shell) .tp-home-new,
body:has(.tp-home-portal-shell) .tp-home-viewall-wrap,
body:has(.tp-home-portal-shell) .tp-home-stations.pd-card,
body:has(.tp-home-portal-shell) :is(
  .tp-home-content-width,
  .tp-home-browse,
  .tp-home-hub-nav,
  .tp-home-strengths,
  .tp-home-why,
  .tp-home-articles,
  .tp-home-seo-guide,
  .tp-home-sitemap-cta,
  .tp-home-contact-cta
) {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell {
  --tp-home-portal-overlay-opacity: 0.28;
  --tp-home-portal-bg-position: center center;
  --tp-home-portal-bg-position-mobile: center center;
  position: relative;
  width: 100%;
  margin: 0 0 28px;
  padding: 32px 16px 40px;
  isolation: isolate;
  overflow: hidden;
  color: #0f172a;
  background: linear-gradient(160deg, #f8fafc 0%, #eef6e3 55%, #e2f0c8 100%);
  background-color: var(--tp-home-portal-bg-color, transparent);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg {
  color: #fff;
  background-color: var(--tp-home-portal-bg-color, #0f172a);
  background-image: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--tp-home-portal-bg);
  background-position: var(--tp-home-portal-bg-position, center center);
  background-size: cover;
  background-repeat: no-repeat;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, calc(var(--tp-home-portal-overlay-opacity, 0.28) * 1.55)) 0%,
    rgba(15, 23, 42, var(--tp-home-portal-overlay-opacity, 0.28)) 48%,
    rgba(15, 23, 42, calc(var(--tp-home-portal-overlay-opacity, 0.28) * 0.9)) 100%
  );
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal__kicker {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 42rem;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg .tp-home-portal__kicker,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg .tp-home-portal__title,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg .tp-home-portal__lead {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal__search-card {
  margin-top: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #0f172a;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal__assist {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg .tp-home-portal__assist,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg .tp-home-portal__assist a {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 760px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell {
    padding: 24px 14px 30px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo) .tp-home-portal-shell--has-bg::before {
    background-image: var(
      --tp-home-portal-bg-mobile,
      var(--tp-home-portal-bg)
    );
    background-position: var(
      --tp-home-portal-bg-position-mobile,
      var(--tp-home-portal-bg-position, center center)
    );
  }
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-search-card {
  width: min(460px, 100%);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-tab {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-tab.is-active,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #d9ff8c 0%, #b8e85a 100%);
  border-color: rgba(145, 202, 53, 0.9);
  color: #14532d;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-tab:hover {
  transform: translateY(-1px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-panel {
  display: block;
}

/* display:block が HTML hidden を上書きして全パネルが積み上がるのを防ぐ */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-panel[hidden],
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-panel:not(.is-active) {
  display: none !important;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card {
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(155deg, #efffd0 0%, #d4f58a 42%, #b8e85a 100%);
  border: 1px solid rgba(198, 240, 120, 0.75);
  box-shadow: 0 8px 18px rgba(60, 90, 20, 0.12);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card--photo {
  color: #fff;
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.25);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08));
  pointer-events: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card--text .tp-home-search-link-card__shade {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  gap: 6px;
  padding: 12px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #14532d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card--photo .tp-home-search-link-card__name,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card--photo .tp-home-search-link-card__sub,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card--photo .tp-home-search-link-card__cta,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card--photo .tp-home-search-link-card__count {
  color: #fff;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__sub {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.76);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__count {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  color: #14532d;
  font-size: 11px;
  font-weight: 800;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__cta {
  font-size: 11px;
  font-weight: 800;
  color: #14532d;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card:hover .tp-home-search-link-card__media {
  transform: scale(1.05);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card:hover {
  transform: translateY(-3px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-search--tabs .tp-hero-search__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-search--tabs .tp-hero-search__submit {
  width: 100%;
}

/* ----- TOP 下部導線カード ----- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-nav {
  margin: clamp(20px, 3vw, 28px) clamp(16px, 3vw, 32px) 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: linear-gradient(165deg, #f8fff0 0%, #f0fad8 48%, #e8f6c8 100%);
  border: 1px solid rgba(184, 232, 90, 0.55);
  box-shadow: 0 10px 26px rgba(60, 90, 20, 0.09);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-nav__title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: #1a3d0a;
  letter-spacing: 0.02em;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-nav__lead {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(26, 61, 10, 0.78);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #1a4d12;
  background: #fff;
  border: 2px solid rgba(198, 240, 120, 0.65);
  box-shadow: 0 2px 10px rgba(60, 90, 20, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  background: linear-gradient(145deg, #efffd0, #d9ff8c);
  border: 1px solid rgba(184, 232, 90, 0.5);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-card__label {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(152, 210, 60, 0.95);
  box-shadow: 0 8px 20px rgba(98, 176, 0, 0.2);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-card:focus-visible {
  outline: 2px solid #6aaf00;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hub-nav__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- 人気エリア：街紹介カード（検索より控えめ・明るいトーン） ----- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero .tp-hero-popular-strip {
  margin-top: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero .tp-hero-popular-strip .tp-hero-area-panel__title {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 800;
  color: #334155;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero .tp-hero-popular-strip .tp-hero-area-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card {
  position: relative;
  display: block;
  min-height: 172px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #1a3d0a;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 20px rgba(60, 90, 20, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(98, 176, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  filter: brightness(1.08) saturate(1.1);
  transition: transform 0.35s ease, filter 0.35s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--photo:hover .tp-hero-area-card__media {
  transform: scale(1.08);
  filter: brightness(1.12) saturate(1.15);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text {
  background: linear-gradient(155deg, #efffd0 0%, #d4f58a 42%, #b8e85a 100%);
  border-color: rgba(198, 240, 120, 0.65);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text .tp-hero-area-card__shade {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  min-height: 0;
  padding: 12px 12px 11px;
  text-align: left;
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text .tp-hero-area-card__body {
  position: relative;
  min-height: 172px;
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #1a4d12;
  background: #d9ff8c;
  box-shadow: 0 1px 4px rgba(60, 90, 20, 0.12);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card.is-featured .tp-hero-area-card__badge {
  background: #d9ff8c;
  color: #14532d;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__name {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text .tp-hero-area-card__name {
  color: #1a3d0a;
  text-shadow: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text .tp-hero-area-card__sub {
  color: rgba(26, 61, 10, 0.78);
  text-shadow: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__count {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(26, 61, 10, 0.35);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text .tp-hero-area-card__count {
  color: #1a4d12;
  background: rgba(255, 255, 255, 0.55);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__count[hidden] {
  display: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__cta {
  font-size: 11px;
  font-weight: 800;
  color: #f4ffe8;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text .tp-hero-area-card__cta {
  color: #1a4d12;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card.is-featured {
  box-shadow: 0 10px 24px rgba(98, 176, 0, 0.2);
  border-color: rgba(217, 255, 140, 0.75);
}

/* 下部「駅から探す」旧カード — img 生サイズで横スクロールしないよう portal と同系の枠に収める */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-card {
  position: relative;
  display: block;
  min-height: 120px;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(155deg, #efffd0 0%, #d4f58a 42%, #b8e85a 100%);
  border: 1px solid rgba(198, 240, 120, 0.75);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-card--photo {
  color: #fff;
  background: #0f172a;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.08));
  pointer-events: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-card__name {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 120px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-station-card--photo .tp-home-station-card__name {
  color: #fff;
}

@media (max-width: 760px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-search-card {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-card-grid {
    grid-template-columns: 1fr;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-hero .tp-hero-popular-strip .tp-hero-area-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card--text .tp-hero-area-card__body {
    min-height: 148px;
  }
}

@media (max-width: 560px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-tabs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-tab,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-home-search-link-card__media {
    transition: none;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card__media {
    transition: none;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal) .tp-hero-area-card:hover {
    transform: none;
  }
}

/* ポータルTOP: styles.css 未同期でも新着と同じ 1120 幅になるよう変数をここで定義 */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-portal):not(.tp-view-all) {
  --tp-home-content-max: 1120px;
  /* portal-shell の .tp-home-new は width:100% + padding。ガター幅引きはしない */
  --tp-home-content-gutter: 0px;
  --tp-home-content-pad: 16px;
}

/* 新着物件と同じ内容幅。数値は --tp-home-content-*（styles.css または上記ポータル定義）。 */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(
  .tp-home-content-width,
  .tp-home-browse,
  .tp-home-hub-nav,
  .tp-home-strengths,
  .tp-home-why,
  .tp-home-articles,
  .tp-home-seo-guide,
  .tp-home-sitemap-cta,
  .tp-home-contact-cta
) {
  max-width: var(--tp-home-content-max);
  width: calc(100% - var(--tp-home-content-gutter));
  margin-left: auto;
  margin-right: auto;
  padding: var(--tp-home-content-pad);
  box-sizing: border-box;
  min-width: 0;
}

/* 共通セクションヘッダー装飾 */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-section-eyebrow {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #16a34a;
  text-transform: uppercase;
  margin-bottom: 4px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-heading-line {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #84cc16);
  border-radius: 999px;
  margin: 8px auto 14px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-browse, .tp-home-hub-nav, .tp-home-strengths, .tp-home-why) .pd-card-title,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-nav__title {
  text-align: center;
  margin-bottom: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-browse, .tp-home-hub-nav, .tp-home-strengths, .tp-home-why) .static-note,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-nav__lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

/* -------------------------------------------------------------
   1. 駅・地域セクション
------------------------------------------------------------- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  color: #14532d;
  background: #ffffff;
  border: 1px solid rgba(22, 163, 74, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card:hover,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card:focus-visible {
  transform: translateY(-4px);
  border-color: #16a34a;
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.18);
  outline: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__media {
  display: block;
  height: 220px;
  background: linear-gradient(145deg, #84cc16 0%, #16a34a 55%, #15803d 100%);
  position: relative;
  overflow: hidden;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card:hover .tp-home-area-card__media img {
  transform: scale(1.05);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__overlay-name {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  min-width: 0;
  flex: 1;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-area-card__header, .tp-home-area-card__meta-top) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__name {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
  overflow-wrap: anywhere;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__count {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card--quiet .tp-home-area-card__count {
  background: #f1f5f9;
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.35);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__towns {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
  overflow-wrap: anywhere;
  margin: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #334155;
  overflow-wrap: anywhere;
  margin: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.92rem;
  font-weight: 900;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-top: 1px dashed rgba(22, 163, 74, 0.2);
}

/* -------------------------------------------------------------
   2. 会員限定物件セクション（専用ダークエメラルド背景＋特典カード）
------------------------------------------------------------- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-band {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 24px 0;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  box-sizing: border-box;
  color: #ffffff;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-band .tp-home-member-invite {
  max-width: var(--tp-home-content-max);
  width: calc(100% - var(--tp-home-content-gutter));
  margin-left: auto;
  margin-right: auto;
  padding: 32px 28px;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 60%), rgba(2, 44, 34, 0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-section-eyebrow--gold {
  color: #fbbf24;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite h2 {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.35;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite p {
  color: #d1fae5;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 740px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-member-perks, .tp-home-member-benefits) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-member-perk, .tp-home-member-benefit) {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-member-perk__icon, .tp-home-member-benefit__icon) {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 2px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-member-perk__title, .tp-home-member-benefit__title) {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 900;
  color: #fef08a;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-member-perk__desc, .tp-home-member-benefit__desc) {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #ecfdf5;
  margin: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__register {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__register:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.45);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__login,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__search {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__login:hover,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__search:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   3. 目的から選ぶ（目的別カラー＆バッジ＆視覚的分離）
------------------------------------------------------------- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-nav {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 170px;
  height: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card__badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  align-self: flex-start;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card__icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card__label {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 6px;
  color: #0f172a;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card__text {
  font-size: 0.83rem;
  line-height: 1.5;
  color: #64748b;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card__cta {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 目的別カラーバリエーション */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--search {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--search .tp-home-hub-card__badge {
  background: #0284c7;
  color: #ffffff;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--search .tp-home-hub-card__cta {
  color: #0369a1;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--area {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--area .tp-home-hub-card__badge {
  background: #059669;
  color: #ffffff;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--area .tp-home-hub-card__cta {
  color: #047857;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--archive {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--archive .tp-home-hub-card__badge {
  background: #d97706;
  color: #ffffff;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--archive .tp-home-hub-card__cta {
  color: #b45309;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--staff {
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #e9d5ff;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--staff .tp-home-hub-card__badge {
  background: #7c3aed;
  color: #ffffff;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--staff .tp-home-hub-card__cta {
  color: #6d28d9;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--company {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--company .tp-home-hub-card__badge {
  background: #475569;
  color: #ffffff;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--company .tp-home-hub-card__cta {
  color: #334155;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--contact {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fecdd3;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--contact .tp-home-hub-card__badge {
  background: #e11d48;
  color: #ffffff;
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--contact .tp-home-hub-card__cta {
  color: #be123c;
}

/* 目的カード：検証済み --tp-purpose-accent のみ。未設定は既存 --search/--area 等を維持 */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--has-accent {
  border-color: var(--tp-purpose-accent);
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--has-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tp-purpose-accent);
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--has-accent .tp-home-hub-card__badge {
  background: var(--tp-purpose-accent);
  color: var(--tp-purpose-ink, #ffffff);
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--has-accent .tp-home-hub-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: var(--tp-purpose-accent);
  color: var(--tp-purpose-ink, #ffffff);
}
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-card--has-accent .tp-home-hub-card__cta {
  color: var(--tp-purpose-accent);
}

/* -------------------------------------------------------------
   4. 会社の強み（大きなアイコン・キャッチコピー・整然としたカード）
------------------------------------------------------------- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths {
  background: linear-gradient(180deg, #fefce8 0%, #ffffff 100%);
  border-radius: 20px;
  border: 1px solid rgba(234, 179, 8, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(234, 179, 8, 0.28);
  box-shadow: 0 8px 20px rgba(120, 80, 10, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(120, 80, 10, 0.1);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__no {
  font-size: 13px;
  font-weight: 900;
  color: #ea580c;
  background: #ffedd5;
  padding: 3px 8px;
  border-radius: 6px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__icon {
  font-size: 1.8rem;
  line-height: 1;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__role {
  font-size: 0.85rem;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 4px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__catch {
  font-size: 1.08rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__body {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------
   5. 選ばれる理由（特大フォント数値＆番号バッジ＆明確な実績訴求）
------------------------------------------------------------- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__item {
  position: relative;
  min-width: 0;
  padding: 22px 20px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(22, 163, 74, 0.22);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.12);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__no {
  font-size: 13px;
  font-weight: 900;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 6px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__icon {
  font-size: 1.6rem;
  line-height: 1;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  margin: 0 0 4px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__num {
  margin: 4px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__num-val {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  color: #16a34a;
  letter-spacing: -0.02em;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__num-unit {
  font-size: 1.15rem;
  font-weight: 900;
  color: #15803d;
  margin-left: 2px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__label {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__desc {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(22, 163, 74, 0.18);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #f1f5f9;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.4;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__cta-wrap {
  margin-top: 12px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__cta:hover {
  background: #15803d;
}

/* -------------------------------------------------------------
   6. レスポンシブ対応 (1024px, 768px, スマホ)
------------------------------------------------------------- */
@media (max-width: 1024px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-cards,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-nav__grid,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__list,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-member-perks, .tp-home-member-benefits) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-cards,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-hub-nav__grid,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-strengths__list,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__grid,
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) :is(.tp-home-member-perks, .tp-home-member-benefits) {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-area-card__media {
    height: 180px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-band .tp-home-member-invite {
    padding: 24px 18px;
    border-radius: 18px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__actions {
    flex-direction: column;
    align-items: stretch;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-member-invite__actions a {
    width: 100%;
    text-align: center;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-why__num-val {
    font-size: 2.3rem;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* -------------------------------------------------------------
   TOP下部: 地域案内ガイド + サイトマップ導線
------------------------------------------------------------- */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide {
  margin-top: 18px;
  margin-bottom: 14px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(22, 163, 74, 0.14);
  border-radius: 18px;
  background: linear-gradient(160deg, #f7faf3 0%, #eef6e4 55%, #f4f1ea 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  text-align: left;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide .tp-home-section-eyebrow {
  text-align: left;
  color: #15803d;
  margin-bottom: 6px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  text-align: left;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide .tp-home-heading-line {
  margin: 0 0 14px;
  margin-left: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 22px 28px;
  align-items: start;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__text {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
  text-align: left;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__text:last-child {
  margin-bottom: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__search-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #15803d;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.22);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__search-cta:hover,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__search-cta:focus-visible {
  background: #166534;
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__station-label {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__stations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__stations a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #166534;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__stations a:hover,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-seo-guide__stations a:focus-visible {
  border-color: #16a34a;
  background: #fff;
  outline: 2px solid #86efac;
  outline-offset: 1px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta {
  margin: 0 auto 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__link:hover,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__link:focus-visible {
  border-color: #16a34a;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.12);
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #15803d;
  flex: 0 0 auto;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__title {
  font-size: 1.02rem;
  font-weight: 900;
  color: #0f172a;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__sub {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-sitemap-cta__chevron {
  color: #16a34a;
  font-weight: 900;
  flex: 0 0 auto;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-articles {
  margin-left: auto;
  margin-right: auto;
}

/* ==================================================
   来店相談・お問い合わせ セクション（TOP専用相談カード）
   新着物件と同じ共通幅 .tp-home-content-width 体系に統合
================================================== */
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 32px 36px;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  background: linear-gradient(135deg, #f7faf4 0%, #f2f7ec 45%, #fbf8f2 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #15803d 0%, #ea580c 100%);
  border-radius: 20px 0 0 20px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 28px 36px;
  align-items: center;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__main {
  text-align: left;
  min-width: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta .tp-home-section-eyebrow {
  text-align: left;
  margin-bottom: 6px;
  color: #15803d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  text-align: left;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta .tp-home-heading-line {
  margin: 0 0 12px 0;
  width: 44px;
  height: 3px;
  background: #16a34a;
  border-radius: 2px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__lead {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
  text-align: left;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__point-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  border: 1px solid rgba(22, 163, 74, 0.35);
  position: relative;
  flex: 0 0 22px;
  box-sizing: border-box;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__point-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 9px;
  border: solid #15803d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__point-text {
  line-height: 1.4;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__side {
  min-width: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__card {
  background: #ffffff;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__card-catch {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: #166534;
  line-height: 1.45;
  text-align: center;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  cursor: pointer;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn--primary {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.28);
  border: 1px solid transparent;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn--primary:hover,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn--primary:focus-visible {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  outline: 2px solid #86efac;
  outline-offset: 2px;
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.35);
  transform: translateY(-1px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn--secondary {
  background: #ffffff;
  border: 1px solid rgba(22, 163, 74, 0.32);
  color: #166534 !important;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn--secondary:hover,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn--secondary:focus-visible {
  background: #f0fdf4;
  border-color: #15803d;
  color: #14532d !important;
  outline: 2px solid #86efac;
  outline-offset: 2px;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.15);
  transform: translateY(-1px);
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn-arrow {
  font-weight: 900;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn:hover .tp-home-contact-cta__btn-arrow,
:is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn:focus-visible .tp-home-contact-cta__btn-arrow {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta {
    padding: 24px 18px;
    border-radius: 16px;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta::before {
    width: 4px;
    border-radius: 16px 0 0 16px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__card {
    padding: 18px 16px;
  }

  :is(body.site-theme-conversion, body.site-theme-premium, body.site-theme-local-seo):has(.tp-home-hero, .tp-home-portal):not(.tp-view-all) .tp-home-contact-cta__btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.92rem;
  }
}

/* ── TOPページ編集: カスタムセクション（管理画面で追加した below-fold セクション） ── */
.tp-home-custom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px;
}

.tp-home-custom__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #1e293b;
}

.tp-home-custom__lead {
  margin: 0 0 20px;
  color: #475569;
  line-height: 1.7;
}

.tp-home-custom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.tp-home-custom__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.tp-home-custom-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tp-home-custom-card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.tp-home-custom-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.tp-home-custom-card__body {
  padding: 14px;
}

.tp-home-custom-card__title {
  font-weight: 700;
  margin: 0 0 4px;
  color: #1e293b;
}

.tp-home-custom-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.tp-home-custom-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.tp-home-custom-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-home-custom-stat__main {
  font-size: 2rem;
  font-weight: 800;
  color: #1d4ed8;
}

.tp-home-custom-stat__sub {
  font-size: 0.8rem;
  color: #64748b;
}

.tp-home-custom-stat__label {
  font-size: 0.9rem;
  color: #334155;
}

.tp-home-custom-faqs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-home-custom-faq {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.tp-home-custom-faq__q {
  font-weight: 700;
  margin: 0 0 6px;
  color: #1e293b;
}

.tp-home-custom-faq__a {
  margin: 0;
  color: #64748b;
}

.tp-home-custom-split {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.tp-home-custom-split--left {
  flex-direction: row;
}

.tp-home-custom-split--right {
  flex-direction: row-reverse;
}

.tp-home-custom-media {
  flex: 1 1 320px;
}

.tp-home-custom-media img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.tp-home-custom-text {
  flex: 1 1 320px;
}

@media (max-width: 767px) {
  .tp-home-custom-cards {
    grid-template-columns: 1fr;
  }

  .tp-home-custom-stats {
    grid-template-columns: 1fr;
  }

  .tp-home-custom-split {
    flex-direction: column;
  }
}
