/**
 * #Request（資料請求）
 */

.p-request-intro {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-bottom: 50px;
}

.p-request-preview {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 30px;
	padding-bottom: 40px;
	border-bottom: 1px solid #ddd;
}

.p-request-preview__cover {
	flex-shrink: 0;
	width: 139px;
	height: 197px;
	padding: 0;
	border: none;
	overflow: hidden;
	background: none;
	cursor: pointer;
	transition: opacity var(--duration) ease;
}

.p-request-preview__cover img {
	display: block;
	width: 139px;
	height: 197px;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}

.p-request-preview__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: 470px;
}

.p-request-heading {
	position: relative;
	width: 100%;
	margin: 0;
	padding-bottom: 11px;
	border-bottom: 5px solid #efefef;
	color: #111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.p-request-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 150px;
	max-width: 40%;
	height: 5px;
	background-color: var(--color-accent);
}

.p-request-preview__text {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 26px;
}

.p-request-preview__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px 15px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background-color: #efefef;
	color: #111;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.p-request-preview__icon {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	overflow: hidden;
}

.p-request-preview__icon img {
	position: absolute;
	top: 18.75%;
	left: 3.13%;
	display: block;
	width: 18.59px;
	height: 13.13px;
	max-width: none;
}

.p-request-preview__btn:hover,
.p-request-preview__cover:hover {
	opacity: 0.75;
}

.p-request-lead {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.8;
}

.p-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.8);
}

.p-lightbox[hidden] {
	display: none;
}

.p-lightbox__figure {
	position: relative;
	max-width: min(1100px, 100%);
	max-height: calc(100vh - 80px);
}

.p-lightbox__figure img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	height: auto;
	object-fit: contain;
}

.p-lightbox__video {
	width: min(960px, 100%);
	aspect-ratio: 16 / 9;
	background: #000;
}

.p-lightbox__video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.p-lightbox__close,
.p-lightbox__prev,
.p-lightbox__next {
	position: absolute;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
}

.p-lightbox__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	font-size: 24px;
	line-height: 1;
}

.p-lightbox__prev,
.p-lightbox__next {
	top: 50%;
	width: 50px;
	height: 50px;
	padding: 0;
	border-radius: 999px;
	translate: 0 -50%;
}

.p-lightbox__prev::after,
.p-lightbox__next::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 25px;
	height: 25px;
	background-color: #fff;
	mask-image: url("/wp-content/themes/edance-parent/assets/img/icon/btn-arrow.svg");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: url("/wp-content/themes/edance-parent/assets/img/icon/btn-arrow.svg");
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	transform: translate(-50%, -50%);
}

.p-lightbox__prev::after {
	transform: translate(-50%, -50%) scaleX(-1);
}

.p-lightbox__prev {
	left: 12px;
}

.p-lightbox__next {
	right: 12px;
}

.p-lightbox__counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	translate: -50% 0;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 768px) {
	.p-request-intro {
		margin-bottom: 30px;
		gap: 20px;
	}

	.p-request-preview {
		display: grid;
		grid-template-areas:
			"cover"
			"btn"
			"heading"
			"text";
		justify-items: center;
		gap: 20px;
		padding-bottom: 24px;
	}

	.p-request-preview__cover {
		grid-area: cover;
	}

	.p-request-preview__body {
		display: contents;
		max-width: none;
	}

	.p-request-heading {
		grid-area: heading;
		width: 100%;
		font-size: 20px;
	}

	.p-request-preview__text {
		grid-area: text;
		width: 100%;
	}

	.p-request-preview__btn {
		grid-area: btn;
	}

	.p-request-lead {
		font-size: 16px;
		line-height: 1.7;
	}

	.p-lightbox__prev,
	.p-lightbox__next {
		width: 44px;
		height: 44px;
	}
}
