/* ================================
 * FAQ
 * ================================ */
/* 外部ブラウザ時、アコーディオン開閉でコンテンツ高さが変化しても背景画像が拡大しないよう固定 */
#contents {
	background-attachment: fixed;
}

.faq-content {
	width: 100%;
	max-width: 750px;
	margin: 0 auto;
}

.faq-content .article {
	width: 95%;
	margin: 0 auto;
}

.faq-content .section {
	text-align: left;
}

/* 検索ボックス */
.faq-search-wrap {
	margin: 1.875rem auto 0;
	width: 95%;
	border: medium solid #331f06;
	border-radius: 10px;
	background-color: #4a371d;
	box-shadow: 0 0 8px 3px #331f06 inset;
	padding: 15px 0;
}

.faq-search-inner {
	width: 90%;
	margin: 0 auto;
}

.faq-search-inner p {
	color: #ffffff;
	margin-bottom: 8px;
}

.faq-search-row {
	display: flex;
	gap: 8px;
}

.faq-search-input {
	flex: 1;
	padding: 8px 16px !important;
	border: none;
	border-radius: 4px;
	font-size: 100%;
	outline: none;
	background-color: #fff;
	color: #482D15;
	-webkit-user-select: auto;
	user-select: auto;
}

.faq-search-btn {
	padding: 8px 20px;
	background: linear-gradient(to bottom, #f0dcb4 0%, #bea573 100%);
	border: 2px solid #000;
	border-radius: 8px;
	font-weight: bold;
	color: #000;
	cursor: pointer;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

.faq-search-btn:before {
	position: absolute;
	top: 2px;
	left: 2px;
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	content: '';
	border: 1px solid #fff;
	border-radius: 6px;
}

.faq-search-btn:active {
	transform: scale(0.95);
}

.faq-search-result {
	text-align: center;
	color: #FFEAA0;
	font-size: 90%;
	margin-top: 10px;
	font-weight: bold;
}

/* フォルダセクション */
.faq-folder-section {
	margin-bottom: 1.5rem;
}

.faq-folder-section:last-child {
	margin-bottom: 0;
}

.faq-folder-section.search-only {
	display: none;
}

/* FAQ リスト */
.faq-list {
	width: 95%;
	margin: 0 auto;
	border: solid 2px #331f06;
	border-radius: 7px;
	overflow: hidden;
}

.faq-item {
	border-bottom: 1px dotted #7a6040;
}

.faq-item:last-child {
	border-bottom: none;
}

/* 質問 */
.faq-question {
	padding: 12px 40px 12px 14px;
	cursor: pointer;
	position: relative;
	font-weight: bold;
	color: #482D15;
	background-color: #f5ead6;
	transition: background-color 0.2s;
	line-height: 1.5;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}

/* ホバーをサポートするデバイスのみ適用。スマホではタッチ後にhoverが残る問題を回避 */
@media (hover: hover) {
	.faq-question:hover {
		background-color: #efe0c5;
	}
}

.faq-question::before {
	content: 'Q. ';
	color: #a9730f;
	font-weight: bold;
}

.faq-question::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #a9730f;
	transition: transform 0.3s;
}

.faq-question.active {
	background-color: #e8d8b8;
}

.faq-question.active::after {
	transform: translateY(-50%) rotate(180deg);
}

/* 回答 */
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.faq-answer.active {
	max-height: 5000px;
	transition: max-height 0.5s ease-in;
}

.faq-answer-content {
	padding: 14px;
	color: #482D15;
	line-height: 1.6;
	background-color: #faf5eb;
	border-top: 1px solid #d4c4a0;
}

.faq-answer-content p {
	margin-bottom: 10px;
}

.faq-answer-content p:last-child {
	margin-bottom: 0;
}

.faq-answer-content a {
	color: #0d6aad;
	text-decoration: underline;
	word-wrap: break-word;
}

.faq-answer-content ol,
.faq-answer-content ul {
	margin-left: 20px;
	margin-bottom: 10px;
	padding-left: 20px;
}

.faq-answer-content ol {
	list-style-type: decimal;
}

.faq-answer-content ul {
	list-style-type: disc;
}

.faq-answer-content li {
	margin-bottom: 5px;
}

.faq-answer-content table {
	border-collapse: collapse;
	margin-bottom: 10px;
}

.faq-answer-content table td,
.faq-answer-content table th {
	border: 1px solid #d4c4a0;
	padding: 8px;
}

.faq-answer-content b,
.faq-answer-content strong {
	font-weight: bold !important;
}

.faq-answer-content u {
	text-decoration: underline !important;
}

/* ハイライト */
.highlight {
	background-color: #ffdd6a;
	padding: 1px 3px;
	border-radius: 2px;
}

/* お問い合わせ導線 */
.faq-contact-wrap {
	width: 95%;
	margin: 1.875rem auto;
	border: medium solid #331f06;
	border-radius: 10px;
	background-color: #4a371d;
	box-shadow: 0 0 8px 3px #331f06 inset;
	padding: 20px 0;
	text-align: center;
}

.faq-contact-inner {
	width: 90%;
	margin: 0 auto;
}

.faq-contact-inner .contact-title {
	color: #FFEAA0;
	font-weight: bold;
	font-size: 110%;
	text-shadow: 1px 1px 0 #000;
	margin-bottom: 10px;
}

.faq-contact-inner .contact-desc {
	color: #ffffff;
	line-height: 1.5;
	margin-bottom: 15px;
}

.faq-contact-btn {
	display: inline-block;
	padding: 10px 30px;
	background: linear-gradient(to bottom, #73e6eb 0%, #1478e1 100%);
	border: 2px solid #000;
	border-radius: 8px;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

.faq-contact-btn:before {
	position: absolute;
	top: 2px;
	left: 2px;
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	content: '';
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: 6px;
}

.faq-contact-btn:active {
	transform: scale(0.95);
}

.no-faq-message {
	text-align: center;
	color: #ffffff;
	padding: 2rem;
}

/* フッター（プライバシーポリシー） */
.faq-footer-privacy {
	text-align: center;
	margin-top: 1.5rem;
}

.faq-footer-link {
	color: #ffffff;
	text-decoration: underline;
	cursor: pointer;
}

/* スマホの場合 */
/* ※pcサイトの場合はデフォルトスタイルを適用 */
@media only screen and (max-width: 750px) {
	.faq-question {
		padding: 10px 36px 10px 12px;
		font-size: 95%;
	}

	.faq-answer-content {
		padding: 12px;
		font-size: 95%;
	}

	.faq-search-row {
		flex-direction: column;
	}

	.faq-search-btn {
		width: 100%;
	}

	.faq-contact-btn {
		display: block;
		width: 60%;
		margin: 0 auto;
	}
}
