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

.pd-inner--tp-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-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: 2px;
}

.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-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 (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 {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 6px !important;
  padding: 6px 12px 8px !important;
}

.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: 6px 12px 8px !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 {
    display: flex !important;
  }

  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: 1180px;
}

.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-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 {
  padding: 16px 18px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  background: #fff;
}

.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: 8px;
  margin: 6px 0 12px;
}

.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.78rem;
  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 {
  margin: 10px 0 0;
  font-size: 0.88rem;
  text-align: center;
  color: #475569;
}

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

.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: block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  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: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;
}

.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;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.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-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: 16 / 10;
  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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pd-inner--tp-detail .pd-related__list--cards li {
  border: 0;
}

.pd-inner--tp-detail .pd-related-card__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

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

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

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

.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 {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 640px) {
  .pd-inner--tp-detail .pd-overview-grid,
  .pd-inner--tp-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 {
  font-weight: 700;
  color: #0f172a;
}

.pd-inner--tp-detail .pd-related__rent {
  font-weight: 800;
  color: #dc2626;
  font-size: 0.9rem;
}

.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: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.pd-page .tp-property-gallery__stage-core {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
}

.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;
  height: 100% !important;
  min-height: 100% !important;
}

.pd-page .tp-property-gallery__nav {
  flex: 0 0 auto;
  align-self: center;
  width: 40px;
  height: 40px;
  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: 8px 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

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

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

/* 物件詳細メインギャラリー（通常表示）：枠を広げ、写真は cover・間取りは contain */
.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: #0f172a !important;
  width: 100% !important;
  min-height: min(72vh, 600px) !important;
  max-height: min(72vh, 600px) !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:not(.is-floorplan),
.pd-property-detail .tp-property-gallery #main-image:not(.is-floorplan),
.pd-inner--tp-detail .tp-property-gallery .pd-main-img:not(.is-floorplan),
.pd-property-detail .tp-property-gallery .pd-main-img:not(.is-floorplan),
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-img:not(.is-floorplan),
.pd-property-detail .tp-property-gallery .tp-property-gallery__main-img:not(.is-floorplan) {
  position: static !important;
  inset: auto !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: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;
  background: transparent !important;
}

.pd-inner--tp-detail .tp-property-gallery #main-image.is-floorplan,
.pd-property-detail .tp-property-gallery #main-image.is-floorplan,
.pd-inner--tp-detail .tp-property-gallery .pd-main-img.is-floorplan,
.pd-property-detail .tp-property-gallery .pd-main-img.is-floorplan,
.pd-inner--tp-detail .tp-property-gallery .tp-property-gallery__main-img.is-floorplan,
.pd-property-detail .tp-property-gallery .tp-property-gallery__main-img.is-floorplan {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 98% !important;
  max-height: 98% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: auto !important;
  transform: none !important;
  background: #fff !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-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: 92vw;
  max-height: 86vh;
  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 8px !important;
  padding: 8px 14px 12px !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: 4px !important;
  margin-top: 4px !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: 4px !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.75rem, 6vw, 2.45rem);
  font-weight: 900;
  color: #ea580c;
  line-height: 1.1;
}

.pd-inner--tp-detail .pd-price-badge--emph {
  background: #fff !important;
  border: 2px solid #64748b !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1) !important;
}
.pd-inner--tp-detail .pd-price-badge--emph .pd-price-badge__value {
  font-weight: 900;
  color: #0f172a;
}

.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 は対象外） --- */
@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 {
    min-height: min(58vh, 480px) !important;
    max-height: min(58vh, 480px) !important;
  }

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

  body.site-theme-conversion .pd-property-detail #main-image.is-floorplan,
  body.site-theme-conversion .pd-property-detail .pd-main-img.is-floorplan,
  body.site-theme-conversion .pd-inner--tp-detail #main-image.is-floorplan,
  body.site-theme-conversion .pd-inner--tp-detail .pd-main-img.is-floorplan {
    max-width: 98% !important;
    max-height: 98% !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;
  }
}
