@charset "UTF-8";

.faq {
	font-size: 16px;
}

/* common.css の .container { overflow: hidden; } による見切れ対策（FAQページのみ） */
.container.faq {
	overflow: visible;
	margin-block-end: 36px;
}

.faq .faq-title::before,
.faq .faq-title::after{
	content: none !important;
}

.faq-hero {
	margin: 0 0 46px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	background: transparent;
}

.faq-title {
	margin: 0;
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.08em;
	font-size: 58px;
	font-weight: 700;
	color: #0060CB;
	background: transparent;
	padding-block: 7px;
	padding-inline: 0px;
}

.faq-subtitle {
	font-size: 20px;
	font-weight: 700;
	padding-block-end: 13px;
}

.faq-subtitle,
.faq-lead {
	margin: 0.5rem 0 0;
}

.faq-list {
	border-top: 1px solid #d0d7de;
}

.faq-item {
	border-bottom: 1px solid #d0d7de;
}

.faq-item[data-state="closing"] .faq-chevron {
	transform: rotate(45deg);
}

.faq-question {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
	padding: 1rem 0.75rem 1rem 0;
	cursor: pointer;
	list-style: none;
}

/* marker reset */
.faq-question::-webkit-details-marker {
	display: none;
}
.faq-question::marker {
	content: "";
}

.faq-question:focus-visible {
	outline: 2px solid #005DC4;
	outline-offset: 4px;
}

.faq-badge {
	font-family: 'Inter', sans-serif;;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 4px;
	font-weight: 700;
	flex: 0 0 auto;
	
}

.faq-badge--q {
	background: #005DC4;
	color: #fff;
}

.faq-badge--a {
	background: #00D5F1;
	color: #fff;
}

.faq-question__text {
	flex: 1 1 auto;
	min-width: 0;
}

.faq-chevron {
	flex: 0 0 auto;
	display: inline-block;
	width: 10px;
	height: 10px;
	border-right: 2px solid #005DC4;
	border-bottom: 2px solid #005DC4;
	transform: rotate(45deg);
	transform-origin: center;
	transition: transform 160ms ease;
}

.faq-item[open] .faq-chevron {
	transform: rotate(225deg);
}

.faq-answer {
	padding: 0 0 1rem;
}

.faq-answer__inner {
	display: flex;
	gap: 0.75rem;
	padding: 0.75rem 0;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.faq-item[open] .faq-answer__inner {
	opacity: 1;
	transform: translateY(0);
}

.faq-item[data-state="closing"] .faq-answer__inner {
	opacity: 0;
	transform: translateY(-4px);
}

.faq-answer__text > :first-child {
	margin-top: 0;
}
.faq-answer__text > :last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	/* スマホ時は左右24pxの余白を確保 */
	.container.faq {
		padding-left: 24px;
		padding-right: 24px;
	}

	.faq-hero {
		margin: 0 0 32px;
	}
	
	.faq-lead {
		font-size: 14px;
	}

}