/**
 * Base styles — リセットとページレベルのデフォルト。
 * セクション固有の装飾は main.css 側で扱う。
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	padding: 0;
	background-color: var(--color-page-bg);
	color: var(--color-text-default);
	font-family: var(--font-family-base);
	font-weight: 400;
	font-size: var(--font-size-md);
	line-height: var(--line-height-base);
	letter-spacing: var(--letter-spacing-base);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--color-link);
	text-decoration: underline;
	transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
	color: var(--color-link-hover);
}

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

p {
	margin: 0;
}

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

button {
	font-family: inherit;
}

/* 視覚的に隠すが SR からは読み上げる */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 600px 以上で非表示（改行調整などに使用） */
.display-md-hidden {
	display: inline;
}

@media (min-width: 600px) {
	.display-md-hidden {
		display: none !important;
	}
}

.site {
	width: 100%;
	overflow-x: hidden;
}

.site-main {
	display: block;
}

/* 汎用コンテナ */
.container {
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--space-section-x);
}

@media (min-width: 600px) {
	.container {
		max-width: var(--layout-max-md);
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: var(--layout-max-lg);
	}
}

[data-aos="fade-up"] {
	transform: translate3d(0, 40px, 0);
}
