/*
 * PCのメニュー（TOPページ・ABOUTページ共通）
 * 途中で出し直さず常に固定し、スクロールしたら背景だけをなめらかに切り替える。
 */

.pc #header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
	transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/*
 * 親テーマの #header は opacity:0 で、読み込みから約2秒後のアニメーションで表示される。
 * それより前にスクロールしたら header-fix.js がクラスを付け、すぐに表示する。
 * animation だけを止めると透明に戻るため、必ず opacity も指定すること。
 */
.pc.qol-header-ready #header {
	opacity: 1;
	animation: none;
}

.pc .megamenu_blog_list {
	position: fixed;
	top: 100px;
}

/* WordPressにログイン中は、親テーマが固定時に足す余白を打ち消す */
.pc body.admin-bar.header_fix {
	padding-top: 32px;
}

.pc body.admin-bar #header {
	top: 32px;
}

.pc body.admin-bar .megamenu_blog_list {
	top: 132px;
}
