/* 検索結果ボックス */
#custom-ajax-search-results.custom-ajax-search-results {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px; /* ボックスの角丸 */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	transition: background 0.3s ease, color 0.3s ease;
	font-size: 90%;
}
@media (max-width: 767px) {
	#custom-ajax-search-results.custom-ajax-search-results {
		max-height: 50vh;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
}



/* ダークモードの設定 */
[data-theme="dark"] #custom-ajax-search-results.custom-ajax-search-results {
	background: #333; /* ダークモード用背景色 */
	border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ライトモードの設定 */
[data-theme="light"] #custom-ajax-search-results.custom-ajax-search-results {
	background: #fff; /* ライトモード用背景色 */
	border: 1px solid rgba(0, 0, 0, 0.12);
}

/* 検索結果アイテム */
.custom-ajax-search-item {
	display: block; /* アイテムはブロック表示 */
	width: 100%;
	padding: 12px 14px;
	text-decoration: none;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	color: inherit; /* 親要素の文字色を引き継ぐ */
	box-sizing: border-box;
}

/* ダークモードアイテム */
[data-theme="dark"] .custom-ajax-search-item {
	color: #fff; /* ダークモード文字色 */
	background: transparent; /* 背景色を透明に */
}

/* リンクの色と背景 */
.custom-ajax-search-item a {
	color: inherit; /* リンクの色も親要素から引き継ぐ */
	background: transparent; /* リンク背景も透明に */
	text-decoration: none; /* 下線を消去 */
}

.custom-ajax-search-item:first-child {
	border-top: none;
}

/* ホバー時の背景色 */
.custom-ajax-search-item:hover,
.custom-ajax-search-item:focus {
	background: rgba(0, 0, 0, 0.04); /* ホバー時の背景色 */
}

/* 全て表示リンク */
.custom-ajax-search-more-link {
	color: inherit; /* 親要素から色を引き継ぐ */
	background: transparent; /* 背景色を透明に */
	text-align: center;
	text-decoration: none; /* 下線を消去 */
}

/* ダークモードとライトモードに対応した「全て表示」リンクの色指定 */
[data-theme="light"] .custom-ajax-search-more-link {
	color: #333; /* ライトモード文字色 */
}

[data-theme="dark"] .custom-ajax-search-more-link {
	color: #fff; /* ダークモード文字色 */
}

/* 全て表示リンクホバー時 */
.custom-ajax-search-more-link:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* ライトモードのテキストカラー */
[data-theme="light"] .custom-ajax-search-category-path,
[data-theme="light"] .custom-ajax-search-title,
[data-theme="light"] .custom-ajax-search-status {
	color: #333; /* ライトモード文字色 */
}

/* ダークモードのテキストカラー */
[data-theme="dark"] .custom-ajax-search-category-path,
[data-theme="dark"] .custom-ajax-search-title,
[data-theme="dark"] .custom-ajax-search-status {
	color: #fff; /* ダークモード文字色 */
}

/* 検索結果のタイトルとカテゴリパス */
.custom-ajax-search-title-row{
	display:flex;
	align-items:center;
	column-gap:8px;
}

.custom-ajax-search-qicon{
	flex:0 0 24px;
	width:24px;
	height:24px;
	background-repeat:no-repeat;
	background-size:contain;
	background-position:center;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 256 256'%3E%3Cpath fill='%23000000' d='M136 180a8 8 0 1 1-8-8a8 8 0 0 1 8 8Zm-8-104c-19.85 0-36 14.36-36 32v4a4 4 0 0 0 8 0v-4c0-13.23 12.56-24 28-24s28 10.77 28 24s-12.56 24-28 24a4 4 0 0 0-4 4v8a4 4 0 0 0 8 0v-4.2c18-1.77 32-15.36 32-31.8c0-17.64-16.15-32-36-32Zm100 52A100 100 0 1 1 128 28a100.11 100.11 0 0 1 100 100Zm-8 0a92 92 0 1 0-92 92a92.1 92.1 0 0 0 92-92Z'/%3E%3C/svg%3E");
}
.custom-ajax-search-texts{
	display:flex;
	flex-direction:column;
	justify-content:center;
	min-width:0;
	flex:1 1 auto;
	row-gap:1px;
}

.custom-ajax-search-title{
	display:block;
	line-height:1.25;
	white-space:normal;
	word-break:break-word;
	overflow-wrap:break-word;
	color:inherit;
}

.custom-ajax-search-category-path{
	display:block;
	font-size:85%;
	line-height:1.15;
	opacity:0.75;
}





.answer-icon{
	display:inline-block;
	width:14px;
	height:14px;
	margin-right:4px;
	vertical-align:-2px;
	background-repeat:no-repeat;
	background-size:contain;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M20 2H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h3v3.767L13.277 18H20c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zm0 14h-7.277L9 18.233V16H4V4h16v12z'/%3E%3Cpath fill='%23000000' d='M7 7h10v2H7zm0 4h7v2H7z'/%3E%3C/svg%3E");
	opacity:0.7;
}
.custom-ajax-search-status {
	padding: 12px 14px;
	line-height: 1.4;
	color: inherit; /* 親要素から文字色を引き継ぐ */
	background: transparent; /* 背景色を透明に */
	box-sizing: border-box;
}

/* loading spinner */
.custom-search-spinner {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-top: 2px solid rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	animation: customSearchSpin 0.6s linear infinite;
	pointer-events: none;
	z-index: 5;
}

@keyframes customSearchSpin {
	from {
		transform: translateY(-50%) rotate(0deg);
	}
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

.custom-ajax-search-more {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: transparent; /* 親要素の背景色を引き継ぐ */
}

.custom-ajax-search-more-link {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	text-align: center;
}

.custom-ajax-search-more-link:hover {
	background: rgba(0, 0, 0, 0.05);
}