/*
Theme Name: ふれあい（こども食堂応援募金）
Theme URI: http://fureai.iml-jp.com/
Description: こども食堂応援募金「ふれあい」専用テーマ。参加店舗の管理、協力店Instagramの最新投稿表示、募金箱設置店の申し込みフォームを備えています。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fureai
License: GPL-2.0-or-later
*/

:root {
	--ink: #2E2A26;
	--ink-soft: #6B5E52;
	--line: #CFC4B8;
	--paper: #FFFFFF;
	--tamago: #FFF4CC;
	--yellow: #F2C94C;
	--ketchup: #D9412F;
	--ketchup-dark: #8A2416;
	--link: #B8321F;
	--leaf: #2F7D4F;
	--leaf-soft: #E3F2E6;
	--pink-soft: #FDE3E0;
	--cream-on-red: #FFE7A3;
	--font-display: "Yusei Magic", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
	--font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 500;
	line-height: 1.8;
	-webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--ketchup-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 2px;
}
h1, h2, h3 { text-wrap: balance; }
input, textarea, button { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.f-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.f-wrap--narrow { max-width: 880px; }
.f-section { padding-block: 88px; }
.f-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--leaf); }
.f-h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.4; }
.f-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; max-width: 46em; }
.f-head p:not(.f-eyebrow) { margin: 0; }

/* ボタン */
.f-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 12px 28px; border-radius: 999px;
	font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent;
	cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.f-btn--red { background: var(--ketchup); color: #fff; box-shadow: 0 4px 0 var(--ketchup-dark); font-weight: 900; }
.f-btn--red:hover { color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 var(--ketchup-dark); }
.f-btn--line { background: #fff; color: var(--ink); border-color: var(--ink); }
.f-btn--line:hover { color: var(--ink); background: var(--tamago); }
.f-btn--ink { background: var(--ink); color: #fff; border: 0; width: 100%; font-weight: 900; min-height: 56px; }
.f-btn--ink:hover { background: #000; }
@media (prefers-reduced-motion: reduce) { .f-btn { transition: none; } }

/* ヘッダー */
.f-header { border-bottom: 2px dashed var(--yellow); background: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .f-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .f-header { top: 0; position: relative; } }
.f-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
.f-logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.f-logo:hover { color: var(--ink); }
.f-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.f-logo__sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); }
.f-logo__main { font-family: var(--font-display); font-size: 28px; }
.f-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 700; }
.f-nav a { color: var(--ink); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.f-nav a:hover { color: var(--link); }
.f-nav .f-nav__cta a { background: var(--ketchup); color: #fff; padding: 0 20px; border-radius: 999px; }
.f-nav .f-nav__cta a:hover { background: var(--ketchup-dark); color: #fff; }

/* ヒーロー */
.f-hero { background: var(--tamago); overflow: hidden; }
.f-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 80px; }
.f-hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.f-hero__badge { margin: 0; align-self: flex-start; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px; font-size: 14px; font-weight: 700; }
.f-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.35; }
.f-hero h1 mark { background: linear-gradient(transparent 62%, #F7A6A0 62%); color: inherit; }
.f-hero__lead { margin: 0; font-size: 18px; max-width: 34em; }
.f-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.f-hero__art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.f-plate {
	width: 100%; max-width: 420px; aspect-ratio: 1 / 1; background: #fff; border-radius: 50%;
	border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px; padding: 40px; text-align: center;
}
.f-plate svg { width: 70%; height: auto; }
.f-plate__text { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; }
.f-plate__note { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* 3つの約束 */
.f-promises { display: flex; flex-wrap: wrap; gap: 16px; padding-block: 48px 16px; }
.f-promise { flex: 1 1 280px; display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 2px solid var(--ink); border-radius: 20px; font-weight: 700; }
.f-promise__big { font-family: var(--font-display); font-size: 40px; color: var(--ketchup); line-height: 1; flex: none; }

/* 仕組み */
.f-about { padding-block: 56px 88px; }
.f-about__lead { margin: 0; font-size: 17px; }
.f-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.f-step { flex: 1 1 300px; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.f-step:nth-child(1) { background: var(--tamago); }
.f-step:nth-child(2) { background: var(--leaf-soft); }
.f-step:nth-child(3) { background: var(--pink-soft); }
.f-step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; }
.f-step h3 { margin: 0; font-size: 21px; font-weight: 900; }
.f-step p { margin: 0; }

/* Instagram */
.f-insta { background: var(--ink); color: #fff; }
.f-insta .f-eyebrow { color: var(--yellow); }
.f-insta .f-head p:not(.f-eyebrow) { color: #E6DED4; }
.f-insta__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.f-post { background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.f-post__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.f-post__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); flex: none; }
.f-post__who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.f-post__shop { font-weight: 900; font-size: 14px; }
.f-post__handle { font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.f-post__media { display: block; aspect-ratio: 1 / 1; max-width: 100%; background: var(--tamago); overflow: hidden; }
.f-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-post__media--empty { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 13px; padding: 16px; text-align: center; }
.f-post__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.f-post__caption { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.f-post__date { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.f-post__link { margin-top: auto; font-size: 13px; font-weight: 700; }
.f-insta__empty { margin: 0; color: #E6DED4; }

/* 参加店舗 */
.f-shops__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.f-shop { border: 2px solid var(--ink); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-shop h3 { margin: 0; font-size: 20px; font-weight: 900; }
.f-shop__addr { margin: 0; font-size: 14px; white-space: pre-line; }
.f-shop__access { margin: 0; font-size: 13px; color: var(--ink-soft); white-space: pre-line; }
.f-shop__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; padding-top: 8px; margin-top: 6px; border-top: 1px dashed var(--line); }
.f-shop__tel { font-variant-numeric: tabular-nums; }
.f-shop__ig { font-size: 13px; font-weight: 700; }

/* 募集 */
.f-join { background: var(--ketchup); color: #fff; }
.f-join__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.f-join__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.f-join .f-eyebrow { color: var(--cream-on-red); }
.f-join h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.35; }
.f-join__copy > p { margin: 0; font-size: 17px; }
.f-join__note { font-size: 14px !important; color: var(--cream-on-red); }
.f-sticker {
	width: 100%; max-width: 348px; aspect-ratio: 14.5 / 7.5; background: #fff; color: var(--ink);
	border-radius: 14px; border: 3px dashed var(--yellow); display: flex; align-items: center; gap: 14px;
	padding: 16px 20px; transform: rotate(-2deg);
}
.f-sticker__text { display: flex; flex-direction: column; line-height: 1.25; }
.f-sticker__sub { font-size: 12px; font-weight: 700; }
.f-sticker__main { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); }
.f-sticker-cap { margin: 8px 0 0; font-size: 13px; color: var(--cream-on-red); }
.f-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.f-checks li { display: flex; gap: 10px; }
.f-checks li::before { content: "✓"; font-weight: 900; }

.f-form { flex: 1 1 420px; min-width: 0; background: #fff; color: var(--ink); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.f-form h3 { margin: 0; font-size: 22px; font-weight: 900; }
.f-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; }
.f-field label { font-weight: 700; font-size: 14px; }
.f-req { color: var(--link); font-size: 12px; margin-left: 4px; }
.f-field input, .f-field textarea { min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; color: var(--ink); width: 100%; }
.f-field textarea { resize: vertical; }
.f-row { display: flex; flex-wrap: wrap; gap: 16px; }
.f-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.f-agree input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-notice { border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.f-notice--ok { background: var(--leaf-soft); color: #1F5A37; }
.f-notice--err { background: var(--pink-soft); color: var(--ketchup-dark); }

/* FAQ */
.f-faq { background: var(--tamago); }
.f-faq__list { display: flex; flex-direction: column; gap: 12px; }
.f-faq details { background: #fff; border-radius: 18px; padding: 18px 22px; }
.f-faq summary { font-weight: 900; font-size: 17px; cursor: pointer; }
.f-faq details p { margin: 10px 0 0; white-space: pre-line; }

/* 本文（固定ページ・投稿用） */
.f-content { padding-block: 64px 88px; }
.f-content h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 42px); line-height: 1.4; margin: 0 0 24px; }
.f-content .entry { max-width: 46em; }
.f-content .entry img { border-radius: 16px; }

/* フッター */
.f-footer { background: var(--ink); color: #E6DED4; font-size: 14px; }
.f-footer__inner { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-block: 56px 24px; }
.f-footer__col { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.f-footer__title { font-weight: 900; color: #fff; }
.f-footer__logo { font-family: var(--font-display); font-size: 32px; color: #fff; line-height: 1.3; }
.f-footer__copy { padding-block: 0 32px; font-size: 12px; color: var(--line); }
