/* v2 の要素の既定値。クラスに頼らない最低限だけを置く */
@layer base {
	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}

	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
		scroll-padding-top: 5rem;
	}

	body {
		margin: 0;
		background: var(--c-bg);
		color: var(--c-ink);
		font-family: var(--f-ja);
		font-size: var(--fs-md);
		line-height: var(--lh-body);
		overflow-wrap: anywhere;
		-webkit-font-smoothing: antialiased;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		margin: 0;
		line-height: var(--lh-tight);
		font-weight: 700;
		word-break: auto-phrase;
	}

	p,
	ul,
	ol,
	dl,
	figure,
	blockquote {
		margin: 0;
	}

	img,
	svg,
	video {
		max-width: 100%;
		height: auto;
		vertical-align: middle;
	}

	a {
		color: inherit;
	}

	button,
	input,
	select,
	textarea {
		font: inherit;
		color: inherit;
	}

	:focus-visible {
		outline: 3px solid var(--c-focus);
		outline-offset: 2px;
	}

	code,
	pre {
		font-family: var(--f-mono);
	}

	/* 読み上げにだけ渡す文字。部品ごとのクラスもここで隠す */
	.screen-reader-text,
	.v2-sr,
	.article-actions__label--sr,
	.ranking-visually-hidden,
	.eyecatch-stat__label,
	.svc-term__sr {
		position: absolute !important;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	@media (prefers-reduced-motion: reduce) {
		*,
		*::before,
		*::after {
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
			transition-duration: 0.01ms !important;
			scroll-behavior: auto !important;
		}
	}
}
