/* FAQ共通スタイル */

/* H1内 小見出し（「よくある質問」ラベル） */
.h1-sub {
	display: block;
	font-size: 0.38em;
	font-weight: 400;
	letter-spacing: 0.2em;
	margin-bottom: 0.4em;
	opacity: 0.85;
}


/* 戻るボタン */
.faq-back-btn {
	display: inline-block;
	margin: 2.5em 0 1em;
	padding: 0.6em 1.6em 0.6em 1.2em;
	background: #f0f0f0;
	color: #00538A;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 700;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.faq-back-btn::before {
	content: '◀';
	font-size: 0.6em;
	margin-right: 0.5em;
	vertical-align: middle;
}
.faq-back-btn:hover {
	background: #e0eaf3;
	border-color: #00538A;
	text-decoration: none;
}

/* FAQトップページ カテゴリリンクリスト */
.faq-index-list {
	list-style: none;
	margin: 2em 0;
	padding: 0;
}
.faq-index-list li {
	border-bottom: 1px solid #e0e0e0;
}
.faq-index-list li:first-child {
	border-top: 1px solid #e0e0e0;
}
.faq-index-list a {
	display: block;
	padding: 0.9em 1em 0.9em 1.8em;
	color: #00538A;
	text-decoration: none;
	font-weight: 700;
	position: relative;
}
.faq-index-list a::before {
	content: '▶';
	font-size: 0.6em;
	position: absolute;
	left: 0.5em;
	top: 50%;
	transform: translateY(-50%);
	color: #00538A;
}
.faq-index-list a:hover {
	background: #e8f0f8;
	text-decoration: underline;
}


/* カテゴリ間ナビゲーション */
.faq-cat-nav {
	display: flex;
	margin: 0 0 2em;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}
.faq-cat-nav a {
	flex: 1;
	text-align: center;
	padding: 0.65em 0.5em;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	font-size: 0.88em;
	border-right: 1px solid #ccc;
	line-height: 1.4;
}
.faq-cat-nav a:last-child {
	border-right: none;
}
.faq-cat-nav a.active {
	background: #00538A;
	color: #fff;
	font-weight: 700;
}
.faq-cat-nav a:hover:not(.active) {
	background: #e0eaf3;
	color: #00538A;
}
@media screen and (max-width: 767px) {
	.faq-cat-nav {
		flex-wrap: wrap;
	}
	.faq-cat-nav a {
		flex: 1 1 48%;
		font-size: 0.82em;
		border-bottom: 1px solid #ccc;
	}
}

/* ページ内TOC */
.faq-intro {
	margin: 0 0 1.25em;
	line-height: 1.75;
	color: #222;
}
.faq-toc {
	margin: 0 0 3em;
	padding: 0.35em 0.5em;
	background: #ebebeb;
	border: 1px solid #ddd;
	border-radius: 2px;
}
.faq-toc ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
.faq-toc li {
	margin: 0.35em 0;
	padding: 0 0.9em;
	border-right: 1px dotted #888;
	line-height: 1.5;
}
.faq-toc li:last-child {
	border-right: none;
}
.faq-toc a {
	color: #222;
	text-decoration: none;
	font-size: 0.95em;
}
.faq-toc a:hover { color: #00538A; text-decoration: underline; }
.faq-toc a::before {
	content: '▼';
	font-size: 0.55em;
	margin-right: 0.4em;
	vertical-align: middle;
	color: #333;
}

/* カテゴリセクション */
.faq-category {
	margin-bottom: 1em;
	padding: 0 0 2.5em;
	/* 固定ヘッダー分のオフセット */
	scroll-margin-top: 85px;
}
@media screen and (min-width:768px) and (max-width:1199px) {
	.faq-category {
		scroll-margin-top: 115px;
	}
}
@media screen and (max-width:767px) {
	.faq-category {
		scroll-margin-top: 65px;
	}
}
.faq-cat-heading {
	margin: 0 0 .45em !important;
	font-size: 1.35em;
	font-weight: 700;
	color: #00538A;
	line-height: 1.3;
}

/* Q&Aアイテム */
.faq-item {
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	background: #fff;
	padding: 1.1em 1.15em 1.15em;
	margin-bottom: 1.1em;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-q-row, .faq-a-row {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
}
.faq-badge {
	flex-shrink: 0;
	width: 1.85em;
	height: 1.85em;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75em;
	font-weight: 700;
	color: #fff;
	margin-top: 0.15em;
	border-radius: 3px;
}
.faq-badge-q { background: #00538A; }
.faq-badge-a { background: #666; }
.faq-q-text {
	flex: 1;
	margin: 0 !important;
	line-height: 1.75;
	font-weight: 700;
	color: #00538A;
	white-space: pre-line;
}
.faq-sep {
	margin: 0.85em 0;
	border: none;
	border-top: 1px dotted #bbb;
}
.faq-a-text {
	flex: 1;
	margin: 0 !important;
	line-height: 1.75;
	color: #222;
	white-space: pre-line;
}
@media screen and (max-width: 767px) {
	.faq-toc li { border-right: none; padding: 0.25em 0.75em; }
	.faq-cat-heading { font-size: 1.15em; }
}
