@layer reset, base, layout, components, utilities;

/* ========== デザイン変数 ========== */
:root {
	/* color */
	--color-accent: #f23a2e;
	--color-text-1: #000;
	--color-text-2: #4d4d4d;
	--color-text-3: #666;
	--color-text-4: #a6a6a6;
	--color-text-inverse: #fff;
	--color-bg-base: #fff;
	--color-bg-sub: #f8f9fa;

	/* font */
	--font-base: "Nunito Sans", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
	--fw-light: 300;
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-bold: 700;
	--fw-black: 900;

	--fs-3xl: 5rem;      /* 80 */
	--fs-2xl: 3.5rem;    /* 56 */
	--fs-xl: 2rem;       /* 32 */
	--fs-lg: 1.5rem;     /* 24 */
	--fs-md: 1.25rem;    /* 20 */
	--fs-base: 1rem;     /* 16 */
	--fs-sm: 0.9rem;     /* 14.4 */
	--fs-xs: 0.75rem;    /* 12 */

	/* layout */
	--content-width: 1110px;
	--gutter: 15px;
}

/* ========== reset ========== */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
	img, picture, svg, video { display: block; max-width: 100%; height: auto; }
	input, button, textarea, select { font: inherit; }
	a { color: inherit; }
}

/* ========== base ========== */
@layer base {
	body {
		font-family: var(--font-base);
		font-size: var(--fs-base);
		font-weight: var(--fw-regular);
		line-height: 1.7;
		color: var(--color-text-2);
		background: var(--color-bg-base);
		-webkit-font-smoothing: antialiased;
	}
	a { text-decoration: none; }
	:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
}

/* ========== layout ========== */
@layer layout {
	.container {
		max-width: calc(var(--content-width) + var(--gutter) * 2);
		margin-inline: auto;
		padding-inline: var(--gutter);
	}
}