@charset "UTF-8";
/**
 * よくあるご質問ページの絞り込み検索。
 *
 * このファイルは faq ページだけで読み込む（functions.php の ponpam_faq_search_assets）。
 *
 * 検索欄は JavaScript が動く環境でしか意味がないため、初期状態は非表示にして
 * html.ponpam-anim（JS が動いたときだけ付くクラス。wp_head で付与）が付いた場合だけ出す。
 */
.faq-search {
	display: none;
	margin: 0 0 2.2em;
}
.ponpam-anim .faq-search {
	display: block;
}

.faq-search__label {
	display: block;
	margin: 0 0 .5em;
	font-size: .95em;
	font-weight: bold;
	color: var(--color_text, #3c3c3c);
}

.faq-search__field {
	position: relative;
}

.faq-search__input {
	box-sizing: border-box;
	width: 100%;
	padding: .85em 2.6em .85em 2.6em;
	border: 1px solid #d5dbe0;
	border-radius: 999px;
	background: #fff;
	font-size: 1em;
	line-height: 1.5;
	color: var(--color_text, #3c3c3c);
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.faq-search__input::placeholder {
	color: #9aa5ad;
}
.faq-search__input:focus {
	outline: none;
	border-color: #3cb37a;
	box-shadow: 0 0 0 3px rgba(60, 179, 122, .18);
}
/* ブラウザ標準の×は自作のボタンと重なるので消す */
.faq-search__input::-webkit-search-cancel-button,
.faq-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

/* 虫めがね。装飾なので背景画像で置く */
.faq-search__field::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1em;
	width: 1.1em;
	height: 1.1em;
	transform: translateY(-50%);
	background: no-repeat center / contain
		url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5ad' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
	pointer-events: none;
}

.faq-search__clear {
	position: absolute;
	top: 50%;
	right: .5em;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #e9edf0;
	color: #5c6c7a;
	font-size: 1em;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}
.faq-search__clear:hover,
.faq-search__clear:focus-visible {
	background: #d5dbe0;
}
.faq-search__clear[hidden] {
	display: none;
}

.faq-search__status {
	margin: .7em 0 0;
	font-size: .9em;
	color: #6b7a85;
}
.faq-search__status:empty {
	display: none;
}

.faq-search__empty {
	margin: 1em 0 0;
	padding: 1.1em 1.2em;
	border-radius: 10px;
	background: #f6f8f9;
	font-size: .95em;
	line-height: 1.9;
}
.faq-search__empty[hidden] {
	display: none;
}
.faq-search__empty strong {
	color: #c2410c;
}

/* 絞り込みで外れたものを隠す。JSはこのクラスを付け外しするだけにしている */
.faq-is-filtered {
	display: none !important;
}

/* ヒットした語の目印 */
.faq-search-hit {
	background: linear-gradient(transparent 55%, #ffe9a8 55%);
	font-weight: bold;
	color: inherit;
}

/**
 * スマホでは質問をタップして開く作り（SWELLの追加CSS・追加JS側で実装済み）になっている。
 * 検索中は「なぜヒットしたか」が見えないと困るので、答えを開いた状態にする。
 * 開閉JSがインラインの display を書くため、!important で上書きする。
 */
@media (max-width: 768px) {
	.faq-searching .faq_a {
		display: block !important;
		/* 開閉アニメーションが途中で止まった状態（height:0）でも隠れないようにする */
		height: auto !important;
		overflow: visible !important;
	}
	.faq-searching .faq_q::after {
		display: none;
	}
	.faq-searching .faq_q {
		cursor: default;
	}
}
