/*
Theme Name: 学童クラブ・うだ
Description: NPO法人 学童クラブ・うだ のためのオリジナルテーマ。各学童保育室の情報と「学童だより」を見やすく掲載します。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gakudou-uda
License: GPL-2.0-or-later
*/

/* ---------- 基本 ---------- */
:root {
	--c-primary: #3d8b4d;
	--c-primary-dark: #2a6637;
	--c-primary-soft: #e7f3e5;
	--c-sky: #eaf4fb;
	--c-accent: #f08a24;
	--c-accent-soft: #fff1e0;
	--c-bg: #fffcf5;
	--c-surface: #ffffff;
	--c-text: #2e2a26;
	--c-muted: #6b645c;
	--c-line: #ece5d8;

	--c-haibara: #d9604a;
	--c-haibara-higashi: #2f7bbf;
	--c-haibara-nishi: #b9850c;
	--c-muro: #3d8b4d;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 2px 4px rgba(60, 45, 20, .04), 0 8px 24px rgba(60, 45, 20, .07);
	--wrap: 1120px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: .03em;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-primary-dark); text-underline-offset: .2em; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 { line-height: 1.45; font-weight: 700; margin: 0 0 .6em; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; padding: 8px 16px; border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- ヘッダー ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 252, 245, .94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); margin-right: auto; }
.site-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.site-brand__sub { font-size: 12px; color: var(--c-muted); }
.site-brand__name { font-size: 19px; font-weight: 700; }
.custom-logo-link img { width: auto; max-height: 48px; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.global-nav a {
	display: block; padding: 8px 14px; border-radius: 999px;
	text-decoration: none; color: var(--c-text); font-weight: 500; font-size: 15px;
}
.global-nav a:hover, .global-nav .current-menu-item > a, .global-nav .current_page_item > a,
.global-nav .current-menu-parent > a, .global-nav .current_page_parent > a {
	background: var(--c-primary-soft); color: var(--c-primary-dark);
}

.nav-toggle {
	display: none; border: 0; background: var(--c-primary); color: #fff;
	width: 48px; height: 48px; border-radius: 50%; cursor: pointer; padding: 0;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto;
	position: relative; transition: transform .2s, background .2s; border-radius: 2px;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.global-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--c-bg); border-bottom: 1px solid var(--c-line);
		padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
	}
	.nav-open .global-nav { display: block; }
	.global-nav ul { flex-direction: column; }
	.global-nav a { padding: 14px 16px; font-size: 16px; }
	.site-brand__name { font-size: 17px; }
}
@media (max-width: 420px) {
	.site-brand { gap: 8px; }
	.site-brand img { width: 36px; height: 36px; }
	.site-brand__name { font-size: 15px; letter-spacing: 0; white-space: nowrap; }
	.site-brand__sub { font-size: 11px; }
}

/* ---------- ボタン・バッジ ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
	background: var(--c-primary); color: #fff; border: 2px solid var(--c-primary);
	transition: background .15s, color .15s, transform .15s; line-height: 1.5;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-primary-dark); }
.btn--ghost:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn--accent { background: var(--c-accent); border-color: var(--c-accent); }
.btn--accent:hover { background: #d97411; border-color: #d97411; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.badge {
	display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.4;
	padding: 3px 10px; border-radius: 999px; text-decoration: none;
	background: var(--c-primary-soft); color: var(--c-primary-dark); white-space: nowrap;
}
a.badge:hover { filter: brightness(.95); color: inherit; }
.badge--haibara { background: #fbe7e2; color: #a63e2b; }
.badge--haibara-higashi { background: #e2eef9; color: #215d93; }
.badge--haibara-nishi { background: #fbf0d4; color: #7c5806; }
.badge--muro { background: #e3f2e3; color: #2a6637; }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--tint { background: var(--c-sky); }
.section--green { background: var(--c-primary-soft); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(22px, 3.2vw, 30px); margin: 0; display: flex; align-items: center; gap: 12px; }
.section-title::before {
	content: ""; width: 12px; height: 12px; border-radius: 50%;
	background: var(--c-accent); box-shadow: 18px 0 0 var(--c-primary); margin-right: 18px; flex: none;
}
.section-lead { color: var(--c-muted); margin: 6px 0 0; font-size: 15px; }
.section-more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- ヒーロー ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 80px); position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px;
	border-radius: 50%; background: var(--c-sky); z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--c-primary-dark); background: var(--c-primary-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero__title { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.4; margin-bottom: 18px; }
.hero__title em { font-style: normal; color: var(--c-primary); background: linear-gradient(transparent 68%, #ffe2b8 68%); }
.hero__text { color: var(--c-muted); margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px 32px 32px 120px; box-shadow: var(--shadow); }
.hero__media::after {
	content: ""; position: absolute; left: -18px; bottom: -18px; width: 96px; height: 96px;
	border-radius: 50%; background: var(--c-accent-soft); z-index: -1;
}
.hero__schools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }

@media (max-width: 820px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
	.hero__media img { border-radius: 24px 24px 24px 72px; }
}

/* ---------- お知らせリスト ---------- */
.news-list { list-style: none; margin: 0; padding: 0; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-list li + li { border-top: 1px solid var(--c-line); }
.news-list a {
	display: grid; grid-template-columns: 8.5em auto 1fr auto; align-items: center; gap: 8px 16px;
	padding: 18px 24px; text-decoration: none; color: var(--c-text);
}
.news-list a:hover { background: #fffaf0; color: var(--c-text); }
.news-list a:hover .news-list__title { color: var(--c-primary-dark); }
.news-list time { color: var(--c-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-list__title { font-weight: 500; }
.news-list__arrow { color: var(--c-primary); }
@media (max-width: 640px) {
	.news-list a { grid-template-columns: auto 1fr; padding: 16px 18px; }
	.news-list__title { grid-column: 1 / -1; }
	.news-list__arrow { display: none; }
}

/* ---------- 学童だよりカード ---------- */
.letter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .letter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .letter-grid { gap: 12px; } }

.letter-card {
	background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
	overflow: hidden; display: flex; flex-direction: column; border-top: 6px solid var(--school, var(--c-primary));
}
.letter-card__school { padding: 14px 18px 0; font-weight: 700; font-size: 16px; }
.letter-card__school small { display: block; font-weight: 500; font-size: 12px; color: var(--c-muted); }
.letter-card__thumb { display: block; margin: 12px 18px 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--c-line); background: #f6f2ea; }
.letter-card__thumb img { width: 100%; aspect-ratio: 1 / 1.25; object-fit: cover; object-position: top; transition: transform .3s; }
.letter-card__thumb:hover img { transform: scale(1.03); }
.letter-card__body { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.letter-card__title { font-size: 14px; color: var(--c-muted); margin: 0; }
.letter-card__links { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.letter-card__links .btn { padding: 8px 14px; font-size: 14px; }
.letter-card__empty { padding: 40px 18px; color: var(--c-muted); font-size: 14px; text-align: center; }
@media (max-width: 420px) {
	.letter-card__school, .letter-card__body { padding-left: 12px; padding-right: 12px; }
	.letter-card__thumb { margin: 10px 12px 0; }
	.letter-card__links .btn { padding: 8px 8px; font-size: 13px; }
}

.school--haibara { --school: var(--c-haibara); }
.school--haibara-higashi { --school: var(--c-haibara-higashi); }
.school--haibara-nishi { --school: var(--c-haibara-nishi); }
.school--muro { --school: var(--c-muro); }

/* ---------- 開室案内 ---------- */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .info-cards { grid-template-columns: 1fr; } }
.info-card { background: var(--c-surface); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.info-card h3 .icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-primary-soft); font-size: 20px; flex: none; }
.info-card--off h3 .icon { background: var(--c-accent-soft); }
.entry-content .info-card h3 { border-left: 0; padding-left: 0; margin-top: 0; }
.wp-block-column > .info-card { height: 100%; }
.info-card p, .info-card ul { margin: 0 0 .4em; }
.info-card ul { padding-left: 1.2em; }

/* ---------- 学童保育室（連絡先）カード ---------- */
.school-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .school-grid { grid-template-columns: 1fr; } }
.school-card {
	background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
	display: grid; grid-template-columns: 200px 1fr; scroll-margin-top: 96px;
}
.school-card__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.school-card__body { padding: 22px 24px; border-left: 6px solid var(--school, var(--c-primary)); }
.school-card__name { font-size: 19px; margin-bottom: 10px; }
.school-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; }
.school-card dt { color: var(--c-muted); font-size: 13px; padding-top: 2px; }
.school-card dd { margin: 0; }
.school-card dd a { font-weight: 700; font-variant-numeric: tabular-nums; }
.school-card__hours { font-size: 12px; color: var(--c-muted); display: block; }
.school-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.school-card__actions .btn { padding: 7px 16px; font-size: 14px; }
@media (max-width: 1000px) and (min-width: 761px) { .school-card { grid-template-columns: 1fr; } .school-card__photo img { aspect-ratio: 16 / 9; } .school-card__body { border-left: 0; border-top: 6px solid var(--school); } }
@media (max-width: 520px) { .school-card { grid-template-columns: 1fr; } .school-card__photo img { aspect-ratio: 16 / 9; } .school-card__body { border-left: 0; border-top: 6px solid var(--school); padding: 18px; } }

/* 紹介ページ用（詳細版） */
.school-detail { margin-bottom: 40px; }
.school-detail .school-card { grid-template-columns: 1fr 1fr; }
.school-detail .school-card__photo img { aspect-ratio: 4 / 3; }
.school-map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.school-map iframe { display: block; width: 100%; height: 280px; border: 0; }
@media (max-width: 760px) { .school-detail .school-card { grid-template-columns: 1fr; } .school-detail .school-card__body { border-left: 0; border-top: 6px solid var(--school); } }
.school-detail__news { margin-top: 16px; }
.school-detail__news h3 { font-size: 16px; }
.entry-content .news-list { padding-left: 0; }
.entry-content .news-list li + li { margin-top: 0; }
.entry-content .school-card__name { border-left: 0; padding-left: 0; margin-top: 0; }
.entry-content .school-detail h3 { margin-top: 0; }
.entry-content .school-detail__news h3 { margin-top: 24px; }

/* ---------- 募集バナー ---------- */
.recruit-banner {
	display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
	background: var(--c-accent-soft); border: 2px dashed #f3b979; border-radius: var(--radius); padding: 28px 32px;
}
.recruit-banner__icon { font-size: 44px; line-height: 1; }
.recruit-banner h2 { font-size: clamp(19px, 2.6vw, 24px); margin: 0 0 4px; }
.recruit-banner p { margin: 0; color: var(--c-muted); }
@media (max-width: 720px) { .recruit-banner { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; } }

/* ---------- 下層ページ ---------- */
.page-hero { background: var(--c-sky); padding: clamp(36px, 6vw, 64px) 0; position: relative; overflow: hidden; }
.page-hero::after {
	content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px;
	border-radius: 50%; background: rgba(61, 139, 77, .08);
}
.page-hero__title { font-size: clamp(24px, 4vw, 36px); margin: 0; position: relative; z-index: 1; }
.page-hero__meta { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--c-muted); font-size: 14px; position: relative; z-index: 1; }

.breadcrumb { font-size: 13px; color: var(--c-muted); margin-bottom: 10px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--c-muted); }

.page-body { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }

/* 本文（ブロックエディタの出力） */
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 {
	font-size: clamp(20px, 2.8vw, 26px); margin-top: 2.2em; padding: 0 0 12px;
	border-bottom: 3px solid var(--c-primary-soft); position: relative;
}
.entry-content h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px; background: var(--c-primary); }
.entry-content h3 { font-size: 19px; margin-top: 1.8em; padding-left: 14px; border-left: 5px solid var(--c-accent); }
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-sm); }
.entry-content .aligncenter, .entry-content .wp-block-image .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .has-text-align-right { text-align: right; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 2px dotted var(--c-line); margin: 2.4em 0; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content .wp-block-button__link {
	display: inline-block; padding: 12px 28px; border-radius: 999px; font-weight: 700;
	background: var(--c-primary); color: #fff; text-decoration: none;
}
.entry-content .wp-block-button__link:hover { background: var(--c-primary-dark); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--c-primary-dark); border: 2px solid var(--c-primary); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.entry-content .wp-block-table table, .entry-content .wp-block-table thead, .entry-content .wp-block-table tfoot { border: 0; }
.entry-content th, .entry-content td, .entry-content .wp-block-table th, .entry-content .wp-block-table td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.entry-content tr:last-child th, .entry-content tr:last-child td { border-bottom: 0; }
.entry-content td:first-child { width: 9em; font-weight: 700; background: #fbf7ef; white-space: nowrap; }
@media (max-width: 560px) {
	.entry-content td { display: block; width: 100% !important; }
	.entry-content td:first-child { border-bottom: 0; padding-bottom: 4px; }
	.entry-content td:last-child { padding-top: 4px; }
}
.entry-content .wp-block-group.is-style-card, .entry-content .is-style-card {
	background: var(--c-surface); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow);
}
.entry-content .callout { background: var(--c-accent-soft); border-radius: var(--radius); padding: 20px 24px; }
.entry-content .callout p:last-child { margin-bottom: 0; }

/* 学童だより（記事内の画像） */
.letter-figure { background: var(--c-surface); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.letter-figure img { margin: 0 auto; border-radius: 6px; }
.letter-hint { font-size: 13px; color: var(--c-muted); text-align: center; margin-top: -0.6em; }

/* 記事ナビ */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.post-nav a { display: block; background: var(--c-surface); border-radius: var(--radius-sm); padding: 14px 18px; text-decoration: none; box-shadow: var(--shadow); color: var(--c-text); font-size: 14px; height: 100%; }
.post-nav a:hover { color: var(--c-primary-dark); }
.post-nav small { display: block; color: var(--c-muted); font-size: 12px; }
.post-nav__next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { text-align: left; } }
.back-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- 一覧ページ ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-tabs a {
	padding: 8px 18px; border-radius: 999px; text-decoration: none; background: var(--c-surface);
	border: 1px solid var(--c-line); color: var(--c-text); font-size: 14px; font-weight: 500;
}
.filter-tabs a:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.filter-tabs a.is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.post-card { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: var(--c-text); transition: transform .15s; }
.post-card:hover { transform: translateY(-3px); color: var(--c-text); }
.post-card__thumb { aspect-ratio: 4 / 3; background: var(--c-primary-soft); overflow: hidden; display: grid; place-items: center; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-card__thumb .placeholder { font-size: 40px; }
.post-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.post-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.post-card__title { font-size: 15px; font-weight: 700; line-height: 1.55; margin: 0; }
@media (max-width: 520px) { .post-card__body { padding: 10px 12px 14px; } .post-card__title { font-size: 14px; } }

.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--c-surface); text-decoration: none; border: 1px solid var(--c-line); color: var(--c-text); }
.pagination .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.empty-state { text-align: center; padding: 48px 16px; color: var(--c-muted); }

/* ---------- フッター ---------- */
.site-footer { background: #2f3a2c; color: #e9efe4; padding: 56px 0 28px; font-size: 14px; }
.site-footer a { color: #e9efe4; }
.site-footer a:hover { color: #ffd59c; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__name { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.site-footer h2 { font-size: 14px; color: #b9c8b0; margin-bottom: 10px; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__tel { font-variant-numeric: tabular-nums; }
.site-footer__copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; text-align: center; color: #b9c8b0; font-size: 12px; }

.to-top {
	position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
	background: var(--c-primary); color: #fff; display: grid; place-items: center; text-decoration: none;
	box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; font-size: 20px; z-index: 40;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--c-primary-dark); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .to-top, .post-nav, .back-links, .letter-hint { display: none !important; }
	body { background: #fff; }
	.letter-figure { box-shadow: none; padding: 0; }
}
