@charset "UTF-8";
/* =========================================================
   物件情報ページ（一覧・詳細）
   ========================================================= */

:root {
	/* テーマの --color-primary を継承（未定義環境向けにフォールバック値を保持） */
	--estate-blue: var(--color-primary, #0295c8);
	--estate-red: #d5265b;
	--estate-line: #e2e2e2;
}

/* ---------- 共通コンテナ ---------- */
.EstateList__inner,
.EstateDetail__inner {
	width: 92%;
	max-width: 1080px;
	margin: 0 auto;
}

/* ---------- カテゴリーナビ ---------- */
.EstateNav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 820px;
	padding: 0;
	list-style: none;
}
.EstateNav li a {
	display: block;
	padding: 8px 22px;
	border: 1px solid var(--estate-blue);
	border-radius: 5px;
	color: var(--estate-blue);
	font-size: 14px;
	text-decoration: none;
	transition: .25s;
}
.EstateNav li a:hover,
.EstateNav li a.active {
	background: var(--estate-blue);
	color: #fff;
}

/* ---------- 一覧カード（index.php topService と同スタイル） ---------- */
.EstateList__column {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 50px;
}
.EstateCard {
	position: relative;
}
.EstateCard__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: inherit;
	text-decoration: none;
}
/* 画像 */
.EstateCard__img {
	position: relative;
	display: block;
	width: 100%;
	border-radius: 15px;
	overflow: hidden;
}
.EstateCard .PrImg {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 5;
	object-fit: cover;
	transition: transform .4s;
}
.EstateCard__link:hover .PrImg {
	transform: scale(1.05);
}
.EstateCard .PrImg.EstateCard__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	color: #aaa;
	font-size: 1.4rem;
	letter-spacing: .1em;
}
/* 縦書きカテゴリー（cateCaption） */
.EstateCard .cateCaption {
	writing-mode: vertical-rl;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 60px;
	padding: 0.5em 0 2em;
	position: absolute;
	top: 0;
	right: 0;
	font-size: 1.8rem;
	font-weight: 500;
	background-color: #fff;
	color: var(--estate-blue);
	border-radius: 0 0 0 10px;
	gap: 0 0.5em;
}
.EstateCard .cateCaption::before {
	content: "";
	display: block;
	width: 1.5px;
	height: 30px;
	background-color: var(--estate-blue);
}
/* タイトル */
.EstateCard__title {
	display: block;
	font-size: 1.7rem;
	font-weight: 600;
	line-height: 1.5;
}
/* 価格（price） */
.EstateCard .price {
	display: block;
}
.EstateCard .price em {
	font-size: 2.4rem;
	font-weight: 600;
	font-style: normal;
	color: var(--estate-blue);
}
/* 間取り・面積 */
.EstateCard__spec {
	display: block;
	margin-top: 8px;
	font-size: 1.4rem;
	color: #555;
}
/* 交通（exp） */
.EstateCard .exp {
	display: block;
	margin-top: 10px;
	font-size: 1.5rem;
	line-height: 1.6;
}

@media screen and (min-width: 1025px) and (max-width: 1299px) {
	.EstateCard .cateCaption {
		width: 4.6vw;
		font-size: 1.38vw;
	}
	.EstateCard .price em {
		font-size: 1.85vw;
	}
	.EstateCard .exp {
		font-size: 1.15vw;
	}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.EstateCard .cateCaption {
		width: 40px;
		font-size: 1.4rem;
	}
	.EstateCard .price em {
		font-size: 2rem;
	}
	.EstateCard .exp {
		font-size: 1.4rem;
	}
}
@media screen and (max-width: 767px) {
	.EstateCard .cateCaption {
		width: 40px;
		font-size: 1.4rem;
	}
	.EstateCard .price em {
		font-size: 2rem;
	}
	.EstateCard .exp {
		font-size: 1.3rem;
	}
}

/* ---------- 詳細：ヘッダー ---------- */
.EstateHead__cat {
	display: inline-block;
	padding: 4px 14px;
	background: var(--estate-blue);
	color: #fff;
	font-size: 13px;
	border-radius: 3px;
}
.EstateHead__title {
	margin-top: 10px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
}
.EstateHead__price {
	margin-top: 6px;
	color: var(--estate-red);
	font-size: 30px;
	font-weight: 700;
}
.EstateHead__price span {
	font-size: 18px;
	margin-left: 3px;
}

/* ---------- 詳細：上部（画像＋概要） ---------- */
.EstateTop {
	display: grid;
	/* minmax(0,…) で fr トラックが内容（Swiper/SVG）で膨張するのを防ぐ */
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}

/* 画像スライダー */
.EstateGallery {
	min-width: 0;
}
/* フレックスアイテムのmin-width:autoでSVG内在幅により縮まない問題を防止 */
.EstateGallery .swiper-slide {
	min-width: 0;
}
.EstateGallery__main {
	width: 100%;
	min-width: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
}
.EstateGallery__main .swiper-slide {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f7f7f7;
	overflow: hidden;
}
/* 画像は絶対配置にして、SVGの内在サイズがフレックス計算に影響しないようにする */
.EstateGallery__main .swiper-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.EstateGallery__caption {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 5px 14px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 13px;
}
.EstateGallery__main .swiper-button-prev,
.EstateGallery__main .swiper-button-next {
	color: #fff;
	--swiper-navigation-size: 26px;
}
.EstateGallery__thumbs {
	width: 100%;
	min-width: 0;
	margin-top: 10px;
}
.EstateGallery__thumbs .swiper-slide {
	position: relative;
	aspect-ratio: 1 / 1;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	opacity: .55;
	transition: opacity .2s, border-color .2s;
}
.EstateGallery__thumbs .swiper-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.EstateGallery__thumbs .swiper-slide-thumb-active {
	opacity: 1;
	border-color: var(--estate-blue);
}
.EstateGallery__single img {
	width: 100%;
	border-radius: 6px;
}
.EstateGallery__single--noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
	color: #aaa;
	border-radius: 6px;
}

/* ---------- テーブル（page-recruit.php guideTable 準拠） ---------- */
.EstateDetail .guideTable {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.5rem;
	line-height: 1.7;
}
.EstateDetail .guideTable th,
.EstateDetail .guideTable td {
	padding: 1.2em 0.6em;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(106, 143, 156, 0.5);
}
.EstateDetail .guideTable th {
	width: 30%;
	white-space: nowrap;
	color: var(--estate-blue);
	font-weight: 600;
}

/* ---------- 2列コンパクト表示（物件概要・設備） ---------- */
.EstateSpec {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 40px;
	border-top: 1px solid rgba(106, 143, 156, 0.5);
	font-size: 1.5rem;
	line-height: 1.7;
}
.EstateSpec__item {
	display: grid;
	grid-template-columns: 38% 1fr;
	gap: 0 1em;
	padding: 1em 0.4em;
	border-bottom: 1px solid rgba(106, 143, 156, 0.5);
}
.EstateSpec__th {
	color: var(--estate-blue);
	font-weight: 600;
}

/* ---------- 周辺施設のみ ボタン（チップ）風 ---------- */
.EstateSpec--nearby {
	gap: 12px;
	border-top: none;
}
.EstateSpec--nearby .EstateSpec__item {
	grid-template-columns: 1fr auto;
	align-items: center;
	padding: 0.85em 1.2em;
	background: #f4f8fb;
	border: 1px solid #dce6ee;
	border-radius: 8px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.EstateSpec--nearby .EstateSpec__item:hover {
	background: #eaf4fa;
	border-color: var(--estate-blue);
	box-shadow: 0 2px 6px rgba(2, 149, 200, .12);
}
.EstateSpec--nearby .EstateSpec__th {
	color: #333;
	font-weight: 600;
}
.EstateSpec--nearby .EstateSpec__td {
	color: var(--estate-red);
	font-weight: 600;
	text-align: right;
}

/* ---------- 詳細：各ブロック / アコーディオン見出し ---------- */
.EstateBlock__ttl {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0 1em;
	padding: 0 0 12px 0;
	border-bottom: 2px solid var(--estate-blue);
	font-size: 2rem;
	font-weight: 700;
	color: var(--estate-blue);
	cursor: pointer;
	user-select: none;
}
.EstateBlock__ttl__label i {
	margin-right: 8px;
}
/* +/- トグル */
.EstateBlock__toggle {
	position: relative;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}
.EstateBlock__toggle::before,
.EstateBlock__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--estate-blue);
	transition: transform .25s;
}
.EstateBlock__toggle::before {
	width: 16px;
	height: 2px;
	transform: translate(-50%, -50%);
}
.EstateBlock__toggle::after {
	width: 2px;
	height: 16px;
	transform: translate(-50%, -50%);
}
/* 開いている時（初期）は「−」＝縦棒を隠す */
.EstateBlock.is-open .EstateBlock__toggle::after {
	transform: translate(-50%, -50%) scaleY(0);
}
.EstateBlock__body {
	overflow: hidden;
}
.EstateBlock table,
.EstateBlock .EstateSpec {
	margin-top: 18px;
}
.EstateRecommend__body {
	padding: 18px 20px;
	background: #f2fafd;
	border: 1px solid #cfe9f4;
	border-radius: 6px;
	line-height: 1.9;
	font-size: 1.5rem;
}
.EstateRecommend__label {
	display: block;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #cfe9f4;
	color: var(--estate-blue);
	font-weight: 700;
	font-size: 1.5rem;
}
.EstateRecommend__label i {
	margin-right: 6px;
}
.EstateArea__map {
	margin-top: 18px;
	border-radius: 6px;
	overflow: hidden;
	line-height: 0;
}
.EstateArea__nearby__ttl {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.EstateOverview__point {
	margin-top: 18px;
	padding: 16px 20px;
	background: #fff7f9;
	border: 1px solid #f2d3de;
	border-radius: 6px;
	line-height: 1.8;
	font-size: 1.5rem;
}
.EstateOverview__point__label {
	display: inline-block;
	margin-right: 12px;
	padding: 2px 12px;
	background: var(--estate-red);
	color: #fff;
	font-size: 1.2rem;
	border-radius: 3px;
	vertical-align: middle;
}

/* ---------- 問い合わせボタン ---------- */
.EstateContactBtn {
	font-size: 1.7rem;
	padding: 1em 1.4em;
}
.EstateContactBtn .caption {
	font-size: 1.7rem;
}

/* ---------- 下部：問い合わせ／一覧へ戻る ---------- */
.EstateDetail__foot .EstateDetail__contact,
.EstateDetail__foot .EstateDetail__back {
	display: flex;
	justify-content: center;
}
/* 下部の2ボタンを同じ幅・高さ・フォントサイズに揃える */
.EstateDetail__foot .EstateContactBtn,
.EstateDetail__foot .EstateBackBtn {
	width: 400px;
	max-width: 100%;
	height: 60px;
	padding: 0 1.4em;
	gap: 0 0.8em;
	font-size: 1.5rem;
	line-height: 1.4;
	border-radius: 50px;
	box-sizing: border-box;
}
.EstateDetail__foot .EstateBackBtn .caption {
	font-size: 1.5rem;
	font-weight: 600;
}
.EstateDetail__foot .EstateContactBtn .caption {
	font-size: 1.7rem;
	font-weight: 600;
}

/* ---------- タブレット ---------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.EstateList__column {
		grid-template-columns: repeat(2, 1fr);
	}
	.EstateContactBtn {
		font-size: 1.4rem;
	}
	.EstateContactBtn .caption {
		font-size: 1.4rem;
	}
}

/* ---------- SP ---------- */
@media screen and (max-width: 767px) {
	/* 一覧アイテムを小さく：SPは2列表示 */
	.EstateList__column {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 14px;
	}
	.EstateCard__img {
		border-radius: 10px;
	}
	.EstateCard .cateCaption {
		width: 30px;
		font-size: 1.2rem;
		border-radius: 0 0 0 8px;
	}
	.EstateCard .cateCaption::before {
		height: 20px;
	}
	.EstateCard__title {
		font-size: 1.35rem;
		line-height: 1.45;
		margin-top: 10px;
	}
	.EstateCard .price em {
		font-size: 1.8rem;
	}
	.EstateCard__spec {
		margin-top: 5px;
		font-size: 1.15rem;
	}
	.EstateCard .exp {
		margin-top: 6px;
		font-size: 1.15rem;
		line-height: 1.5;
	}
	.EstateTop {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.EstateHead__title {
		font-size: 21px;
	}
	.EstateHead__price {
		font-size: 26px;
	}
	.EstateBlock__ttl {
		font-size: 1.7rem;
	}
	/* 2列 → 1列 */
	.EstateSpec {
		grid-template-columns: 1fr;
	}
	.EstateSpec__item {
		grid-template-columns: 36% 1fr;
	}
	/* guideTable はSPで縦積み */
	.EstateDetail .guideTable th,
	.EstateDetail .guideTable td {
		display: block;
		width: 100%;
		white-space: normal;
	}
	.EstateDetail .guideTable th {
		padding-bottom: 0;
		border-bottom: none;
	}
	.EstateContactBtn,
	.EstateContactBtn .caption {
		font-size: 1.5rem;
	}
	/* 下部2ボタンは画面幅いっぱいに揃える */
	.EstateDetail__foot .EstateContactBtn,
	.EstateDetail__foot .EstateBackBtn {
		width: 100%;
	}
}
