/* リセット・タイポグラフィの土台 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--lw-ink);
	color: var(--lw-text);
	font-family: var(--lw-font-jp);
	font-size: var(--lw-fs-body);
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	/* 注意: ここで overflow-x: hidden を付けない（はみ出しを隠さない）。 */
}

[hidden] {
	display: none !important;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--lw-text);
	text-decoration: none;
}

a:hover {
	color: var(--lw-accent-soft);
}

button {
	font-family: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--lw-font-en);
	font-weight: 700;
	line-height: 1.1;
}

p {
	margin: 0;
}

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

/* フォーカス表示（全リンク・ボタン共通） */
:focus-visible {
	outline: 2px solid var(--lw-accent-pale);
	outline-offset: 2px;
}

/* スクリーンリーダー専用 */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip: auto;
	background: var(--lw-paper);
	color: var(--lw-paper-text);
}

/* ページ内アンカーの停止位置（stickyヘッダー分） */
[id] {
	scroll-margin-top: calc(var(--lw-header-h) + 16px);
}

/* 「確認中」表示（意味のある情報なので muted。dim は使わない） */
.lw-tbc {
	color: var(--lw-muted);
	border-bottom: 1px dashed var(--lw-muted);
}

/* 動きは使わない（骨組み段階）。将来アニメーションを足す場合は prefers-reduced-motion を必ず考慮する。 */

/* ページ内リンク（HERO の RESERVE → #reserve など）：固定ヘッダーに隠れない。動きは reduced-motion では無効 */
html {
	scroll-padding-top: var(--lw-header-h);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
