/* よくあるご質問（/faq/）。共通部品は assets/css/info.css */
.faq-cat { gap: 18px; }
.faq-cat__list { display: flex; flex-direction: column; gap: 0; }
/* 一問一答：お客さまの顔＋質問の吹き出し／当社のロゴのマーク＋答えの吹き出し（ご相談の流れと同じ形） */
.faq-qa { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-bottom: 1.5px dashed #B0AAA3; }
.faq-qa:first-child { padding-top: 6px; }
.faq-qa__row { display: flex; gap: 14px; align-items: flex-start; }
.faq-qa__face { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--ink); padding: 0; font-size: 9px; line-height: 1.3; overflow: hidden; }
.faq-qa__face--us { display: flex; align-items: center; justify-content: center; background: var(--white); }
.faq-qa__face--us img { width: 42px; height: 42px; }
.faq-qa__q { flex: 1; min-width: 0; font-size: inherit; }
.faq-qa__btn {
	width: 100%; display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 10px;
	padding: 8px 18px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white);
	text-align: left; cursor: default; font: inherit; color: var(--ink);
}
.faq-qa__who { display: block; width: 100%; font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--gray); }
.faq-qa__qt { flex: 1; min-width: 0; font-family: var(--f-hand); font-weight: 600; font-size: 19px; line-height: 1.65; }
.faq-qa__chev { display: none; }
.faq-qa__ab { flex: 1; min-width: 0; padding: 8px 18px 12px; border: 2px solid var(--ink); border-radius: 14px; background: #FFF3CF; }
.faq-qa__at { font-size: 16px; line-height: 2; }
.faq-qa__at b { font-weight: 900; }
.faq-qa__link { font-weight: 700; color: var(--ink); }

.faq-notf {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 22px 28px; background: var(--tint); border: 2px solid var(--ink);
}
.faq-notf__title { font-weight: 900; font-size: 20px; line-height: 1.5; }
.faq-notf__lead { margin-top: 4px; font-size: 15.5px; line-height: 1.9; }
.faq-notf__btns { display: flex; gap: 12px; flex-shrink: 0; }
.faq-notf__btns .btn { height: 50px; font-size: 15px; }
.faq-notf__line { padding: 0 28px; }
.faq-notf__tel { gap: 4px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 0; font-weight: 900; white-space: nowrap; }

@media (max-width: 1023.98px) {
	.faq-notf { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767.98px) {
	.faq-cat { gap: 10px; }
	.faq-qa { gap: 8px; padding: 14px 0; }
	.faq-qa__row { gap: 10px; }
	.faq-qa__face { width: 44px; height: 44px; font-size: 8px; }
	.faq-qa__face--us img { width: 32px; height: 32px; }
	.faq-qa__btn { min-height: 56px; padding: 6px 12px 8px; align-items: center; }
	.faq-qa__qt { font-size: 16px; line-height: 1.6; }
	.faq-qa__ab { padding: 6px 12px 10px; }
	.faq-qa__at { font-size: 14.5px; line-height: 1.95; }

	/* JSが動くときだけ、たたむ（JSなしは全部開いたまま） */
	.js .faq-qa__btn { cursor: pointer; }
	.js .faq-qa__chev { display: block; flex-shrink: 0; font-size: 18px; font-weight: 900; line-height: 1; }
	.js .faq-qa__chev::before { content: "⌄"; }
	.js .faq-qa.is-open .faq-qa__chev::before { content: "⌃"; }
	.js .faq-qa:not(.is-open) .faq-qa__a { display: none; }
	.faq-qa__link { display: inline-flex; align-items: center; min-height: 44px; }

	.faq-notf { align-items: stretch; gap: 10px; padding: 16px; }
	.faq-notf__title { font-size: 17px; line-height: 1.55; }
	.faq-notf__lead { margin-top: 0; font-size: 14px; }
	.faq-notf__btns { flex-direction: column; gap: 10px; }
	.faq-notf__btns .btn { width: 100%; padding: 0; font-size: 16px; font-weight: 700; }
	.faq-notf__line { height: 52px !important; }
	.faq-notf__tel { height: 48px !important; border-radius: 10px; }
}

/* 答えの中のリンク（費用の目安・流れのページへ） */
.faq-qa__at .text-link { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* 3つ選ぶと、答えが出ます（.faq-try）。JSが動くときだけ出る */
.faq-try { gap: 14px; }
.faq-try__lead { font-size: 16px; line-height: 1.9; }
.faq-try__box { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; background: var(--tint); border: 2px solid var(--ink); }
.faq-try__log { display: flex; flex-direction: column; gap: 10px; }
.faq-try__row { animation: faq-try-in .25s ease-out; }
.faq-try__qb { flex: 1; min-width: 0; padding: 8px 18px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
.faq-try__qt { font-family: var(--f-hand); font-weight: 600; font-size: 19px; line-height: 1.65; }
.faq-try__typing { display: inline-block; font-size: 15px; color: var(--gray); }
.faq-try__typing::after { content: "…"; display: inline-block; animation: faq-try-dots 1s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; width: 1em; }
.faq-try__more { display: inline-block; margin-top: 4px; }
.faq-try__opts { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 70px; }
.faq-try__opts:empty { display: none; }
.faq-try__opt {
	min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
	font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer;
	box-shadow: 0 3px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.faq-try__opt:hover { background: #FFF3CF; }
.faq-try__opt:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.faq-try__opt:focus-visible, .faq-try__again:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.faq-try__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-left: 70px; }
.faq-try__end[hidden] { display: none; }
.faq-try__again { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes faq-try-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes faq-try-dots { from { width: 0; } to { width: 1em; } }
@media (prefers-reduced-motion: reduce) {
	.faq-try__row, .faq-try__typing::after { animation: none; }
	.faq-try__opt { transition: none; }
}
@media (max-width: 767.98px) {
	.faq-try__lead { font-size: 14.5px; }
	.faq-try__box { padding: 14px 12px; gap: 10px; }
	.faq-try__qb { padding: 6px 12px 8px; }
	.faq-try__qt { font-size: 16px; }
	.faq-try__opts, .faq-try__end { padding-left: 0; }
	.faq-try__opt { min-height: 46px; padding: 0 16px; font-size: 15px; }
}
.faq-try[hidden] { display: none; }
.faq-try__home { margin-top: 6px; }
.faq-try__reset { display: flex; justify-content: flex-end; }
.faq-try__reset[hidden] { display: none; }

/* 2026-10-12：お客さまの顔を差し替え */
.faq-qa__face--pic { display: block; background: var(--tint); }
.faq-qa__face--pic img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transform-origin: 50% 30%; }

/* 回答側の顔：担当者の似顔絵 */
.faq-qa__face--staff { display: block; background: var(--tint); }
.faq-qa__face--staff img { display: block; width: 100%; height: 100%; object-fit: cover; }
