/* ==========================================================================
   layout.css — コンテナ・ヘッダー・フッター（l-*）
   ========================================================================== */

.l-container {
	width: min(100% - var(--gutter) * 2, var(--content-max));
	margin-inline: auto;
}

.l-section {
	padding-block: var(--space-section);
}

/* ---- Header（342:316／348:533） ---- */
.l-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--color-bg-base);
	border-bottom: 1px solid var(--color-line-strong);
}

.l-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--header-h);
	padding-inline: var(--header-pad);
}

.l-header__inner > * {
	min-width: 0;
}

.l-header__logo {
	margin-right: auto;
}

.l-header__nav,
.l-header__hours {
	display: none;
}

.l-header__nav-list {
	display: flex;
	align-items: center;
	gap: clamp(20px, calc(3.2vw - 14px), 32px);
}

.l-header__hours {
	color: var(--color-muted);
	font-size: var(--fs-body-xs);
	line-height: var(--lh-body-xs);
	letter-spacing: var(--ls-body-xs);
}

.l-header__reserve {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid var(--color-brand);
	background: var(--color-brand);
	color: var(--color-white);
	font-family: var(--ff-en);
	font-size: var(--fs-btn-en);
	font-weight: 400;
	line-height: var(--lh-btn);
	letter-spacing: var(--ls-btn-en);
	white-space: nowrap;
	transition: background-color var(--duration), color var(--duration), border-color var(--duration); /* ホバーは components.css の「ホバー（役割別）」 */
}

.l-header__reserve .c-icon {
	display: none;
}

.l-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin-right: -11px;
	padding-inline: 11px;
}

.l-header__toggle-bar {
	display: block;
	height: 1px;
	background: var(--color-text);
}

@media (min-width: 1100px) {
	.l-header__inner {
		gap: 40px;
	}

	.l-header__nav {
		display: block;
	}

	.l-header__reserve {
		padding: 16px 28px;
		font-weight: 500;
	}

	.l-header__reserve .c-icon {
		display: block;
	}

	.l-header__toggle {
		display: none;
	}
}

/* 営業時間は 1280px 以上だけ（ヘッダー専用のブレイクポイント） */
@media (min-width: 1280px) {
	.l-header__hours {
		display: block;
		margin-right: -20px; /* 営業時間と RESERVE の間は 20px（Figma） */
	}
}

/* ---- Footer（452:634／455:667）。上端に line/strong の罫線（全ページ。10/12 No.57） ---- */
.l-footer {
	position: relative;
	isolation: isolate;
	padding-block: 48px 40px;
	border-top: 1px solid var(--color-line-strong);
	background: var(--color-bg-base);
}

/* テクスチャ（GUIDELINE 05章：画像素材で実装。CSSのノイズは使わない）。不透明度 45%（10/12 No.57。35% から変更） */
.l-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/common_bg_texture.webp") center / 100% auto;
	mix-blend-mode: overlay;
	opacity: 0.45;
	pointer-events: none;
}

.l-footer__row {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.l-footer__row > * {
	min-width: 0;
}

.l-footer__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--color-line-weak);
}

/* 区切り線の左端のブランド色の線 */
.l-footer__brand::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--color-brand);
}

.l-footer__info {
	font-size: var(--fs-body-xs);
	line-height: var(--lh-body-xs);
	letter-spacing: var(--ls-body-xs);
}

.l-footer__nav {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.l-footer__nav-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.l-footer__nav .c-nav-link {
	font-size: var(--fs-body);
	letter-spacing: var(--ls-body);
	line-height: var(--lh-body);
}

.l-footer__bottom {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 36px;
	margin-top: 20px;
	padding-top: 36px;
	border-top: 1px solid var(--color-line-weak);
}

.l-footer__copy {
	align-self: flex-start;
	color: var(--color-muted);
	font-family: var(--ff-en);
	font-size: var(--fs-en-small);
	line-height: 1.6;
	letter-spacing: var(--ls-en-small);
}

/* SP・TAB は固定CTAのぶん（バー全体 62px＋iPhone のホームバーの分）、末尾に余白を足す */
.l-footer {
	padding-bottom: calc(40px + var(--cta-bar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
	.l-footer {
		padding-top: 80px;
	}

	.l-footer__nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, max-content));
		gap: 16px 64px;
	}

	.l-footer__nav-col {
		gap: 16px;
	}

	.l-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		margin-top: 0;
		padding-top: 32px;
		border-top: 0;
	}

	.l-footer__copy {
		align-self: auto;
	}

	/* TAB 以上はナビも区切り線の上に入れる */
	.l-footer__row {
		padding-bottom: 56px;
		border-bottom: 1px solid var(--color-line-weak);
	}

	.l-footer__brand {
		padding-bottom: 0;
		border-bottom: 0;
		gap: 22px;
	}

	.l-footer__brand::after {
		display: none;
	}

	.l-footer__row::after {
		content: "";
		position: absolute;
		bottom: -1px;
		left: 0;
		width: 56px;
		height: 2px;
		background: var(--color-brand);
	}
}

@media (min-width: 1100px) {
	.l-footer {
		padding-block: 120px 48px;
	}

	.l-footer__row {
		flex-direction: row;
		gap: 48px;
	}

	.l-footer__brand {
		flex: 1;
	}

	.l-footer__info {
		font-size: var(--fs-body);
		line-height: var(--lh-body);
		letter-spacing: var(--ls-body);
	}
}

/* ---- 背景のテクスチャ（画像素材。GUIDELINE 05章） ---- */
.l-bg-paper,
.l-bg-grain,
.l-bg-noise {
	position: relative;
	isolation: isolate;
}

.l-bg-paper::before,
.l-bg-grain::before,
.l-bg-noise::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* 紙（Concerns・Flow）：ベースに 70% で重ねる */
.l-bg-paper {
	background: var(--color-bg-base);
}

.l-bg-paper::before {
	background: url("../img/common_tex_paper.webp") left top / 1200px auto;
	opacity: 0.7;
}

/* 粒子（B&A・Salon・Staff）：ベースに乗算 45% */
.l-bg-grain {
	background: var(--color-bg-base);
}

.l-bg-grain::before {
	background: url("../img/common_tex_grain.webp") left top / 256px auto;
	mix-blend-mode: multiply;
	opacity: 0.45;
}

/* ノイズ（FAQ）：カード区切りの色に overlay 35%（フッターと同じ素材。フッターは 10/12 から 45%） */
.l-bg-noise {
	background: var(--color-bg-divider);
}

.l-bg-noise::before {
	background: url("../img/common_bg_texture.webp") left top / 128px auto;
	mix-blend-mode: overlay;
	opacity: 0.35;
}
