/* =============================================================================
   Page: FAQ — よくあるご質問
   ========================================================================== */

.tt-faq-page {
	padding-bottom: clamp(40px, 6vw, 80px);
}

.tt-faq-page__body {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 18px;
	line-height: 1.9;
	color: #000000;
}

.tt-faq-page__intro {
	font-size: 18px;
	color: #000000;
	margin: 0 0 clamp(32px, 5vw, 48px);
	text-align: center;
}

@media (max-width: 768px) {
	.tt-faq-page__body,
	.tt-faq-page__intro {
		font-size: 16px;
	}

	.tt-faq-page__intro {
		text-align: left;
	}
}

/* --- 目次 (TOC) --------------------------------------------------- */

.tt-faq-toc {
	margin: 0 0 clamp(48px, 7vw, 80px);
	padding: clamp(24px, 4vw, 32px);
	background: #F7F7F7;
	border: 1px solid var(--tt-line, #DDDDDD);
	border-radius: 4px;
}

.tt-faq-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.tt-faq-toc__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.tt-faq-toc__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tt-faq-toc__item {
	margin: 0;
}

.tt-faq-toc__item a {
	display: block;
	padding: 12px 16px 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #000000;
	text-decoration: none;
	background: #FFFFFF;
	border: 1px solid var(--tt-line, #DDDDDD);
	border-radius: 2px;
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tt-faq-toc__item a::before {
	content: "›";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-55%);
	font-size: 18px;
	font-weight: 400;
	color: #888888;
	line-height: 1;
}

.tt-faq-toc__item a:hover,
.tt-faq-toc__item a:focus-visible {
	background: #000000;
	color: #FFFFFF;
	border-color: #000000;
	outline: none;
}

.tt-faq-toc__item a:hover::before,
.tt-faq-toc__item a:focus-visible::before {
	color: #FFFFFF;
}

@media (max-width: 768px) {
	.tt-faq-toc__item a {
		font-size: 14px;
		padding: 10px 14px 10px 26px;
	}
}

/* --- カテゴリーセクション ---------------------------------------- */

.tt-faq-section {
	margin-bottom: clamp(48px, 6vw, 72px);
	scroll-margin-top: 80px; /* アンカーリンク先頭スクロール時のオフセット */
}

.tt-faq-section:last-child {
	margin-bottom: 0;
}

.tt-faq-section__title {
	margin: 0 0 clamp(20px, 3vw, 28px);
	padding-bottom: 12px;
	font-family: "Montserrat", "Noto Sans JP", sans-serif;
	font-size: clamp(20px, 2.5vw, 26px);
	font-weight: 700;
	color: #000000;
	border-bottom: 2px solid #000000;
}

/* --- FAQ アイテム (details + summary) ----------------------------- */

.tt-faq-item {
	border-bottom: 1px solid var(--tt-line, #DDDDDD);
}

.tt-faq-item:first-of-type {
	border-top: 1px solid var(--tt-line, #DDDDDD);
}

/* default disclosure marker を消す (Safari/Chrome両対応) */
.tt-faq-item__question::-webkit-details-marker {
	display: none;
}

.tt-faq-item__question {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: clamp(16px, 2.5vw, 22px) 40px clamp(16px, 2.5vw, 22px) 0;
	font-size: clamp(15px, 1.7vw, 17px);
	font-weight: 600;
	line-height: 1.6;
	color: #000000;
	cursor: pointer;
	list-style: none;
	position: relative;
	transition: color 0.15s ease;
}

.tt-faq-item__question:hover {
	color: #444444;
}

.tt-faq-item__q {
	flex: 0 0 auto;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(16px, 1.9vw, 19px);
	font-weight: 700;
	color: #000000;
	line-height: 1.5;
}

.tt-faq-item__q-text {
	flex: 1 1 auto;
}

/* 開閉インジケーター (右端) — + / − */
.tt-faq-item__question::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 14px;
	height: 14px;
	background-image:
		linear-gradient(#000, #000),
		linear-gradient(#000, #000);
	background-size: 14px 2px, 2px 14px;
	background-position: center center, center center;
	background-repeat: no-repeat;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

.tt-faq-item[open] .tt-faq-item__question::after {
	background-size: 14px 2px, 0 0; /* 縦線消す → − になる */
}

.tt-faq-item__answer {
	padding: 0 0 clamp(20px, 3vw, 28px) clamp(28px, 3vw, 36px);
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.9;
	color: #333333;
}

.tt-faq-item__answer p {
	margin: 0 0 0.6em;
}

.tt-faq-item__answer p:last-child {
	margin-bottom: 0;
}

.tt-faq-item__answer strong {
	font-weight: 700;
	color: #000000;
}

/* answer 内のリンク */
.tt-faq-link,
.tt-faq-link:visited {
	color: #000000;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	font-weight: 600;
}

.tt-faq-link:hover,
.tt-faq-link:focus-visible {
	color: #444444;
	text-decoration-thickness: 2px;
	outline: none;
}

/* answer 内のリスト */
.tt-faq-bullets {
	list-style: none;
	margin: 8px 0 12px;
	padding: 0;
}

.tt-faq-bullets li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 6px;
}

.tt-faq-bullets li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.85em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #000000;
}

.tt-faq-bullets li:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.tt-faq-item__question {
		padding-right: 32px;
		gap: 8px;
	}

	.tt-faq-item__answer {
		padding-left: 24px;
	}
}
