/*
Theme Name: 「心の農園」プロジェクト
Description: 「心の農園」プロジェクトのサイト用テーマ。畑と季節をイメージした、やわらかな配色の軽量・レスポンシブな構成。写真が多い記事を並べて見せる。
Version: 1.0.0
Requires PHP: 7.4
Author: mahoro
Text Domain: ouentai-nouen
License: GNU General Public License v2 or later
*/

:root {
	--c-primary: #3f7d3a;
	--c-primary-dark: #2c5a29;
	--c-leaf: #8bbf4c;
	--c-soil: #8a5a2b;
	--c-accent: #e9a23b;
	--c-text: #2b2a22;
	--c-muted: #6f6b58;
	--c-line: #e3dcc3;
	--c-bg: #f7f2e2;
	--c-card: #fffdf6;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(80, 60, 20, .07), 0 6px 16px rgba(80, 60, 20, .08);
	--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); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; }
.wrap { width: min(1120px, 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 { background: var(--c-card); border-bottom: 4px solid var(--c-leaf); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 0 10px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; text-align: center; line-height: 1.35; }
.brand:hover { color: inherit; }
.brand-name { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 800; color: var(--c-primary); letter-spacing: .04em; }
.brand-tag { font-size: .78rem; color: var(--c-muted); }

.nav-toggle {
	display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	align-items: center; gap: 8px; border: 2px solid var(--c-primary); background: #fff; color: var(--c-primary);
	border-radius: 999px; padding: 5px 14px; font: inherit; font-weight: 700; font-size: .82rem; 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; justify-content: center; gap: 0 4px; padding: 6px 0; }
.site-nav a { display: block; padding: 7px 12px; color: #fff; text-decoration: none; font-size: .86rem; border-radius: 999px; }
.site-nav a:hover { background: rgba(255,255,255,.18); color: #fff; }
.site-nav a[aria-current] { background: #fff; color: var(--c-primary-dark); font-weight: 700; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.header-inner { justify-content: flex-start; }
	.brand { align-items: flex-start; text-align: left; padding-right: 110px; }
	
/* ---------- ヒーロー ---------- */
.hero { background: linear-gradient(180deg, #eaf3cf 0%, var(--c-bg) 100%); padding: clamp(28px, 6vw, 64px) 0 12px; }
.hero-inner { display: grid; gap: 32px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-kicker { margin: 0 0 .4em; font-size: .85rem; color: var(--c-soil); font-weight: 700; letter-spacing: .08em; }
.hero-title { margin: 0 0 .5em; font-size: clamp(1.9rem, 5vw, 3rem); color: var(--c-primary-dark); letter-spacing: .03em; }
.hero-lead { margin: 0 0 1.4em; color: var(--c-muted); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 44% 56% 52% 48% / 52% 46% 54% 48%; box-shadow: 0 10px 30px rgba(60, 80, 20, .25); border: 6px solid #fff; }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; } .hero-photo { order: -1; } .hero-photo img { aspect-ratio: 16 / 9; } }
.button { display: inline-block; padding: 12px 28px; background: var(--c-primary); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 800; box-shadow: 0 4px 0 var(--c-primary-dark); }
.button:hover { background: var(--c-primary-dark); color: #fff; }

/* ---------- 見出し・チップ ---------- */
.section-title { font-size: 1.4rem; margin: 0 0 20px; color: var(--c-primary-dark); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 22px; height: 22px; background: var(--c-leaf); border-radius: 0 100% 0 100%; flex: none; }
.faq { padding-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: block; padding: 8px 16px; background: #fff; border: 2px solid var(--c-leaf); border-radius: 999px; text-decoration: none; color: var(--c-text); font-size: .9rem; font-weight: 600; }
.chips a:hover { background: var(--c-leaf); color: #fff; }
.main { padding: 36px 0 72px; }

/* ---------- 写真付きの記事（石積み風） ---------- */
.masonry { columns: 3 280px; column-gap: 22px; }
.tile { break-inside: avoid; margin: 0 0 22px; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tile-thumb { display: block; background: var(--c-line); }
.tile-thumb img { display: block; width: 100%; height: auto; }
.tile-body { padding: 14px 18px 18px; }
.tile-date { font-size: .78rem; color: var(--c-soil); font-weight: 700; }
.tile-title { font-size: 1.05rem; margin: 2px 0 6px; }
.tile-title a { color: var(--c-text); text-decoration: none; }
.tile-title a:hover { color: var(--c-primary); text-decoration: underline; }
.tile-excerpt { margin: 0; font-size: .86rem; color: var(--c-muted); line-height: 1.75; }

.pagination { margin-top: 28px; }
.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-leaf); 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-soil); font-weight: 700; }
.single-title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 4px 0 26px; padding-bottom: 14px; border-bottom: 4px dotted var(--c-leaf); }
.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-left: 10px; border-left: 5px solid var(--c-leaf); }
.entry-content img { border-radius: 12px; }
.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: 12px; }
@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: 1px solid var(--c-line); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 2px solid var(--c-line); border-radius: 14px; text-decoration: none; color: var(--c-text); font-size: .9rem; line-height: 1.5; }
.post-nav a:hover { border-color: var(--c-leaf); }
.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: #dfe9d0; padding: 34px 0; font-size: .88rem; text-align: center; border-top: 6px solid var(--c-leaf); }
.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: #fdf0c8; color: #5a4300; border-bottom: 1px solid rgba(0, 0, 0, .08); border-left: 8px solid var(--c-accent); 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; } }
