/*
 * よくある質問（寺原畳店） スタイル
 *
 * すべてのセレクタを .tfq 配下に閉じ込め、SWELL本体や他のブロックに影響しないようにしている。
 * 配色はTOPの各セクション（.ttop-*）と共通のブランドカラー。
 */

.tfq,
.tfq *,
.tfq *::before,
.tfq *::after {
	box-sizing: border-box;
}

.tfq {
	--tfq-green: #6B7F4A;
	--tfq-dark: #3E4A1F;
	--tfq-brown: #4A3B2A;
	--tfq-gold: #B8935A;
	--tfq-cream: #F6F1E7;
	--tfq-paper: #FFFDF8;
	--tfq-line: rgba(74, 59, 42, .14);
	--tfq-serif: "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
	--tfq-max: 880px;                           /* 本文（Q&A）の最大幅 */
	--tfq-gutter: clamp(1.25rem, 4vw, 2rem);    /* フルワイド帯の左右の最低余白 */

	max-width: var(--tfq-max);
	margin: 0 auto;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	color: var(--tfq-brown);
	line-height: 1.8;
}

/* SWELLの本文スタイル（.post_content p / a / svg 等）をスコープ内でリセット */
.tfq p {
	margin: 0;
	padding: 0;
}

.tfq svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tfq [hidden] {
	display: none !important;
}

/* ---------- 導入文 ---------- */
.tfq .tfq__intro {
	margin-bottom: 2rem;
	font-size: .9375rem;
	text-align: center;
}

/* ---------- 検索・カテゴリータブ ---------- */
/*
 * 検索・タブ／お問い合わせ案内は、画面幅いっぱいの帯にする（中身は本文と同じ幅にそろえる）。
 * SWELLの「全幅」ブロック（.alignfull）と同じ 100vw ＋負のマージンの手法で、
 * 1カラムのページ（サイドバーなし）での使用を前提としている。
 */
.tfq__controls,
.tfq__cta {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: max(var(--tfq-gutter), calc(50vw - var(--tfq-max) / 2));
	padding-right: max(var(--tfq-gutter), calc(50vw - var(--tfq-max) / 2));
	background-color: var(--tfq-cream);
}

.tfq__controls {
	margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
	padding-top: clamp(1.75rem, 4vw, 2.5rem);
	padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.tfq__search + .tfq__nav {
	margin-top: 1.25rem;
}

.tfq__search-label {
	display: block;
	margin-bottom: .5rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--tfq-green);
}

.tfq__search-field {
	position: relative;
}

.tfq__search-icon {
	position: absolute;
	top: 50%;
	left: 1rem;
	width: 1.125rem;
	height: 1.125rem;
	transform: translateY(-50%);
	color: var(--tfq-green);
	pointer-events: none;
}

.tfq .tfq__search-input {
	display: block;
	width: 100%;
	height: 3rem;
	margin: 0;
	padding: 0 1rem 0 2.75rem;
	font-family: inherit;
	font-size: 1rem; /* 16px未満だとiOSで入力時にズームされるため */
	color: var(--tfq-brown);
	background-color: #fff;
	border: 1px solid var(--tfq-line);
	border-radius: 999px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tfq .tfq__search-input::placeholder {
	color: rgba(74, 59, 42, .45);
}

.tfq .tfq__search-input:focus {
	border-color: var(--tfq-green);
	box-shadow: 0 0 0 3px rgba(107, 127, 74, .18);
}

.tfq__nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.tfq .tfq__tab {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem 1rem;
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.4;
	color: var(--tfq-dark) !important; /* SWELLのリンク色（.post_content a）に負けないため */
	text-decoration: none !important;
	background-color: #fff;
	border: 1px solid var(--tfq-line);
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tfq__tab-count {
	font-family: var(--tfq-serif);
	font-size: .75rem;
	font-weight: 500;
	color: var(--tfq-gold);
	transition: color .2s ease;
}

.tfq .tfq__tab:hover {
	border-color: var(--tfq-green);
}

.tfq .tfq__tab.is-active {
	color: #fff !important;
	background-color: var(--tfq-dark);
	border-color: var(--tfq-dark);
}

.tfq .tfq__tab.is-active .tfq__tab-count {
	color: rgba(255, 255, 255, .7);
}

.tfq .tfq__tab:focus-visible {
	outline: 2px solid var(--tfq-green);
	outline-offset: 2px;
}

/* ---------- カテゴリー ---------- */
.tfq__group + .tfq__group {
	margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.tfq__group {
	scroll-margin-top: 100px; /* SWELLの固定ヘッダーに隠れないように */
}

/* クラスを重ねて詳細度を上げ、SWELLの見出し装飾（.post_content h2）に勝たせている */
.tfq__group-title.tfq__group-title {
	position: static;
	display: flex !important;
	align-items: baseline;
	gap: .875rem;
	margin: 0 0 1rem !important;
	padding: 0 0 .875rem !important;
	font-family: var(--tfq-serif) !important;
	font-size: clamp(1.25rem, 2.6vw, 1.5rem) !important;
	font-weight: 600 !important;
	font-style: normal !important;
	letter-spacing: .08em !important;
	line-height: 1.5 !important;
	text-align: left !important;
	color: var(--tfq-dark) !important;
	background: none !important;
	border: 0 !important;
	border-bottom: 1px solid var(--tfq-dark) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

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

.tfq__group-num {
	font-size: .875rem;
	letter-spacing: .04em;
	color: var(--tfq-gold);
}

/* ---------- Q&A アコーディオン ---------- */
.tfq .tfq__item {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--tfq-line);
}

.tfq .tfq__q {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 0;
	padding: 1.25rem .25rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.7;
	color: var(--tfq-dark);
	background: none;
	border: 0;
	list-style: none;
	cursor: pointer;
	transition: color .2s ease;
}

/* ブラウザ標準の三角マーカーを消す */
.tfq .tfq__q::-webkit-details-marker {
	display: none;
}

.tfq .tfq__q::marker {
	content: "";
}

.tfq .tfq__q:hover {
	color: var(--tfq-green);
}

.tfq .tfq__q:focus-visible {
	outline: 2px solid var(--tfq-green);
	outline-offset: 2px;
	border-radius: 4px;
}

.tfq__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	font-family: var(--tfq-serif);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	border-radius: 50%;
}

.tfq__mark--q {
	color: #fff;
	background-color: var(--tfq-dark);
}

.tfq__mark--a {
	color: var(--tfq-gold);
	background-color: #fff;
	border: 1px solid var(--tfq-gold);
}

.tfq__q-text {
	flex: 1 1 auto;
	padding-top: .125rem;
}

/* ＋／− アイコン */
.tfq__toggle {
	position: relative;
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: .125rem;
	border: 1px solid var(--tfq-line);
	border-radius: 50%;
	transition: background-color .25s ease, border-color .25s ease;
}

.tfq__toggle::before,
.tfq__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: .625rem;
	height: 1.5px;
	margin: -.75px 0 0 -.3125rem;
	background-color: var(--tfq-dark);
	transition: transform .3s ease, background-color .25s ease;
}

.tfq__toggle::after {
	transform: rotate(90deg);
}

.tfq__item[open] .tfq__toggle {
	background-color: var(--tfq-dark);
	border-color: var(--tfq-dark);
}

.tfq__item[open] .tfq__toggle::before,
.tfq__item[open] .tfq__toggle::after {
	background-color: #fff;
}

.tfq__item[open] .tfq__toggle::after {
	transform: rotate(0deg);
}

.tfq__a {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding: 1.25rem 1.25rem 1.25rem .25rem;
	background-color: var(--tfq-paper);
	border-radius: 6px;
}

.tfq__a-text {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: .25rem;
	font-size: .9375rem;
	line-height: 1.95;
	letter-spacing: .02em;
}

.tfq .tfq__a-text p + p {
	margin-top: .75em;
}

.tfq .tfq__a-text a {
	color: var(--tfq-green);
	text-decoration: underline;
	text-underline-offset: .2em;
}

/* JSが開閉アニメーションを付けている間 */
.tfq__item.is-animating {
	overflow: hidden;
}

/* ---------- 検索結果なし ---------- */
.tfq .tfq__empty {
	padding: 2.5rem 1rem;
	font-size: .9375rem;
	text-align: center;
	color: var(--tfq-brown);
	background-color: var(--tfq-cream);
	border-radius: 6px;
}

.tfq mark.tfq__hit {
	padding: 0 .1em;
	color: inherit;
	background: linear-gradient(transparent 55%, rgba(184, 147, 90, .35) 55%);
}

/* ---------- お問い合わせ案内 ---------- */
.tfq__cta {
	margin-top: clamp(3.5rem, 8vw, 5rem);
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
	text-align: center;
}

.tfq .tfq__cta-title {
	margin-bottom: .75rem;
	font-family: var(--tfq-serif);
	font-size: clamp(1.125rem, 2.4vw, 1.375rem);
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.6;
	color: var(--tfq-dark);
	word-break: auto-phrase; /* 文節で改行（対応ブラウザのみ） */
	text-wrap: balance;
}

.tfq .tfq__cta-text {
	margin-bottom: 1.75rem;
	font-size: .875rem;
}

.tfq__cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
}

.tfq .tfq__cta-tel {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	color: var(--tfq-dark) !important;
	text-decoration: none !important;
	text-align: left;
}

.tfq .tfq__cta-tel svg {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--tfq-green);
}

.tfq__cta-tel-num {
	display: block;
	font-family: var(--tfq-serif);
	font-size: clamp(1.5rem, 4vw, 1.875rem);
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.2;
}

.tfq__cta-hours {
	display: block;
	margin-top: .25rem;
	font-size: .75rem;
	letter-spacing: .04em;
	color: var(--tfq-brown);
}

.tfq .tfq__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: .875rem;
	padding: 1rem 1.75rem 1rem 2rem;
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.4;
	color: #fff !important;
	text-decoration: none !important;
	background-color: var(--tfq-dark);
	border: 1px solid var(--tfq-dark);
	border-radius: 999px;
	transition: background-color .25s ease, color .25s ease;
}

.tfq__cta-arrow {
	width: .45em;
	height: .45em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s ease;
}

.tfq .tfq__cta-btn:hover,
.tfq .tfq__cta-btn:focus-visible {
	color: var(--tfq-dark) !important;
	background-color: #fff;
}

.tfq .tfq__cta-btn:hover .tfq__cta-arrow {
	transform: translateX(3px) rotate(45deg);
}

.tfq .tfq__cta-btn:focus-visible {
	outline: 2px solid var(--tfq-green);
	outline-offset: 3px;
}

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
	.tfq__nav {
		flex-wrap: nowrap;
		margin: 0 calc(-1 * var(--tfq-gutter));
		padding: 0 var(--tfq-gutter) .25rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.tfq__nav::-webkit-scrollbar {
		display: none;
	}

	.tfq .tfq__tab {
		flex: 0 0 auto;
		padding: .45rem .875rem;
		font-size: .8125rem;
	}

	.tfq .tfq__q {
		gap: .75rem;
		padding: 1rem 0;
		font-size: .9375rem;
	}

	.tfq__mark {
		width: 1.75rem;
		height: 1.75rem;
		font-size: .875rem;
	}

	.tfq__a {
		gap: .75rem;
		padding: 1rem 1rem 1rem .5rem;
	}

	.tfq__a-text {
		padding-top: .125rem;
		font-size: .875rem;
		line-height: 1.85;
	}

	.tfq__cta-actions {
		flex-direction: column;
	}

	.tfq .tfq__cta-btn {
		justify-content: center;
		width: 100%;
		max-width: 20rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tfq *,
	.tfq *::before,
	.tfq *::after {
		transition: none !important;
	}
}
