/* ==========================================================================
   詳細検索ページ [bgh_advanced_search]
   結果のタイルは献立一覧と同じ（menu-page.css の .bgh-menu-tiles）
   ========================================================================== */
.bgh-adv {
	max-width: 1080px;
	margin: 0 auto;
	font-family: "Noto Sans JP", sans-serif;
	color: #2b2926;
}

.bgh-adv__lead {
	font-size: 14px;
	line-height: 1.9;
	color: #4a463f;
	margin: 0 0 28px;
}

.bgh-adv__group {
	margin: 0 0 26px;
}

.bgh-adv .bgh-adv__group-title {
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	font-size: 16px !important;
	font-weight: 600;
	color: #201d19;
	margin: 0 0 12px !important;
	padding: 0 0 8px !important;
	border: none !important;
	border-bottom: 1px solid #e7e2d8 !important;
	background: none !important;
	position: relative;
}

.bgh-adv .bgh-adv__group-title::before {
	display: none !important;
	content: none !important;
}

.bgh-adv .bgh-adv__group-title::after {
	content: "" !important;
	display: block !important;
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 36px;
	height: 2px;
	background: #E15B45 !important;
	border: none !important;
}

.bgh-adv__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bgh-adv-chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.bgh-adv-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bgh-adv-chip span {
	display: inline-block;
	padding: 7px 14px;
	font-size: 13px;
	line-height: 1.4;
	color: #2b2926;
	background: #fff;
	border: 1px solid #d9d3c6;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bgh-adv-chip:hover span {
	border-color: #E15B45;
}

.bgh-adv-chip input:checked + span {
	background: #E15B45;
	border-color: #E15B45;
	color: #fff;
}

.bgh-adv-chip input:focus-visible + span {
	outline: 2px solid #E15B45;
	outline-offset: 2px;
}

/* 食材：大分類ごとに開閉 */
.bgh-adv__sub {
	border-bottom: 1px dotted #e0dacd;
}

.bgh-adv__sub summary {
	list-style: none;
	cursor: pointer;
	padding: 10px 2px;
	font-size: 14px;
	color: #201d19;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bgh-adv__sub summary::-webkit-details-marker {
	display: none;
}

.bgh-adv__sub summary::after {
	content: "＋";
	margin-left: auto;
	color: #8a847b;
	font-size: 13px;
}

.bgh-adv__sub[open] summary::after {
	content: "－";
}

.bgh-adv__sub .bgh-adv__chips {
	padding: 4px 0 14px;
}

.bgh-adv__sub-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 11px;
	color: #fff;
	background: #E15B45;
	border-radius: 999px;
}

/* 探すボタン（スマホでは画面の下に付いてくる） */
.bgh-adv__actions {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 14px 0;
	margin-top: 8px;
	background: rgba(255, 255, 255, 0.96);
}

.bgh-adv__submit {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: #fff;
	background: #201d19;
	border: 1px solid #201d19;
	border-radius: 2px;
	padding: 13px 44px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.bgh-adv__submit:hover {
	background: #E15B45;
	border-color: #E15B45;
}

.bgh-adv__clear {
	font-size: 13px;
	color: #6b665f;
	text-decoration: underline;
}

/* 結果 */
.bgh-adv__result {
	margin-top: 44px;
	scroll-margin-top: 80px;
}

.bgh-adv .bgh-adv__result-title {
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	font-size: 20px !important;
	font-weight: 600;
	color: #201d19;
	margin: 0 0 22px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.bgh-adv .bgh-adv__result-title::before,
.bgh-adv .bgh-adv__result-title::after {
	display: none !important;
	content: none !important;
}

.bgh-adv__result-count {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #8a847b;
}

.bgh-adv__hint {
	font-size: 13.5px;
	color: #857f74;
	background: #f7f5f0;
	padding: 20px;
	border-radius: 4px;
}

.bgh-adv__pager {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 36px;
}

.bgh-adv__pager a,
.bgh-adv__pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	font-size: 13px;
	border: 1px solid #d9d3c6;
	border-radius: 2px;
	color: #201d19;
	text-decoration: none;
}

.bgh-adv__pager .is-current {
	background: #201d19;
	border-color: #201d19;
	color: #fff;
}

@media (max-width: 680px) {
	.bgh-adv__lead {
		font-size: 13px;
	}
	.bgh-adv-chip span {
		padding: 6px 12px;
		font-size: 12.5px;
	}
	.bgh-adv__submit {
		padding: 12px 32px;
	}
}

/* 結果を先に出すとき */
.bgh-adv.has-result .bgh-adv__result {
	margin: 0 0 56px;
}

.bgh-adv .bgh-adv__change-title {
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	font-size: 18px !important;
	font-weight: 600;
	color: #201d19;
	margin: 0 0 18px !important;
	padding: 0 0 12px !important;
	border: none !important;
	border-bottom: 1px solid #e7e2d8 !important;
	background: none !important;
}

.bgh-adv .bgh-adv__change-title::before,
.bgh-adv .bgh-adv__change-title::after {
	display: none !important;
	content: none !important;
}
