/* 施設名オートコンプリート ドロップダウン
 * body 直下に position:fixed で描画するため、既存レイアウトを一切押し出さない
 * (CLS=0)。入力窓の位置は JS が getBoundingClientRect で計算して当てる。 */

.hoiku-ac-list {
	position: fixed;
	z-index: 100000; /* 親テーマの固定要素(drawer z-index:201)より前面 */
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d9dee3;
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(17, 24, 39, 0.14);
	max-height: 320px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	font-size: 14px;
	line-height: 1.4;
	color: #1f2933;
}

.hoiku-ac-list[hidden] {
	display: none;
}

/* スクリーンリーダー専用(視覚的に隠す) */
.hoiku-ac-live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.hoiku-ac-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 9px 14px;
	cursor: pointer;
}

.hoiku-ac-item__name {
	flex: 1 1 auto;
	min-width: 0;
	/* 長い施設名は省略せず自然に折り返す */
	overflow-wrap: anywhere;
	word-break: break-word;
}

.hoiku-ac-item__name mark {
	background: transparent;
	color: inherit;
	font-weight: 700;
	padding: 0;
}

.hoiku-ac-item__area {
	flex: 0 0 auto;
	font-size: 12px;
	color: #6b7280;
	padding-top: 2px; /* 折り返し時に施設名の1行目と高さを合わせる */
}

.hoiku-ac-item.is-active,
.hoiku-ac-item:hover {
	background: #eef4f4; /* この園カラー #4f8f91 の淡色 */
}

.hoiku-ac-empty {
	padding: 10px 14px;
	color: #6b7280;
	cursor: default;
}

@media (max-width: 767px) {
	.hoiku-ac-list {
		font-size: 15px;
		max-height: 60vh;
	}
	.hoiku-ac-item {
		padding: 11px 14px;
	}
}
