/**
 * #faq
 */

.p-faq {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.p-faq__item {
	position: relative;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	cursor: pointer;
}

.p-faq__q,
.p-faq__a {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.p-faq__q {
	position: relative;
	padding-right: 50px;
}

.p-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

.p-faq__item.is-open .p-faq__panel {
	grid-template-rows: 1fr;
}

.p-faq__panel-inner {
	min-height: 0;
	overflow: hidden;
}

.p-faq__a {
	display: flex;
	padding-top: 15px;
}

.p-faq__mark {
	display: flex;
	flex: 0 0 50px;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: #fff;
	font-family: var(--ff-en);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.p-faq__mark--q {
	background: #1b6adb;
}

.p-faq__mark--a {
	background: #c50000;
}

.p-single-body .p-faq .p-faq__question,
.p-faq .p-faq__question {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding-top: 10px;
	color: #111;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}

.p-single-body .p-faq .p-faq__answer,
.p-faq .p-faq__answer {
	flex: 1;
	min-width: 0;
	padding-top: 13px;
	color: #111;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
}

.p-single-body .p-faq .p-faq__answer p,
.p-faq .p-faq__answer p {
	margin: 0 0 0.6em;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
}

.p-single-body .p-faq .p-faq__answer p:last-child,
.p-faq .p-faq__answer p:last-child {
	margin-bottom: 0;
}

.p-faq__switch {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.p-faq__switch:focus-visible {
	outline: 2px solid #1b6adb;
	outline-offset: -2px;
}

.p-faq__answer a {
	position: relative;
	z-index: 2;
}

.p-faq__icon,
.p-faq__icon::before {
	display: block;
	width: 20px;
	height: 2.5px;
	border-radius: 2.5px;
	background: #111;
}

.p-faq__icon {
	position: absolute;
	top: 23px;
	right: 0;
}

.p-faq__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: rotate(90deg);
	transition: transform 0.35s ease;
}

.p-faq__item.is-open .p-faq__icon::before {
	transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
	.p-faq__panel,
	.p-faq__icon::before {
		transition: none;
	}
}

@media (max-width: 768px) {
	.p-faq__item {
		padding: 16px;
	}

	.p-faq__q,
	.p-faq__a {
		gap: 12px;
	}

	.p-faq__icon {
		top: 19px;
	}

	.p-faq__mark {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
		font-size: 22px;
	}

	.p-single-body .p-faq .p-faq__question,
	.p-faq .p-faq__question {
		padding-top: 6px;
		font-size: 16px;
	}

	.p-single-body .p-faq .p-faq__answer,
	.p-faq .p-faq__answer {
		padding-top: 8px;
	}
}
