/**
 * base.css — 初期化・本文の既定・共通の小物。
 *
 * 数値の根拠：design.json（XD）。文字の箱の上端＝ベースライン − 行間/2 − 0.4325 × 文字サイズ
 * （Noto Serif JP の ascent 1.151／descent 0.286 から）。行間の無い 1 行の文字は line-height:1。
 * font-family／font-weight は var(--ff-*)／var(--fw-*) だけを書く（指示書 §2-2・§4 #13）。
 *
 * @package sf-style
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-black);
	font-family: var(--ff-light);
	font-weight: var(--fw-light);
	font-feature-settings: var(--fp);
	letter-spacing: var(--ls);
	font-size: var(--fs-16);
	line-height: var(--lh-16);
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ff-light);
	font-weight: var(--fw-light);
	font-size: inherit;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	vertical-align: bottom;
}

img {
	height: auto;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: inherit;
	font-feature-settings: inherit;
	color: inherit;
}

button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

/* data-xd の入れ子の span は見た目を持たない（親の値をそのまま受け継ぐ） */
.sf-xd {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

/* 画面の読み上げだけに残す */
.sf-vh {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.sf-skip {
	position: absolute;
	top: calc(-100px * var(--k));
	left: 0;
	z-index: 1000;
	padding: calc(8px * var(--k)) calc(16px * var(--k));
	background: var(--c-navy);
	color: var(--c-white);
}

.sf-skip:focus {
	top: 0;
}

/* 仮の写真（XD の #a0bab6 の箱）。アイキャッチが入ると画像に替わる
   2026-11-14 B-6：箱の中央に三島家具のロゴ（紺 #12132b・箱の幅の 36%）。白いロゴは箱の色との差が 2.06:1 で読めないため紺（8.84:1）。
   箱の色・大きさ・角は前のまま。画像の要素を足さない（背景 1 枚・同じ SVG を全部の箱で使い回す） */
.sf-ph {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background: var(--c-ph);
	background-image: url(../img/logo.svg);
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 36% auto;
}

/* リンク先が未決の項目（§1-7 #5） */
.is-nolink {
	cursor: default;
}

/* SP だけで改行する */
.sf-br-sp {
	display: none;
}

@media (max-width: 767px) {
	.sf-br-sp {
		display: inline;
	}
}

/* キーボードで触った時の枠 */
:focus-visible {
	outline: 2px solid var(--c-navy);
	outline-offset: 2px;
}
