/*
  file: property-detail.css
  scope:
  - /test/property/{id}/
  purpose:
  - FV: タイトル行 / 種別バッジ+住所 / 交通（一覧カード等には未使用）
  - gallery related header media
  - 契約・費用情報カード（長文の折り返し）
*/

.pd-inner--tp-detail .pd-fv-title-row,
.pd-property-detail .pd-fv-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 0 !important;
}

.pd-inner--tp-detail .pd-fv-title-row--compact,
.pd-property-detail .pd-fv-title-row--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 8px 14px;
  width: 100%;
  max-width: 100%;
}

.pd-inner--tp-detail .pd-fv-title-row--compact .pd-fv__title,
.pd-inner--tp-detail .pd-fv-title-row--compact .pd-title,
.pd-property-detail .pd-fv-title-row--compact .pd-fv__title,
.pd-property-detail .pd-fv-title-row--compact .pd-title {
  grid-column: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
}

.pd-inner--tp-detail .pd-fv-title-row--compact .pd-type-badge,
.pd-property-detail .pd-fv-title-row--compact .pd-type-badge {
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 auto;
  align-self: flex-start;
  justify-self: end;
  min-width: auto !important;
  margin: 2px 0 0;
  padding: 8px 18px !important;
  font-size: clamp(0.88rem, 1.6vw, 1.02rem) !important;
  font-weight: 900 !important;
  border-width: 2px !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.14);
}

.pd-inner--tp-detail .pd-fv-title-row--compact .pd-fv-title-actions,
.pd-property-detail .pd-fv-title-row--compact .pd-fv-title-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  flex-shrink: 0;
}

.pd-inner--tp-detail .pd-fv-title-actions .pd-favorite-button,
.pd-property-detail .pd-fv-title-actions .pd-favorite-button {
  width: auto;
  max-width: none;
  margin-top: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.pd-inner--tp-detail .pd-fv-title-actions,
.pd-property-detail .pd-fv-title-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.pd-property-detail .pd-fv-title-actions .pd-type-badge {
  flex: 0 0 auto;
}

.pd-inner--tp-detail .pd-fv-facts-under {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0;
}

.pd-inner--tp-detail .pd-fv-addr-line,
.pd-property-detail .pd-fv-addr-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  line-height: 1.4;
}

.pd-inner--tp-detail .pd-fv-address-k,
.pd-property-detail .pd-fv-address-k {
  flex: 0 0 auto;
  font-weight: 700;
  color: #64748b;
}

.pd-inner--tp-detail .pd-fv-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.pd-inner--tp-detail .pd-fv-meta-line .pd-type-badge {
  flex: 0 0 auto;
  min-width: auto !important;
  padding: 8px 16px !important;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem) !important;
  font-weight: 800;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.pd-inner--tp-detail .pd-fv-address-inline {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0 0 0 !important;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
  color: #475569;
}

.pd-inner--tp-detail .pd-fv-meta-line .pd-property-no {
  margin-left: auto;
  flex: 0 0 auto;
}

.pd-inner--tp-detail .pd-fv-transport-block {
  margin-top: 0;
  padding-top: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.pd-inner--tp-detail .pd-fv-transport-block--single {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.pd-inner--tp-detail .pd-fv-transport-k {
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.pd-inner--tp-detail .pd-fv-transport-lines {
  font-weight: 600;
  color: #475569;
  min-width: 0;
}

.pd-inner--tp-detail .pd-fv-transport-block--multi .pd-fv-transport-k {
  width: 100%;
  margin-bottom: 2px;
}

.pd-inner--tp-detail .pd-fv-transport-list {
  margin: 0;
  padding-left: 1.2em;
}

.pd-inner--tp-detail .pd-fv-transport-list li {
  margin: 2px 0;
}

/* FV: キャッチコピー（物件名直下・住所より上） */
.pd-property-detail .pd-catch-copy,
.pd-inner--tp-detail .pd-catch-copy {
  margin: 8px 0 12px;
  padding: 10px 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #166534;
  background: linear-gradient(90deg, #ecfdf5, #f7fee7);
  border: 1px solid #d1fae5;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* legacy alias */
.pd-property-detail .pd-fv-catch-band,
.pd-inner--tp-detail .pd-fv-catch-band {
  margin: 12px 0 0;
  padding: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 55%, #f7fee7 100%);
  border: 1px solid #d1fae5;
  border-left: 4px solid #22c55e;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pd-property-detail .pd-fv-catch-copy,
.pd-inner--tp-detail .pd-fv-catch-copy {
  margin: 0;
  padding: 10px 14px 10px 12px;
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #166534;
}

@media (min-width: 960px) {
  .pd-inner--tp-detail .pd-fv-title-row--compact .pd-fv__title,
  .pd-inner--tp-detail .pd-fv-title-row--compact .pd-title,
  .pd-property-detail .pd-fv-title-row--compact .pd-fv__title,
  .pd-property-detail .pd-fv-title-row--compact .pd-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .pd-property-detail .pd-catch-copy,
  .pd-inner--tp-detail .pd-catch-copy {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (prefers-color-scheme: dark) {
  .pd-property-detail .pd-fv-catch-band,
  .pd-inner--tp-detail .pd-fv-catch-band {
    background: linear-gradient(90deg, #14532d 0%, #166534 100%);
    border-color: #15803d;
    border-left-color: #4ade80;
  }

  .pd-property-detail .pd-fv-catch-copy,
  .pd-inner--tp-detail .pd-fv-catch-copy {
    color: #dcfce7;
  }
}

/* FV: 住所と種別バッジを同一行（[種別] は CSS で付与） */
.pd-inner--tp-detail .pd-fv-addr-type-row,
body.site-theme-conversion .pd-property-detail .pd-fv-addr-type-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.pd-inner--tp-detail .pd-fv-addr-type-row .pd-fv-address-inline,
.pd-inner--tp-detail .pd-fv-addr-type-row .pd-detail-head__address,
body.site-theme-conversion .pd-property-detail .pd-fv-addr-type-row .pd-detail-head__address {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0 !important;
}

.pd-inner--tp-detail .pd-fv-addr-type-row .pd-type-badge,
body.site-theme-conversion .pd-property-detail .pd-fv-addr-type-row .pd-type-badge {
  flex: 0 0 auto;
  margin: 0;
}


.pd-inner--tp-detail .pd-fv.pd-detail-head,
body.site-theme-conversion .pd-inner--tp-detail .pd-fv.pd-detail-head,
.pd-property-detail .pd-fv.pd-detail-head {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pd-inner--tp-detail .pd-hero-layout__lead,
.pd-property-detail .pd-hero-layout__lead {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pd-inner--tp-detail .pd-fv,
body.site-theme-conversion .pd-inner--tp-detail .pd-fv {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 6px !important;
  padding: 18px 22px !important;
}

.pd-inner--tp-detail .pd-detail-head {
  margin-bottom: 4px !important;
}

.pd-inner--tp-detail .pd-fv-title-row .pd-fv__title,
.pd-inner--tp-detail .pd-detail-head__title {
  margin: 0 0 2px !important;
  line-height: 1.3 !important;
}

body.site-theme-conversion .pd-inner--tp-detail .pd-fv-address-inline,
body.site-theme-conversion .pd-inner--tp-detail .pd-fv-transport-block {
  line-height: 1.35 !important;
}

.pd-inner--tp-detail .pd-detail-layout {
  margin-bottom: 16px;
}

.pd-inner--tp-detail .pd-summary-floor {
  margin: 8px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.pd-inner--tp-detail .pd-summary-floor__k {
  font-weight: 700;
  flex-shrink: 0;
}

.pd-inner--tp-detail .pd-summary-floor__v {
  font-weight: 600;
  color: #475569;
}

.pd-inner--tp-detail .pd-cta-box--primary,
.pd-inner--tp-detail .pd-cta-box--stacked.pd-cta-box--primary {
  margin-top: 6px;
}

/* 物件詳細ヘッダー内の補助画像のみ縮小（ギャラリー画像は対象外） */
.pd-inner--tp-detail .pd-fv .pd-fv-title-row > img,
.pd-inner--tp-detail .pd-fv .pd-fv-title-row > picture > img,
.pd-inner--tp-detail .pd-fv .pd-fv__title-image {
  max-width: 300px;
  width: auto;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  display: block;
  margin: 6px 0 10px;
}

@media (max-width: 700px) {
  /* styles.css の .pd-fv-title-row { display:block } より詳細ページは横並びを維持 */
  body.site-theme-conversion .pd-inner--tp-detail .pd-fv-title-row,
  body.site-theme-conversion .pd-property-detail .pd-fv-title-row {
    display: flex !important;
  }

  .pd-inner--tp-detail .pd-fv-title-row--compact,
  .pd-property-detail .pd-fv-title-row--compact {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title title"
      "badge fav";
  }

  .pd-inner--tp-detail .pd-fv-title-row--compact .pd-fv__title,
  .pd-inner--tp-detail .pd-fv-title-row--compact .pd-title,
  .pd-property-detail .pd-fv-title-row--compact .pd-fv__title,
  .pd-property-detail .pd-fv-title-row--compact .pd-title {
    grid-area: title;
    grid-column: auto;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .pd-inner--tp-detail .pd-fv-title-row--compact .pd-type-badge,
  .pd-property-detail .pd-fv-title-row--compact .pd-type-badge {
    grid-area: badge;
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    margin-top: 0;
  }

  .pd-inner--tp-detail .pd-fv-title-row--compact .pd-fv-title-actions,
  .pd-property-detail .pd-fv-title-row--compact .pd-fv-title-actions {
    grid-area: fav;
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
    align-self: center;
  }

  body.site-theme-conversion .pd-inner--tp-detail .pd-fv-meta-line .pd-type-badge {
    min-width: auto !important;
    padding: 7px 14px !important;
    font-size: 0.85rem !important;
  }

  .pd-inner--tp-detail .pd-fv .pd-fv-title-row > img,
  .pd-inner--tp-detail .pd-fv .pd-fv-title-row > picture > img,
  .pd-inner--tp-detail .pd-fv .pd-fv__title-image {
    max-width: 220px;
    max-height: 130px;
    margin: 4px 0 8px;
  }

  .pd-inner--tp-detail .pd-fv-title-actions {
    align-items: flex-start;
    width: 100%;
  }

  .pd-inner--tp-detail .pd-fv-meta-line .pd-property-no {
    margin-left: 0;
    width: 100%;
    flex-basis: 100%;
  }
}

/* 契約・費用情報（管理画面「契約・元付契約」由来・静的 / JS 共通） */
.pd-inner--tp-detail .pd-contract-fee-card .pd-spec-dl dd {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pd-inner--tp-detail .pd-contract-fee-card .pd-contract-fee-notes {
  margin-top: 0.65rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

/* --- 公開静的 物件詳細（/test/property/{id}/）レイアウト --- */
.pd-inner--tp-detail .pd-property-detail .static-wrap {
  max-width: 1320px;
}

.pd-inner--tp-detail .pd-breadcrumb {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #64748b;
}

.pd-inner--tp-detail .pd-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-inner--tp-detail .pd-breadcrumb__item:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #94a3b8;
  font-weight: 600;
}

.pd-inner--tp-detail .pd-breadcrumb__item a {
  color: #2563eb;
  text-decoration: none;
}

.pd-inner--tp-detail .pd-breadcrumb__item a:hover {
  text-decoration: underline;
}

.pd-inner--tp-detail .pd-breadcrumb__item--current {
  color: #334155;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* pd-breadcrumb-favorite 20260713a — お気に入りボタンをタイトル行からパンくず行右端へ移動。
   パンくず自体はflexのまま(既存の__list側で折返し済み)、右側にお気に入りスロットを追加するだけ。
   __itemの現在地表示は既存のtext-overflow:ellipsisでそのまま省略されるため、
   お気に入りボタンと重ならない(横スクロールも発生しない)。 */
.pd-inner--tp-detail .pd-breadcrumb,
.pd-property-detail .pd-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.pd-inner--tp-detail .pd-breadcrumb__list,
.pd-property-detail .pd-breadcrumb__list {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.pd-breadcrumb__favorite {
  flex: 0 0 auto;
  margin-left: auto;
}

.pd-breadcrumb__favorite .pd-favorite-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
}

.pd-breadcrumb__favorite .pd-favorite-button__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.pd-breadcrumb__favorite .pd-favorite-button.is-active {
  border-color: #ef4444;
  color: #ef4444;
}

.pd-breadcrumb__favorite .pd-favorite-button.is-active .pd-favorite-button__icon {
  fill: currentColor;
}

.pd-breadcrumb__favorite .pd-favorite-button__label--on {
  display: none;
}

.pd-breadcrumb__favorite .pd-favorite-button.is-active .pd-favorite-button__label--off {
  display: none;
}

.pd-breadcrumb__favorite .pd-favorite-button.is-active .pd-favorite-button__label--on {
  display: inline;
}

@media (max-width: 480px) {
  .pd-breadcrumb__favorite .pd-favorite-button__label {
    display: none !important;
  }

  .pd-breadcrumb__favorite .pd-favorite-button {
    padding: 8px;
  }
}

.pd-inner--tp-detail .pd-detail-head__title {
  margin: 0 0 2px;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}

.pd-inner--tp-detail .pd-detail-head__no {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.pd-inner--tp-detail .pd-detail-head__address {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
  color: #475569;
}

.pd-inner--tp-detail .pd-detail-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 20px 24px;
  align-items: start;
  margin-bottom: 22px;
}

.pd-inner--tp-detail .pd-detail-layout__gallery,
.pd-inner--tp-detail .pd-detail-layout__summary {
  min-width: 0;
}

.pd-inner--tp-detail .pd-gallery {
  min-width: 0;
}

.pd-inner--tp-detail .pd-main-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  max-height: min(52vh, 440px);
  min-height: 0;
}

.pd-inner--tp-detail .pd-main-image img:not(.is-floorplan),
.pd-inner--tp-detail .pd-main-image picture > img:not(.is-floorplan) {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 420px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: auto !important;
}

.pd-inner--tp-detail .pd-main-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  max-height: min(40vh, 320px);
  border: 1px dashed #cbd5e1;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}

.pd-inner--tp-detail .pd-no-image {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.pd-inner--tp-detail .pd-thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pd-inner--tp-detail .pd-thumb-list__btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
}

.pd-inner--tp-detail .pd-thumb-list__btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pd-inner--tp-detail .pd-thumb-list__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-inner--tp-detail .pd-gallery-meta {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.pd-inner--tp-detail .pd-summary-card,
.pd-property-detail .pd-summary-card {
  padding: 26px 28px 24px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid #e8edf4;
  background: #fff;
}

.pd-inner--tp-detail .pd-summary-card--ref {
  overflow: visible;
}

.pd-inner--tp-detail .pd-summary-rent,
.pd-property-detail .pd-summary-rent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 0;
  position: relative;
}

.pd-inner--tp-detail .pd-summary-rent::after,
.pd-property-detail .pd-summary-rent::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 4px;
  width: 34px;
  height: 28px;
  background:
    linear-gradient(#dc2626, #dc2626) 4px 10px / 5px 20px no-repeat,
    linear-gradient(#dc2626, #dc2626) 17px 2px / 5px 22px no-repeat,
    linear-gradient(#dc2626, #dc2626) 28px 12px / 5px 18px no-repeat;
  transform: rotate(18deg);
  border-radius: 999px;
  pointer-events: none;
}

.pd-inner--tp-detail .pd-summary-rent__label,
.pd-property-detail .pd-summary-rent__label {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 13px;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 8px;
  line-height: 1;
}

.pd-inner--tp-detail .pd-summary-rent__value,
.pd-property-detail .pd-summary-rent__value {
  margin: 0;
  font-size: clamp(56px, 5vw, 76px);
  font-weight: 950;
  color: #dc2626;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.pd-inner--tp-detail .pd-summary-rent__unit,
.pd-property-detail .pd-summary-rent__unit {
  font-size: 0.55em;
  font-weight: 900;
  margin-left: 2px;
  letter-spacing: -0.03em;
}

.pd-inner--tp-detail .pd-fee-strip,
.pd-property-detail .pd-fee-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 0;
  margin: 0 0 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #fde6b8;
  background: #fff8e7;
}

.pd-inner--tp-detail .pd-fee-pill,
.pd-property-detail .pd-fee-pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 76px;
  min-width: 0;
  padding: 10px 10px;
  text-align: center;
  border-right: 1px solid #ead7b0;
  background: transparent;
  box-shadow: none;
}

.pd-inner--tp-detail .pd-fee-pill:last-child,
.pd-property-detail .pd-fee-pill:last-child {
  border-right: 0;
}

.pd-inner--tp-detail .pd-fee-pill__icon,
.pd-property-detail .pd-fee-pill__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  flex: 0 0 auto;
}

.pd-inner--tp-detail .pd-fee-pill__svg,
.pd-property-detail .pd-fee-pill__svg {
  display: block;
}

.pd-inner--tp-detail .pd-fee-pill__body,
.pd-property-detail .pd-fee-pill__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.pd-inner--tp-detail .pd-fee-pill__k,
.pd-property-detail .pd-fee-pill__k {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0;
  line-height: 1.2;
}

.pd-inner--tp-detail .pd-fee-pill__v,
.pd-property-detail .pd-fee-pill__v {
  display: block;
  font-size: 18px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.05;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.pd-inner--tp-detail .pd-fee-pill--deposit .pd-fee-pill__icon,
.pd-inner--tp-detail .pd-fee-pill--key-money .pd-fee-pill__icon,
.pd-property-detail .pd-fee-pill--deposit .pd-fee-pill__icon,
.pd-property-detail .pd-fee-pill--key-money .pd-fee-pill__icon {
  background: rgba(255, 255, 255, 0.85);
  color: #e11d48;
}

.pd-inner--tp-detail .pd-fee-pill--deposit .pd-fee-pill__k,
.pd-inner--tp-detail .pd-fee-pill--deposit .pd-fee-pill__v,
.pd-property-detail .pd-fee-pill--deposit .pd-fee-pill__k,
.pd-property-detail .pd-fee-pill--deposit .pd-fee-pill__v {
  color: #e11d48;
}

.pd-inner--tp-detail .pd-fee-pill--key-money .pd-fee-pill__k,
.pd-inner--tp-detail .pd-fee-pill--key-money .pd-fee-pill__v,
.pd-property-detail .pd-fee-pill--key-money .pd-fee-pill__k,
.pd-property-detail .pd-fee-pill--key-money .pd-fee-pill__v {
  color: #ea580c;
}

.pd-inner--tp-detail .pd-spec-cards,
.pd-property-detail .pd-spec-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.pd-inner--tp-detail .pd-spec-card,
.pd-property-detail .pd-spec-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 88px;
  min-width: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background: #fff;
  text-align: left;
  box-shadow: none;
}

.pd-inner--tp-detail .pd-spec-card:nth-child(odd),
.pd-property-detail .pd-spec-card:nth-child(odd) {
  border-right: 1px solid #e5e7eb;
}

.pd-inner--tp-detail .pd-spec-card--built,
.pd-property-detail .pd-spec-card--built {
  grid-column: auto;
  border-bottom: 1px solid #e5e7eb;
}

.pd-inner--tp-detail .pd-spec-card__icon,
.pd-property-detail .pd-spec-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.pd-inner--tp-detail .pd-spec-card__body,
.pd-property-detail .pd-spec-card__body {
  grid-column: 2;
  min-width: 0;
}

.pd-inner--tp-detail .pd-spec-card__svg,
.pd-property-detail .pd-spec-card__svg {
  display: block;
}

.pd-inner--tp-detail .pd-spec-card__k,
.pd-property-detail .pd-spec-card__k {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  line-height: 1.25;
}

.pd-inner--tp-detail .pd-spec-card__v,
.pd-property-detail .pd-spec-card__v {
  display: block;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 950;
  color: #0f172a;
  line-height: 1.1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.pd-inner--tp-detail .pd-spec-card--built .pd-spec-card__v,
.pd-property-detail .pd-spec-card--built .pd-spec-card__v {
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: -0.02em;
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-box,
.pd-property-detail .pd-summary-card .pd-cta-box {
  margin-top: 4px;
  margin-bottom: 2px;
  gap: 12px;
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-box--primary,
.pd-property-detail .pd-summary-card .pd-cta-box--primary {
  margin-top: 0;
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-btn,
.pd-property-detail .pd-summary-card .pd-cta-btn {
  min-height: 58px;
  padding: 0 44px 0 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  position: relative;
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-btn::after,
.pd-property-detail .pd-summary-card .pd-cta-btn::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-btn--tel,
.pd-property-detail .pd-summary-card .pd-cta-btn--tel {
  background: linear-gradient(180deg, #16a34a, #059669);
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-btn--visit,
.pd-property-detail .pd-summary-card .pd-cta-btn--visit {
  background: linear-gradient(180deg, #fb923c, #f97316);
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.25);
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-btn--mail,
.pd-property-detail .pd-summary-card .pd-cta-btn--mail {
  min-height: 58px;
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
  box-shadow: none;
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-btn--tel:hover,
.pd-inner--tp-detail .pd-summary-card .pd-cta-btn--visit:hover,
.pd-property-detail .pd-summary-card .pd-cta-btn--tel:hover,
.pd-property-detail .pd-summary-card .pd-cta-btn--visit:hover {
  filter: brightness(1.03);
}

.pd-inner--tp-detail .pd-summary-card .pd-cta-btn--mail:hover,
.pd-property-detail .pd-summary-card .pd-cta-btn--mail:hover {
  background: #eff6ff;
}

/* legacy price-row (他ブロック互換) */
.pd-inner--tp-detail .pd-price {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.pd-inner--tp-detail .pd-price__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.pd-inner--tp-detail .pd-price__value {
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 900;
  color: #dc2626;
  letter-spacing: -0.02em;
}

.pd-inner--tp-detail .pd-price-row {
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.pd-inner--tp-detail .pd-price-row:last-of-type {
  border-bottom: 0;
  margin-bottom: 4px;
}

.pd-property-detail .pd-price-row--sub,
.pd-inner--tp-detail .pd-price-row--sub {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  margin-bottom: 4px;
  padding-bottom: 4px;
  font-size: 0.86rem;
  border-bottom: 0;
}

.pd-inner--tp-detail .pd-price-row--sub:last-of-type {
  margin-bottom: 6px;
}

.pd-inner--tp-detail .pd-price-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}

.pd-inner--tp-detail .pd-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #334155;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.pd-inner--tp-detail .pd-price-badge__label {
  font-weight: 700;
  color: #64748b;
}

.pd-inner--tp-detail .pd-price-badge__label::after {
  content: "：";
  margin-right: 0.1em;
}

.pd-inner--tp-detail .pd-price-badge__value {
  font-weight: 700;
  color: #334155;
}

.pd-inner--tp-detail .pd-price-row__k {
  color: #64748b;
  font-weight: 600;
  min-width: auto;
}

.pd-property-detail .pd-price-row--sub .pd-price-row__k,
.pd-property-detail .pd-price-row--sub .pd-price-row__v,
.pd-inner--tp-detail .pd-price-row--sub .pd-price-row__k,
.pd-inner--tp-detail .pd-price-row--sub .pd-price-row__v {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.pd-inner--tp-detail .pd-price-row__v {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.pd-property-detail .pd-price-row--sub .pd-price-row__v,
.pd-inner--tp-detail .pd-price-row--sub .pd-price-row__v {
  margin-left: 0;
  text-align: left;
}

.pd-inner--tp-detail .pd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 14px 0 16px;
  padding: 12px 0 0;
  border-top: 1px solid #f1f5f9;
}

.pd-inner--tp-detail .pd-spec-grid__item {
  margin: 0;
}

.pd-inner--tp-detail .pd-spec-grid__item dt {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: none;
}

.pd-inner--tp-detail .pd-spec-grid__item dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.pd-inner--tp-detail .pd-tel-note {
  display: none !important;
}

.pd-inner--tp-detail .pd-cta-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.pd-inner--tp-detail .pd-cta-box--primary {
  margin-top: 8px;
}

.pd-inner--tp-detail .pd-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pd-inner--tp-detail .pd-cta-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.pd-inner--tp-detail .pd-cta-btn__text {
  line-height: 1.25;
}

.pd-inner--tp-detail .pd-cta-btn:active {
  transform: scale(0.98);
}

.pd-inner--tp-detail .pd-cta-btn--tel {
  background: #16a34a;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.pd-inner--tp-detail .pd-cta-btn--mail {
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
  box-shadow: none;
}

.pd-inner--tp-detail .pd-cta-btn--visit {
  background: #f97316;
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.pd-inner--tp-detail .pd-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.pd-inner--tp-detail .pd-card-title {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.pd-inner--tp-detail .pd-transport-list {
  margin: 0;
  padding-left: 1.2em;
  color: #334155;
  line-height: 1.65;
  font-weight: 600;
}

.pd-inner--tp-detail .pd-fac-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.pd-inner--tp-detail .pd-movein-prose {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #334155;
  word-break: break-word;
}

.pd-inner--tp-detail .pd-movein-paragraph {
  margin: 0 0 0.55em;
}

.pd-inner--tp-detail .pd-movein-paragraph:last-child {
  margin-bottom: 0;
}

.pd-inner--tp-detail .pd-fac-pill {
  display: inline-block;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 印刷時も設備チップの横並び・折り返しを維持し、はみ出しを防ぐ */
@media print {
  .pd-inner--tp-detail .pd-fac-grid,
  .pd-property-detail .pd-fac-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pd-inner--tp-detail .pd-fac-pill,
  .pd-property-detail .pd-fac-pill {
    break-inside: avoid;
  }
}

.pd-inner--tp-detail .pd-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 14px;
  font-size: 0.88rem;
}

@media (min-width: 960px) {
  .pd-inner--tp-detail .pd-overview-grid:not(.pd-overview-grid--single) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pd-inner--tp-detail .pd-overview-wide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.pd-inner--tp-detail .pd-overview-wide__item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em 0.35em;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.pd-inner--tp-detail .pd-overview-wide__label {
  flex: 0 0 auto;
  margin-right: 0.25em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.pd-inner--tp-detail .pd-overview-wide__label::after {
  content: "：";
}

.pd-inner--tp-detail .pd-overview-wide__value {
  flex: 1 1 12rem;
  min-width: 0;
  font-weight: 600;
  color: #334155;
  line-height: 1.55;
  word-break: break-word;
}

.pd-inner--tp-detail .pd-overview-grid__item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em 0.35em;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.pd-inner--tp-detail .pd-overview-grid__label {
  flex: 0 0 auto;
  margin-right: 0.25em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.pd-inner--tp-detail .pd-overview-grid__label::after {
  content: "：";
}

.pd-inner--tp-detail .pd-overview-grid__value {
  flex: 1 1 8rem;
  min-width: 0;
  font-weight: 700;
  color: #334155;
  line-height: 1.45;
}

.pd-property-detail .pd-cost-grid,
.pd-inner--tp-detail .pd-cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.pd-property-detail .pd-cost-item,
.pd-inner--tp-detail .pd-cost-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  min-width: 0;
}

.pd-property-detail .pd-cost-item--full,
.pd-inner--tp-detail .pd-cost-item--full {
  grid-column: 1 / -1;
}

.pd-property-detail .pd-cost-item__label,
.pd-inner--tp-detail .pd-cost-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.pd-property-detail .pd-cost-item__value,
.pd-inner--tp-detail .pd-cost-item__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 639px) {
  .pd-property-detail .pd-cost-grid,
  .pd-inner--tp-detail .pd-cost-grid {
    grid-template-columns: 1fr;
  }

  .pd-property-detail .pd-cost-item--full,
  .pd-inner--tp-detail .pd-cost-item--full {
    grid-column: auto;
  }
}

.pd-inner--tp-detail .pd-overview-grid--single {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.pd-inner--tp-detail .pd-overview-grid--single .pd-overview-grid__item {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
}

.pd-inner--tp-detail .pd-overview-grid--single .pd-overview-grid__label {
  flex: 0 0 auto;
  min-width: 5.5em;
}

.pd-inner--tp-detail .pd-overview-grid--single .pd-overview-grid__value {
  flex: 1 1 12rem;
  text-align: right;
}

.pd-inner--tp-detail .pd-overview-table {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.pd-inner--tp-detail .pd-overview-table__row {
  display: grid;
  grid-template-columns: minmax(104px, 34%) 1fr;
  border-bottom: 1px solid #e2e8f0;
}

.pd-inner--tp-detail .pd-overview-table__row:last-child {
  border-bottom: 0;
}

@media (min-width: 960px) {
  .pd-inner--tp-detail .pd-overview-table__row {
    grid-template-columns: minmax(120px, 22%) 1fr;
  }
}

.pd-inner--tp-detail .pd-overview-table__label,
.pd-inner--tp-detail .pd-overview-table__value {
  padding: 10px 12px;
}

.pd-inner--tp-detail .pd-overview-table__label {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
}

.pd-inner--tp-detail .pd-overview-table__value {
  background: #fff;
  color: #0f172a;
  line-height: 1.5;
  word-break: break-word;
}

.pd-inner--tp-detail .pd-prose {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #334155;
  word-break: break-word;
}

.pd-inner--tp-detail .pd-map-frame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.pd-inner--tp-detail .pd-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pd-inner--tp-detail .pd-bottom-cta .pd-cta-box {
  margin-top: 0;
}

.pd-inner--tp-detail .pd-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-inner--tp-detail .pd-related__list--cards,
.pd-property-detail .pd-related__list--cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pd-inner--tp-detail .pd-related__list--cards li,
.pd-property-detail .pd-related__list--cards li {
  border: 0;
  min-width: 0;
}

.pd-inner--tp-detail .pd-related-card__link,
.pd-property-detail .pd-related-card__link {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 40, 20, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pd-inner--tp-detail .pd-related__list--cards .pd-related-card__media,
.pd-property-detail .pd-related__list--cards .pd-related-card__media {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.pd-inner--tp-detail .pd-related-card__body,
.pd-property-detail .pd-related-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.pd-inner--tp-detail .pd-related__rent,
.pd-property-detail .pd-related__rent {
  font-size: 1.05rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1.2;
}

.pd-inner--tp-detail .pd-related__meta,
.pd-property-detail .pd-related__meta {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.4;
}

.pd-inner--tp-detail .pd-related__addr,
.pd-property-detail .pd-related__addr {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-inner--tp-detail .pd-related__cta,
.pd-property-detail .pd-related__cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #2563eb;
}

.pd-inner--tp-detail .pd-related__list li {
  border-bottom: 1px solid #f1f5f9;
}

.pd-inner--tp-detail .pd-related__list li:last-child {
  border-bottom: 0;
}

.pd-inner--tp-detail .pd-related__list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 10px 2px;
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .pd-inner--tp-detail .pd-related-card__link:hover,
  .pd-property-detail .pd-related-card__link:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }
}

@media (max-width: 1200px) {
  .pd-inner--tp-detail .pd-related__list--cards,
  .pd-property-detail .pd-related__list--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pd-inner--tp-detail .pd-related__list--cards,
  .pd-property-detail .pd-related__list--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pd-inner--tp-detail .pd-overview-grid,
  .pd-property-detail .pd-overview-grid,
  .pd-inner--tp-detail .pd-related__list--cards,
  .pd-property-detail .pd-related__list--cards {
    grid-template-columns: 1fr;
  }
}

/* 関連物件: サムネは .pd-related__thumb / .pd-related-card__media で枠を切る。img は等倍スケールのみ */
.pd-inner--tp-detail .pd-related-card__media,
.pd-inner--tp-detail .pd-related__thumb {
  position: relative;
  display: grid;
  place-items: stretch;
  flex: 0 0 auto;
  width: 108px;
  max-width: 32%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f5f7;
  border-radius: 10px;
}

.pd-inner--tp-detail .pd-related-card__media img,
.pd-inner--tp-detail .pd-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  transition: transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pd-inner--tp-detail .pd-related__list a:hover .pd-related__thumb img,
  .pd-inner--tp-detail .pd-related__list a:hover .pd-related-card__media img {
    transform: scale(1.04);
  }
}

.pd-inner--tp-detail .pd-related__list a:hover .pd-related__name {
  color: #2563eb;
  text-decoration: underline;
}

.pd-inner--tp-detail .pd-related__name,
.pd-property-detail .pd-related__name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-inner--tp-detail .property-nearby-spots__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pd-inner--tp-detail .property-nearby-spot-card {
  min-width: 0;
}

.pd-inner--tp-detail .property-nearby-spot-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pd-inner--tp-detail .property-nearby-spot-card__image {
  position: relative;
  display: grid;
  place-items: stretch;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f5f7;
}

.pd-inner--tp-detail .property-nearby-spot-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.22s ease;
}

.pd-inner--tp-detail .property-nearby-spot-card__image--empty {
  place-items: center;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pd-inner--tp-detail .property-nearby-spot-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.pd-inner--tp-detail .property-nearby-spot-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pd-inner--tp-detail .property-nearby-spot-card__category,
.pd-inner--tp-detail .property-nearby-spot-card__distance {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.pd-inner--tp-detail .property-nearby-spot-card__category {
  background: #eff6ff;
  color: #1d4ed8;
}

.pd-inner--tp-detail .property-nearby-spot-card__distance {
  background: #fef3c7;
  color: #92400e;
}

.pd-inner--tp-detail .property-nearby-spot-card__name {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
}

.pd-inner--tp-detail .property-nearby-spot-card__area,
.pd-inner--tp-detail .property-nearby-spot-card__station {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.pd-inner--tp-detail .property-nearby-spot-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .pd-inner--tp-detail .property-nearby-spot-card__link:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  }

  .pd-inner--tp-detail .property-nearby-spot-card__link:hover .property-nearby-spot-card__image img {
    transform: scale(1.04);
  }

  .pd-inner--tp-detail .property-nearby-spot-card__link:hover .property-nearby-spot-card__name {
    color: #2563eb;
  }
}

@media (max-width: 1180px) {
  .pd-inner--tp-detail .property-nearby-spots__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pd-inner--tp-detail .property-nearby-spots__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pd-inner--tp-detail .property-nearby-spots__grid {
    grid-template-columns: 1fr;
  }
}

/* 物件詳細 — 周辺情報カード（pd-nearby-*）横スライダー */
.pd-inner--tp-detail .pd-nearby-spots {
  margin-top: 0;
}

.pd-inner--tp-detail .pd-nearby-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.pd-inner--tp-detail .pd-nearby-slider__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  align-self: center;
}

.pd-inner--tp-detail .pd-nearby-slider__nav:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #93c5fd;
}

.pd-inner--tp-detail .pd-nearby-slider__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.pd-inner--tp-detail .pd-nearby-slider__nav[hidden] {
  display: none;
}

.pd-inner--tp-detail .pd-nearby-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px;
}

.pd-inner--tp-detail .pd-nearby-card {
  display: block;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pd-inner--tp-detail .pd-nearby-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f1f5f9;
}

.pd-inner--tp-detail .pd-nearby-card__no-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pd-inner--tp-detail .pd-nearby-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
  min-width: 0;
}

.pd-inner--tp-detail .pd-nearby-card__cat {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.pd-inner--tp-detail .pd-nearby-card__name {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
}

.pd-inner--tp-detail .pd-nearby-card__distance,
.pd-inner--tp-detail .pd-nearby-card__dist {
  font-size: 0.88rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1.35;
}

.pd-inner--tp-detail .pd-nearby-card__addr {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

@media (hover: hover) and (pointer: fine) {
  .pd-inner--tp-detail .pd-nearby-card:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  }

  .pd-inner--tp-detail .pd-nearby-card:hover .pd-nearby-card__name {
    color: #2563eb;
  }
}

@media (max-width: 960px) {
  .pd-inner--tp-detail .pd-nearby-track {
    grid-auto-columns: minmax(168px, 42vw);
  }

  .pd-inner--tp-detail .pd-nearby-slider__nav {
    width: 32px;
    min-height: 32px;
    font-size: 1.2rem;
  }
}

@media (max-width: 560px) {
  .pd-inner--tp-detail .pd-nearby-track {
    grid-auto-columns: minmax(200px, 72vw);
  }
}

.pd-inner--tp-detail .pd-back-link {
  margin: 8px 0 24px;
  font-size: 0.95rem;
}

.pd-inner--tp-detail .pd-back-link a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.pd-inner--tp-detail .pd-back-link a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .pd-inner--tp-detail .pd-detail-layout {
    grid-template-columns: 1fr;
  }
}

/*
 * 電話番号なし: dial / 「電話番号未設定」スロットは hidden にする。
 * styles.css の .pd-aside-inquiry__unset { display: block } が [hidden] より優先され余白が残るため、詳細スコープで上書きする。
 */
.pd-inner--tp-detail .pd-cta-btns--property-contact > .pd-btn--primary[hidden],
.pd-inner--tp-detail .pd-cta-btns--property-contact > .pd-btn--dial[hidden],
.pd-inner--tp-detail .pd-cta-btns--property-contact > .pd-aside-inquiry__unset[hidden],
.pd-inner--tp-detail .pd-cta-btns--property-contact > .pd-footer-cta__no-tel[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 賃料ブロック横 CTA 下の一言（安心感のみ） */
.pd-inner--tp-detail .pd-aside-inquiry-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}

/* 学区ブロックは周辺地図（#pdMapAnchor 内セクション）の直下に配置（detail.js の DOM 順と一致） */
.pd-inner--tp-detail #pdMapAnchor + #property-school-district-wrap {
  margin-top: 0;
}

.pd-inner--tp-detail .pd-fac-empty-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* --- tp-property-gallery（旧 test/css/tp-property-gallery.css を統合） --- */

.pd-page .tp-property-gallery {
  width: 100%;
  min-width: 0;
}

.pd-page .tp-property-gallery__stage {
  display: block;
  width: 100%;
  min-width: 0;
}

/* pd-gallery-controls-oneline 20260713a — ‹ 件数 › を全幅・全ブレークポイントで必ず1行にする。 */
.pd-page .tp-property-gallery__controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  margin: 8px 0 4px;
}

.pd-page .tp-property-gallery__stage-core {
  position: relative;
  width: 100%;
  min-width: 0;
}

.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__stage-core,
.pd-property-detail .tp-property-gallery .tp-property-gallery__stage-core {
  align-items: stretch !important;
}

.pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap,
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell,
.pd-property-detail .tp-property-gallery .pd-main-slide-wrap,
.pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
}

.pd-page .tp-property-gallery__nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pd-page .tp-property-gallery__nav:hover {
  background: #f8fafc;
}

.pd-page .tp-property-gallery__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.pd-page .tp-property-gallery__count {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  min-width: 4.5rem;
  white-space: nowrap;
}

.pd-page .tp-property-gallery__thumbs {
  margin-top: 4px;
}

.pd-page .tp-property-gallery__main-img {
  cursor: zoom-in;
}

/* 物件詳細メインギャラリー（通常表示）：横長枠 + contain（全体表示優先） pd-gallery-landscape 20260712 */
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__stage-core,
.pd-property-detail .tp-property-gallery .tp-property-gallery__stage-core,
.pd-inner--tp-detail .tp-property-gallery .pd-hero-stage,
.pd-property-detail .tp-property-gallery .pd-hero-stage,
.pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap,
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell,
.pd-property-detail .tp-property-gallery .pd-main-slide-wrap,
.pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #f4f6f8 !important;
  width: 100% !important;
  aspect-ratio: 16 / 10;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  touch-action: pan-y;
}

.pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap.is-floorplan,
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell.is-floorplan,
.pd-property-detail .tp-property-gallery .pd-main-slide-wrap.is-floorplan,
.pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell.is-floorplan,
.pd-inner--tp-detail .tp-property-gallery .pd-hero-stage:has(.is-floorplan),
.pd-property-detail .tp-property-gallery .pd-hero-stage:has(.is-floorplan) {
  background: #fff !important;
}

.pd-inner--tp-detail .tp-property-gallery #main-image,
.pd-property-detail .tp-property-gallery #main-image,
.pd-inner--tp-detail .tp-property-gallery .pd-main-img,
.pd-property-detail .tp-property-gallery .pd-main-img,
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-img,
.pd-property-detail .tp-property-gallery .tp-property-gallery__main-img,
.pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap > img,
.pd-property-detail .tp-property-gallery .pd-main-slide-wrap > img,
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell > img,
.pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell > img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  transform: none !important;
  background: transparent !important;
}

.pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap:hover .pd-main-img,
.pd-property-detail .tp-property-gallery .pd-main-slide-wrap:hover .pd-main-img,
.pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap:hover #main-image,
.pd-property-detail .tp-property-gallery .pd-main-slide-wrap:hover #main-image {
  transform: none !important;
}

/* pd-gallery-landscape-final — styles.css .pd-main-img{cover} / vh 固定高より後勝ち（PC・1024・1280 共通） */
body.site-theme-conversion .pd-property-detail .tp-property-gallery .tp-property-gallery__stage-core,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-hero-stage,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-main-slide-wrap,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__stage-core,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-hero-stage,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell {
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  background: #f4f6f8 !important;
}

body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-main-slide-wrap.is-floorplan,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell.is-floorplan,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap.is-floorplan,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell.is-floorplan,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-hero-stage:has(.is-floorplan),
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-hero-stage:has(.is-floorplan) {
  background: #fff !important;
}

body.site-theme-conversion .pd-property-detail .tp-property-gallery #main-image,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-main-img,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .tp-property-gallery__main-img,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery #main-image,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-main-img,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-img,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-main-slide-wrap > img,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell > img,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap > img,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell > img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-main-slide-wrap:hover .pd-main-img,
body.site-theme-conversion .pd-property-detail .tp-property-gallery .pd-main-slide-wrap:hover #main-image,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap:hover .pd-main-img,
body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap:hover #main-image {
  transform: none !important;
}

.pd-page .tp-property-gallery__thumb[data-is-floorplan="1"] img,
.pd-page .pd-thumb[data-is-floorplan="1"] img {
  object-fit: contain;
}

.pd-page .tp-property-gallery__thumb.is-active {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}

.pd-property-detail .pd-page__property-gallery-host {
  min-width: 0;
}

/* 画像拡大（#pd-lightbox は body 直下） */
body.pd-inner--tp-detail #pd-lightbox .pd-lightbox-inner,
.pd-lightbox .pd-lightbox-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  touch-action: pan-y;
}

#pdLightboxImg,
.pd-lightbox img,
.pd-lightbox-inner img,
body.pd-inner--tp-detail #pd-lightbox .pd-lightbox-inner img {
  object-fit: contain;
  object-position: center center;
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
}

body.pd-inner--tp-detail #pd-lightbox #pdLightboxImg.is-floorplan {
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

body.pd-inner--tp-detail #pd-lightbox .pd-lightbox-inner:has(#pdLightboxImg.is-floorplan) {
  background: #fff;
}

/* FV: 物件詳細のみ高さ・余白を強制（styles.css の clamp padding / min-height を上書き） */
body.site-theme-conversion .pd-property-detail .pd-fv.pd-detail-head,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-fv.pd-detail-head,
body.site-theme-conversion main.pd-property-detail .pd-fv.pd-detail-head,
body.site-theme-conversion .pd-property-detail .pd-fv,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-fv {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 6px !important;
  padding: 18px 22px !important;
  align-items: stretch !important;
}

body.site-theme-conversion .pd-property-detail .pd-detail-head,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-detail-head {
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

body.site-theme-conversion .pd-property-detail .pd-fv-title-row,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-fv-title-row {
  margin-bottom: 0 !important;
  gap: 8px 12px !important;
  align-items: flex-start !important;
}

body.site-theme-conversion .pd-property-detail .pd-fv-facts-under,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-fv-facts-under {
  gap: 2px !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

body.site-theme-conversion .pd-property-detail .pd-fv-address-inline,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-fv-address-inline {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

body.site-theme-conversion .pd-property-detail .pd-fv-transport-block,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-fv-transport-block {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

body.site-theme-conversion .pd-property-detail .pd-fv-title-row .pd-fv__title,
body.site-theme-conversion .pd-property-detail .pd-detail-head__title,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-fv-title-row .pd-fv__title,
body.site-theme-conversion .pd-inner--tp-detail.pd-property-detail .pd-detail-head__title {
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
}

/* --- 物件詳細 UI（賃料・敷礼・FV・設備・その他費用） --- */
.pd-inner--tp-detail .pd-fv.pd-detail-head,
.pd-inner--tp-detail .pd-fv {
  align-items: flex-start;
}
.pd-inner--tp-detail .pd-fv-title-row {
  align-items: flex-start;
}
.pd-inner--tp-detail .pd-fv-facts-under {
  margin-top: 4px;
  gap: 4px;
}
.pd-inner--tp-detail .pd-fv-address-inline {
  margin-bottom: 0;
}
.pd-inner--tp-detail .pd-fv-transport-block {
  margin-top: 2px;
}

.pd-inner--tp-detail .pd-price--hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 10px;
}
.pd-inner--tp-detail .pd-price--hero .pd-price__label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #c2410c;
  letter-spacing: 0.12em;
}
.pd-inner--tp-detail .pd-price--hero .pd-price__value {
  font-size: clamp(1.9rem, 6.5vw, 2.7rem);
  font-weight: 900;
  color: #ea580c;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pd-inner--tp-detail .pd-price-badge--emph {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 5.5rem;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 2px solid #94a3b8 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.1) !important;
}
.pd-inner--tp-detail .pd-price-badge--emph .pd-price-badge__label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.06em;
}
.pd-inner--tp-detail .pd-price-badge--emph .pd-price-badge__label::after {
  content: none;
}
.pd-inner--tp-detail .pd-price-badge--emph .pd-price-badge__value {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.pd-inner--tp-detail .pd-fac-block {
  margin-top: 12px;
}
.pd-inner--tp-detail .pd-fac-block:first-child {
  margin-top: 0;
}
.pd-inner--tp-detail .pd-fac-block__title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
}
.pd-inner--tp-detail .pd-fac-pill--condition {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.pd-inner--tp-detail .pd-other-fees-card .pd-other-fees {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-inner--tp-detail .pd-other-fees__row {
  display: grid;
  grid-template-columns: minmax(7em, 32%) 1fr;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  align-items: start;
}
.pd-inner--tp-detail .pd-other-fees__label {
  font-weight: 800;
  color: #475569;
  font-size: 0.86rem;
}
.pd-inner--tp-detail .pd-other-fees__value {
  font-size: 0.92rem;
  color: #0f172a;
  line-height: 1.55;
  word-break: break-word;
}

/* --- スマホ Safari: 物件詳細ギャラリー通常表示（#pd-lightbox は対象外） pd-gallery-landscape 20260712 --- */
@media (max-width: 640px) {
  body.site-theme-conversion .pd-property-detail .tp-property-gallery__stage-core,
  body.site-theme-conversion .pd-property-detail .tp-property-gallery__main-cell,
  body.site-theme-conversion .pd-property-detail .pd-main-slide-wrap,
  body.site-theme-conversion .pd-property-detail .pd-hero-stage,
  body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery__stage-core,
  body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery__main-cell,
  body.site-theme-conversion .pd-inner--tp-detail .pd-main-slide-wrap,
  body.site-theme-conversion .pd-inner--tp-detail .pd-hero-stage {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
  }

  body.site-theme-conversion .pd-property-detail #main-image,
  body.site-theme-conversion .pd-property-detail .pd-main-img,
  body.site-theme-conversion .pd-property-detail .tp-property-gallery__main-img,
  body.site-theme-conversion .pd-inner--tp-detail #main-image,
  body.site-theme-conversion .pd-inner--tp-detail .pd-main-img,
  body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery__main-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  body.site-theme-conversion .pd-property-detail .pd-main-img:hover,
  body.site-theme-conversion .pd-property-detail #main-image:hover,
  body.site-theme-conversion .pd-inner--tp-detail .pd-main-img:hover,
  body.site-theme-conversion .pd-inner--tp-detail #main-image:hover {
    transform: none !important;
  }

  .pd-property-detail .pd-fv-catch-copy,
  .pd-inner--tp-detail .pd-fv-catch-copy,
  body.site-theme-conversion .pd-property-detail .pd-fv-catch-band,
  body.site-theme-conversion .pd-inner--tp-detail .pd-fv-catch-band {
    display: block !important;
  }

  .pd-property-detail .pd-fv-catch-copy,
  .pd-inner--tp-detail .pd-fv-catch-copy {
    margin-top: 12px !important;
  }

  .pd-property-detail .pd-price-row--sub,
  .pd-inner--tp-detail .pd-price-row--sub {
    gap: 6px !important;
  }
}

/* FV: 住所→交通の空欄防止（静的詳細・SPA 共通） */
body.site-theme-conversion .pd-inner--tp-detail .pd-fv.pd-detail-head,
body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-fv.pd-detail-head,
.pd-inner--tp-detail .pd-fv.pd-detail-head {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 8px !important;
}

body.site-theme-conversion .pd-inner--tp-detail .pd-fv-title-row,
.pd-inner--tp-detail .pd-fv-title-row {
  margin-bottom: 0 !important;
}

body.site-theme-conversion .pd-inner--tp-detail .pd-fv-facts-under,
.pd-inner--tp-detail .pd-fv-facts-under {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px !important;
  margin-top: 6px !important;
  padding: 0 !important;
}

body.site-theme-conversion .pd-inner--tp-detail .pd-fv-meta-line,
.pd-inner--tp-detail .pd-fv-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body.site-theme-conversion .pd-inner--tp-detail .pd-fv-meta-line .pd-fv-address-inline,
body.site-theme-conversion .pd-inner--tp-detail .pd-fv-meta-line .pd-detail-head__address,
.pd-inner--tp-detail .pd-fv-meta-line .pd-fv-address-inline,
.pd-inner--tp-detail .pd-fv-meta-line .pd-detail-head__address {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

body.site-theme-conversion .pd-inner--tp-detail .pd-fv-meta-line + .pd-fv-transport-block,
.pd-inner--tp-detail .pd-fv-meta-line + .pd-fv-transport-block,
body.site-theme-conversion .pd-inner--tp-detail .pd-fv-facts-under > .pd-fv-transport-block,
.pd-inner--tp-detail .pd-fv-facts-under > .pd-fv-transport-block {
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.site-theme-conversion .pd-inner--tp-detail .pd-fv-title-actions:empty,
.pd-inner--tp-detail .pd-fv-title-actions:empty {
  display: none !important;
  min-height: 0 !important;
}

@media (max-width: 480px) {
  .pd-inner--tp-detail .pd-summary-card {
    padding: 20px 16px 18px;
    border-radius: 18px;
  }

  .pd-inner--tp-detail .pd-summary-rent {
    gap: 10px;
    margin-bottom: 18px;
  }

  .pd-inner--tp-detail .pd-summary-rent::after {
    right: 8px;
    top: 0;
    transform: rotate(18deg) scale(0.85);
  }

  .pd-inner--tp-detail .pd-summary-rent__label {
    font-size: 14px;
    padding: 7px 11px;
  }

  .pd-inner--tp-detail .pd-summary-rent__value {
    font-size: clamp(42px, 11vw, 56px);
  }

  .pd-inner--tp-detail .pd-fee-strip {
    margin-bottom: 18px;
  }

  .pd-inner--tp-detail .pd-fee-pill {
    min-height: 68px;
    padding: 8px 4px;
    gap: 6px;
  }

  .pd-inner--tp-detail .pd-fee-pill__k {
    font-size: 11px;
  }

  .pd-inner--tp-detail .pd-fee-pill__v {
    font-size: 14px;
    white-space: normal;
  }

  .pd-inner--tp-detail .pd-spec-cards,
  .pd-property-detail .pd-spec-cards {
    grid-template-columns: 1fr 1fr;
    margin: 18px 0;
  }

  .pd-inner--tp-detail .pd-spec-card,
  .pd-property-detail .pd-spec-card {
    min-height: 76px;
    padding: 14px 16px;
  }

  .pd-inner--tp-detail .pd-spec-card:nth-child(odd),
  .pd-property-detail .pd-spec-card:nth-child(odd) {
    border-right: 1px solid #e5e7eb;
  }

  .pd-inner--tp-detail .pd-spec-card--built,
  .pd-property-detail .pd-spec-card--built {
    grid-column: auto;
  }

  .pd-inner--tp-detail .pd-spec-card__v {
    font-size: 17px;
  }

  .pd-inner--tp-detail .pd-summary-card .pd-cta-btn {
    min-height: 52px;
    font-size: 16px;
    padding-right: 40px;
  }
}

/* ===== 物件詳細ページ全体（明るいカード型レイアウト） ===== */
body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail,
body.site-theme-conversion .pd-property-detail {
  background: #ffffff;
}

body.site-theme-conversion .pd-property-detail .static-wrap,
.pd-inner--tp-detail .static-wrap {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

.pd-property-detail .pd-breadcrumb,
.pd-inner--tp-detail .pd-breadcrumb {
  margin-bottom: 16px;
}

/* 上部 hero レイアウト（モバイル既定: 1 カラム） */
body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout,
.pd-property-detail .pd-hero-layout,
.pd-inner--tp-detail .pd-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "lead"
    "aside"
    "gallery";
  gap: 16px;
  align-items: start;
  margin-bottom: 28px;
  min-width: 0;
  width: 100%;
}

body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__lead,
.pd-property-detail .pd-hero-layout__lead,
.pd-inner--tp-detail .pd-hero-layout__lead {
  grid-area: lead;
  min-width: 0;
}

body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__gallery,
.pd-property-detail .pd-hero-layout__gallery,
.pd-inner--tp-detail .pd-hero-layout__gallery {
  grid-area: gallery;
  min-width: 0;
}

body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__aside,
.pd-property-detail .pd-hero-layout__aside,
.pd-inner--tp-detail .pd-hero-layout__aside {
  grid-area: aside;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 960px) {
  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout,
  .pd-property-detail .pd-hero-layout,
  .pd-inner--tp-detail .pd-hero-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 470px !important;
    grid-template-areas:
      "lead lead"
      "gallery aside" !important;
    gap: 20px 40px;
    align-items: start;
    margin-bottom: 36px;
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__lead,
  .pd-property-detail .pd-hero-layout__lead,
  .pd-inner--tp-detail .pd-hero-layout__lead {
    grid-area: lead;
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__gallery,
  .pd-property-detail .pd-hero-layout__gallery,
  .pd-inner--tp-detail .pd-hero-layout__gallery {
    grid-area: gallery;
    min-width: 0;
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__aside,
  .pd-property-detail .pd-hero-layout__aside,
  .pd-inner--tp-detail .pd-hero-layout__aside {
    grid-area: aside;
    align-self: start;
    display: flex;
    flex-direction: column;
    position: static;
    top: auto;
    width: 470px;
    max-width: 470px;
    justify-self: stretch;
    padding-top: 0;
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-summary-card,
  .pd-property-detail .pd-summary-card,
  .pd-inner--tp-detail .pd-summary-card {
    width: 100%;
    max-width: 470px;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-summary-card .pd-cta-box--primary,
  .pd-property-detail .pd-summary-card .pd-cta-box--primary,
  .pd-inner--tp-detail .pd-summary-card .pd-cta-box--primary {
    margin-top: 0;
  }
}

@media (min-width: 1280px) {
  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout,
  .pd-property-detail .pd-hero-layout,
  .pd-inner--tp-detail .pd-hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.9fr) !important;
    gap: 20px 44px;
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__aside,
  .pd-property-detail .pd-hero-layout__aside,
  .pd-inner--tp-detail .pd-hero-layout__aside {
    width: auto;
    max-width: none;
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-summary-card,
  .pd-property-detail .pd-summary-card,
  .pd-inner--tp-detail .pd-summary-card {
    max-width: none;
  }
}

@media (max-width: 959px) {
  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-hero-layout__aside,
  .pd-property-detail .pd-hero-layout__aside,
  .pd-inner--tp-detail .pd-hero-layout__aside {
    position: static;
    max-width: none;
  }

  body.site-theme-conversion main.site-wrap.pd-page.pd-property-detail .pd-summary-card,
  .pd-property-detail .pd-summary-card,
  .pd-inner--tp-detail .pd-summary-card {
    max-width: none;
    width: 100%;
  }
}

/* 下部レイアウト: 物件概要は単独、学区はコメント・備考の下（全幅） */
.pd-detail-body {
  margin-bottom: 28px;
}

.pd-detail-top-grid {
  margin-bottom: 20px;
  min-width: 0;
}

.pd-detail-top-grid .pd-card--section {
  margin-bottom: 0;
}

.pd-detail-full {
  min-width: 0;
}

.pd-detail-full > .pd-card--section:last-child {
  margin-bottom: 0;
}

/* セクションカード共通 */
.pd-property-detail .pd-card--section,
.pd-inner--tp-detail .pd-card--section,
.pd-property-detail .pd-card.pd-card--section,
.pd-inner--tp-detail .pd-card.pd-card--section {
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

body.site-theme-conversion .pd-property-detail .pd-card--section,
body.site-theme-conversion .pd-inner--tp-detail .pd-card--section {
  border-color: #dce8c8;
  box-shadow: 0 6px 24px rgba(36, 64, 0, 0.06);
}

.pd-property-detail .pd-card--section .pd-card-title,
.pd-inner--tp-detail .pd-card--section .pd-card-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecfccb;
  font-size: 1.08rem;
  font-weight: 800;
  color: #365314;
}

body.site-theme-conversion .pd-property-detail .pd-card--section .pd-card-title,
body.site-theme-conversion .pd-inner--tp-detail .pd-card--section .pd-card-title {
  color: #3f6212;
  border-bottom-color: #d9f99d;
}

/* 学区情報（参考）— 横長カード（コメント・備考下・全幅） */
.pd-property-detail .pd-school-district.pd-card--section,
.pd-inner--tp-detail .pd-school-district.pd-card--section {
  padding: 14px 18px 12px;
}

.pd-property-detail .pd-school-district .pd-card-title,
.pd-inner--tp-detail .pd-school-district .pd-card-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ecfccb;
  color: #365314;
}

/* 小学校区・中学校区の横並び親（現行: bar / 旧HTML: cards） */
.pd-school-district-bar,
.pd-school-district-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  min-width: 0;
}

.pd-school-district-bar:has(.pd-school-district-chip:only-child),
.pd-school-district-bar:has(.pd-school-district-card:only-child),
.pd-school-district-cards:has(.pd-school-district-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

/* 各学区セル（現行: chip / 旧: card）— 縦積みの色分けカード */
.pd-school-district-chip,
.pd-school-district-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  min-width: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.pd-school-district-chip--elementary,
.pd-school-district-card--elementary {
  border-color: #86efac;
  background: #f0fdf4;
}

.pd-school-district-chip--junior,
.pd-school-district-card--junior {
  border-color: #93c5fd;
  background: #eff6ff;
}

.pd-school-district-chip__label,
.pd-school-district-card__label {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
}

.pd-school-district-chip--elementary .pd-school-district-chip__label,
.pd-school-district-card--elementary .pd-school-district-card__label {
  color: #047857;
}

.pd-school-district-chip--junior .pd-school-district-chip__label,
.pd-school-district-card--junior .pd-school-district-card__label {
  color: #1d4ed8;
}

.pd-school-district-chip__body,
.pd-school-district-card__value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.pd-school-district-chip__name,
.pd-school-district-card__text {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pd-school-district-chip__name a,
.pd-school-district-card__text a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.pd-school-district-chip__name a:hover,
.pd-school-district-card__text a:hover {
  text-decoration: underline;
}

.pd-school-district-chip__cta,
.pd-school-district-card__cta {
  display: inline-block;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: normal;
}

.pd-school-district-chip--elementary .pd-school-district-chip__cta,
.pd-school-district-card--elementary .pd-school-district-card__cta {
  color: #047857;
}

.pd-school-district-chip--junior .pd-school-district-chip__cta,
.pd-school-district-card--junior .pd-school-district-card__cta {
  color: #1d4ed8;
}

.pd-school-district-chip__cta:hover,
.pd-school-district-card__cta:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* 旧HTML: 学校名とリンクが1つの a に入っている場合 */
.pd-school-district-card__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

.pd-school-district-card__link .pd-school-district-card__text {
  font-size: 1.05rem;
  font-weight: 800;
}

.pd-school-district-card__link .pd-school-district-card__cta {
  display: inline-block;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
}

/* 確認日・注意書き（下部・小さめ） */
.pd-school-district__meta {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.pd-school-district__meta-label {
  font-weight: 600;
}

.pd-school-district__memo {
  color: #475569;
}

.pd-school-district__disclaimer {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}

.pd-school-district__note {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

@media (max-width: 768px) {
  .pd-school-district-bar,
  .pd-school-district-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pd-school-district-chip,
  .pd-school-district-card {
    padding: 12px 14px;
  }

  .pd-school-district-chip__name,
  .pd-school-district-card__text {
    font-size: 1rem;
  }

  .pd-school-district-chip__cta,
  .pd-school-district-card__cta {
    font-size: 0.82rem;
    min-height: 2.25rem;
    padding: 0.15rem 0;
  }
}

.pd-property-detail .pd-overview-grid__item,
.pd-inner--tp-detail .pd-overview-grid__item {
  background: #ffffff;
  border-color: #e2e8f0;
}

.pd-property-detail .pd-fac-pill,
.pd-inner--tp-detail .pd-fac-pill {
  background: #f7fee7;
  border-color: #d9f99d;
  color: #3f6212;
}

.pd-property-detail .pd-map-card .pd-map-frame,
.pd-inner--tp-detail .pd-map-card .pd-map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.pd-property-detail .pd-back-link,
.pd-inner--tp-detail .pd-back-link {
  margin-top: 8px;
  text-align: center;
}

.pd-property-detail .pd-bottom-cta,
.pd-inner--tp-detail .pd-bottom-cta {
  margin-top: 8px;
  margin-bottom: 24px;
}

/* ============================================================
 * 関連物件: TOP新着風・横1行5列（後半上書き — 1531行付近の list 行レイアウト / 108px サムネを無効化）
 * ============================================================ */
.pd-property-detail .pd-related__list.pd-related__list--cards,
.pd-inner--tp-detail .pd-related__list.pd-related__list--cards {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pd-property-detail .pd-related__list--cards > .pd-related-card,
.pd-inner--tp-detail .pd-related__list--cards > .pd-related-card {
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.pd-property-detail .pd-related__list--cards .pd-related-card__link,
.pd-inner--tp-detail .pd-related__list--cards .pd-related-card__link,
.pd-property-detail .pd-related__list--cards > .pd-related-card > a,
.pd-inner--tp-detail .pd-related__list--cards > .pd-related-card > a {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(15, 40, 20, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 1px 6px rgba(15, 40, 20, 0.06) !important;
  text-decoration: none !important;
  color: inherit !important;
}

.pd-property-detail .pd-related__list--cards .pd-related-card__media,
.pd-inner--tp-detail .pd-related__list--cards .pd-related-card__media {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #eef2ee !important;
}

.pd-property-detail .pd-related__list--cards .pd-related-card__media img,
.pd-inner--tp-detail .pd-related__list--cards .pd-related-card__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.pd-property-detail .pd-related__list--cards .pd-related-card__body,
.pd-inner--tp-detail .pd-related__list--cards .pd-related-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 8px 10px 10px !important;
}

.pd-property-detail .pd-related__list--cards .pd-related__rent,
.pd-inner--tp-detail .pd-related__list--cards .pd-related__rent {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #b45309 !important;
  line-height: 1.2 !important;
}

.pd-property-detail .pd-related__list--cards .pd-related__name,
.pd-inner--tp-detail .pd-related__list--cards .pd-related__name {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.pd-property-detail .pd-related__list--cards .pd-related__meta,
.pd-inner--tp-detail .pd-related__list--cards .pd-related__meta {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  line-height: 1.35 !important;
}

.pd-property-detail .pd-related__list--cards .pd-related__addr,
.pd-inner--tp-detail .pd-related__list--cards .pd-related__addr {
  font-size: 0.74rem !important;
  color: #475569 !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.pd-property-detail .pd-related__list--cards .pd-related__cta,
.pd-inner--tp-detail .pd-related__list--cards .pd-related__cta {
  margin-top: auto !important;
  padding-top: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #2563eb !important;
}

@media (hover: hover) and (pointer: fine) {
  .pd-property-detail .pd-related__list--cards .pd-related-card__link:hover,
  .pd-inner--tp-detail .pd-related__list--cards .pd-related-card__link:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px) !important;
  }
}

@media (max-width: 1200px) {
  .pd-property-detail .pd-related__list.pd-related__list--cards,
  .pd-inner--tp-detail .pd-related__list.pd-related__list--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .pd-property-detail .pd-related__list.pd-related__list--cards,
  .pd-inner--tp-detail .pd-related__list.pd-related__list--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .pd-property-detail .pd-related__list.pd-related__list--cards,
  .pd-inner--tp-detail .pd-related__list.pd-related__list--cards {
    grid-template-columns: 1fr !important;
  }
}

/* pd-detail-sp-ux 20260712 — スマホ: 基本情報2×2 / ギャラリー操作列タップサイズ */

@media (max-width: 900px) {
  body.site-theme-conversion .pd-property-detail .pd-spec-cards,
  body.site-theme-conversion .pd-inner--tp-detail .pd-spec-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }

  body.site-theme-conversion .pd-property-detail .pd-spec-card:nth-child(odd),
  body.site-theme-conversion .pd-inner--tp-detail .pd-spec-card:nth-child(odd) {
    border-right: 1px solid #e5e7eb !important;
  }

  body.site-theme-conversion .pd-property-detail .pd-spec-card--built,
  body.site-theme-conversion .pd-inner--tp-detail .pd-spec-card--built {
    grid-column: auto !important;
  }

  body.site-theme-conversion .pd-property-detail .tp-property-gallery__nav,
  body.site-theme-conversion .pd-inner--tp-detail .tp-property-gallery__nav {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* pd-gallery-landscape cascade — overrides-final.css（4/3）より後勝ちで 16/10 を確定 pd-gallery-landscape 20260712 */
body.site-theme-conversion .pd-page.pd-property-detail .tp-property-gallery .tp-property-gallery__stage-core,
body.site-theme-conversion .pd-page.pd-property-detail .tp-property-gallery .pd-hero-stage,
body.site-theme-conversion .pd-page.pd-property-detail .tp-property-gallery .pd-main-slide-wrap,
body.site-theme-conversion .pd-page.pd-property-detail .tp-property-gallery .tp-property-gallery__main-cell,
body.site-theme-conversion .pd-page.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__stage-core,
body.site-theme-conversion .pd-page.pd-inner--tp-detail .tp-property-gallery .pd-hero-stage,
body.site-theme-conversion .pd-page.pd-inner--tp-detail .tp-property-gallery .pd-main-slide-wrap,
body.site-theme-conversion .pd-page.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-cell {
  aspect-ratio: 16 / 10 !important;
}

body.site-theme-conversion .tp-property-gallery .pd-main-img.property-no-image-img {
  object-fit: contain;
  background: #eef8fc;
}

/* 物件詳細 — 上部建物情報 */
.pd-property-detail .pd-building-facts,
.pd-inner--tp-detail .pd-building-facts {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.pd-property-detail .pd-building-facts__row,
.pd-inner--tp-detail .pd-building-facts__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pd-property-detail .pd-building-facts__label,
.pd-inner--tp-detail .pd-building-facts__label {
  color: #64748b;
  font-weight: 600;
}

.pd-property-detail .pd-building-facts__value,
.pd-inner--tp-detail .pd-building-facts__value {
  color: #0f172a;
  word-break: break-word;
}

/* 物件詳細 — 近い募集中物件 */
.pd-property-detail .pd-nearby-listings__grid,
.pd-inner--tp-detail .pd-nearby-listings__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.pd-property-detail .pd-nearby-listing-card,
.pd-inner--tp-detail .pd-nearby-listing-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  min-width: 0;
}

.pd-property-detail .pd-nearby-listing-card__link,
.pd-inner--tp-detail .pd-nearby-listing-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pd-property-detail .pd-nearby-listing-card__media,
.pd-inner--tp-detail .pd-nearby-listing-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
}

.pd-property-detail .pd-nearby-listing-card__img,
.pd-inner--tp-detail .pd-nearby-listing-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-property-detail .pd-nearby-listing-card__img.property-no-image-img,
.pd-inner--tp-detail .pd-nearby-listing-card__img.property-no-image-img {
  object-fit: contain;
  background: #eef8fc;
}

.pd-property-detail .pd-nearby-listing-card__body,
.pd-inner--tp-detail .pd-nearby-listing-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.75rem 0.85rem;
  min-width: 0;
}

.pd-property-detail .pd-nearby-listing-card__rent,
.pd-inner--tp-detail .pd-nearby-listing-card__rent {
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.95rem;
}

.pd-property-detail .pd-nearby-listing-card__name,
.pd-inner--tp-detail .pd-nearby-listing-card__name {
  font-size: 0.92rem;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
}

.pd-property-detail .pd-nearby-listing-card__room,
.pd-property-detail .pd-nearby-listing-card__meta,
.pd-property-detail .pd-nearby-listing-card__station,
.pd-inner--tp-detail .pd-nearby-listing-card__room,
.pd-inner--tp-detail .pd-nearby-listing-card__meta,
.pd-inner--tp-detail .pd-nearby-listing-card__station {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
  word-break: break-word;
}

.pd-property-detail .pd-nearby-listing-card__cta,
.pd-inner--tp-detail .pd-nearby-listing-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
}

/* 物件詳細 — 周辺情報コンパクトグリッド */
.pd-property-detail .pd-nearby-spots-section__grid,
.pd-inner--tp-detail .pd-nearby-spots-section__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.pd-property-detail .pd-nearby-spot-card,
.pd-inner--tp-detail .pd-nearby-spot-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  min-width: 0;
}

.pd-property-detail .pd-nearby-spot-card__link,
.pd-inner--tp-detail .pd-nearby-spot-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pd-property-detail .pd-nearby-spot-card__media,
.pd-inner--tp-detail .pd-nearby-spot-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
  display: block;
}

.pd-property-detail .pd-nearby-spot-card__media img,
.pd-inner--tp-detail .pd-nearby-spot-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-property-detail .pd-nearby-spot-card__body,
.pd-inner--tp-detail .pd-nearby-spot-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.75rem 0.85rem;
  min-width: 0;
}

.pd-property-detail .pd-nearby-spot-card__cat,
.pd-inner--tp-detail .pd-nearby-spot-card__cat {
  font-size: 0.75rem;
  color: #0f766e;
  font-weight: 600;
}

.pd-property-detail .pd-nearby-spot-card__name,
.pd-inner--tp-detail .pd-nearby-spot-card__name {
  font-size: 0.92rem;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
}

.pd-property-detail .pd-nearby-spot-card__distance,
.pd-property-detail .pd-nearby-spot-card__addr,
.pd-inner--tp-detail .pd-nearby-spot-card__distance,
.pd-inner--tp-detail .pd-nearby-spot-card__addr {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  word-break: break-word;
}

.pd-property-detail .pd-nearby-spot-card__cta,
.pd-inner--tp-detail .pd-nearby-spot-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
}

@media (max-width: 1100px) {
  .pd-property-detail .pd-nearby-listings__grid,
  .pd-inner--tp-detail .pd-nearby-listings__grid,
  .pd-property-detail .pd-nearby-spots-section__grid,
  .pd-inner--tp-detail .pd-nearby-spots-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pd-property-detail .pd-building-facts__row,
  .pd-inner--tp-detail .pd-building-facts__row {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    font-size: 0.9rem;
  }

  .pd-property-detail .pd-nearby-listings__grid,
  .pd-inner--tp-detail .pd-nearby-listings__grid,
  .pd-property-detail .pd-nearby-spots-section__grid,
  .pd-inner--tp-detail .pd-nearby-spots-section__grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.25rem;
  }

  .pd-property-detail .pd-nearby-listing-card,
  .pd-inner--tp-detail .pd-nearby-listing-card,
  .pd-property-detail .pd-nearby-spot-card,
  .pd-inner--tp-detail .pd-nearby-spot-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
  }
}

@media (max-width: 390px) {
  .pd-property-detail .pd-nearby-listing-card,
  .pd-inner--tp-detail .pd-nearby-listing-card,
  .pd-property-detail .pd-nearby-spot-card,
  .pd-inner--tp-detail .pd-nearby-spot-card {
    flex-basis: min(86vw, 280px);
  }
}
