/* 物件詳細（parts/bukken-single.php）と物件カードの成約表示。zsouko-sync.php が読み込む */

.zs-bukken .zs-title { font-size: 1.35em; line-height: 1.5; }
.zs-bukken .property-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.zs-bukken .property-tag { font-size: 12px; padding: 3px 10px; border: 1px solid var(--color_main, #1e88e5); border-radius: 999px; color: var(--color_main, #1e88e5); text-decoration: none; background: #fff; }
.zs-bukken .property-tag:hover { background: var(--color_main, #1e88e5); color: #fff; }

.zs-closed-note { background: #fff4e5; border: 1px solid #f0a040; color: #8a4b00; padding: 10px 14px; border-radius: 6px; margin: 0 0 12px; font-size: 14px; }

/* ---- 上段：写真＋要約 */
.zs-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 28px; }
.zs-top__gallery { min-width: 0; }
.zs-top__gallery .bukken-slider-main { overflow: hidden; border-radius: 6px; background: #f3f5f7; }
.zs-top__gallery .bukken-slider-main .swiper-slide { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.zs-top__gallery .bukken-slider-main .swiper-slide > img:first-child { width: 100%; height: 100%; object-fit: contain; }
.zs-top__gallery .bukken-slider-thumbs { margin-top: 8px; overflow: hidden; }
.zs-top__gallery .bukken-slider-thumbs .swiper-slide { width: 22%; aspect-ratio: 4 / 3; cursor: pointer; opacity: .6; }
.zs-top__gallery .bukken-slider-thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid var(--color_main, #1e88e5); outline-offset: -2px; }
.zs-top__gallery .bukken-slider-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.zs-top__gallery .contract-overlay { position: absolute; inset: 0; margin: auto; width: 60%; height: auto; pointer-events: none; }

.zs-top__summary { border: 1px solid #dfe5ec; border-radius: 8px; padding: 18px; background: #fff; }
.zs-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px dashed #dfe5ec; }
.zs-price__label { font-size: 13px; color: #fff; background: var(--color_main, #1e88e5); padding: 2px 8px; border-radius: 4px; }
.zs-price__value { font-size: 28px; font-weight: 700; color: #d6332a; line-height: 1.2; }
.zs-price__value.is-closed { color: #8a4b00; font-size: 24px; }
.zs-price__sub { font-size: 14px; color: #555; }
.zs-keys { margin: 10px 0 14px; }
.zs-keys > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f2f5; font-size: 14px; }
.zs-keys dt { color: #667; font-weight: 600; }
.zs-keys dd { margin: 0; }
.zs-cta { display: grid; gap: 8px; }
.zs-cta__btn { display: block; text-align: center; padding: 12px 10px; border-radius: 6px; font-weight: 700; text-decoration: none !important; font-size: 15px; }
.zs-cta__btn.is-mail { background: #f08c00; color: #fff !important; }
.zs-cta__btn.is-tel { background: #fff; color: var(--color_main, #1e88e5) !important; border: 2px solid var(--color_main, #1e88e5); }
.zs-cta__btn:hover { opacity: .85; }
.zs-cta__note { font-size: 12px; color: #777; margin: 0; text-align: center; }

/* ---- 物件概要の表：常に2列・幅いっぱい */
.zs-spec { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; table-layout: fixed; }
.zs-spec th, .zs-spec td { border-bottom: 1px solid #e3e8ee; padding: 10px 12px; text-align: left; vertical-align: top; word-break: break-word; }
.zs-spec th { width: 9em; background: #f5f8fb; color: #445; font-weight: 600; white-space: nowrap; }
.zs-spec tr:first-child th, .zs-spec tr:first-child td { border-top: 2px solid var(--color_main, #1e88e5); }
.zs-spec__remarks { font-size: 14px; line-height: 1.7; }

.zs-embed { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
.zs-embed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

.zs-spbar { display: none; }

@media (max-width: 959px) {
	.zs-top { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 599px) {
	.zs-bukken .zs-title { font-size: 1.15em; }
	.zs-top__summary { padding: 14px; }
	.zs-price__value { font-size: 24px; }
	.zs-spec { font-size: 14px; }
	.zs-spec th { width: 6.5em; padding: 9px 8px; white-space: normal; }
	.zs-spec td { padding: 9px 8px; }
	.zs-embed { aspect-ratio: 4 / 3; }
	/* 画面下の固定ボタン */
	.zs-spbar { display: grid; grid-template-columns: 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; box-shadow: 0 -2px 10px rgba(0,0,0,.12); }
	.zs-spbar a { text-align: center; padding: 13px 6px calc(13px + env(safe-area-inset-bottom)); font-weight: 700; font-size: 15px; text-decoration: none !important; }
	.zs-spbar__tel { background: #fff; color: var(--color_main, #1e88e5) !important; }
	.zs-spbar__mail { background: #f08c00; color: #fff !important; }
	body.single-chintai-bukken, body.single-baibai-bukken { padding-bottom: 56px; }
	body.single-chintai-bukken .p-fixBtnWrap, body.single-baibai-bukken .p-fixBtnWrap { bottom: 70px; }
}

/* ---- 一覧カード：成約済みは金額を出さない */
.zs-closed-price { color: #8a4b00 !important; font-weight: 700; }

/* ---- 一覧カード（parts/bukken-card.php） */
.zs-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; padding: 16px; margin: 0 0 18px; border: 1px solid #dfe5ec; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.zs-card.is-closed { opacity: .85; }
.zs-card__thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #f3f5f7; }
.zs-card__thumb img.property-thumbnail { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-card__thumb .property-label { position: absolute; top: 8px; left: 8px; }
.zs-card__thumb .contract-overlay { position: absolute; inset: 0; margin: auto; width: 70%; height: auto; }
.zs-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa; font-size: 13px; letter-spacing: .1em; }
.zs-card__title { font-size: 17px !important; line-height: 1.5; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; }
.zs-card__title::after, .zs-card__title::before { display: none !important; }
.zs-card__title a { text-decoration: none; }
.zs-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; }
.zs-card__plabel { font-size: 12px; color: #fff; background: var(--color_main, #1e88e5); padding: 1px 7px; border-radius: 4px; }
.zs-card__price strong { font-size: 22px; color: #d6332a; }
.zs-card__tsubo { font-size: 13px; color: #555; }
.zs-card__spec { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 8px; }
.zs-card__spec th, .zs-card__spec td { padding: 5px 6px; border-bottom: 1px solid #f0f2f5; text-align: left; vertical-align: top; }
.zs-card__spec th { width: 6.5em; color: #667; font-weight: 600; white-space: nowrap; background: none; }
.zs-card .property-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px; }
.zs-card .property-tag { font-size: 11px; padding: 2px 8px; border: 1px solid #cfe0f3; border-radius: 999px; color: #2a6db0; background: #f5f9fe; }
.zs-card__comment { font-size: 13px; color: #555; line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zs-card__btns { display: flex; gap: 8px; justify-content: flex-end; }
.zs-card__btn { display: inline-block; padding: 9px 16px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.zs-card__btn.is-mail { background: #f08c00; color: #fff !important; }
.zs-card__btn.is-more { background: var(--color_main, #1e88e5); color: #fff !important; }
@media (max-width: 599px) {
	.zs-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
	.zs-card__title { font-size: 16px !important; }
	.zs-card__btns { display: grid; grid-template-columns: 1fr 1fr; }
	.zs-card__btn { text-align: center; padding: 11px 6px; }
}

/* ---- 物件ページ：同じ市区のほかの物件 */
.zs-point { margin: 0 0 24px !important; }
.zs-related { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zs-related li { margin: 0; }
.zs-related a { display: block; border: 1px solid #e3e8ee; border-radius: 6px; overflow: hidden; text-decoration: none; background: #fff; height: 100%; }
.zs-related__img { display: block; aspect-ratio: 4 / 3; background: #f3f5f7; }
.zs-related__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-related__ttl { display: block; font-size: 13px; line-height: 1.5; padding: 6px 8px 0; color: #333; }
.zs-related__price { display: block; font-size: 14px; font-weight: 700; color: #d6332a; padding: 2px 8px 8px; }
.zs-related__more { text-align: right; font-size: 14px; margin: 0 0 28px; }
@media (max-width: 599px) {
	.zs-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---- エリアページ冒頭の集計文 */
.zs-area-intro { background: #f5f9fe; border: 1px solid #d6e6f7; border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; font-size: 14px; line-height: 1.8; }
.zs-area-intro p { margin: 0 0 6px; }
.zs-area-intro p:last-child { margin: 0; }
.zs-area-intro__towns { color: #445; }

/* ---- エリアページの種別リンク・近くの市区 */
.zs-area-links { margin: 28px 0 10px; }
.zs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zs-chips a { display: inline-block; padding: 7px 12px; border: 1px solid #cfe0f3; border-radius: 999px; background: #f5f9fe; color: #1e5fa8; font-size: 14px; text-decoration: none; }
.zs-chips a[aria-current="page"] { background: var(--color_main, #1e88e5); color: #fff; border-color: var(--color_main, #1e88e5); }

/* ---- 公的データでみる立地 */
.zs-pub__badge { display: inline-block; padding: 1px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.zs-pub__badge.is-ok { background: #e8f6ec; color: #23753b; }
.zs-pub__badge.is-warn { background: #fff1e5; color: #a64b00; }
.zs-pub__note { font-size: 12px; color: #777; margin: -14px 0 24px; line-height: 1.6; }

/* ---- 物件リクエスト枠（zsouko-cta.php） */
.zs-req { border: 2px solid #f08c00; border-radius: 10px; background: #fffaf2; padding: 18px 20px; margin: 10px 0 24px; }
.zs-req__ttl { font-size: 18px; font-weight: 800; color: #b35f00; margin: 0 0 6px !important; }
.zs-req__txt { font-size: 14px; line-height: 1.8; margin: 0 0 12px !important; }
.zs-req__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.zs-req__btn { display: inline-block; padding: 12px 18px; border-radius: 6px; font-weight: 800; text-decoration: none !important; font-size: 15px; }
.zs-req__btn.is-main { background: #f08c00; color: #fff !important; }
.zs-req__btn.is-tel { background: #fff; color: var(--color_main, #1e88e5) !important; border: 2px solid var(--color_main, #1e88e5); }
.zs-req__note { font-size: 12px; color: #777; margin: 8px 0 0 !important; }
@media (max-width: 599px) {
	.zs-req__btns { display: grid; }
	.zs-req__btn { text-align: center; }
	body.zs-has-spbar { padding-bottom: 56px; }
	body.zs-has-spbar .p-fixBtnWrap { bottom: 70px; }
}

/* ---- 非公開物件の件数枠 */
.zs-hidden { border: 2px dashed #1e5fa8; border-radius: 10px; background: #f3f8fe; padding: 16px 18px; margin: 0 0 22px; }
.zs-hidden__num { margin: 0 0 6px !important; font-size: 15px; line-height: 1.6; }
.zs-hidden__num strong { font-size: 26px; color: #d6332a; margin: 0 4px; }
.zs-hidden__txt { font-size: 13px; color: #445; margin: 0 0 10px !important; line-height: 1.7; }
.zs-hidden__bands { font-size: 14px; font-weight: 700; color: #1e5fa8; margin: 0 0 6px !important; }
.zs-ics { list-style: none; margin: 0; padding: 0; } .zs-ics li { margin: 0 0 4px; } .zs-ics a { margin-left: 8px; font-size: 13px; }

/* ---- 運営会社の紹介枠・事務所ギャラリー */
.zs-company { border: 1px solid #dfe5ec; border-radius: 10px; background: #fff; padding: 16px; margin: 24px 0; }
.zs-company__ttl { font-weight: 800; font-size: 16px; margin: 0 0 10px !important; color: #1e5fa8; }
.zs-company__grid { display: grid; grid-template-columns: 160px 1fr 220px; gap: 14px; align-items: start; }
.zs-company__grid img { width: 100%; border-radius: 6px; object-fit: cover; }
.zs-company__body { font-size: 14px; line-height: 1.7; }
.zs-company__body p { margin: 0 0 6px !important; }
.zs-company__body ul { margin: 0 0 6px; padding-left: 1.2em; }
.zs-office-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.zs-office-gallery figure { margin: 0; }
.zs-office-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.zs-office-gallery figcaption { font-size: 12px; text-align: center; color: #667; }
@media (max-width: 767px) {
	.zs-company__grid { grid-template-columns: 1fr; }
	.zs-company__grid img:first-child { max-height: 260px; }
	.zs-office-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 担当者向けのサービス */
.zs-tantou { background: #fff; border: 1px solid #f3c78a; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.zs-tantou__ttl { font-weight: 800; color: #8a4b00; margin: 0 0 4px !important; font-size: 15px; }
.zs-tantou ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.75; }
.zs-tantou li { margin: 0; }
