/* 検索結果ボックス */
#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-title,
[data-theme="light"] .custom-ajax-search-status {
	color: #333; /* ライトモード文字色 */
}

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

.custom-ajax-search-title {
	display: block;
	line-height: 1.4;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
	color: inherit; /* 親要素から色を引き継ぐ */
}

.custom-ajax-search-title{
	position:relative;
	display:block;
	padding-left:22px;
}

.custom-ajax-search-title::before{
	content:"";
	position:absolute;
	left:0;
	top:1px;
	width:18px;
	height:18px;
	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 256 256'%3E%3Cpath fill='%23000000' d='M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12ZM128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36Zm104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88Z'/%3E%3C/svg%3E");
}


.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);
}