@charset "UTF-8";

/* 共通 */

.property-wrap {
	margin: 150px auto 0;
	width: 85%;
	max-width: 1168px;
}

.property-wrap p,
.property-wrap h2 {
	margin: 0;
}

.pc-view {
	display: block;
}

.tab-view {
	display: none !important;
}

/* ギャラリー */

.gallery-wrap {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	justify-content: center;
	margin: 32px auto 90px;
}

.gallery-splide-wrap {
	max-width: 849px;
	width: 100%;
}

.gallery-wrap .splide__slide {
	height: 594px;
	position: relative;
}

.gallery-wrap .splide__slide img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	max-height: 565px;
}

.gallery-wrap .splide__slide p {
	color: #666;
	position: absolute;
	bottom: 0;
}

.thumb-wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px 9px;
	max-width: 286px;
}

.thumb-media {
	width: 64px;
	height: 43px;
}

.thumb-media img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* モーダル */

.modal-btn {
	cursor: pointer;
	position: relative;
	width: 288px;
	height: 202px;
}

.modal-btn::after {
	content: "";
	position: absolute;
	right: -7px;
	bottom: -7px;
	border-right: 1px solid #858585;
	border-bottom: 1px solid #858585;
	width: 95%;
	height: 95%;
}

.modal-btn img {
	width: 100%;
	height: 100%;
}

.modal-back {
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, .4);
	position: fixed;
	top: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	z-index: -1;
	transition: .3s;
}

.modal {
	position: relative;
	opacity: 0;
	visibility: hidden;
	height: 0;
	transition: opacity .3s;
	display: none;
}

.modal img {
	width: 100%;
	max-height: 565px;
}

/* モーダル オープン */

.modal-back.open {
	opacity: 1;
	visibility: inherit;
	z-index: 9999;
}

.modal.open {
	display: flex;
	align-items: center;
	opacity: 1;
	visibility: inherit;
	box-sizing: border-box;
	width: 90%;
	max-width: 997px;
	max-height: 696px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.property-wrap .splide__arrow svg {
	display: none;
}

.property-wrap .splide__arrow {
	background: url(../images/property/slide-arrow.svg) no-repeat;
	background-size: contain;
	border-radius: 0;
	width: 34px;
	height: 34px;
}

.property-wrap .splide__arrow--prev {
	left: 0;
	transform: translateY(-50%) rotate(180deg);
}

.property-wrap .splide__arrow--next {
	right: 0;
}


/* 物件 タイトル */

.title-col {
	border-top: 1px solid #858585;
	border-bottom: 1px solid #858585;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 15px 0;
}

.title-col>div {
	padding-right: 19px;
}

.title-col>div:nth-child(2),
.title-col>div:nth-child(3) {
	padding-left: 19px;
	position: relative;
}

.title-col>div:nth-child(2)::before,
.title-col>div:nth-child(3)::before {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
	background: #858585;
	width: 1px;
	height: 100%;
}

.title-col>div h2 {
	margin-bottom: 14px;
}

.title-col .situation {
	border: 1px solid #858585;
	display: inline-block;
	padding: 0 5px;
	max-width: max-content;
}

.title-col .col {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
}

.title-col .col p {
	width: 50%;
}

.title-col .col:has(.situation) {
	justify-content: left;
	gap: 32px;
	margin-top: 50px;
}

/* 物件 本文 */

.main-col {
	display: flex;
	justify-content: space-between;
}

.main-col p {
	font-size: 14px;
	max-width: 720px;
}

.main-col .rc-link {
	margin: 32px auto 0;
	max-width: 288px;
}

/* 物件 詳細 */

.detail-col {
	display: grid;
	gap: 0 32px;
	grid-template-columns: repeat(3, 1fr);
	margin: 83px auto 0;
}

.detail-col>div:nth-child(1) {
	grid-area: 1 / 1 / 2 / 2;
}

.detail-col>div:nth-child(2) {
	grid-area: 1 / 2 / 2 / 3;
	margin-top: 33px;
}

.detail-col>div.adjust-margin {
	margin-top: 0;
}

.detail-col>div:nth-child(3) {
	grid-area: 1 / 3 / 2 / 4;
	margin-top: 33px;
}

.detail-col>div:nth-child(4) {
	grid-area: 2 / 1 / 3 / 4;
	margin-top: 228px;
}

.detail-col p {
	border-top: 1px solid #858585;
	border-bottom: 1px solid #858585;
	display: flex;
	justify-content: left;
	padding: 16px 0;
	margin-top: -1px;
	white-space: pre-wrap;
}

.detail-col p span {
	display: block;
	font-weight: 500;
	min-width: 128px;
}

.detail-col p span.med {
	font-weight: 500;
}

.detail-col h2 {
	margin-bottom: 11px;
}

.detail-col>div:nth-child(1) div h2 {
	margin-top: 79px;
}

.update-date {
	display: flex;
	gap: 25px;
	margin-top: 7px;
}

/* マップ */

.property-map {
	position: relative;
	margin: 57px auto 0;
	width: calc(100% - 9px);
	height: 216px;
}

.property-map::after {
	content: "";
	position: absolute;
	right: -8px;
	bottom: -8px;
	border-right: 1px solid #858585;
	border-bottom: 1px solid #858585;
	width: 99%;
	height: 99%;
}

.property-map iframe {
	width: 100%;
	height: 100%;
}

/* お申し込み */

.apply-wrap {
	border-top: 1px solid #858585;
	border-bottom: 1px solid #858585;
	padding: 104px 0 97px;
	text-align: center;
	margin-top: 80px;
}

.apply-wrap a {
	margin-top: 45px;
	width: 288px;
}

.apply-wrap .adjust {
	display: none;
}

/* タブレット */
@media screen and (max-width: 1140px) {

	.pc-view {
		display: none !important;
	}

	.tab-view {
		display: block !important;
	}

	.title-col {
		grid-template-columns: repeat(2, 1fr);
	}

	.title-col>div,
	.title-col>div:nth-child(3) {
		padding: 0 28px;
	}

	.thumb-wrapper {
		grid-template-columns: repeat(3, 1fr);
	}

	.thumb-media {
		width: 55px;
		height: 37px;
	}

	.main-col {
		flex-flow: column;
		gap: 55px;
	}

	.main-col .col {
		display: flex;
		align-items: center;
		gap: 70px;
	}

	.main-col .rc-link {
		margin: 0;
	}

	.detail-col {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.detail-col>div {
		width: 47%;
	}

	.detail-col>div:nth-child(1) {
		order: 1;
	}

	.detail-col>div:nth-child(2) {
		grid-area: 2 / 1 / 3 / 2;
		order: 3;
		margin: 0;
	}

	.detail-col>div:nth-child(3) {
		order: 2;
		margin-top: 33px;
	}

	.detail-col>div:nth-child(4) {
		grid-area: 2 / 2 / 3 / 3;
		order: 4;
		margin: 0;
	}

	.detail-col p.adjust {
		flex-flow: column;
		flex-wrap: wrap;
	}
}

/* スマホ */
@media screen and (max-width: 768px) {

	/* タイトル sp */

	.title-col {
		display: block;
		padding: 0;
	}

	.title-col>div {
		padding-right: 0;
		padding: 24px 0;
	}

	.title-col>div:nth-child(3) {
		border-top: 1px solid #858585;
		padding: 24px 0;
	}

	.title-col>div:nth-child(2),
	.title-col>div:nth-child(3) {
		padding-left: 0;
	}

	.title-col>div:nth-child(2)::before,
	.title-col>div:nth-child(3)::before {
		content: none;
	}

	/* ギャラリー sp */

	.gallery-wrap {
		flex-flow: column;
		gap: 6px;
		margin: 16px auto 34px;
	}

	.gallery-wrap .splide__slide {
		height: 245px;
	}

	.gallery-wrap .splide__slide img {
		max-height: 217px;
	}

	.thumb-wrapper {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		max-width: none;
	}

	.main-col {
		gap: 40px;
	}

	.main-col .col {
		flex-flow: column;
		gap: 60px;
	}

	/* 詳細 sp */

	.modal img {
		margin: 0 auto;
        display: block;
		width: 100%;
		aspect-ratio: 4 / 3;
	}

	.detail-col {
		display: block;
	}

	.detail-col div {
		width: 100%;
	}

	.detail-col p {
		border-top: none;
		display: flex !important;
	}

	.detail-col p.pc-view {
		display: none !important;
	}

	.detail-col p:first-of-type {
		border-top: 1px solid #858585;
	}

	.detail-col>div:nth-child(1) div h2 {
		margin-top: 50px;
	}

	.detail-col>div:nth-child(1) {
		order: 1;
	}

	.detail-col>div:nth-child(2) {
		order: 2;
		margin-top: 0;
	}

	.detail-col>div:nth-child(3) {
		order: 3;
		margin-top: 0;
	}

	.detail-col>div:nth-child(4) {
		order: 4;
	}

	.detail-col>div.adjust-margin {
		margin-top: 50px;
	}

	.detail-col p span {
		min-width: 90px;
	}

	.update-date {
		flex-flow: column;
		margin-top: 20px;
		gap: 0;
	}

	.apply-wrap .adjust {
		display: block;
	}
}