@charset "utf-8";

/**
 * バーチャル見学
 * 適用ページ：page.php、single-post_bukken.php
 */
body {
	overflow-wrap: anywhere;
	word-break: normal;
	line-break: strict;
	text-wrap: pretty; /* balance or pretty */
	word-break: auto-phrase;
}
strong {
	font-weight: bold;
}
.marker {
	background: linear-gradient(transparent 60%, #ffff66 60%);
}
/* =============================================================================
   バーチャル見学一覧ページ
============================================================================= */
.virtual_tours {
	*,
	*::before,
	*::after {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
	ul,
	ul li
	ol,
	ol li {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	container-type: inline-size;
	.section {
		margin: 2.4em 0 0;
	}
	.title {
		/* 既存のh3スタイルを打消し */
		background: none;
		/* 再定義 */
		/*
		background: #eaf6ef;
		border: 1px solid #d9efe1;
		padding: 16px 0 12px;
		border-radius: 4px;
		text-align: center;
		*/
		padding: 16px 0 12px;
		border: 1px solid #ddd;
		border-left: 0;
		border-right: 0;
		text-align: center !important;
	}
	.virtual_tour-group {
		margin: 1.5em 0 0;
	}
}
.virtual_tours .virtual_tour-list {
	--gap: clamp(16px, 4cqw, 24px);
	--min-column-width: 280px;
	--grid-behavior: auto-fill;

	margin: 0 0 2em;
	padding: 0;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(var(--grid-behavior), minmax(min(100%, var(--min-column-width)), 1fr));
}
@container(width < 1024px) {
	.virtual_tour-list {
		--min-column-width: 240px;
	}
}
.virtual_tour-list .list-item {
	padding: 0;
	border: 1px solid #dbdbdb;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 1px 1px 2px 0 #dbdbdb;
	a {
		display: block;
		height: 100%;
		color: inherit;
		text-decoration: none;
	}
	p {
		margin: 0 !important;
	}
	.thumbnail {
		position: relative;
		overflow: hidden;
		img {
			width: 100%;
			/* height: auto; */
			object-fit: cover;
			overflow: visible;
			aspect-ratio: 16/9;
		}
		.badge,
		.icon {
			position: absolute;
			inset: 0;
			z-index: 1;
			display: flex;
			align-items: center;
			justify-content: center;
			line-height: 1;
		}
		.icon svg {
			color: rgba(35,24,21,.9);
		}
		.badge span {
			font-family: "Yu Mincho Medium", "游明朝 Medium", "YuMincho Medium", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;;
			position: relative;
			display: inline-block;
			color: #e60021;
			font-weight: bold;
			background: rgba(255,255,255,.9);
			border: 2px solid #e60021;
			padding: 12px 10px 8px;
			/* outline: 2px solid red; */
			/* outline-offset: 2px; */
			border-radius: 8px;
			font-size: 32px;
			transform: rotate(-15deg)
		}
		.badge span::after {
			content: '';
			position: absolute;
			inset: 2px;
			border: 1px solid red;
			border-radius: 6px;
			pointer-events: none;
		}
	}
	.caption {
		line-height: 1.4;
		padding: 10px 12px 8px;
		p {
			font-weight: bold;
		}
	}
	/* 状態変化 */
	a:hover .thumbnail img {
		transform: scale(1.05);
	}
	&.status-sold .thumbnail::after {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0,0,0,.5);

	}
}
/* =============================================================================
   物件情報投稿ページ
============================================================================= */
.h3 {
	border-left: solid 4px #2CBEA6;
	font-size: 1.4em;
	font-weight: bold;
	margin: 0.5em 0;
	/* background: #f6f6f6; */
	padding: 0px 0 0 10px;
	+ .virtual_tour.bukken {
		margin: 0 !important;
	}
}
/*
.virtual_tour.bukken > * + * {
	margin-top: 1.5rem;
}
*/
.virtual_tour.bukken *,
.virtual_tour.bukken *::before,
.virtual_tour.bukken *::after {
	box-sizing: border-box;
}
.virtual_tour p {
	margin: 0;
}
.virtual_tour.bukken {
	color: inherit;
	font-size: 1rem;
	font-family:
	/* 1. 最優先：Webフォント */
	"Noto Sans JP", 'Noto Sans Japanese',
	/* 2. Mac / iOS フォールバック */
	-apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
	/* 3. Windows フォールバック */
	"BIZ UDPGothic", "Meiryo",
	/* 4. 汎用サンセリフ */
	sans-serif;
	/* line-height: 1.75; */
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased; /* Mac / iOSでの文字輪郭をクリアにする */
	-moz-osx-font-smoothing: grayscale;  /* Firefox */

	background: #eaf6ef;
	border: 1px solid#d9efe1;
	margin: 2rem 0;
	padding: clamp(12px, 100cqw * 12 / 320, 23px);
	border-radius: 8px;

	container-type: inline-size;
	.virtual_tour-head {
		.title {
			/* 既存のh3スタイルを打消し */
			border: none;
			background: none;
			margin: 0 0 1rem;
			padding: 0;
			/* 再定義 */
			/* font-size: 2.4rem; */
			font-size: clamp(1.2rem, 100cqw * 20 / 320, 2.4rem);
			/* font-weight: bold; */
			display: flex;
			justify-content: center;
			align-items: end;
			flex-wrap: wrap;
			line-height: 1.5;
			.text-highlight {
				color: #e60021;
				margin-inline: .25em;
				text-emphasis: filled dot #e60021;
			}
		}
	}
	.virtual_tour-body {
		background: rgb(255 255 255 / 1);
		padding: clamp(12px, 100cqw * 12 / 320, 24px);
		border-radius: 8px;
		overflow: hidden;
		.layout {
			--gap: clamp(12px, 100cqw * 12 / 320, 24px);
			display: grid;
			gap: var(--gap);
			/* grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); */
			grid-template-columns: repeat(auto-fit, minmax(clamp(calc(50% - var(--gap)), (640px - 100cqw) * 9999, 100%), 1fr));
			/* align-items: center; */
			.visual,
			.content {
				flex: 1;
			}
			.visual {
				a {
					color: inherit;
				}
				.img {
					position: relative;
					border-radius: 8px;
					overflow: hidden;
					box-shadow: 1px 1px 2px rgb(0 0 0 / .2);
					line-height: 1.4;
					.icon,.guide,.hint,.tooltip {
						z-index: 1;
					}
					img {
						width: 100%;
						height: 100%;
						aspect-ratio: 16 / 9;
						object-fit: cover;
					}
					&:hover img {
						transform: scale(1.05);
					}
					&::after {
						content: "";
						position: absolute;
						inset: 0;
						/* background: linear-gradient(to top, rgb(2 6 23 / .7) 0%, rgb(15 23 42 / .1) 60%, transparent 100%); */
						background: linear-gradient(to top, rgb(0 0 0 / .75) 0%, rgb(0 0 0 / .25) 25%, transparent 50%);
					}
					.icon {
						width: calc(100% / 3);
						position: absolute;
						top: 50%;
						left: 50%;
						transform: translate(-50%,-50%);
						filter: drop-shadow(1px 1px 2px rgb(0 0 0 / .75));
						opacity: .25;
						svg {
							color: #fff;
							width: 100%;
							height: auto;
						}
					}
					.guide {
						position: absolute;
						bottom: 0;
						left: 0;
						right: 0;
						display: flex;
						gap: 8px;
						align-items: end;
						font-size: 0.75rem;
						padding: 8px;
						color: #fff;
						.hint {
							display: flex;
							align-items: center;
							font-weight: bold;
							pointer-events: none;
							svg {
								overflow: visible;
								animation: tap 2s infinite;
								margin: 0 2px 4px 0;
								.ripple {
									opacity: 0;
									transform: scale(.5);
									transform-box: fill-box;
									transform-origin: 50%;
									animation: ripple 2s infinite;
								}
							}
						}
						.tooltip {
							margin: 0 0 0 auto;
							background-color: rgb(0 0 0 / .5);
							backdrop-filter: blur(4px);
							padding: 4px 8px;
							border-radius: 4px;
							white-space: nowrap;
						}
					}

				}
			}
			.content {
				display: flex;
				flex-direction: column;
				.catch {
					margin: 0 0 1rem;
					font-size: 112.5%;
					font-weight: bold;
					line-height: 1.5;
				}
				.description {
					margin: 0 0 1rem;
				}
				.cta {
					margin: auto 0 0;
					text-align: center;
					.cta-note {
						color: #ea580c;
						font-weight: bold;
						text-align: inherit;
					}
					.cta-btn {
						text-align: center;
						a {
							--base-red: #f97316;
							display: inline-block;
							padding: 13px 40px 11px 24px;
							/* border: 1px solid #ea580c; */
							border-radius: 9999px;
							color: #fff;
							text-decoration: none;
							background-color: var(--base-red);
							box-shadow: 3px 3px color-mix(in srgb, var(--base-red), #000 25%);
							/* text-shadow: 2px 2px color-mix(in srgb, var(--base-red), #000 25%); */
							margin: 0 3px 3px 0;
							position: relative;
							font-size: 112.5%;
							font-weight: 600;
							line-height: 1.25;
							&:hover {
								transform: translate3d(3px, 3px, 0);
								box-shadow: none;
							}
							&::after {
								content: "";
								display: inline-block;
								border: 3px solid #fff;
								border-top: 0;
								border-left: 0;
								width: 10px;
								height: 10px;
								transform: rotate(-45deg) translateY(-50%);
								/* box-shadow: 0 2px color-mix(in srgb, var(--base-red), #000 25%); */
								position: absolute;
								top: 50%;
								right: 16px;
							}
						}
					}
				}
			}
		}
	}
}
@keyframes tap {
	10% {
		transform: translateY(-1px) scale(.95);
	}
	20% {
		transform: translateY(0) scale(1.05);
	}
}
@keyframes ripple {
	15% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0;
		transform: scale(1.5);
	}
}