/* =============================================================================
   Base — typography defaults, document-level resets
   ========================================================================== */

/* アンカーリンクのスムーススクロール + sticky header 分の上部オフセット。
   グローバルに効かせるため base に置く (旧 faq-page.css から移動)。 */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.tracking-tattoo,
body {
	background-color: #FFFFFF;
	color: var(--tt-ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 背景画像を ::before に分離して position: fixed で viewport に固定する。
   横幅は最大1920pxに制限、X軸中央配置。1920px超のビューポートでは
   両側に body の背景色 (var(--tt-bg)) が見える。 */
body.tracking-tattoo::before,
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(100vw, 1920px);
	height: 100vh;
	z-index: -1;
	background-image: url("../../../../uploads/2025/05/PC-backimg-619x2048.webp");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-heading);
	font-weight: var(--fw-heading);
	line-height: var(--lh-heading);
	letter-spacing: var(--tracking-heading);
	color: var(--tt-ink);
	margin: 0 0 var(--space-5);
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }

.display,
.tt-display {
	font-family: var(--font-display);
	font-weight: var(--fw-display);
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	letter-spacing: var(--tracking-display);
	text-transform: uppercase;
}

p {
	margin: 0 0 var(--space-5);
}

a,
a:visited {
	color: var(--tt-muted);
	text-decoration: none;
	transition: color var(--dur-base) var(--ease);
}

a:hover,
a:focus-visible,
a:visited:hover,
a:visited:focus-visible {
	color: var(--tt-ink);
}

a:focus-visible {
	outline: 2px solid var(--tt-ink);
	outline-offset: 2px;
}

/* 親_sテーマの a:focus { outline: thin dotted } を打ち消す。
   モダンな運用: 「マウス/タップで focus 状態になった時の dotted」は不要。
   キーボード操作の時だけ :focus-visible で独自リングが出る。 */
a:focus:not(:focus-visible) {
	outline: 0;
}

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

hr {
	border: 0;
	border-top: 1px solid var(--tt-line);
	margin: var(--space-7) 0;
}
