@charset "UTF-8";

/* ==========================================================================
   かえりの森 - ペット用山林散骨
   よくある質問（FAQ）ページ固有スタイル (faq.css)
   ========================================================================== */

/* ================= ヒーローエリア ================= */
.p-faq-hero {
	position: relative;
	padding: 48px 0 64px;
	background-color: #FAF7F2;
	overflow: hidden;
}

.p-faq-hero__pattern {
	position: absolute;
	inset: 0;
	opacity: 0.15;
	background-image: radial-gradient(#E86A33 1px, transparent 1px);
	background-size: 16px 16px;
	pointer-events: none;
}

.p-faq-hero__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px;
	position: relative;
	z-index: 10;
	text-align: center;
}

.p-faq-hero__badge {
	display: inline-block;
	padding: 4px 14px;
	background-color: #FFEDD5;
	color: #C2410C;
	font-size: 13px;
	font-weight: 700;
	border-radius: 9999px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.p-faq-hero__title {
	font-size: 32px;
	font-weight: 700;
	color: #333333;
	margin-bottom: 12px;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.p-faq-hero__title {
		font-size: 40px;
	}
}

.p-faq-hero__desc {
	color: #666666;
	line-height: 1.7;
	margin-bottom: 32px;
	font-size: 15px;
}

/* ================= 質問を絞り込むカード ================= */
.faq-filter-card {
	background-color: #FFFFFF;
	border-radius: 20px;
	border: 1px solid #E5DCD3;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	padding: 24px 20px;
	text-align: left;
}

@media (min-width: 768px) {
	.faq-filter-card {
		padding: 32px 36px;
	}
}

.faq-filter-card-header {
	margin-bottom: 24px;
}

.faq-filter-card-title {
	font-size: 20px;
	font-weight: 700;
	color: #333333;
	margin-bottom: 4px;
}

.faq-filter-card-desc {
	font-size: 13px;
	color: #666666;
}

@media (min-width: 768px) {
	.faq-filter-card-desc {
		font-size: 15px;
	}
}

.faq-filter-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #333333;
	margin-bottom: 8px;
}

@media (min-width: 768px) {
	.faq-filter-label {
		font-size: 16px;
	}
}

/* キーワード検索ボックス */
.faq-search-block {
	margin-bottom: 20px;
}

.faq-search-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	width: 100%;
}

.faq-search-input {
	width: 100%;
	padding: 13px 40px 13px 16px;
	background-color: #FFFFFF;
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	font-size: 15px;
	color: #333333;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.faq-search-input:focus {
	border-color: #E86A33;
	box-shadow: 0 0 0 3px rgba(232, 106, 51, 0.18);
}

.faq-search-clear {
	display: none;
	position: absolute;
	right: 14px;
	top: 11px;
	background: none;
	border: none;
	color: #9CA3AF;
	cursor: pointer;
	padding: 6px;
	z-index: 2;
}

.faq-search-clear:hover {
	color: #4B5563;
}

.faq-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 20px;
	background-color: #E86A33;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
	white-space: nowrap;
	box-sizing: border-box;
}

.faq-search-btn:hover {
	background-color: #D35A25;
}

@media (min-width: 768px) {
	.faq-search-box {
		flex-direction: row;
		gap: 8px;
	}

	.faq-search-input {
		flex: 1;
		width: auto;
	}

	.faq-search-clear {
		right: 120px;
		top: 50%;
		transform: translateY(-50%);
	}

	.faq-search-btn {
		width: auto;
		padding: 13px 28px;
	}
}

/* 区切り線「または」 */
.faq-or-divider {
	position: relative;
	text-align: center;
	margin: 24px 0;
}

.faq-or-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #E5DCD3;
}

.faq-or-divider span {
	position: relative;
	display: inline-block;
	padding: 0 16px;
	background-color: #FFFFFF;
	font-size: 13px;
	color: #888888;
}

/* ご状況別カードグリッド */
.faq-situation-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

@media (min-width: 768px) {
	.faq-situation-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

.faq-situation-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	background-color: #FFFFFF;
	border: 1px solid #E5DCD3;
	border-radius: 12px;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
	.faq-situation-card {
		padding: 14px 16px;
	}
}

.faq-situation-card:hover {
	border-color: #E86A33;
	background-color: #FFF9F5;
}

.faq-situation-card.is-active {
	border: 2px solid #E86A33;
	background-color: #FFF7ED;
	box-shadow: 0 2px 8px rgba(232, 106, 51, 0.15);
}

.faq-situation-radio {
	width: 18px;
	height: 18px;
	border: 2px solid #D1D5DB;
	border-radius: 50%;
	margin-top: 2px;
	flex-shrink: 0;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.faq-situation-card.is-active .faq-situation-radio {
	border-color: #E86A33;
	background-color: #E86A33;
	box-shadow: inset 0 0 0 3px #FFFFFF;
}

.faq-situation-body {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	row-gap: 2px;
	column-gap: 8px;
	flex: 1;
}

.faq-situation-title {
	grid-column: 1;
	grid-row: 1;
	font-weight: 700;
	color: #333333;
	line-height: 1.4;
	font-size: 15px;
}

@media (min-width: 768px) {
	.faq-situation-title {
		font-size: 17px;
	}
}

.faq-situation-count {
	grid-column: 2;
	grid-row: 1;
	font-size: 12px;
	font-weight: 700;
	color: #E86A33;
	white-space: nowrap;
}

.faq-situation-desc {
	grid-column: 1 / -1;
	grid-row: 2;
	font-size: 12px;
	color: #666666;
	line-height: 1.4;
	margin: 0;
}

@media (min-width: 768px) {
	.faq-situation-desc {
		font-size: 13px;
	}
}

/* ================= よく読まれている質問クイックタグ ================= */
.faq-popular-wrap {
	margin-top: 32px;
	text-align: left;
}

.faq-popular-label {
	display: block;
	font-weight: 700;
	color: #4B5563;
	margin-bottom: 12px;
	font-size: 14px;
}

.faq-popular-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.faq-popular-tag {
	display: inline-block;
	padding: 8px 16px;
	background-color: #FFFFFF;
	border: 1px solid #D1D5DB;
	border-radius: 9999px;
	font-size: 13px;
	color: #333333;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: left;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
	.faq-popular-tag {
		font-size: 15px;
	}
}

.faq-popular-tag:hover {
	background-color: #FFF7ED;
	border-color: #E86A33;
	color: #E86A33;
}

/* ================= カテゴリ目次インデックス ================= */
.faq-index-section {
	background-color: #FFFFFF;
	border-radius: 16px;
	border: 1px solid #E5DCD3;
	padding: 24px 20px;
	margin-bottom: 48px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
	.faq-index-section {
		padding: 32px;
	}
}

.faq-index-header {
	margin-bottom: 20px;
}

.faq-index-title {
	font-size: 22px;
	font-weight: 700;
	color: #333333;
	margin-bottom: 4px;
}

.faq-index-desc {
	font-size: 13px;
	color: #666666;
}

@media (min-width: 768px) {
	.faq-index-desc {
		font-size: 15px;
	}
}

.faq-index-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

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

.faq-index-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	background-color: #FAF7F2;
	border: 1px solid #E5DCD3;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.faq-index-card:hover {
	background-color: #FFFFFF;
	border-color: #E86A33;
	box-shadow: 0 2px 8px rgba(232, 106, 51, 0.12);
}

.faq-index-card-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.faq-index-card-num {
	font-family: monospace;
	font-weight: 700;
	color: #E86A33;
	font-size: 16px;
}

.faq-index-card-title {
	font-weight: 700;
	color: #333333;
	font-size: 14px;
}

@media (min-width: 768px) {
	.faq-index-card-title {
		font-size: 16px;
	}
}

.faq-index-card-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.faq-index-card-count {
	font-size: 13px;
	color: #666666;
}

.faq-index-card-icon {
	font-size: 12px;
	color: #E86A33;
}

/* ================= 絞り込み状態バナー ================= */
.faq-filter-banner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background-color: #FFF7ED;
	border: 1px solid #FFEDD5;
	border-radius: 12px;
	padding: 14px 20px;
	margin-bottom: 32px;
	color: #C2410C;
}

.faq-filter-banner-text {
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.faq-filter-banner-reset {
	background-color: #FFFFFF;
	border: 1px solid #FFEDD5;
	color: #C2410C;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.faq-filter-banner-reset:hover {
	background-color: #C2410C;
	color: #FFFFFF;
}

/* ================= カテゴリ別セクション ================= */
.faq-category-section {
	margin-bottom: 56px;
}

.faq-category-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 16px;
}

.faq-category-title-wrap {
	display: flex;
	align-items: baseline;
	gap: 12px;
	width: 100%;
	padding-bottom: 10px;
	border-bottom: 3px solid #E86A33;
}

.faq-category-num {
	font-size: 26px;
	font-weight: 700;
	color: #E86A33;
	font-family: monospace;
}

.faq-category-title {
	font-size: 20px;
	font-weight: 700;
	color: #333333;
}

.faq-category-count {
	margin-left: auto;
	padding-right: 2px;
	font-size: 14px;
	color: #666666;
	font-weight: 700;
}

@media (min-width: 768px) {
	.faq-category-header {
		flex-direction: row;
		justify-content: space-between;
		align-items: baseline;
		gap: 0;
		padding-bottom: 12px;
		border-bottom: 3px solid #E86A33;
		margin-bottom: 20px;
	}

	.faq-category-title-wrap {
		width: auto;
		padding-bottom: 0;
		border-bottom: none;
	}

	.faq-category-title {
		font-size: 24px;
	}

	.faq-category-count {
		font-size: 16px;
	}
}

.faq-category-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-category-footer {
	text-align: right;
	margin-top: 16px;
}

.faq-back-to-index {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666666;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.faq-back-to-index:hover {
	color: #E86A33;
}

/* ================= FAQアイテム・アコーディオン ================= */
.faq-item {
	background-color: #FFFFFF;
	border-radius: 12px;
	border: 1px solid #E5DCD3;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	overflow: hidden;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
	margin-bottom: 10px;
}

@media (min-width: 768px) {
	.faq-item {
		margin-bottom: 14px;
	}
}

.faq-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	border-color: #D1D5DB;
}

.faq-item-highlight {
	border-color: #E86A33 !important;
	box-shadow: 0 0 0 3px rgba(232, 106, 51, 0.3) !important;
	animation: faqPulse 1.5s ease-out;
}

@keyframes faqPulse {
	0% {
		box-shadow: 0 0 0 6px rgba(232, 106, 51, 0.4);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(232, 106, 51, 0);
	}
}

.faq-button {
	width: 100%;
	padding: 18px 20px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	outline: none;
}

.faq-question-wrap {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex: 1;
}

.faq-q-label {
	padding: 3px 8px;
	border-radius: 6px;
	background-color: #FFEDD5;
	color: #C2410C;
	font-weight: 700;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.badge-cat {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	margin-bottom: 4px;
	background-color: #F3F4F6;
	color: #4B5563;
}

@media (min-width: 768px) {
	.badge-cat {
		font-size: 13px;
	}
}

.faq-q-text {
	font-size: 16px;
	font-weight: 700;
	color: #333333;
	line-height: 1.45;
}

@media (min-width: 768px) {
	.faq-q-text {
		font-size: 18px;
	}
}

.faq-icon-arrow {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #FAF7F2;
	color: #E86A33;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	margin-top: 2px;
}

.faq-icon-arrow i {
	font-size: 12px;
}

.faq-item.open .faq-icon-arrow {
	transform: rotate(180deg);
}

/* アコーディオン本文 */
.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
	opacity: 0;
}

.accordion-content.open {
	max-height: 1200px;
	transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
	opacity: 1;
}

.faq-answer-inner {
	padding: 18px 20px;
	border-top: 1px solid #F3F4F6;
	background-color: #FCFBF9;
}

.faq-answer-wrap {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.faq-a-label {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: #E86A33;
	color: #FFFFFF;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.faq-a-text {
	color: #333333;
	line-height: 1.75;
	flex: 1;
	font-size: 14px;
}

@media (min-width: 768px) {
	.faq-a-text {
		font-size: 16px;
	}
}

.faq-a-text p + p {
	margin-top: 10px;
}

.faq-a-list {
	list-style-type: disc;
	padding-left: 20px;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ================= 該当結果なし表示 ================= */
.no-results-box {
	text-align: center;
	padding: 48px 16px;
	background-color: #FFFFFF;
	border-radius: 16px;
	border: 1px dashed #E5DCD3;
	margin: 32px 0;
}

.no-results-icon {
	font-size: 40px;
	color: #D1D5DB;
	margin-bottom: 12px;
}

.no-results-title {
	font-size: 18px;
	font-weight: 700;
	color: #333333;
	margin-bottom: 4px;
}

.no-results-desc {
	font-size: 14px;
	color: #666666;
	margin-bottom: 16px;
}

.btn-reset-search {
	display: inline-block;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 700;
	background-color: #E86A33;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.btn-reset-search:hover {
	background-color: #D35A25;
}

/* ================= メインコンテナ余白 ================= */
.p-faq-main {
	padding: 48px 0 80px;
}