/* よくある質問ブロック - フロントエンドスタイル */
.wp-block-medical-service-faq {
	margin: 40px 0;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.faq-section {
	background: #fff;
}

.faq-title-wrapper {
	margin-bottom: 24px;
}

.faq-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #000;
}

.faq-title-line {
	width: 100%;
	height: 1px;
	background-color: #d1d5dc;
	margin-bottom: 16px;
}

.faq-items {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.faq-item {
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	transition: background-color 0.2s ease;
}

.faq-item:last-child {
	border-bottom: 1px solid #e5e7eb;
}

.faq-item.active {
	background: #f3f4f6;
}

.faq-question-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: transparent;
	border: none;
	outline: none;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.2s ease;
}

.faq-question-header:focus {
	outline: none;
	border: none;
	box-shadow: none;
}

.faq-question-header:focus-visible {
	outline: 2px solid #0693E3;
	outline-offset: 2px;
}

.faq-question-header:hover {
	background: #f9fafb;
}

.faq-item.active .faq-question-header {
	background: #f3f4f6;
}

.faq-question-content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-weight: 600;
	font-size: 14px;
	flex-shrink: 0;
}

.faq-icon-q {
	background-color: #0693E3;
	color: #ffffff;
}

.faq-icon-a {
	background-color: #00A32A;
	color: #ffffff;
}

.faq-question-text {
	font-size: 16px;
	font-weight: 600;
	color: #000;
	line-height: 1.6;
	flex: 1;
	margin: 0;
	padding: 0;
}

.faq-accordion-icon {
	display: flex;
	align-items: center;
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 12px;
}

.faq-question-header[aria-expanded="true"] .faq-accordion-icon {
	transform: rotate(180deg);
}

.faq-answer-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: #fff;
}

.faq-answer-content.active {
	max-height: 2000px;
	transition: max-height 0.3s ease;
}

.faq-answer-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px 24px 20px;
}

.faq-answer-text {
	font-size: 15px;
	color: #374151;
	line-height: 1.8;
	flex: 1;
}

.faq-item.active .faq-answer-content {
	background: #f3f4f6;
}

.faq-item.active .faq-answer-inner {
	background: #f3f4f6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.wp-block-medical-service-faq {
		margin: 30px 0;
	}
	
	.faq-title {
		font-size: 1.25rem;
	}
	
	.faq-question-header {
		padding: 14px 16px;
	}
	
	.faq-answer-inner {
		padding: 14px 16px 20px 16px;
	}
	
	.faq-icon {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	
	.faq-question-text {
		font-size: 15px;
	}
	
	.faq-answer-text {
		font-size: 14px;
	}
}

