/**
 * css/foundation/reset.css
 * ============================================================
 * A LEGEND 2：Reset
 * ============================================================
 *
 * 役割：
 * - ブラウザ差を小さくし、テーマ全体の土台を整えます。
 * - WordPress管理バーやブロックエディタ由来の基本挙動を壊さない範囲に留めます。
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100%;
	margin: 0;
}

img,
picture,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
	border-style: none;
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
	appearance: button;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

ul,
ol {
	padding-left: 1.4em;
}

blockquote,
figure {
	margin: 0;
}

iframe {
	max-width: 100%;
	border: 0;
}

[hidden] {
	display: none !important;
}

:where(:focus-visible) {
	outline: 2px solid var(--aleg2-color-primary);
	outline-offset: 4px;
}

:where(.screen-reader-text) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:where(.screen-reader-text:focus) {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: var(--aleg2-z-debug);
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	clip: auto;
	color: #000;
	background: #fff;
	border-radius: var(--aleg2-radius-sm);
	box-shadow: var(--aleg2-shadow-soft);
}