/*
 * ナッツ農園（/nutssite/）の見た目
 * もとは nutssite.local の Hazel Farm テーマ（style.css）。/nutssite/ とその下のページ、活動報告の記事だけで読み込む。
 * 文字色・フォントなどの基本設定は assets/nutssite/theme.json（functions.php で差し替え）。
 */

/* ===== 共通 ===== */
/*
 * 「Sample」の透かし（PROX・なないろと同じもの。style.css の同じブロックを、ナッツ農園の色にしたもの）
 * サンプルとして見せる間だけ。不要になったらこのブロックを削除する。
 */
.wp-site-blocks::before,
.wp-site-blocks::after {
	content: "Sample";
	position: fixed;
	top: calc(var(--hf-header-h) + var(--wp-admin--admin-bar--height, 0px) + clamp(1rem, 4vw, 3rem));
	left: clamp(0.5rem, 3vw, 2.5rem);
	z-index: 9999;
	font-family: Manrope, sans-serif;
	font-size: clamp(3rem, 9vw, 4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	color: rgba(28, 43, 33, 0.1);
	transform: rotate(-12deg);
	transform-origin: left bottom;
	pointer-events: none;
	user-select: none;
}

.wp-site-blocks::after {
	top: auto;
	left: auto;
	right: clamp(0.5rem, 3vw, 2.5rem);
	bottom: clamp(1.5rem, 5vw, 3.5rem);
	transform-origin: right top;
}

:root {
	--hf-white: #fff;
	--hf-gray: var(--wp--preset--color--gray, #f2f3f1);
	--hf-line: var(--wp--preset--color--line, #e2e5e0);
	--hf-green: var(--wp--preset--color--green, #5fa83a);
	--hf-green-dark: var(--wp--preset--color--green-dark, #1c2b21);
	--hf-soil: var(--wp--preset--color--soil, #7b4f2c);
	--hf-soil-light: var(--wp--preset--color--soil-light, #b98a5e);
	--hf-ink: var(--wp--preset--color--ink, #161a17);
	--hf-text: var(--wp--preset--color--text, #3a403b);
	--hf-display: var(--wp--preset--font-family--display);
	--hf-header-h: 72px;
	--hf-admin-bar: 0px;
	--hf-section-pad: clamp(5rem, 11vw, 9rem);
	--hf-anchor-gap: 0.5rem;
}

.admin-bar {
	--hf-admin-bar: 32px;
}

@media (max-width: 782px) {
	:root {
		--hf-header-h: 72px;
		--hf-anchor-gap: -0.4rem;
	}

	.admin-bar {
		--hf-admin-bar: 46px;
	}
}

/* 600px 未満では管理バーが固定されず、スクロールで流れていく */
@media (max-width: 600px) {
	.admin-bar {
		--hf-admin-bar: 0px;
	}
}

html {
	scroll-behavior: smooth;
}

body {
	font-feature-settings: "palt";
	letter-spacing: 0.03em;
}

main.wp-block-group {
	margin-top: 0 !important;
}

/* 見出しは単語の途中で改行しない（対応ブラウザのみ） */
h1,
h2,
h3 {
	word-break: auto-phrase;
	text-wrap: pretty;
}

/* トップページのセクション同士の余白は各セクションで管理する */
.wp-block-post-content > * + * {
	margin-block-start: 0 !important;
}

.hf-section {
	padding-top: var(--hf-section-pad) !important;
	padding-bottom: var(--hf-section-pad) !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	/*
	 * メニューから移動したとき、上の余白を飛ばして
	 * 見出しがヘッダーのすぐ下（約 2.5rem あけた位置）に来るようにする
	 * （セクションの中身はさらに少し下から始まるので、その分を --hf-anchor-gap で調整している）
	 */
	scroll-margin-top: calc(var(--hf-header-h) + var(--hf-admin-bar) + var(--hf-anchor-gap) - var(--hf-section-pad));
}

.hf-bg-gray {
	background: var(--hf-gray);
}

/* 「CHAPTER 01 ― STORY」のようなラベル */
.hf-chapter {
	font-family: var(--hf-display);
	font-size: 0.95rem !important;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hf-green);
	display: flex;
	align-items: center;
	gap: 0.9em;
	margin-bottom: 1rem !important;
}

.hf-chapter::after {
	content: "";
	flex: 0 0 3.5rem;
	height: 2px;
	background: currentColor;
}

.hf-title {
	font-size: clamp(1.9rem, 4.2vw, 3.2rem) !important;
	line-height: 1.35 !important;
	margin-top: 0 !important;
}

.hf-lead {
	font-size: clamp(1rem, 1.4vw, 1.08rem) !important;
	line-height: 2.1;
}

/* ===== ボタン ===== */
.wp-block-button .wp-block-button__link {
	border-radius: 0;
	padding: 1.05em 2.4em;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wp-block-button .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.8em;
	transition: transform 0.2s;
}

.wp-block-button .wp-block-button__link:hover::after,
.wp-block-button .wp-block-button__link:focus::after {
	transform: translateX(4px);
}

.hf-btn-green .wp-block-button__link {
	background: var(--hf-green);
	color: #fff;
}

.hf-btn-green .wp-block-button__link:hover,
.hf-btn-green .wp-block-button__link:focus {
	background: #fff;
	color: var(--hf-ink);
}

.hf-btn-line .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}

.hf-btn-line .wp-block-button__link:hover,
.hf-btn-line .wp-block-button__link:focus {
	background: #fff;
	color: var(--hf-ink);
}

.hf-btn-ink .wp-block-button__link {
	background: var(--hf-ink);
	color: #fff;
}

.hf-btn-ink .wp-block-button__link:hover,
.hf-btn-ink .wp-block-button__link:focus {
	background: var(--hf-green);
	color: #fff;
}

/* ===== ヘッダー ===== */

/*
 * スクロールしても上に固定する。
 * sticky は「親の箱の中」でしか止まらないので、.hf-header ではなく
 * ページ全体の直下にある <header>（テンプレートパーツ）に指定する。
 */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--hf-admin-bar);
	z-index: 100;
}

.hf-header {
	/* backdrop-filter を使うとハンバーガーメニューの全画面表示が崩れるため、単色にする */
	background: #fff;
	border-bottom: 1px solid var(--hf-line);
}

.hf-header .wp-block-site-title a,
.hf-footer .wp-block-site-title a {
	text-decoration: none;
	color: inherit;
}

/* サイト全体のトップ（入口ページ）へ戻る PROX アイコン（/tunageru/ と同じ） */
.prox-home {
	display: inline-flex;
	flex: none;
	line-height: 0;
	border-radius: 8px;
	transition: opacity 0.2s ease;
}

.prox-home img {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.prox-home:hover {
	opacity: 0.7;
}

.hf-logo-mark {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	background: url("hazelnut.svg") no-repeat center / contain;
	margin: 0 !important;
}

.hf-header .wp-block-navigation a {
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 700;
}

.hf-header .wp-block-navigation a:hover {
	color: var(--hf-green);
}

.hf-nav-cta a {
	background: var(--hf-ink);
	color: #fff !important;
	padding: 0.6em 1.4em;
}

.hf-nav-cta a:hover {
	background: var(--hf-green);
}

/* ハンバーガーボタン */
.hf-header .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: var(--hf-ink);
	color: #fff;
}

.hf-header .wp-block-navigation__responsive-container-open svg {
	width: 26px;
	height: 26px;
}

/*
 * WordPress 標準では 600px 未満でハンバーガーになる。
 * 6 項目が 1 行に収まらない 1100px 以下でも、ハンバーガーに切り替える。
 */
@media (max-width: 1100px) {
	.hf-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.hf-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* 開いたメニュー（全画面） */
.hf-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--hf-green-dark) !important;
	color: #fff !important;
	padding: 1.2rem clamp(1.5rem, 6vw, 4rem) 2rem;
}

.hf-header .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 1.2rem;
	right: clamp(1.5rem, 6vw, 4rem);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hf-green);
	color: #fff;
}

.hf-header .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 26px;
	height: 26px;
}

.hf-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 5rem !important;
	align-items: stretch !important;
}

.hf-header .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	align-items: stretch !important;
	width: 100%;
	max-width: 640px;
}

.hf-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hf-header .is-menu-open .wp-block-navigation-item a {
	display: block;
	width: 100%;
	padding: 1.1rem 0 !important;
	font-size: clamp(1.25rem, 5vw, 1.6rem);
	font-weight: 900;
	color: #fff;
}

.hf-header .is-menu-open .wp-block-navigation-item a:hover {
	color: var(--hf-green);
}

.hf-header .is-menu-open .hf-nav-cta {
	border-bottom: 0;
	margin-top: 2rem;
}

.hf-header .is-menu-open .hf-nav-cta a {
	background: var(--hf-green);
	color: #fff !important;
	padding: 1rem 1.5rem !important;
	text-align: center;
}

/* ===== ヒーロー（カバー画像） ===== */
.hf-hero-cover {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	min-height: calc(100vh - var(--hf-header-h) - var(--hf-admin-bar)) !important;
	padding-top: clamp(1rem, 3vw, 2.5rem) !important;
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* 上に文字、下に 3 枚のカードを置く */
.hf-hero-cover > .wp-block-cover__inner-container {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(1.5rem, 3vh, 2rem);
}

.hf-hero-cover > .wp-block-cover__inner-container > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* 上の文字と下のカードの後ろを暗くして読みやすくする */
.hf-hero-cover .wp-block-cover__background {
	opacity: 1 !important;
	background:
		linear-gradient(180deg, rgba(22, 26, 23, 0.6) 0%, rgba(22, 26, 23, 0.2) 40%, transparent 55%),
		linear-gradient(0deg, rgba(22, 26, 23, 0.55) 0%, transparent 35%) !important;
}

/* メイン画像に重ねる 3 枚のカード */
.hf-hero-join {
	margin-top: 0 !important;
	gap: 1rem;
	scroll-margin-top: calc(var(--hf-header-h) + var(--hf-admin-bar) + 1rem);
}

/* PC ではカード 1 枚の幅を最大 320px にする */
@media (min-width: 961px) {
	.hf-hero-join {
		grid-template-columns: repeat(3, minmax(0, 320px));
	}
}
.hf-hero-join .hf-join {
	padding: 1.5rem 1.6rem !important;
	background: rgba(255, 255, 255, 0.95);
	border: 0;
	border-top: 4px solid var(--hf-green);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.hf-hero-join .hf-join.is-shop {
	background: rgba(22, 26, 23, 0.92);
	border-top-color: var(--hf-soil-light);
}

.hf-hero-join .hf-join-title {
	font-size: 1.2rem !important;
}

.hf-hero-join .hf-join p {
	font-size: 0.85rem;
	line-height: 1.85;
}

.hf-hero-join .hf-join .wp-block-buttons {
	padding-top: 1rem;
}

.hf-hero-join .wp-block-button .wp-block-button__link {
	padding: 0.8em 1.6em;
	font-size: 0.85rem;
}

.hf-hero-label {
	font-family: var(--hf-display);
	font-size: clamp(0.85rem, 1.2vw, 1rem) !important;
	font-weight: 600;
	letter-spacing: 0.2em;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin: 0 !important;
}

.hf-hero-label::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--hf-green);
	box-shadow: 0 0 0 4px rgba(95, 168, 58, 0.35);
	animation: hf-pulse 2s infinite;
}

@keyframes hf-pulse {
	50% {
		box-shadow: 0 0 0 8px rgba(95, 168, 58, 0);
	}
}

.hf-hero-title {
	font-size: clamp(2.1rem, 4.2vw, 3.6rem) !important;
	line-height: 1.25 !important;
	letter-spacing: 0.01em;
	color: #fff !important;
	margin-top: 1.2rem !important;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hf-hero-sub {
	font-size: clamp(1.05rem, 2vw, 1.5rem) !important;
	font-weight: 700;
	color: #fff;
	margin-top: 1rem !important;
	padding-left: 1rem;
	border-left: 4px solid var(--hf-green);
}

.hf-hero-text .wp-block-buttons {
	margin-top: 2rem !important;
}

/* ===== ビジョン ===== */
.hf-vision-title {
	font-size: clamp(2.2rem, 7.5vw, 6.6rem) !important;
	line-height: 1.2 !important;
	letter-spacing: 0;
	margin-top: 0 !important;
}

.hf-vision-title strong {
	color: var(--hf-green);
	font-weight: 900;
}

.hf-vision-lead {
	max-width: 46em;
	margin-top: 2.5rem !important;
}

.hf-facts {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	margin-top: clamp(3rem, 6vw, 5rem) !important;
	border-top: 2px solid var(--hf-ink);
}

.hf-fact {
	padding: 2rem 1.8rem 0 0 !important;
	margin: 0 !important;
}

.hf-fact + .hf-fact {
	padding-left: 1.8rem !important;
	border-left: 1px solid var(--hf-line);
}

.hf-fact-num {
	font-size: clamp(2rem, 4vw, 3rem) !important;
	font-weight: 900;
	line-height: 1.2;
	color: var(--hf-ink);
	margin: 0 !important;
}

.hf-fact-label {
	font-weight: 700;
	color: var(--hf-soil);
	margin-top: 0.5rem !important;
}

.hf-fact-text {
	font-size: 0.92rem !important;
	margin-top: 0.8rem !important;
}

@media (max-width: 781px) {
	.hf-facts {
		grid-template-columns: 1fr;
	}

	.hf-fact + .hf-fact {
		padding-left: 0 !important;
		border-left: 0;
		border-top: 1px solid var(--hf-line);
		margin-top: 2rem !important;
	}
}

/* ===== 流れる帯（マーキー） ===== */
.hf-marquee {
	background: var(--hf-green);
	overflow: hidden;
	padding: 1.1rem 0 !important;
	margin: 0 !important;
}

.hf-marquee-track {
	font-family: var(--hf-display);
	font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
	white-space: nowrap;
	display: inline-block;
	margin: 0 !important;
	animation: hf-marquee 40s linear infinite;
}

@keyframes hf-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hf-marquee-track,
	.hf-hero-label::before {
		animation: none;
	}
}

/* ===== ストーリー ===== */
.hf-split {
	display: grid !important;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: center;
}

.hf-frame {
	margin: 0 !important;
	position: relative;
}

.hf-frame img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hf-frame::before {
	content: "";
	position: absolute;
	left: -14px;
	top: -14px;
	width: 38%;
	height: 38%;
	border-left: 4px solid var(--hf-green);
	border-top: 4px solid var(--hf-green);
	pointer-events: none;
}

.hf-frame figcaption {
	font-family: var(--hf-display);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	color: var(--hf-text);
	margin-top: 0.8rem;
	text-align: left;
}

@media (max-width: 781px) {
	.hf-split {
		grid-template-columns: 1fr;
	}
}

/* ===== 挑戦の3つの柱 ===== */
.hf-cards {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}

.hf-card {
	background: var(--hf-gray);
	padding: 2.4rem 2rem !important;
	margin: 0 !important;
	border-top: 4px solid var(--hf-soil);
	transition: transform 0.25s, box-shadow 0.25s;
}

.hf-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(22, 26, 23, 0.08);
}

.hf-card-num {
	font-family: var(--hf-display);
	font-size: 4rem !important;
	font-weight: 700;
	line-height: 1;
	color: var(--hf-green);
	margin: 0 !important;
}

.hf-card-title {
	font-size: 1.35rem !important;
	margin-top: 1.2rem !important;
}

.hf-card p:last-child {
	font-size: 0.93rem;
	line-height: 2;
}

@media (max-width: 960px) {
	.hf-cards {
		grid-template-columns: 1fr;
	}
}

/* ===== 生産者の想い ===== */
.hf-message {
	background: var(--hf-green-dark);
	color: rgba(255, 255, 255, 0.86);
}

.hf-message h2,
.hf-message h3 {
	color: #fff;
}

.hf-message-grid {
	display: grid !important;
	grid-template-columns: 1fr 1.3fr;
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: start;
}

.hf-message-quote {
	font-size: clamp(1.8rem, 3.8vw, 3rem) !important;
	font-weight: 900;
	line-height: 1.45 !important;
	color: #fff;
	margin-top: 1.5rem !important;
}

.hf-message-quote::before {
	content: "“";
	display: block;
	font-family: var(--hf-display);
	font-size: 5rem;
	line-height: 0.6;
	color: var(--hf-green);
	margin-bottom: 0.6rem;
}

.hf-message-body p {
	line-height: 2.2;
}

.hf-message-sign {
	text-align: right;
	margin-top: 2.5rem !important;
	color: #fff !important;
}

.hf-message-sign strong {
	font-size: 1.35rem;
	margin-left: 0.8em;
}

@media (max-width: 781px) {
	.hf-message-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== 活動報告（タイムライン） ===== */
.hf-report-head {
	display: flex !important;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.hf-timeline {
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}

.hf-timeline .wp-block-post-template {
	position: relative;
	padding-left: 2.6rem !important;
	margin: 0 !important;
	list-style: none;
}

.hf-timeline .wp-block-post-template::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 0.6rem;
	bottom: 0;
	width: 2px;
	background: linear-gradient(var(--hf-green), var(--hf-line));
}

.hf-timeline .wp-block-post-template > li {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 260px;
	column-gap: 2.5rem;
	align-content: start;
	padding: 0 0 2.6rem !important;
	margin: 0 0 2.6rem !important;
	border-bottom: 1px solid var(--hf-line);
}

.hf-timeline .wp-block-post-template > li:last-child {
	border-bottom: 0;
	margin-bottom: 0 !important;
}

.hf-timeline .wp-block-post-template > li::before {
	content: "";
	position: absolute;
	left: calc(-2.6rem + 1px);
	top: 0.45rem;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--hf-green);
	box-sizing: border-box;
}

.hf-timeline .wp-block-post-template > li > * {
	grid-column: 1;
	margin: 0 !important;
}

.hf-timeline .wp-block-post-template > li > .wp-block-post-featured-image {
	grid-column: 2;
	grid-row: 1 / span 3;
}

.hf-timeline .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.hf-timeline .wp-block-post-date {
	font-family: var(--hf-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--hf-green);
	line-height: 1.2;
}

.hf-timeline .wp-block-post-title {
	font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
	font-weight: 900;
	line-height: 1.5;
	margin-top: 0.4rem !important;
}

.hf-timeline .wp-block-post-title a {
	text-decoration: none;
	color: var(--hf-ink);
}

.hf-timeline .wp-block-post-title a:hover {
	color: var(--hf-green);
}

.hf-timeline .wp-block-post-excerpt {
	font-size: 0.93rem;
	margin-top: 0.6rem !important;
}

.hf-timeline .wp-block-post-excerpt__more-link {
	font-weight: 700;
	color: var(--hf-soil);
}

.hf-timeline .wp-block-query-pagination {
	margin-top: 3rem !important;
}

@media (max-width: 781px) {
	.hf-timeline .wp-block-post-template > li {
		grid-template-columns: 1fr;
	}

	.hf-timeline .wp-block-post-template > li > .wp-block-post-featured-image {
		grid-column: 1;
		grid-row: auto;
		margin-top: 1rem !important;
	}
}

/* ===== ロードマップ ===== */
.hf-steps {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
	border-top: 2px solid var(--hf-ink);
}

.hf-step {
	padding: 2rem 1.5rem 0 0 !important;
	margin: 0 !important;
	position: relative;
}

.hf-step::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 0;
	width: 16px;
	height: 16px;
	background: var(--hf-ink);
}

.hf-step:last-child::before {
	background: var(--hf-green);
}

.hf-step-num {
	font-family: var(--hf-display);
	font-size: 1rem !important;
	font-weight: 600;
	letter-spacing: 0.15em;
	color: var(--hf-green);
	margin: 0 !important;
}

.hf-step-title {
	font-size: 1.4rem !important;
	margin-top: 0.4rem !important;
}

.hf-step p:last-child {
	font-size: 0.92rem;
	line-height: 1.9;
}

@media (max-width: 781px) {
	.hf-steps {
		grid-template-columns: 1fr;
		border-top: 0;
		border-left: 2px solid var(--hf-ink);
		padding-left: 1.5rem;
	}

	.hf-step {
		padding: 0 0 2rem !important;
	}

	.hf-step::before {
		top: 0.4rem;
		left: calc(-1.5rem - 9px);
	}
}

/* ===== 地域とともに ===== */
.hf-check-list {
	list-style: none;
	padding: 0 !important;
	margin-top: 2rem !important;
	border-top: 1px solid var(--hf-line);
}

.hf-check-list li {
	position: relative;
	padding: 1.1rem 0 1.1rem 2.2rem;
	border-bottom: 1px solid var(--hf-line);
	font-weight: 700;
	color: var(--hf-ink);
}

.hf-check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.35rem;
	width: 1.1rem;
	height: 1.1rem;
	background: url("hazelnut.svg") no-repeat center / contain;
}

.hf-big-word {
	font-family: var(--hf-display);
	font-size: clamp(4rem, 12vw, 10rem) !important;
	font-weight: 700;
	line-height: 0.9;
	color: var(--hf-line);
	margin: 0 !important;
	word-break: break-word;
}

.hf-big-word strong {
	color: var(--hf-green);
}

/* ===== 一緒に物語をつくる（法人・応援・ショップ） ===== */
.hf-join-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}

.hf-join {
	background: #fff;
	border: 1px solid var(--hf-line);
	padding: clamp(2rem, 3vw, 2.6rem) !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
}

.hf-join .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 1.5rem;
}

.hf-join-label {
	font-family: var(--hf-display);
	font-size: 0.95rem !important;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--hf-green);
	margin: 0 !important;
}

.hf-join-title {
	font-size: 1.4rem !important;
	margin-top: 0.5rem !important;
}

.hf-join-target {
	font-size: 0.85rem !important;
	font-weight: 700;
	color: var(--hf-soil);
	margin-top: 0.3rem !important;
}

.hf-join p {
	font-size: 0.93rem;
	line-height: 2;
}

.hf-join.is-shop {
	background: var(--hf-ink);
	border-color: var(--hf-ink);
	color: rgba(255, 255, 255, 0.82);
}

.hf-join.is-shop .hf-join-title {
	color: #fff;
}

.hf-join.is-shop .hf-join-target {
	color: var(--hf-soil-light);
}

.hf-badge {
	display: inline-block;
	width: fit-content;
	font-family: var(--hf-display);
	font-size: 0.85rem !important;
	font-weight: 700;
	letter-spacing: 0.15em;
	background: var(--hf-green);
	color: #fff;
	padding: 0.2em 0.8em;
	margin-top: 1rem !important;
}

@media (max-width: 960px) {
	.hf-join-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== SNS ===== */
.hf-sns {
	background:
		linear-gradient(120deg, rgba(28, 43, 33, 0.92), rgba(28, 43, 33, 0.75)),
		url("leaves.svg") repeat center / 220px,
		var(--hf-green-dark);
	color: rgba(255, 255, 255, 0.86);
}

.hf-sns h2 {
	color: #fff;
}

.hf-sns-inner {
	display: grid !important;
	grid-template-columns: 1.3fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hf-sns .wp-block-social-links {
	gap: 1rem;
	margin-top: 1.5rem !important;
}

.hf-sns .wp-block-social-links .wp-social-link {
	background: #fff !important;
	color: var(--hf-ink) !important;
}

.hf-sns .wp-block-social-links .wp-social-link svg {
	width: 1.6em;
	height: 1.6em;
}

.hf-sns-side {
	text-align: right;
}

.hf-sns-side .wp-block-buttons {
	justify-content: flex-end;
}

@media (max-width: 781px) {
	.hf-sns-inner {
		grid-template-columns: 1fr;
	}

	.hf-sns-side {
		text-align: left;
	}

	.hf-sns-side .wp-block-buttons {
		justify-content: flex-start;
	}
}

/* ===== お問い合わせ ===== */
.hf-contact {
	background: var(--hf-gray);
}

.hf-contact-box {
	background: #fff;
	border-top: 6px solid var(--hf-green);
	padding: clamp(2.5rem, 6vw, 5rem) !important;
	text-align: center;
}

.hf-contact-box .hf-chapter {
	justify-content: center;
}

.hf-contact-box .hf-chapter::before {
	content: "";
	flex: 0 0 3.5rem;
	height: 2px;
	background: currentColor;
}

.hf-contact-box .wp-block-buttons {
	justify-content: center;
	margin-top: 2rem !important;
}

/* ===== お問い合わせフォーム（Contact Form 7） ===== */
.hf-contact-box .wpcf7 {
	max-width: 720px;
	margin: 2.5rem auto 0 !important;
	text-align: left;
}

.hf-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.4rem 1.5rem;
}

.hf-field {
	display: block;
}

.hf-field--full {
	grid-column: 1 / -1;
}

.hf-field-label {
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--hf-ink);
	margin-bottom: 0.45rem;
}

.hf-req,
.hf-opt {
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.35em 0.6em;
}

.hf-req {
	background: var(--hf-green);
	color: #fff;
}

.hf-opt {
	background: var(--hf-line);
	color: var(--hf-text);
}

.hf-field input,
.hf-field select,
.hf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.85rem 1rem;
	border: 1px solid #cfd4cc;
	border-radius: 0;
	background: var(--hf-gray);
	font: inherit;
	font-size: 1rem;
	color: var(--hf-ink);
	transition: border-color 0.2s, background-color 0.2s;
}

.hf-field textarea {
	height: 11rem;
	resize: vertical;
}

.hf-field input:focus,
.hf-field select:focus,
.hf-field textarea:focus {
	outline: none;
	border-color: var(--hf-green);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(95, 168, 58, 0.2);
}

.hf-form-submit {
	text-align: center;
	margin-top: 2rem;
}

.hf-form-submit .wpcf7-submit {
	min-width: 240px;
	padding: 1.05em 2.4em;
	border: 0;
	border-radius: 0;
	background: var(--hf-ink);
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background-color 0.2s;
}

.hf-form-submit .wpcf7-submit:hover,
.hf-form-submit .wpcf7-submit:focus-visible {
	background: var(--hf-green);
}

/* 送信中のくるくる */
.hf-form-submit .wpcf7-spinner {
	display: block;
	margin: 0.8rem auto 0;
}

/* 入力エラー・送信結果のメッセージ */
.hf-contact-box .wpcf7-not-valid-tip {
	font-size: 0.82rem;
	margin-top: 0.3rem;
}

.hf-contact-box .wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.2rem;
	border-width: 2px;
	font-size: 0.92rem;
}

@media (max-width: 600px) {
	.hf-form-grid {
		grid-template-columns: 1fr;
	}

	/* スマホでは白い箱の内側の余白を減らして、入力欄を広くする */
	.hf-contact .hf-contact-box {
		padding: 2.5rem 1.25rem !important;
	}
}

/* ===== フッター ===== */
.wp-site-blocks > footer {
	margin-top: 0 !important;
}

.hf-footer {
	background: var(--hf-ink);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
}

.hf-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.hf-footer a:hover {
	color: var(--hf-green);
}

.hf-footer .wp-block-site-title {
	color: #fff;
}

.hf-footer-catch {
	font-family: var(--hf-display);
	font-size: clamp(2rem, 5vw, 3.6rem) !important;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 2.5rem !important;
}

.hf-footer-catch strong {
	color: var(--hf-green);
}

.hf-footer .wp-block-social-links .wp-social-link {
	background: transparent !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.hf-footer-copy {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 1.5rem !important;
	margin-top: 3rem !important;
	font-size: 0.8rem !important;
	color: rgba(255, 255, 255, 0.5);
}

/* ===== 準備中のポップアップ ===== */
.hf-dialog {
	width: min(440px, calc(100vw - 32px));
	border: 0;
	border-top: 6px solid var(--hf-green);
	padding: 2.4rem 2rem 2rem;
	text-align: center;
	color: var(--hf-text);
	box-shadow: 0 24px 60px rgba(22, 26, 23, 0.25);
}

.hf-dialog::backdrop {
	background: rgba(22, 26, 23, 0.55);
}

.hf-dialog[open] {
	animation: hf-dialog-in 0.25s ease-out;
}

@keyframes hf-dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.hf-dialog-label {
	font-family: var(--hf-display);
	font-weight: 600;
	letter-spacing: 0.2em;
	color: var(--hf-green);
	margin: 0;
}

.hf-dialog-title {
	font-size: 1.35rem;
	font-weight: 900;
	color: var(--hf-ink);
	margin: 0.4rem 0 0;
}

.hf-dialog-text {
	font-size: 0.9rem;
	line-height: 1.9;
	margin: 1rem 0 0;
}

.hf-dialog-close {
	margin-top: 1.6rem;
	padding: 0.8em 2.4em;
	border: 0;
	background: var(--hf-ink);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hf-dialog-close:hover,
.hf-dialog-close:focus-visible {
	background: var(--hf-green);
}

/* ===== ページの先頭へ戻るボタン ===== */
.hf-to-top {
	position: fixed;
	right: clamp(16px, 2.5vw, 32px);
	bottom: clamp(16px, 2.5vw, 32px);
	z-index: 40;
	width: 56px;
	height: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	border: 0;
	background: var(--hf-green);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(22, 26, 23, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.2s;
}

.hf-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.hf-to-top:hover,
.hf-to-top:focus-visible {
	background: var(--hf-ink);
}

.hf-to-top span {
	font-family: var(--hf-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
}

/* ===== 活動報告の一覧ページ ===== */
.hf-archive-head {
	background: var(--hf-gray);
	border-bottom: 1px solid var(--hf-line);
}
