@charset "UTF-8";
/*
 * FAQ（Simple FAQ EX）のページの装飾（構築仕様書 7章）
 * inc/faq.php が FAQ のトップ・カテゴリ一覧・詳細でだけ読み込む。
 * 亀岡ワッペンの FAQ をベースに、不動産投資スクエアの緑・金・ベージュに合わせる。
 */

.square-faq {
	--square-faq-gold: #b1a578;
	--square-faq-beige: #EAE5D6;
	--square-faq-pale: #f6f3e6;
	--square-faq-sub: #777;
}

.square-faq__intro {
	margin: 24px 0 32px;
}
.square-faq__intro p {
	margin: 0;
}
.square-faq__empty {
	margin: 32px 0;
	color: var(--square-faq-sub);
}

/* Q・A アイコン */
.square-faq-q,
.square-faq-a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
}
.square-faq-q {
	background: var(--color_main);
}
.square-faq-a {
	background: var(--square-faq-gold);
}
@media (max-width: 600px) {
	.square-faq-q,
	.square-faq-a {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}
}

/* ボタン */
.square-faq-btn {
	display: inline-block;
	min-width: 200px;
	padding: 12px 24px;
	border: 1px solid var(--color_main);
	border-radius: 4px;
	background: var(--color_main);
	color: #fff;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: opacity .25s;
}
.square-faq-btn:hover {
	opacity: .8;
	color: #fff;
}
.square-faq-btn.-outline {
	background: #fff;
	color: var(--color_main);
}
.square-faq-btn.-outline:hover {
	color: var(--color_main);
}

/* ==========================================================================
 * FAQ トップ: 大分類のカード（亀岡ベース・PC 2列／SP 1列）
 * ========================================================================== */
.square-faq-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 600px) {
	.square-faq-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
.square-faq-card {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--square-faq-beige);
	border-radius: 4px;
	background: #fff;
}
.square-faq-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}
.post_content .square-faq-card__title::before,
.square-faq-card__title::before {
	content: none;
}
.square-faq-card__count {
	margin: 4px 0 0;
	color: var(--square-faq-gold);
	font-size: 14px;
	text-align: center;
}
.square-faq-card__children {
	flex: 1;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.square-faq-card__children li + li {
	margin-top: 8px;
}
.square-faq-card__children a {
	display: block;
	padding-left: 1em;
	color: var(--color_text);
	text-decoration: none;
	position: relative;
}
.square-faq-card__children a::before {
	content: "›";
	position: absolute;
	left: 0;
	color: var(--color_main);
	font-weight: 700;
}
.square-faq-card__children a:hover {
	color: var(--color_main);
	text-decoration: underline;
}
.square-faq-card__childCount {
	margin-left: 4px;
	color: var(--square-faq-sub);
	font-size: 13px;
}
.square-faq-card__more {
	margin: 20px 0 0;
	text-align: center;
}
.square-faq-card__more .square-faq-btn {
	width: 100%;
	min-width: 0;
}

/* ==========================================================================
 * カテゴリ一覧: 見出し・チップ（2段）・質問の行（1カラム）
 * ========================================================================== */
.square-faq-list__head .c-pageTitle {
	margin-bottom: 8px;
}
.square-faq-list__count {
	margin: 0 0 24px;
	color: var(--square-faq-sub);
	font-size: 14px;
	text-align: right;
}
.square-faq-list__count span {
	margin: 0 2px;
	color: var(--color_main);
	font-weight: 700;
	font-size: 18px;
}

.square-faq-chips {
	margin: 0 0 24px;
}
.square-faq-chips__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.square-faq-chips__row + .square-faq-chips__row {
	margin-top: 12px;
}
.square-faq-chip {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .25s, color .25s;
}
/* 1段目: 大分類（緑の罫線・選択中は緑地） */
.square-faq-chips__row.-parent .square-faq-chip {
	border: 1px solid var(--color_main);
	background: #fff;
	color: var(--color_main);
}
.square-faq-chips__row.-parent .square-faq-chip:hover,
.square-faq-chips__row.-parent .square-faq-chip[aria-current="page"] {
	background: var(--color_main);
	color: #fff;
}
/* 2段目: 小分類（ベージュ地・選択中は金） */
.square-faq-chips__row.-child .square-faq-chip {
	border: 1px solid var(--square-faq-pale);
	background: var(--square-faq-pale);
	color: var(--color_text);
}
.square-faq-chips__row.-child .square-faq-chip:hover,
.square-faq-chips__row.-child .square-faq-chip[aria-current="page"] {
	border-color: var(--square-faq-gold);
	background: var(--square-faq-gold);
	color: #fff;
}
/* SP: 1段目は折り返さず横スクロール */
@media (max-width: 600px) {
	.square-faq-chips__row.-parent {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}
}

.square-faq-rows {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--square-faq-beige);
	list-style: none;
}
.square-faq-rows > li {
	margin: 0;
	border-bottom: 1px solid var(--square-faq-beige);
}
.square-faq-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 32px 16px 12px;
	color: var(--color_text);
	text-decoration: none;
	position: relative;
	transition: background-color .25s;
}
.square-faq-row::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--color_main);
	border-right: 2px solid var(--color_main);
	transform: translateY(-50%) rotate(45deg);
}
.square-faq-row:hover {
	background: var(--square-faq-pale);
	color: var(--color_text);
}
.square-faq-row .square-faq-q {
	width: 28px;
	height: 28px;
	font-size: 16px;
}
/* 質問文は省略せず全文を折り返す（1カラムで幅があり、2〜3行で収まる） */
.square-faq-row__text {
	flex: 1;
	font-weight: 500;
	line-height: 1.6;
}
.square-faq-row__label {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: 2px;
	background: var(--square-faq-pale);
	color: var(--square-faq-sub);
	font-size: 12px;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.square-faq-row {
		flex-wrap: wrap;
		padding: 14px 28px 14px 8px;
	}
	.square-faq-row__text {
		flex-basis: calc(100% - 40px);
	}
	.square-faq-row__label {
		margin-left: 40px;
	}
}
.square-faq-rows.-compact .square-faq-row {
	padding-top: 12px;
	padding-bottom: 12px;
}

.square-faq-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 32px 0 0;
}
.square-faq-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--square-faq-beige);
	border-radius: 4px;
	color: var(--color_text);
	text-decoration: none;
}
.square-faq-pagination .page-numbers.current {
	border-color: var(--color_main);
	background: var(--color_main);
	color: #fff;
}
.square-faq-pagination a.page-numbers:hover {
	background: var(--square-faq-pale);
}

/* ==========================================================================
 * 詳細
 * ========================================================================== */
.square-faq-single__head {
	margin: 0 0 24px;
}
.square-faq-single__title {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}
.square-faq-single__title .square-faq-q {
	margin-top: 2px;
}
/* カテゴリのバッジ（Q の見出しの上） */
.square-faq-single__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}
.square-faq-badge {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid var(--color_main);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	transition: opacity .25s;
}
.square-faq-badge.-parent {
	background: var(--color_main);
	color: #fff;
}
.square-faq-badge.-child {
	border-color: var(--square-faq-gold);
	background: var(--square-faq-gold);
	color: #fff;
}
.square-faq-badge:hover {
	opacity: .8;
	color: #fff;
}
@media (max-width: 600px) {
	.square-faq-badge {
		padding: 5px 14px;
		font-size: 14px;
	}
}
.square-faq-single__dates {
	margin: 12px 0 0;
	color: var(--square-faq-sub);
	font-size: 13px;
	text-align: right;
}

.square-faq-answer {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px 32px;
	border-radius: 4px;
	background: var(--square-faq-pale);
}
/* SP は A のアイコンを本文の上に置き、本文を全幅にする */
@media (max-width: 600px) {
	.square-faq-answer {
		flex-direction: column;
		gap: 12px;
		padding: 20px;
	}
}
.square-faq-answer__body {
	flex: 1;
	min-width: 0;
}
/* 回答: 段落の間隔と行間を広げ、最初の段落（質問への結論）を太字にする */
.post_content.square-faq-answer__body > p {
	margin: 0 0 1.2em;
	line-height: 1.9;
}
.post_content.square-faq-answer__body > p:first-child {
	font-weight: 600;
}
.post_content.square-faq-answer__body > :first-child {
	margin-top: 0;
}
.post_content.square-faq-answer__body > :last-child {
	margin-bottom: 0;
}

.square-faq-section {
	margin: 48px 0 0;
}
/* 見出しは記事の h2 と同じ左の縦線（緑と金）。style.css の .post_content h2 と同じ形 */
.square-faq-section__title {
	position: relative;
	margin: 0 0 16px;
	padding: 0 0 0 16px;
	font-size: 1.2em;
	line-height: 1.5;
}
.square-faq-section__title::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	height: 80%;
	margin: auto;
	background: repeating-linear-gradient(var(--color_htag) 0%, var(--color_htag) 50%, rgba(177, 165, 123, 1) 50%, rgba(177, 165, 123, 1) 100%);
}

.square-faq-related {
	margin: 0;
	padding: 0;
	list-style: none;
}
.square-faq-related li + li {
	margin-top: 12px;
}
.square-faq-related__link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	border: 1px solid var(--square-faq-beige);
	border-radius: 4px;
	color: var(--color_text);
	text-decoration: none;
	transition: background-color .25s;
}
.square-faq-related__link:hover {
	background: var(--square-faq-pale);
	color: var(--color_text);
}
.square-faq-related__thumb {
	flex-shrink: 0;
	width: 200px;
	padding: 3px 2px;
	border: 2px solid var(--square-faq-beige);
	line-height: 0;
}
.square-faq-related__img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.square-faq-related__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.square-faq-related__title {
	color: var(--color_main);
	font-weight: 600;
	line-height: 1.5;
}
.square-faq-related__date {
	color: var(--square-faq-sub);
	font-size: 13px;
}
@media (max-width: 600px) {
	.square-faq-related__thumb {
		width: 40%;
	}
	.square-faq-related__title {
		font-size: 14px;
	}
}

/* ==========================================================================
 * 相談・資料請求の枠（トップ・詳細）
 * ========================================================================== */
.square-faq-cta {
	margin: 48px 0 0;
	padding: 32px;
	border-radius: 4px;
	background: var(--square-faq-pale);
	text-align: center;
}
@media (max-width: 600px) {
	.square-faq-cta {
		padding: 24px 16px;
	}
}
.square-faq-cta__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}
.square-faq-cta__title::before {
	content: none;
}
.square-faq-cta__text {
	margin: 8px 0 0;
	font-size: 14px;
}
.square-faq-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 20px 0 0;
}
@media (max-width: 600px) {
	.square-faq-cta__buttons .square-faq-btn {
		width: 100%;
	}
}
