@charset "UTF-8";

/**
 * TOPページ よくある質問
 *
 * page-faq（style.css の .p-faq）と同じレイアウトだが、
 * TOP専用に独立させたスタイル。style.css 側には手を入れないこと。
 */

.p-top-faq {
	padding: 80px 0;
}

.p-top-faq__wrapp {
	margin: 40px 40px;
	padding: 40px 50px;
	background: #fff;
}

.p-top-faq__flexchild {
	margin-bottom: 24px;
}

.p-top-faq__flexchild:last-child {
	margin-bottom: 0;
}

.p-top-faq__headline {
	background: #fff9eb;
	font-size: 18px;
	font-weight: 700;
	min-height: 64px;
	display: flex;
	align-items: center;
	border-radius: 40px;
	padding: 0 40px 0 80px;
	position: relative;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.p-top-faq__headline:hover {
	opacity: .8;
}

.p-top-faq__headline::before {
	content: "";
	background-image: url(../images/case/icon-question.svg);
	display: inline-block;
	height: 20px;
	width: 20px;
	background-repeat: no-repeat;
	left: 40px;
	position: absolute;
	top: 20px;
}

.p-top-faq__headline::after {
	content: "";
	background-image: url(../images/common/icon-toggle.svg);
	display: inline-block;
	height: 10px;
	width: 18px;
	background-repeat: no-repeat;
	position: absolute;
	right: 40px;
	top: calc(50% - 5px);
	background-size: contain;
	transition: .2s;
}

.p-top-faq__headline.is-active::after {
	transition: .2s;
	transform: rotate(-180deg);
}

.p-top-faq__answer {
	font-size: 16px;
	line-height: 1.7;
	margin-top: 24px;
	margin-bottom: 22px;
	padding: 0 40px 0 80px;
	position: relative;
	display: none;
	text-align: justify;
}

.p-top-faq__answer.is-open {
	display: block;
}

.p-top-faq__answer::before {
	content: "";
	background-image: url(../images/case/icon-answer.svg);
	display: inline-block;
	height: 20px;
	width: 20px;
	background-repeat: no-repeat;
	left: 40px;
	position: absolute;
	top: 1px;
}

@media screen and (max-width: 767px) {
	.p-top-faq {
		padding: 48px 0;
	}

	.p-top-faq__wrapp {
		margin: 24px 20px;
		padding: 24px 16px;
	}

	.p-top-faq__headline {
		font-size: 16px;
		border-radius: 10px;
		padding: 20px 40px 24px 48px;
		text-align: justify;
	}

	.p-top-faq__headline::before {
		left: 16px;
		top: 24px;
	}

	.p-top-faq__headline::after {
		right: 16px;
	}

	.p-top-faq__answer {
		padding: 0 30px 0 48px;
	}

	.p-top-faq__answer::before {
		left: 16px;
	}
}
