/*
Theme Name: JFAなでしこ広場 in totoコート蛇田
Description: 「JFAなでしこ広場 in totoコート蛇田」サイト用テーマ。親子・家族で参加しやすい、明るいピンク基調のやさしい配色の軽量・レスポンシブな構成。
Version: 1.0.0
Requires PHP: 7.4
Author: mahoro
Text Domain: ouentai-nadeshiko
License: GNU General Public License v2 or later
*/

:root {
	--c-primary: #e8506b;
	--c-primary-dark: #c23652;
	--c-blue: #3b7ea1;
	--c-yellow: #ffd84d;
	--c-pink-soft: #ffe3ea;
	--c-text: #3a2a2f;
	--c-muted: #7d6a70;
	--c-line: #f4cdd7;
	--c-bg: #fff6f8;
	--c-card: #fff;
	--radius: 22px;
	--shadow: 0 2px 0 rgba(232, 80, 107, .12), 0 8px 20px rgba(232, 80, 107, .1);
	--font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--c-bg); color: var(--c-text);
	font-family: var(--font); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; background: #fff; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(232, 80, 107, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); }
.brand:hover { color: var(--c-text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: clamp(1rem, 2.6vw, 1.3rem); font-weight: 800; color: var(--c-primary); }
.brand-tag { font-size: .74rem; color: var(--c-muted); }

.nav-toggle {
	display: none; align-items: center; gap: 8px; border: 0; background: var(--c-primary); color: #fff;
	border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 14px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

.site-nav { background: var(--c-primary); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 8px 0; }
.site-nav a { display: block; padding: 6px 14px; color: #fff; text-decoration: none; font-size: .84rem; font-weight: 600; border-radius: 999px; }
.site-nav a:hover { background: rgba(255,255,255,.2); color: #fff; }
.site-nav a[aria-current] { background: #fff; color: var(--c-primary-dark); }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; padding: 10px 0 14px; }
	.site-nav a { padding: 11px 12px; border-radius: 12px; }
}

/* ---------- ヒーロー ---------- */
.hero {
	background:
		radial-gradient(circle at 12% 20%, #fff 0 4px, transparent 5px) 0 0 / 46px 46px,
		linear-gradient(135deg, var(--c-pink-soft), #fff0c9);
	padding: clamp(32px, 6vw, 68px) 0;
}
.hero-inner { display: grid; gap: 36px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-kicker { display: inline-block; margin: 0 0 .8em; padding: 2px 14px; background: var(--c-blue); color: #fff; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.hero-title { margin: 0 0 .4em; font-size: clamp(1.9rem, 5.2vw, 3.1rem); color: var(--c-primary-dark); text-shadow: 3px 3px 0 #fff; }
.hero-lead { margin: 0 0 1.4em; font-size: 1.1rem; font-weight: 700; color: var(--c-text); }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; max-width: 420px; margin-inline: auto; display: block; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: 0 0 0 4px var(--c-primary), 0 12px 28px rgba(232, 80, 107, .3); }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; } .hero-photo { order: -1; } .hero-photo img { max-width: 260px; } }
.button { display: inline-block; padding: 14px 32px; background: var(--c-primary); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 800; box-shadow: 0 5px 0 var(--c-primary-dark); transition: transform .1s, box-shadow .1s; }
.button:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--c-primary-dark); }

/* ---------- 見出し・ご案内 ---------- */
.section-title { font-size: 1.45rem; margin: 0 0 20px; text-align: center; color: var(--c-primary-dark); }
.section-title::after { content: ""; display: block; width: 72px; height: 6px; margin: 8px auto 0; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--c-primary) 0 12px, var(--c-yellow) 12px 24px); }
.qa { padding-top: 44px; }
.qa-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.qa-grid a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--c-text); border: 2px dashed var(--c-line); }
.qa-grid a:hover { border-color: var(--c-primary); }
.qa-q { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; }
.qa-title { font-weight: 700; font-size: .93rem; line-height: 1.55; }
.main { padding: 44px 0 72px; }

/* ---------- お知らせ ---------- */
.posts { display: grid; gap: 14px; }
.post-row { display: flex; gap: 18px; align-items: stretch; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 20px 14px 14px; }
.badge-date { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; background: var(--c-pink-soft); color: var(--c-primary-dark); line-height: 1.2; padding: 8px 4px; }
.badge-year { font-size: .72rem; font-weight: 700; }
.badge-day { font-size: 1.45rem; font-weight: 800; }
.post-row-body { min-width: 0; }
.post-row-title { font-size: 1.08rem; margin: 2px 0 4px; }
.post-row-title a { color: var(--c-text); text-decoration: none; }
.post-row-title a:hover { color: var(--c-primary); text-decoration: underline; }
.post-row-excerpt { margin: 0; font-size: .87rem; color: var(--c-muted); line-height: 1.7; }
@media (max-width: 520px) { .post-row { padding: 12px; gap: 12px; } .badge-date { width: 68px; } }

.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { min-width: 42px; padding: 8px 12px; text-align: center; border-radius: 999px; background: #fff; border: 2px solid var(--c-line); text-decoration: none; font-weight: 700; color: var(--c-text); }
a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.page-numbers.dots { background: transparent; border-color: transparent; }

/* ---------- 記事・固定ページ ---------- */
.main-single { max-width: 860px; }
.single { background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 48px); }
.crumbs { font-size: .8rem; color: var(--c-muted); margin-bottom: 14px; }
.crumbs a { color: var(--c-muted); }
.news-date { font-size: .82rem; color: var(--c-blue); font-weight: 700; }
.single-title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 4px 0 26px; padding-bottom: 14px; border-bottom: 5px double var(--c-primary); color: var(--c-primary-dark); }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .7em; }
.entry-content h3 { font-size: 1.25rem; padding: 4px 12px; background: var(--c-pink-soft); border-radius: 10px; }
.entry-content img { border-radius: 14px; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content table { border-collapse: collapse; max-width: 100%; }
.entry-content td, .entry-content th { border: 1px solid var(--c-line); padding: 6px 10px; }
.entry-content .embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.4em; }
.entry-content .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
@media (max-width: 600px) { .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 0 auto 1em; } }

.post-nav { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 40px; padding-top: 24px; border-top: 2px dashed var(--c-line); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 2px solid var(--c-line); border-radius: 16px; text-decoration: none; color: var(--c-text); font-size: .9rem; line-height: 1.5; }
.post-nav a:hover { border-color: var(--c-primary); }
.post-nav small { color: var(--c-muted); }
.post-nav-next { text-align: right; grid-column: 2; }
.post-nav-prev { grid-column: 1; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next, .post-nav-prev { grid-column: 1; text-align: left; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-primary-dark); color: #ffd9e1; padding: 34px 0; font-size: .88rem; text-align: center; }
.site-footer p { margin: 0 0 6px; }
.footer-name { font-weight: 800; font-size: 1rem; color: #fff; }
.site-footer a { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .post-nav, .site-footer { display: none; } .single { box-shadow: none; padding: 0; } }

/* ---------- 活動終了のお知らせ ---------- */
.site-notice { background: #fff6cc; color: #5a4300; border-bottom: 1px solid rgba(0, 0, 0, .08); border-left: 8px solid var(--c-yellow); font-size: .88rem; line-height: 1.75; }
.site-notice p { margin: 0; padding: 10px 0; }
.site-notice a { color: inherit; font-weight: 700; }
@media print { .site-notice { display: block; } }
