/* ============================================================
   base.css — モダンリセット + 共通ベーススタイル
   ============================================================ */

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

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-jp);
	font-size: var(--fs-body); /* 16px */
	line-height: var(--lh-body); /* 2.25 = 36px line-height */
	letter-spacing: var(--ls-body); /* 0.032em */
	color: var(--color-text); /* #333631 */
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* ───── Headings ───── */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-jp);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--color-text);
}

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

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

dl, dt, dd {
	margin: 0;
}

/* ───── Links ───── */
a {
	color: inherit;
	text-decoration: none;
	transition: opacity var(--duration-fast) var(--easing);
}

a:hover {
	opacity: 0.7;
}

a:focus-visible {
	outline: 2px solid var(--color-brand-green);
	outline-offset: 2px;
}

/* ───── Media ───── */
img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

img {
	border: 0;
}

/* ───── Form ───── */
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
}

input,
textarea,
select {
	background: var(--color-bg);
}

textarea {
	resize: vertical;
}

/* ───── Misc ───── */
hr {
	border: 0;
	height: 1px;
	background: var(--color-divider); /* #333631 */
}

main:focus {
	outline: none;
}

/* ───── A11y utilities ───── */
.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;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	padding: var(--space-3) var(--space-4);
	background: var(--color-brand-green);
	color: var(--color-text-white);
	text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
	left: var(--space-4);
	top: var(--space-4);
}

.no-posts {
	padding: var(--space-12) var(--space-4);
	text-align: center;
	color: var(--color-text-muted);
}

/* ───── 共通: Section divider ───── */
.section-divider {
	display: block;
	width: 621px;
	max-width: 80%;
	height: 1px;
	margin: var(--space-16) auto;
	background: var(--color-divider); /* #333631 */
	border: 0;
}

/* ───── プレースホルダー画像のフォールバック背景 ───── */
img[src*="placeholder"] {
	background: var(--color-brand-light);
}
