@charset "UTF-8";
/* ==========================================
   layout.css
   レイアウト系クラス (l-*, mog-l-*)
   子テーマのl-系宣言を一元管理
   ========================================== */

/* ==========================================
   ヘッダー (.l-header)
   ========================================== */
.l-header,
.mog-l-header {
	display: block;
	position: relative;
	width: 100%;
	z-index: 999;
}

.l-header__bar,
.mog-l-header__bar {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	justify-content: space-between !important;
	background: rgba(255, 255, 255, 0.8);
	position: relative;
	width: 100%;
	z-index: 998;
}

.l-header__bar .p-menu-button {
	order: 999 !important;
	position: relative !important;
	float: none !important;
	flex-shrink: 0 !important;
	margin-left: 0 !important;
	border: none;
}

@media (min-width: 992px) {
	.l-header__bar,
	.mog-l-header__bar {
		display: flex;
		align-items: center;
	}

	body.l-header__fix .is-header-fixed .l-header__bar,
	body.l-header__fix .is-header-fixed .mog-l-header__bar {
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		-webkit-animation: headerSlideDown 0.5s ease;
		animation: headerSlideDown 0.5s ease;
	}
}

@media only screen and (max-width: 991px) {
	body.l-header__fix--mobile .is-header-fixed .l-header__bar,
	body.l-header__fix--mobile .is-header-fixed .mog-l-header__bar,
	body.l-header__fix--mobile .is-header-fixed .l-header__bar--mobile,
	body.l-header__fix--mobile .is-header-fixed .mog-l-header__bar--mobile {
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		-webkit-animation: headerSlideDown 0.5s ease;
		animation: headerSlideDown 0.5s ease;
	}
}

/* Admin bar対応 */
@media screen and (min-width: 783px) {
	body.admin-bar.l-header__fix .is-header-fixed .l-header__bar,
	body.admin-bar.l-header__fix .is-header-fixed .mog-l-header__bar,
	body.admin-bar.l-header__fix--mobile .is-header-fixed .l-header__bar--mobile,
	body.admin-bar.l-header__fix--mobile .is-header-fixed .mog-l-header__bar--mobile {
		top: 32px;
		-webkit-animation: headerSlideDown2 0.5s ease;
		animation: headerSlideDown2 0.5s ease;
	}
}

@media only screen and (max-width: 782px) {
	body.admin-bar.l-header__fix .is-header-fixed .l-header__bar,
	body.admin-bar.l-header__fix .is-header-fixed .mog-l-header__bar,
	body.admin-bar.l-header__fix--mobile .is-header-fixed .l-header__bar--mobile,
	body.admin-bar.l-header__fix--mobile .is-header-fixed .mog-l-header__bar--mobile {
		top: 46px;
		-webkit-animation: headerSlideDown3 0.5s ease;
		animation: headerSlideDown3 0.5s ease;
	}
}

@media only screen and (max-width: 600px) {
	body.admin-bar.l-header__fix .is-header-fixed .l-header__bar,
	body.admin-bar.l-header__fix .is-header-fixed .mog-l-header__bar,
	body.admin-bar.l-header__fix--mobile .is-header-fixed .l-header__bar--mobile,
	body.admin-bar.l-header__fix--mobile .is-header-fixed .mog-l-header__bar--mobile {
		top: 0;
		-webkit-animation: headerSlideDown 0.5s ease;
		animation: headerSlideDown 0.5s ease;
	}
}

/* ヘッダータイプ別表示 */
@media (min-width: 992px) {
	body.l-header--type2 .l-header.is-header-fixed,
	body.l-header--type2 .mog-l-header.is-header-fixed {
		height: 70px;
	}

	body.l-header--type3 .l-header,
	body.l-header--type3 .mog-l-header {
		display: none;
	}

	body.l-header--type3 .l-header.is-header-fixed,
	body.l-header--type3 .mog-l-header.is-header-fixed {
		display: block;
	}

	body.l-header--type4 .l-header,
	body.l-header--type4 .mog-l-header {
		display: none;
	}
}

/* ==========================================
   メインコンテンツエリア (.l-main)
   ========================================== */
.l-main,
.mog-l-main {
	padding-bottom: 28px;
	padding-top: 28px;
}

.c-footer2-wrapper.is-active ~ .l-main,
body:has(.c-footer2-wrapper.is-active) {
	padding-bottom: 0;
}

/* ==========================================
   インナーコンテナ (.l-inner)
   480px: 10px, 768px: 40px
   ========================================== */
.l-inner,
.mog-l-inner {
	width: 100%;
	padding-left: clamp(10px, 10.42vw - 40px, 40px);
	padding-right: clamp(10px, 10.42vw - 40px, 40px);
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
}

/* ==========================================
   フッター (.l-footer)
   ========================================== */
.l-footer {
	position: relative;
	z-index: 1;
}

/* ==========================================
   2カラムレイアウト (.l-2columns)
   ========================================== */

/* サイドバー（991px以下で非表示） */
@media only screen and (max-width: 991px) {
	.l-secondary {
		display: none !important;
	}
}

/* 992px以上: サイドバー幅調整 */
@media (min-width: 992px) {
	.l-secondary {
		/* 992pxで320px、1200pxで340pxとなるように可変 */
		/* (340 - 320) / (1200 - 992) = 20 / 208 ≈ 0.096 */
		width: clamp(320px, calc(320px + (100vw - 992px) * 0.096), 340px);
	}

	.l-2columns .l-primary {
		/* l-secondaryの幅 + gap(50px)を引いた残り */
		width: calc(100% - clamp(320px, calc(320px + (100vw - 992px) * 0.096), 340px) - 50px);
	}
}

/* サイドバー内フィルター */
.l-secondary .mog-p-recipes-archive-filter__toggle {
	display: none;
}

.l-secondary .mog-p-recipes-archive-filter__content {
	display: block !important;
	max-height: none !important;
	overflow: visible !important;
}

.l-secondary .mog-p-sidemenu-recipe-categories__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
}

.l-secondary .mog-p-sidemenu-recipe-categories__headline {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 0;
}
