/**
 * ヘッダー：公式サイトバナー・カート固定配置
 * スクロール後もレイアウトを維持し、固定ヘッダーは背景のみ変更
 */

@media (min-width: 1281px) {
	#schoolBnr {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		z-index: 10001 !important;
	}

	#linkBnr {
		position: fixed !important;
		top: 8px !important;
		right: 212px !important;
		left: auto !important;
		z-index: 10002 !important;
		width: auto !important;
		height: auto !important;
	}
}

/* 1280px以下：モバイルヘッダー（カートはハンバーガー左） */
@media (max-width: 1280px) {
	body:has(#shopHeroCenter) #linkBnr {
		position: fixed !important;
		top: 8px !important;
		right: 50px !important;
		left: auto !important;
		z-index: 10002 !important;
		width: auto !important;
		height: auto !important;
	}

	body:has(#shopHeroCenter) #schoolBnr {
		display: none !important;
	}

	/* 画面下段の公式サイトリンク（背景含む）を非表示 */
	#schoolBnr_sp {
		display: none !important;
	}
}

/* スクロール後：5項目メニューをスクロール前と同じ位置に（1281px以上のみ） */
@media (min-width: 1281px) {
	.l-fixHeader__inner .c-gnav {
		position: relative !important;
		right: 280px !important;
		top: 15px !important;
	}
}

/* ショップページ：固定ヘッダーは背景のみ */
body:has(#shopHeroCenter) .l-fixHeader::before {
	background: rgba(255, 255, 255, 0.55);
}

body:has(#shopHeroCenter) .l-fixHeader {
	z-index: 10000;
}

/* プロフィールブロック：上余白を詰める */
#profileSet {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* ヒーロー背景：最背面に配置（shopTop / shopHeroCenter は z-index: 2 のまま） */
#shopHero #c-pageTitle__Back,
body:not(.home):not(.page-id-12140) #c-pageTitle__Back {
	z-index: 0 !important;
}

#shopHero #c-pageTitle__Back {
	pointer-events: none;
}

/* shopHero 外の孤立 #c-pageTitle__Back（重複・非全幅）を非表示 */
.post_content > #c-pageTitle__Back {
	display: none !important;
}

#shopHero:has(#shopHeroCenter) #shopHeroCenter,
#shopHero:has(#shopHeroCenter) #shopTop {
	pointer-events: auto;
}

/* フッター：白背景・白ボーダーを除去しサイト背景色に統一 */
#footer,
.l-footer,
.l-footer__inner,
.l-footer__widgetArea {
	background: #fbf4f1 !important;
	background-color: #fbf4f1 !important;
}

#footer {
	border-top: none !important;
}

.l-footer__widgetArea {
	border-bottom: none !important;
}

#before_footer_widget {
	border-top: none !important;
}

#footerSet {
	border-top: 5px solid white;
	border-bottom: 5px solid white;
}

/* CookieYes「同意の設定」ボタン：ロゴと重ならないよう左下に固定 */
.cky-btn-revisit-wrapper,
[data-cky-tag="revisit-consent"] {
	position: fixed !important;
	top: auto !important;
	right: auto !important;
	bottom: 15px !important;
	left: 15px !important;
	z-index: 9990 !important;
}

@media (max-width: 1280px) {
	.cky-btn-revisit-wrapper,
	[data-cky-tag="revisit-consent"] {
		bottom: 72px !important;
		left: 12px !important;
	}
}
