/*
 * Base: reset + typography + layout primitives
 */

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

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	color: var(--text);
	background: var(--bg);
	font-feature-settings: "palt";
}

img, svg, video {
	max-width: 100%;
	height: auto;
	display: block;
	/* スマホ撮影画像の EXIF 回転情報を尊重する(一部ブラウザで未尊重の問題対策) */
	image-orientation: from-image;
}

a {
	color: var(--primary-dk);
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover {
	color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--sp-4);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--brand-navy);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
	margin: 0 0 var(--sp-4);
}

ul, ol {
	margin: 0 0 var(--sp-4);
	padding-left: 1.25em;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: var(--sp-8) 0;
}

/* --- Layout primitives --- */

.en-container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--sp-4);
	padding-right: var(--sp-4);
}

.en-container--narrow {
	max-width: var(--container-narrow);
}

.en-section {
	padding-top: var(--sp-16);
	padding-bottom: var(--sp-16);
}

.en-section--muted {
	background: var(--bg-muted);
}

.en-section--navy {
	background: var(--brand-navy);
	color: var(--text-on-navy);
}
.en-section--navy h1,
.en-section--navy h2,
.en-section--navy h3 {
	color: var(--text-on-navy);
}

.en-grid {
	display: grid;
	gap: var(--sp-6);
}
.en-grid--2 { grid-template-columns: repeat(2, 1fr); }
.en-grid--3 { grid-template-columns: repeat(3, 1fr); }
.en-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.en-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.en-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.en-grid--4,
	.en-grid--3,
	.en-grid--2 { grid-template-columns: 1fr; }
	h1 { font-size: var(--fs-3xl); }
	h2 { font-size: var(--fs-2xl); }
	h3 { font-size: var(--fs-xl); }
	.en-section { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
}

.en-text-muted { color: var(--text-muted); }
.en-text-center { text-align: center; }
.en-fw-bold { font-weight: 700; }

.en-hand {
	font-family: var(--font-hand);
	font-weight: 400;
}

/* accessibility: visually hidden */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}
