/**
 * layout.css — ヘッダー・メガメニュー・SP ドロワー・フッター・本文の枠・幅ごとの段組み。
 *
 * 幅の切替（指示書 §2-2 ④）はこの 3 本だけ：
 *   ≥1546（XD の実寸）／1100〜1545／768〜1099／≤767（SP の XD）
 * 数値の出どころ：design.json「トップページ」「トップページ – 1」「SP_メニュー」「SP_メニュー – 1」
 * 「SP_TOP – 2カラム – 1」「SP_取扱商品」。位置は XD の座標から引いた値をそのまま書く。
 *
 * @package sf-style
 */

/* ───────── 本文の枠 ───────── */
.sf-main {
	display: block;
	padding-top: var(--h-header); /* ヘッダー 123（SP 65）の下から */
}

.home .sf-main {
	padding-top: 0; /* トップはヒーローがヘッダーの下に潜る（XD：ヒーロー y0・ヘッダー y0 h123） */
}

.sf-sec,
.sf-list,
.sf-single,
.sf-page {
	width: var(--w-content);
	margin-inline: auto;
}

/* ───────── ヘッダー（PC：トップページ y0〜123） ───────── */
.sf-header {
	position: fixed; /* 2026-11-09 先方：ヘッダーを固定（PC・SP とも）。戻す時は absolute */
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--h-header);
	background: var(--c-white);
}

.sf-header__in {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	height: 100%;
	padding: 0 calc(40px * var(--k)) 0 calc(56px * var(--k)); /* ロゴ x56／オンラインショップの右端 1880 */
	background: var(--c-white);
}

.sf-header__logo {
	display: block;
	flex: none;
	margin-top: calc(36px * var(--k)); /* ロゴ y36 */
	line-height: 0;
}

.sf-header__logo img {
	display: block;
	width: calc(283px * var(--k));
	height: calc(51px * var(--k));
}

.sf-gnav {
	flex: none;
	margin-top: calc(52.15px * var(--k));  /* 17px の文字のベースライン 68 − 0.9325 × 17 */
	margin-left: calc(99.8px * var(--k));  /* ロゴの右端 339 → 「カテゴリー」x438.8 */
}

.sf-gnav__list {
	display: flex;
}

/* 各項目の幅＝次の項目の x − この項目の x（438.8／570／670／753／853／953／1042／1141／1309） */
.sf-gnav__item {
	position: relative;
	flex: none;
}

.sf-gnav__item:nth-child(1) { width: calc(131.2px * var(--k)); }
.sf-gnav__item:nth-child(2) { width: calc(100px * var(--k)); }
.sf-gnav__item:nth-child(3) { width: calc(83px * var(--k)); }
.sf-gnav__item:nth-child(4) { width: calc(100px * var(--k)); }
.sf-gnav__item:nth-child(5) { width: calc(100px * var(--k)); }
.sf-gnav__item:nth-child(6) { width: calc(89px * var(--k)); }
.sf-gnav__item:nth-child(7) { width: calc(99px * var(--k)); }
.sf-gnav__item:nth-child(8) { width: calc(168px * var(--k)); }

.sf-gnav__link {
	position: relative;
	display: block; /* v4 A1：inline-block は li の strut で基線が 4.0 下がる */
	font-family: var(--ff-regular);
	font-weight: var(--fw-regular);
	font-size: var(--fs-17);
	line-height: 1;
	color: var(--c-black);
	white-space: nowrap;
}

/* 「カテゴリー」の下向き矢印 x530 y59 8×4.4 #707070 */
.sf-chev {
	position: absolute;
	top: calc(6.85px * var(--k));   /* 59 − 52.15 */
	left: calc(91.2px * var(--k));  /* 530 − 438.8 */
	width: calc(8px * var(--k));
	height: calc(4.4px * var(--k));
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4.4'%3E%3Cpath d='M.35.35 4 4 7.65.35' fill='none' stroke='%23707070'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	transition: transform 0.2s;
}

.sf-gnav__mega-btn[aria-expanded="true"] .sf-chev {
	transform: rotate(180deg);
}

.sf-header__btns {
	display: flex;
	flex: none;
	gap: calc(16px * var(--k));           /* 1664 → 1680 */
	margin-top: calc(44px * var(--k));    /* ボタン y44 */
	margin-left: auto;
}

.sf-btn-kw,
.sf-btn-shop {
	position: relative;
	display: block;
	width: calc(200px * var(--k));
	height: calc(36px * var(--k));
	border-radius: calc(8px * var(--k));
	color: var(--c-white);
	font-family: var(--ff-medium);
	font-weight: var(--fw-medium);
	line-height: 1;
	white-space: nowrap;
}

.sf-btn-kw {
	background: rgba(18, 19, 43, 0.146); /* #12132b・不透明度 0.146 */
	font-size: calc(19px * var(--k));
}

.sf-btn-shop {
	background: var(--c-navy);
	font-size: var(--fs-16);
}

.sf-btn-kw__icon {
	position: absolute;
	top: calc(9.4px * var(--k));   /* 53.4 − 44 */
	left: calc(7.9px * var(--k));  /* 1471.9 − 1464 */
	width: calc(17px * var(--k));
	height: calc(17px * var(--k));
}

.sf-btn-kw__label {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: calc(28.7px * var(--k));  /* 1492.7 − 1464 */
}

.sf-btn-shop__icon {
	position: absolute;
	top: calc(6px * var(--k));      /* 50 − 44 */
	left: calc(11.5px * var(--k));  /* 1691.5 − 1680 */
	width: calc(24px * var(--k));
	height: calc(22px * var(--k));
}

.sf-btn-shop__label {
	position: absolute;
	top: calc(9.08px * var(--k));   /* 68 − 0.9325 × 16 − 44 */
	left: calc(43.7px * var(--k));  /* 1723.7 − 1680 */
}

/* SP のアイコン列とハンバーガー（SP_取扱商品 y0〜65） */
.sf-header__sp {
	display: none;
}

.sf-header__sp-icon {
	position: absolute;
	display: block;
	line-height: 0;
}

.sf-header__sp-icon img {
	display: block;
	width: 100%;
	height: 100%;
}

.sf-burger {
	position: absolute;
	width: calc(24.5px * var(--k));
	height: calc(19.6px * var(--k));
}

.sf-burger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: var(--c-navy);
}

.sf-burger span:nth-child(1) { top: 0; }
.sf-burger span:nth-child(2) { top: calc(9.1px * var(--k)); }   /* 32.1 − 23 */
.sf-burger span:nth-child(3) { top: calc(18.1px * var(--k)); }  /* 41.1 − 23 */

/* ───────── メガメニュー（トップページ – 1） ───────── */
.sf-mega {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: #bebebe; /* XD 長方形 16 */
}

.sf-mega__panel {
	position: relative;
	z-index: 1;
	height: calc(537px * var(--k));
	padding-top: calc(203px * var(--k)); /* 項目の 1 段目 y203 */
	background: rgba(255, 255, 255, 0.8);
}

.sf-mega__shade {
	position: absolute;
	inset: calc(537px * var(--k)) 0 0;
}

.sf-mega__list {
	display: grid;
	grid-template-columns: repeat(4, calc(320px * var(--k)));
	column-gap: calc(62px * var(--k));    /* 547 → 609 */
	row-gap: calc(24.4px * var(--k));     /* 271.4 → 295.8 */
	width: var(--w-content);
	margin-inline: auto;
}

.sf-mega__list .sf-nav__link {
	position: relative;
	display: block;
	height: calc(68.4px * var(--k));
	border-radius: calc(10px * var(--k));
	background: var(--c-white);
	color: var(--c-line);
	font-size: var(--fs-24);
	line-height: 1;
}

.sf-mega__list .sf-nav__icon {
	position: absolute;
	top: calc(9.2px * var(--k));
	left: calc(15px * var(--k));
	width: calc(50px * var(--k));
	height: calc(50px * var(--k));
}

.sf-mega__list .sf-nav__label {
	position: absolute;
	top: calc(20.62px * var(--k)); /* 246 − 0.9325 × 24 − 203 */
	left: calc(78.2px * var(--k)); /* 305.2 − 227 */
	white-space: nowrap;
}

/* 右の矢印 8.1×14.7 #707070（x＝左＋294.3・y＝上＋26.8） */
.sf-mega__list .sf-nav__link::after {
	content: "";
	position: absolute;
	top: calc(26.8px * var(--k));
	left: calc(294.3px * var(--k));
	width: calc(8.1px * var(--k));
	height: calc(14.7px * var(--k));
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.1 14.7'%3E%3Cpath d='M.35.35 7.4 7.35.35 14.35' fill='none' stroke='%23707070'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ───────── SP ドロワー（SP_メニュー／SP_メニュー – 1） ───────── */
.sf-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	overflow-y: auto;
	background: var(--c-white);
}

.sf-drawer.is-cat {
	background: var(--c-white); /* SP_メニュー – 1 長方形 409 は白 0.8 だが、XD ではアートボードの白に乗るので見える色は白。実装は下に本文があり透ける（7周目 A6）。合成後の色で固定 */
}

.sf-drawer__head {
	position: relative;
	height: calc(65px * var(--k));
	background: var(--c-white);
}

.sf-drawer__head .sf-header__logo {
	position: absolute;
	top: calc(19.8px * var(--k));
	left: calc(18px * var(--k));
	margin: 0;
}

.sf-drawer__head .sf-header__logo img {
	width: calc(141.5px * var(--k));
	height: calc(25.5px * var(--k));
}

.sf-drawer__shop {
	position: absolute;
	top: calc(20px * var(--k));
	left: calc(197px * var(--k));
	width: calc(120px * var(--k));
	height: calc(25px * var(--k));
	border-radius: calc(6px * var(--k));
	background: var(--c-navy);
	color: var(--c-white);
	font-family: var(--ff-zen);
	font-weight: var(--fw-regular);
	font-size: max(10px, calc(10px * var(--k)));
	line-height: 1;
	letter-spacing: -0.05em; /* XD：SP_メニュー「オンラインショップ」字間 -50 */
	white-space: nowrap;
}

.sf-drawer__shop img {
	position: absolute;
	top: calc(6px * var(--k));
	left: calc(8.1px * var(--k));
	width: calc(15.2px * var(--k));
	height: calc(13.9px * var(--k));
}

.sf-drawer__shop > span {
	position: absolute;
	top: calc(7.18px * var(--k));  /* 36.5 − 0.9325 × 10 − 20 */
	left: calc(26.7px * var(--k)); /* 223.7 − 197 */
}

.sf-drawer__close {
	position: absolute;
	top: calc(26.2px * var(--k));
	left: calc(333px * var(--k));
	width: calc(27.5px * var(--k));
	height: calc(14.6px * var(--k));
}

.sf-drawer__close span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(31.13px * var(--k)); /* √(27.5² + 14.6²) */
	height: 2px;
	margin: -1px 0 0 calc(-15.565px * var(--k));
	background: var(--c-black);
	transform: rotate(27.97deg);
}

.sf-drawer__close span:nth-child(2) {
	transform: rotate(-27.97deg);
}

.sf-drawer__body {
	padding: 0 calc(25px * var(--k)) calc(40px * var(--k));
}

.sf-drawer__list {
	padding-top: calc(23.1px * var(--k)); /* 1 行目の文字の上端 104.08 − 15.98 − 65 */
}

/* v4 K10：XD はカテゴリーの線 137.6 → お知らせの基線 164.1＝26.5（他の行は 31.4）。1 行目（カテゴリー）は ±1 内・2 行目以降が一律 +3.9 なので、2 行目の上の余白だけ 4.8 詰める */
.sf-drawer__list > .sf-drawer__item:nth-child(2) > .sf-drawer__link {
	padding-top: calc(11.18px * var(--k));
}

.sf-drawer__link {
	position: relative;
	display: block;
	width: 100%;
	padding: calc(15.98px * var(--k)) 0 calc(17.02px * var(--k));
	border-bottom: 1px solid var(--c-line);
	font-family: var(--ff-regular);
	font-weight: var(--fw-regular);
	font-size: var(--fs-16);
	line-height: 1;
	text-align: left;
}

.sf-drawer__link .sf-chev {
	top: calc(21.98px * var(--k));
	left: calc(88px * var(--k));
}

.sf-drawer__cat {
	padding-top: calc(8.9px * var(--k)); /* 項目 y73 − 65（v4 K11：雑貨の基線 102.0 → XD 102.9） */
}

/* v4 K11：SP の並びは XD「SP_メニュー – 1」の順（照明はテーブルの次）。PC のメガメニューは WP メニューの順のまま */
.sf-drawer__cat-list > li:nth-child(n+6) { order: 2; }
.sf-drawer__cat-list > li.menu-icon-lighting { order: 1; }
/* v4 K11：XD の項目間隔は不均等（52.1/52/52/55.6/51/53/52/53/52/49/52）。等間隔 52 からの累積差を当てる */
.sf-drawer__cat-list > li.menu-icon-table,
.sf-drawer__cat-list > li.menu-icon-desk,
.sf-drawer__cat-list > li.menu-icon-storage,
.sf-drawer__cat-list > li.menu-icon-lighting,
.sf-drawer__cat-list > li.menu-icon-mirror,
.sf-drawer__cat-list > li.menu-icon-food,
.sf-drawer__cat-list > li.menu-icon-vintage,
.sf-drawer__cat-list > li.menu-icon-outlet,
.sf-drawer__cat-list > li.menu-icon-all { position: relative; }
.sf-drawer__cat-list > li.menu-icon-table { top: calc(3.7px * var(--k)); }    /* 314.6 */
.sf-drawer__cat-list > li.menu-icon-lighting { top: calc(2.7px * var(--k)); } /* 365.6 */
.sf-drawer__cat-list > li.menu-icon-desk { top: calc(3.7px * var(--k)); }     /* 418.6 */
.sf-drawer__cat-list > li.menu-icon-storage { top: calc(3.7px * var(--k)); }  /* 470.6 */
.sf-drawer__cat-list > li.menu-icon-mirror { top: calc(4.7px * var(--k)); }   /* 523.6 */
.sf-drawer__cat-list > li.menu-icon-food { top: calc(4.7px * var(--k)); }     /* 575.6 */
.sf-drawer__cat-list > li.menu-icon-vintage { top: calc(4.7px * var(--k)); } /* 2026-11-03 食品の場所を引き継ぐ */
.sf-drawer__cat-list > li.menu-icon-outlet { top: 1.7px; }   /* 624.6 */
.sf-drawer__cat-list > li.menu-icon-all { top: 1.7px; }      /* 676.6 */

.sf-drawer__cat-list {
	display: grid;
	row-gap: calc(4px * var(--k)); /* 121 → 125 */
}

.sf-drawer__cat-list .sf-nav__link {
	position: relative;
	display: block;
	width: calc(256px * var(--k));
	height: calc(48px * var(--k));
	border-radius: calc(10px * var(--k));
	background: var(--c-white);
	color: var(--c-line);
	font-size: var(--fs-16);
	line-height: 1;
}

.sf-drawer__cat-list .sf-nav__icon {
	position: absolute;
	top: calc(6px * var(--k));
	left: calc(14.7px * var(--k));
	width: calc(36px * var(--k));
	height: calc(36px * var(--k));
}

.sf-drawer__cat-list .sf-nav__label {
	position: absolute;
	top: calc(14.98px * var(--k)); /* 102.9 − 0.9325 × 16 − 73 */
	left: calc(62.5px * var(--k)); /* 87.5 − 25 */
	white-space: nowrap;
}

/* 3周目 A-r13：XD SP_メニュー – 1 の各行の右の「＞」＝パス 78（6.5×11.8・#707070・x260.4＝札の左 25＋235.4・y＝札の上＋18・12 行とも同じ。design.json 実測）。名前で探しても出ない（「パス 78」）ので形と位置で特定した */
.sf-drawer__cat-list .sf-nav__link::after {
	content: "";
	position: absolute;
	top: calc(18px * var(--k));
	left: calc(235.4px * var(--k));
	width: calc(6.5px * var(--k));
	height: calc(11.8px * var(--k));
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.5 11.8'%3E%3Cpath d='M.35.35 5.9 5.9.35 11.45' fill='none' stroke='%23707070'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.sf-drawer__kw {
	position: relative;
	display: block;
	width: calc(325px * var(--k));
	height: calc(36px * var(--k));
	margin-top: calc(70.8px * var(--k)); /* 最後の線 533.2 → 604 */
	border-radius: calc(8px * var(--k));
	background: rgba(18, 19, 43, 0.146);
	color: var(--c-white);
	font-family: var(--ff-medium);
	font-weight: var(--fw-medium);
	font-size: calc(19px * var(--k));
	line-height: 1;
}

.sf-drawer__kw img {
	position: absolute;
	top: calc(9.4px * var(--k));
	left: calc(7.9px * var(--k));
	width: calc(17px * var(--k));
	height: calc(17px * var(--k));
}

.sf-drawer__kw > span {
	position: absolute;
	top: calc(7.28px * var(--k));  /* 629 − 0.9325 × 19 − 604 */
	left: calc(28.7px * var(--k)); /* 53.7 − 25 */
}

/* ───────── フッター（トップページ y7617 h731） ───────── */
.sf-footer {
	background: var(--c-navy);
	color: var(--c-white);
}

.sf-footer__in {
	position: relative;
	width: var(--w-content);
	height: calc(731px * var(--k));
	margin-inline: auto;
	padding-top: calc(98.02px * var(--k)); /* 見出しの上端 7734.6 − 0.9325 × 21 − 7617 */
}

.sf-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, calc(304px * var(--k)))); /* 列 x227／531／835／1139 */
	row-gap: calc(55.84px * var(--k)); /* 1 段目の最後の行 7959.58 → 2 段目の見出し 8015.42 */
}

.sf-footer__head {
	width: calc(232px * var(--k));
	max-width: 100%;
	font-size: var(--fs-21);
	line-height: 1;
}

.sf-footer__head.has-line {
	padding-bottom: calc(17.48px * var(--k)); /* 見出しの下端 7736.02 → 線 7753.5 */
	border-bottom: 2px solid var(--c-line);
}

/* 2 段目の見出しは線まで 14.08（XD：ベースライン 8035・線 8051.5） */
.sf-footer__group:nth-child(n+5) .sf-footer__head.has-line {
	padding-bottom: calc(14.08px * var(--k));
}

.sf-footer__list {
	margin-top: calc(14.75px * var(--k)); /* 線の下端 7755.5 → 1 行目の箱 7770.25 */
	font-size: var(--fs-21);
	line-height: calc(calc(142px * var(--k)) / 3); /* ベースライン 7803／7850／7898／7945 */
}

.sf-footer__link {
	white-space: nowrap;
}

/* v4 I1：1 段目（group 1〜4）の 3 行目だけ calc(142px/3) の丸めで −1.1〜−1.5（1 周目は 1546px 以上だけ。中間幅は列組みが違う） */
/* v4-5 W-6：1 段目の 3 行目は C +0.5／W +1.2（W の基線が 0.5〜0.7 下）。0.5px にして C 0.0／W +0.7。2 段目の 2 行目を一緒に変えると C の 01・06・07・09・11 で宇都宮店が −1.0〜−1.2 になるので 1px のまま */
@media (min-width: 1160px) {
	.sf-footer__group:nth-child(-n+4) .sf-footer__list li:nth-child(3) {
		position: relative;
		top: 0.5px;
	}

	.sf-footer__group:nth-child(n+5) .sf-footer__list li:nth-child(2) {
		position: relative;
		top: 1px;
	}
}

.sf-footer__bottom {
	position: absolute;
	right: 0;
	bottom: calc(74px * var(--k)); /* ロゴの下端 8274 → 8348 */
	left: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.sf-footer__logo {
	display: block;
	line-height: 0;
}

.sf-footer__logo img {
	display: block;
	width: calc(283px * var(--k));
	height: calc(51px * var(--k));
}

.sf-footer__address {
	display: none; /* XD に住所行は無い（inc/data.php が空の間は出ない） */
}

.sf-footer__sns {
	display: flex;
	align-items: flex-start;
	gap: calc(29px * var(--k)); /* 1549.4 → 1578.4 */
}

.sf-footer__sns img {
	display: block;
}

.sf-footer__sns li:nth-child(1) img { width: calc(37.4px * var(--k)); height: calc(37.4px * var(--k)); margin-top: calc(7px * var(--k)); }   /* y8230 */
.sf-footer__sns li:nth-child(2) img { width: calc(42.6px * var(--k)); height: calc(40.7px * var(--k)); margin-top: calc(5px * var(--k)); }   /* y8228 */
.sf-footer__sns li:nth-child(3) img { width: calc(42.9px * var(--k)); height: calc(29.4px * var(--k)); margin-top: calc(11px * var(--k)); }  /* y8234 */

.sf-footer__copy {
	display: none; /* PC の XD にコピーライトは無い。SP は SP_取扱商品 だけに描いてある */
}

/* ───────── 768〜1826：ヘッダーを SP 型に（PC ヘッダーはロゴ 283＋ナビ 870.2＋ボタン 416 と余白で幅 1827 を要る。5周目 H） ───────── */
@media (max-width: 1370px) {
	.sf-gnav,
	.sf-header__btns {
		display: none;
	}

	.sf-header__sp {
		display: block;
	}

	.sf-header__sp .sf-header__sp-icon:nth-child(1) { top: calc(49.65px * var(--k)); right: calc(133.9px * var(--k)); width: calc(23.8px * var(--k)); height: calc(23.7px * var(--k)); }
	.sf-header__sp .sf-header__sp-icon:nth-child(2) { top: calc(46.85px * var(--k)); right: calc(84.8px * var(--k)); width: calc(32.2px * var(--k)); height: calc(29.3px * var(--k)); }
	.sf-header__sp .sf-burger { top: calc(51.7px * var(--k)); right: calc(40px * var(--k)); }

	.sf-mega {
		display: none;
	}
}

/* ───────── 768〜1099：フッターは 2 列 ───────── */
@media (max-width: 824px) {
	.sf-footer__in {
		height: auto;
		padding-bottom: calc(200px * var(--k));
	}

	.sf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, calc(304px * var(--k))));
	}

	.sf-footer__group.is-empty {
		display: none;
	}

	.sf-footer__group:nth-child(n+3) .sf-footer__head.has-line {
		padding-bottom: calc(17.48px * var(--k));
	}
}

/* ───────── ≤767：SP の XD ───────── */
@media (max-width: 767px) {
	/* ヘッダー（SP_取扱商品 y0〜65） */
	.sf-header__in {
		padding: 0;
	}

	.sf-header__in > .sf-header__logo {
		position: absolute;
		top: 19.8px;
		left: 18px;
		margin: 0;
	}

	.sf-header__in > .sf-header__logo img {
		width: 141.5px;
		height: 25.5px;
	}

	.sf-header__sp .sf-header__sp-icon:nth-child(1) { top: 20.1px; right: auto; left: 231.3px; width: 23.8px; height: 23.7px; }
	.sf-header__sp .sf-header__sp-icon:nth-child(2) { top: 15px; right: auto; left: 272px; width: 32.2px; height: 29.3px; }
	.sf-header__sp .sf-burger { top: 22.25px; right: auto; left: 324.5px; } /* 線 y23（太さ 1.5 の中心） */

	/* フッター（SP_TOP – 2カラム – 1 y6883 h1075） */
	.sf-footer__in {
		height: 1075px;
		padding: 87.15px 0 0; /* 見出しの上端 6986 − 0.9325 × 17 − 6883 */
	}

	.sf-footer__grid {
		grid-template-columns: 183px 142.5px; /* 列 x25／208 */
		row-gap: 51px;
	}

	.sf-footer__group.is-empty {
		display: block;
	}

	.sf-footer__head {
		width: 142.5px;
		font-size: var(--fs-17);
	}

	.sf-footer__head.has-line,
	.sf-footer__group:nth-child(n+3) .sf-footer__head.has-line,
	.sf-footer__group:nth-child(n+5) .sf-footer__head.has-line {
		padding-bottom: 12.35px; /* 見出しの下端 6987.15 → 線 6999.5 */
	}

	.sf-footer__list {
		margin-top: 16.65px; /* 線の下端 7001.5 → 1 行目の箱 7018.15 */
		font-size: var(--fs-17);
		line-height: 35px;   /* ベースライン 7043／7078／7113 */
	}

	/* v4 J3：XD の SP フッターは語ごとに字間が違う（footer.php で題名からクラスを付ける） */
	.sf-ls-n10 { letter-spacing: -0.1em; }
	.sf-ls-n05 { letter-spacing: -0.05em; }

	/* XD SP の全フッター：「茶房 贔のメニュー」だけ兄弟より 2〜3 下（footer.php で題名からクラスを付ける） */
	.sf-ty-p25 { position: relative; top: 2.5px; }

	.sf-footer__bottom {
		position: static;
		display: block;
		margin-top: 63.85px; /* 最後の行 7665.15 → ロゴ 7729 */
		text-align: center;
	}

	.sf-footer__logo {
		display: inline-block;
	}

	.sf-footer__logo img {
		width: 251.2px;
		height: 45.27px;
	}

	.sf-footer__sns {
		justify-content: center;
		gap: 26.4px;          /* 139.1 → 165.5 */
		margin-top: 92.73px;  /* ロゴの下端 7774.27 → LINE 7867 */
	}

	.sf-footer__sns li:nth-child(1) img { width: 34.1px; height: 34px; margin-top: 1.8px; }   /* y7868.8 */
	.sf-footer__sns li:nth-child(2) img { width: 38.8px; height: 37px; margin-top: 0; }       /* y7867 */
	.sf-footer__sns li:nth-child(3) img { width: 39.1px; height: 26.8px; margin-top: 5.5px; } /* y7872.5 */

	/* SP_取扱商品 のフッターだけ字が 15px・列 x36／206.3・縦組みのロゴ・コピーライトあり（XD の描き分けどおり） */
	.page-slug-products .sf-footer__in {
		width: auto;
		margin: 0 0 0 36px;
		padding-top: 87.01px; /* 見出しの上端 1221 − 0.9325 × 15 − 1120 */
	}

	.page-slug-products .sf-footer__grid {
		grid-template-columns: 170.3px 132.6px; /* 列 x36／206.3、線の幅 132.6 */
		row-gap: 47.91px; /* 1 段目の最後の行 1349 → 2 段目の見出し 1396.91 */
	}

	.page-slug-products .sf-footer__head {
		width: 132.6px;
		font-size: var(--fs-15);
	}

	.page-slug-products .sf-footer__head.has-line,
	.page-slug-products .sf-footer__group:nth-child(n+3) .sf-footer__head.has-line,
	.page-slug-products .sf-footer__group:nth-child(n+5) .sf-footer__head.has-line {
		padding-bottom: 12.49px; /* 見出しの下端 1222.01 → 線 1234.5 */
	}

	.page-slug-products .sf-footer__list {
		margin-top: 14.84px;   /* 線の下端 1236.5 → 1 行目の箱 1251.34 */
		font-size: var(--fs-15);
		line-height: 32.55px;  /* ベースライン 1274.1／1306.6／1339.2 */
	}

	.page-slug-products .sf-footer__bottom {
		width: calc(100% + 36px);
		margin: 61.81px 0 0 -36px; /* 最後の行 1853.49 → ロゴ 1915.3 */
	}

	.page-slug-products .sf-footer__logo img {
		width: 106.5px;
		height: 70.1px;
		content: url("../img/logo-white-v.svg"); /* SP_取扱商品 の縦組みロゴ（グループ 239 から書き出し） */
	}

	.page-slug-products .sf-footer__sns {
		gap: 27.9px;          /* 145.1 → 173 */
		margin-top: 47.6px;   /* ロゴの下端 1985.4 → LINE 2033 */
	}

	.page-slug-products .sf-footer__sns li:nth-child(1) img { width: 23.1px; height: 23.1px; margin-top: 1.2px; }  /* y2034.2 */
	.page-slug-products .sf-footer__sns li:nth-child(2) img { width: 26.3px; height: 25.1px; margin-top: 0; }      /* y2033 */
	.page-slug-products .sf-footer__sns li:nth-child(3) img { width: 26.5px; height: 18.1px; margin-top: 3.7px; }  /* y2036.7 */

	.page-slug-products .sf-footer__copy {
		display: block;
		width: 325px;
		margin: 39.55px 0 0 -11px; /* x25〜350 の中央。LINE の下端 2058.1 → 文字の上端 2096.15（EB Garamond の字面は近似）。2周目 A-13：y −1.5 を +1.5（旧 38.05px） */
		font-family: var(--ff-latin);
		font-weight: var(--fw-latin);
		font-size: var(--fs-12);
		line-height: 1;
		/* 3周目 A-r4：字間は XD の値に戻す（EB Garamond の字幅差 28.1 は別表）。y の直し（margin 39.55px）は残す */
		letter-spacing: 0.025em;
		text-align: center;
	}
}

/* ── 2026-11-05 吉村さん依頼「グレー削除　表示中のページ上でメニューを表示する」（指示書_20261105_メニューの灰色を消す） ── */
/* 画面全体の灰色（#bebebe）をやめ、見ていたページの上にメニューの帯だけを出す。帯の色は今の見た目（白 80% × 灰色 = #f2f2f2）のまま。帯の外を押すと閉じるのは今までどおり */
.sf-mega {
	background: transparent;
}

.sf-mega__panel {
	background: #f2f2f2;
}
/* ── 2026-11-05 メニューの灰色を消す ここまで ── */

/* ── 2026-11-09 先方「ヘッダーを固定」（codex_指示書_実装 §1） ── */
/* ページ内リンクの飛び先が固定ヘッダーの下に隠れないようにする */
html {
	scroll-padding-top: var(--h-header);
}

/* WP の管理バーが出ている時はその下に置く（管理バー 32px／782px 以下 46px／600px 以下はバーが流れるので 0） */
.admin-bar .sf-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .sf-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .sf-header {
		top: 0;
	}
}
/* ── 2026-11-09 ヘッダーを固定 ここまで ── */

/* 350px以下のフッターと取扱商品を表示幅の内側へ収める。 */
@media (max-width: 350px) {
	.sf-footer__in,
	.page-slug-products .sf-footer__in { width: calc(100% - 20px); margin-inline: auto; }
	.sf-footer__grid,
	.page-slug-products .sf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
	.page-slug-products .sf-footer__bottom { width: 100%; margin-left: 0; }
	.page-slug-products .sf-footer__copy { width: 100%; margin-inline: 0; }
	.page-slug-products .sf-products { padding-left: 0; column-gap: 0; justify-content: space-between; }
	.page-slug-products .sf-products__item:nth-child(n) .sf-products__label { margin-inline: -10px; }
}
