@charset "utf-8";
/* CSS Document */
/* ==========================================================
   交通事故の施術ページ　よくある質問
   ※ .traffic-faq 配下に閉じて記述（style.css の .main h2 等と干渉させない）
   ========================================================== */
.traffic-faq {
	--tf-sky: #00A5E6;
	--tf-sky-deep: #007DAF;
	--tf-sky-soft: #E6F8FF;
	--tf-sky-line: #89D5F3;
	--tf-orange: #FF7A00;
	--tf-orange-soft: #FFF4EC;
	--tf-line-green: #06C755;
	--tf-ink: #333333;
	--tf-muted: #6E7B82;
	--tf-line: #D7E6EE;
	/* 固定ヘッダーの高さ（js/traffic-faq.js が実測して上書き） */
	--tf-offset: 110px;
	margin: 10px 0 50px;
	color: var(--tf-ink);
	font-size: 15px;
	line-height: 1.8;
	line-break: strict;
	overflow-wrap: break-word;
	scroll-margin-top: calc(var(--tf-offset) + 10px);
}

/* 見出し（サイト共通の h2 デザインを継承） */
.traffic-faq > h2 {
	margin: 0 0 20px;
}

.traffic-faq p {
	margin: 0;
}

/* リード文 */
.traffic-faq .tf-lead {
	max-width: 40em;
	margin-bottom: 22px;
}

/* 検索 */
.traffic-faq .tf-search {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 22px;
}

.traffic-faq .tf-search label {
	font-size: 13px;
	font-weight: 700;
	color: var(--tf-sky-deep);
}

.traffic-faq .tf-search input {
	font-family: inherit;
	font-size: 16px;
	padding: 11px 14px;
	border: 2px solid var(--tf-sky-line);
	border-radius: 10px;
	width: 100%;
	background: #fff;
	color: var(--tf-ink);
	-webkit-appearance: none;
	appearance: none;
}

.traffic-faq .tf-search input:focus {
	outline: none;
	border-color: var(--tf-sky);
}

.traffic-faq .tf-hint {
	font-size: 12.5px;
	color: var(--tf-muted);
}

/* ジャンルボタン（スクロール追従） */
.traffic-faq .tf-chips {
	z-index: 5;
	background: #fff;
	margin: 0 0 24px;
	padding: 10px 2px;
	border-bottom: 2px dotted var(--tf-sky-line);
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	position: sticky;
top: 110px;
}

.traffic-faq .tf-chips::-webkit-scrollbar {
	height: 6px;
}

.traffic-faq .tf-chips::-webkit-scrollbar-thumb {
	background: var(--tf-sky-line);
	border-radius: 3px;
}

.traffic-faq .tf-chip {
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--tf-sky-deep);
	background: var(--tf-sky-soft);
	border: 1px solid var(--tf-sky-line);
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.6;
}

.traffic-faq .tf-chip:hover,
.traffic-faq .tf-chip:focus-visible {
	background: var(--tf-sky);
	color: #fff;
	outline: none;
}

.traffic-faq .tf-chip .tf-c {
	font-weight: 500;
	opacity: .75;
	margin-left: 4px;
	font-variant-numeric: tabular-nums;
}
@media(max-width:960px){
.traffic-faq .tf-chips {
	top: 78.16px;
}
}
/* まずはここから */
.traffic-faq .tf-first {
	background: var(--tf-sky-soft);
	border-radius: 16px;
	padding: 18px 20px;
	margin-bottom: 30px;
}

.traffic-faq .tf-first h3 {
	margin: 0 0 12px;
	font-size: 18px;
	color: var(--tf-sky-deep);
	font-weight: 700;
	line-height: 1.5;
}

.traffic-faq .tf-first ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
}

.traffic-faq .tf-first li {
	margin: 0;
}

.traffic-faq .tf-first li a {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--tf-sky-line);
	border-radius: 10px;
	padding: 12px 14px;
	text-decoration: none;
	color: var(--tf-ink);
	font-weight: 500;
	height: 100%;
	line-height: 1.7;
}

.traffic-faq .tf-first li a:hover,
.traffic-faq .tf-first li a:focus-visible {
	opacity: 1;
	border-color: var(--tf-sky);
	outline: none;
}

.traffic-faq .tf-first .tf-qn {
	flex: 0 0 auto;
	background: var(--tf-orange);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	border-radius: 999px;
	padding: 1px 9px;
	margin-top: 3px;
	font-variant-numeric: tabular-nums;
}

/* ジャンル別 */
.traffic-faq .tf-genres {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.traffic-faq .tf-genre {
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-margin-top: calc(var(--tf-offset) + 70px);
}

.traffic-faq .tf-genre h3 {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--tf-sky-deep);
	background: none;
	padding: 0;
}

.traffic-faq .tf-genre h3 .tf-no {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tf-sky);
	color: #fff;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.traffic-faq .tf-genre h3 .tf-cnt {
	font-size: 13px;
	color: var(--tf-muted);
	font-weight: 500;
}

/* アコーディオン */
.traffic-faq details {
	border: 1px solid var(--tf-line);
	border-radius: 10px;
	background: #fff;
	scroll-margin-top: calc(var(--tf-offset) + 70px);
}

.traffic-faq details[open] {
	border-color: var(--tf-sky-line);
	box-shadow: 0 1px 0 var(--tf-sky-line);
}

.traffic-faq summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	padding: 12px 14px;
	font-weight: 700;
	color: var(--tf-ink);
}

.traffic-faq summary::-webkit-details-marker {
	display: none;
}

.traffic-faq summary:focus-visible {
	outline: 2px solid var(--tf-sky);
	outline-offset: 2px;
	border-radius: 10px;
}

.traffic-faq .tf-q {
	color: var(--tf-sky);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.6;
}

.traffic-faq .tf-qt {
	line-height: 1.6;
	font-size: 15px;
}

.traffic-faq .tf-tog {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tf-sky-soft);
	color: var(--tf-sky-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	margin-top: 2px;
	font-weight: 400;
}

.traffic-faq details[open] .tf-tog {
	background: var(--tf-sky);
	color: #fff;
}

.traffic-faq .tf-ans {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	padding: 12px 14px 14px;
	border-top: 2px dotted var(--tf-sky-line);
}

.traffic-faq .tf-a {
	color: var(--tf-orange);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.6;
}

.traffic-faq .tf-ab {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.traffic-faq .tf-ab .tf-lead1 {
	font-weight: 700;
}

.traffic-faq .tf-more {
	font-size: 13px;
	color: var(--tf-muted);
}

.traffic-faq .tf-more a {
	color: var(--tf-sky-deep);
	text-decoration: none;
}

.traffic-faq .tf-more a:hover {
	text-decoration: underline;
}

/* 外部サイトへのリンクは末尾にアイコンを付ける（文字色・文字サイズに追従） */
.traffic-faq .tf-more a[target="_blank"]::after {
	content: "";
	display: inline-block;
	width: .85em;
	height: .85em;
	margin-left: .3em;
	vertical-align: -.03em;
	background-color: currentColor;
	-webkit-mask: url("../images/link_icon.svg") no-repeat center / contain;
	mask: url("../images/link_icon.svg") no-repeat center / contain;
}

/* マスク非対応のブラウザではアイコンを出さない（色付きの四角が出るのを防ぐ） */
@supports not ((mask-image: url("#")) or (-webkit-mask-image: url("#"))) {
	.traffic-faq .tf-more a[target="_blank"]::after {
		display: none;
	}
}

/* 相談導線 */
.traffic-faq .tf-cta {
	border: 2px solid var(--tf-orange);
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: center;
	background: var(--tf-orange-soft);
	margin-top: 4px;
}

.traffic-faq .tf-cta p {
	font-size: 14px;
	font-weight: 500;
	color: var(--tf-ink);
	text-align: center;
}

.traffic-faq .tf-btns {
	display: flex;
	/*flex-wrap: wrap;*/
	gap: 8px;
	width: 80%;
}

.traffic-faq .tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	padding: 8px 10px;
	text-decoration: none;
	line-height: 1.6;
	width: 49%;
	text-align: center;
	box-sizing: border-box;
}
.traffic-faq .tf-btn span{
	display: inline-block;
}

.traffic-faq .tf-btn,
.traffic-faq .tf-btn:hover {
	color: #fff;
}

.traffic-faq .tf-btn.tf-tel {
	background: var(--tf-orange);
}

.traffic-faq .tf-btn.tf-line {
	background: var(--tf-line-green);
}

.traffic-faq .tf-btn .tf-num {
	font-variant-numeric: tabular-nums;
	user-select: all;
	-webkit-user-select: all;
}

/* 該当なし */
.traffic-faq .tf-empty {
	display: none;
	color: var(--tf-muted);
	text-align: center;
	padding: 20px;
	border: 1px dashed var(--tf-line);
	border-radius: 10px;
}

.traffic-faq [hidden] {
	display: none !important;
}

/* レスポンシブ */
/* 固定ヘッダーの高さに合わせた既定値（JSが実測値で上書き） */
@media (max-width: 960px) {
	.traffic-faq {
		--tf-offset: 88px;
	}
}
@media (max-width: 768px) {
	.traffic-faq .tf-first {
		padding: 16px;
	}

	.traffic-faq .tf-first ol {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.traffic-faq {
		font-size: 14.5px;
	}

	.traffic-faq .tf-genre h3 {
		font-size: 17px;
	}

	.traffic-faq .tf-qt {
		font-size: 14.5px;
	}

	.traffic-faq summary {
		padding: 11px 12px;
	}

	.traffic-faq .tf-ans {
		padding: 12px 12px 13px;
	}

	.traffic-faq .tf-cta {
		padding: 12px;
	}

	.traffic-faq .tf-btns {
		width: 100%;
		flex-wrap: wrap;
	}

	.traffic-faq .tf-btn {
		width: 100%;
		justify-content: center;
	}
}
