/*
Theme Name: ヒールアップハウス（Twenty Twenty-Five 子テーマ）
Theme URI: https://healuphouse.org
Description: 特定非営利活動法人ヒールアップハウス向けの Twenty Twenty-Five 子テーマ。現行デザインの配色・構成を引き継ぎ、読みやすさとアクセシビリティを改善しています。本文はブロックエディタで編集できます。
Author: healuphouse
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: healuphouse-tt5
*/

:root {
	--hh-gutter: clamp(1rem, 4vw, 1.5rem);
	--hh-sec-y: clamp(3.5rem, 8vw, 7.5rem);
	--hh-ink: var(--wp--preset--color--ink, #36220A);
	--hh-green: var(--wp--preset--color--green, #007440);
	--hh-green-dark: var(--wp--preset--color--green-dark, #00502C);
	--hh-green-light: var(--wp--preset--color--green-light, #2E9165);
	--hh-stone: var(--wp--preset--color--stone, #9A9084);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 110px; }
body { letter-spacing: .03em; line-break: strict; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--hh-green-light); outline-offset: 2px; }
.hh-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header / hamburger menu ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.hh-header { position: relative; background: rgba(255, 255, 255, .95); border-bottom: 1px solid #eae8e6; padding-inline: var(--hh-gutter) !important; }
.hh-header__inner { max-width: var(--wp--style--global--wide-size, 1180px) !important; margin-inline: auto !important; min-height: 72px; }
@media (min-width: 640px) { .hh-header__inner { min-height: 96px; } }
.hh-logo { margin: 0 !important; }
.hh-logo img { width: min(330px, 58vw); height: auto; display: block; }
.hh-nav a { color: var(--hh-ink); text-decoration: none; letter-spacing: .08em; font-size: .95rem; padding-block: .4em; border-bottom: 2px solid transparent; }
.hh-nav a:hover, .hh-nav a[aria-current] { border-bottom-color: var(--hh-green); }

/* hamburger button (3 lines -> X) */
.hh-burger {
	display: block; position: relative; flex: 0 0 auto; width: 48px; height: 48px; margin: 0 -4px 0 auto; padding: 0;
	border: 0; border-radius: 0; background: none; cursor: pointer; color: var(--hh-ink);
}
.hh-burger span, .hh-burger span::before, .hh-burger span::after { display: block; height: 2px; background: var(--hh-ink); }
.hh-burger span { position: absolute; left: 4px; top: 50%; width: 40px; margin-top: -1px; transition: background .3s; }
.hh-burger span::before, .hh-burger span::after { content: ""; position: absolute; left: 0; width: 100%; transition: transform .3s; }
.hh-burger span::before { top: -9px; }
.hh-burger span::after { bottom: -9px; }
.hh-header.is-menu-open .hh-burger span { background: transparent; }
.hh-header.is-menu-open .hh-burger span::before { transform: translateY(9px) rotate(-150deg); }
.hh-header.is-menu-open .hh-burger span::after { transform: translateY(-9px) rotate(150deg); }
@media (prefers-reduced-motion: reduce) { .hh-burger span, .hh-burger span::before, .hh-burger span::after { transition: none; } }

/* below 1024px: nav becomes a drop-down panel under the header (original behaviour) */
@media (max-width: 1023.98px) {
	html.hh-js .hh-header .hh-nav {
		position: absolute; top: 100%; left: 0; right: 0; display: block; width: auto;
		background: rgba(255, 255, 255, .97); border-top: 1px solid #eae8e6; box-shadow: 0 10px 18px rgba(54, 34, 10, .08);
		visibility: hidden; opacity: 0; transition: opacity .4s, visibility .4s;
	}
	html.hh-js .hh-header.is-menu-open .hh-nav { visibility: visible; opacity: 1; }
	.hh-header .hh-nav .wp-block-navigation__container { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.hh-header .hh-nav .wp-block-navigation-item { display: block; border-bottom: 1px solid #eae8e6; }
	.hh-header .hh-nav .wp-block-navigation-item a { display: block; padding: 1.1rem 1rem; text-align: center; font-size: 1rem; border-bottom: 0; }
	.hh-header .hh-nav .wp-block-navigation-item a:hover { background: var(--wp--preset--color--mint, #F5FAEC); }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: reduce) { html.hh-js .hh-header .hh-nav { transition: none; } }
/* 640-1023px: links in one row inside the panel */
@media (min-width: 640px) and (max-width: 1023.98px) {
	.hh-header .hh-nav .wp-block-navigation__container { flex-direction: row; justify-content: space-around; padding: 1.25rem 1rem; }
	.hh-header .hh-nav .wp-block-navigation-item { border-bottom: 0; }
	.hh-header .hh-nav .wp-block-navigation-item a { display: inline; padding: 0 0 .2em; font-size: .95rem; }
	.hh-header .hh-nav .wp-block-navigation-item a:hover { background: none; }
}
@media (min-width: 1024px) { .hh-burger { display: none; } .hh-header .hh-nav .wp-block-navigation__container { gap: 2rem; } }

/* ---------- layout ---------- */
.hh-main { padding: 0 !important; margin: 0 !important; }
.hh-main .wp-block-post-content { padding-inline: 0 !important; }
.hh-main .wp-block-post-content > .alignfull { margin-inline: 0 !important; max-width: none !important; width: auto; }
.hh-main .wp-block-post-content > :not(.alignfull) {
	margin-inline: auto !important;
	max-width: min(var(--wp--style--global--content-size, 940px), calc(100% - 2 * var(--hh-gutter))) !important;
}
.hh-sec { padding-block: var(--hh-sec-y) !important; padding-inline: var(--hh-gutter) !important; margin-block: 0 !important; }
.hh-sec--mint { background: var(--wp--preset--color--mint, #F5FAEC); }
.hh-sec--paper { background: var(--wp--preset--color--paper, #F4F3F2); }
.hh-sec--top-border { border-top: 1px solid #eae8e6; }
.hh-sec > * { margin-block-end: 0; }
.hh-sec > * + * { margin-block-start: clamp(1.25rem, 3vw, 2rem); }
.hh-main > .wp-block-post-content { margin-block: 0 !important; }

.hh-pagetitle { padding: clamp(2.5rem, 6vw, 5rem) var(--hh-gutter) clamp(1.5rem, 4vw, 3rem); margin: 0 !important; }
.hh-pagetitle .wp-block-post-title,
.hh-pagetitle .wp-block-query-title {
	display: table; margin-inline: auto; max-width: 100%;
	font-size: clamp(1.5rem, 3.5vw, 1.875rem); font-weight: 500; line-height: 1.5; text-align: center;
	padding-bottom: .35em; border-bottom: 5px solid var(--hh-stone);
}
.hh-single-date { text-align: center; color: var(--wp--preset--color--stone-dark, #6B6258); margin-top: 1rem; }

/* ---------- headings ---------- */
.hh-h3 {
	display: table; margin-inline: auto; max-width: 100%;
	font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 500; text-align: center;
	padding-bottom: .35em; border-bottom: 5px solid var(--hh-stone);
}
.hh-h3--plain { border-bottom: 0; display: block; font-size: clamp(1.25rem, 2.6vw, 1.625rem); }
.hh-h3--left { display: block; margin-inline: 0; text-align: left; font-size: clamp(1.25rem, 2.4vw, 1.5rem); border-bottom: 1px dashed var(--hh-stone); }
.hh-h4 { margin-top: 2.5em !important; font-size: 1.2rem; font-weight: 500; padding: .35em .8em; background: var(--wp--preset--color--paper, #F4F3F2); border-left: 6px solid var(--hh-stone); }
.hh-h5 { margin-top: 1.5em !important; margin-bottom: .1em !important; font-size: 1.05rem; font-weight: 700; }
.hh-lead { font-size: 1.05rem; }
.hh-note { font-size: .9rem; color: var(--wp--preset--color--stone-dark, #6B6258); }
.hh-lead-center { font-weight: 500; }
.hh-small-center { font-size: .95rem; }

/* pill heading (法人理念) */
.hh-pill { border: 2px solid var(--hh-stone); border-radius: 999px; padding: 6px; }
.hh-pill__white { background: #fff; border-radius: 999px; padding: clamp(1.25rem, 3vw, 2rem) 1rem; }
.hh-pill__inner { margin: 0 !important; color: var(--wp--preset--color--orange, #FE5700); font-size: clamp(1.375rem, 3.6vw, 1.875rem); font-weight: 500; line-height: 1.5; }

/* ---------- buttons ---------- */
.wp-block-button__link {
	border-radius: 999px; background: var(--hh-green); color: #fff; text-decoration: none;
	box-shadow: 0 5px 0 var(--hh-green-dark); font-weight: 500; font-size: 1.15rem; letter-spacing: .06em;
	padding: .85em 2em; min-width: min(100%, 360px); text-align: center; transition: transform .3s, background .3s;
}
.wp-block-button__link:hover { background: var(--hh-green-light); color: #fff; transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link { transition: none; } .wp-block-button__link:hover { transform: none; } }
.wp-block-button.is-style-pink .wp-block-button__link { background: var(--wp--preset--color--pink-deep, #C8466F); box-shadow: 0 5px 0 var(--wp--preset--color--pink-dark, #96455B); }
.wp-block-button.is-style-pink .wp-block-button__link:hover { background: var(--wp--preset--color--pink, #EB6E8F); color: var(--hh-ink); }
.wp-block-button.is-style-donate .wp-block-button__link { background: #0068C9; box-shadow: 0 5px 0 #004D95; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.wp-block-button.is-style-donate .wp-block-button__link:hover { background: #2B7FD6; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--hh-ink); border: 2px solid var(--hh-stone); box-shadow: none; font-size: 1rem; min-width: 0; padding: .45em 1.3em; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--mint, #F5FAEC); color: var(--hh-ink); }
.hh-tabs .wp-block-button__link { color: var(--hh-ink); box-shadow: none; min-width: 0; font-size: 1.15rem; padding: .6em 1.8em; }
.hh-tabs .is-style-tab-teal .wp-block-button__link { background: var(--wp--preset--color--teal, #5CC2CF); }
.hh-tabs .is-style-tab-pink .wp-block-button__link { background: var(--wp--preset--color--pink, #EB6E8F); }
.hh-tabs .is-style-tab-leaf .wp-block-button__link { background: var(--wp--preset--color--leaf, #65BF97); }
.hh-tabs .wp-block-button__link:hover { color: var(--hh-ink); filter: brightness(1.05); }
.hh-social { margin-top: 1rem; gap: .6rem; }

/* ---------- top page ---------- */
.hh-hero { position: relative; aspect-ratio: 1440 / 600; min-height: 180px; overflow: hidden; margin: 0 !important; padding: 0 !important; background: var(--wp--preset--color--mint, #F5FAEC); }
.hh-hero .hh-hero__img { position: absolute; inset: 0; margin: 0 !important; opacity: 0; animation: hh-fade 12s infinite; }
.hh-hero .hh-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-hero figure:nth-of-type(1) { animation-delay: 0s; }
.hh-hero figure:nth-of-type(2) { animation-delay: 4s; }
.hh-hero figure:nth-of-type(3) { animation-delay: 8s; }
@keyframes hh-fade { 0% { opacity: 0; } 8% { opacity: 1; } 33% { opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.hh-hero .hh-hero__img { animation: none; }
	.hh-hero figure:nth-of-type(1) { opacity: 1; }
}
.hh-nintei img { display: block; margin-inline: auto; max-width: 900px; width: 100%; height: auto; }
.hh-news .wp-block-post-template { list-style: none; padding: 0; margin: 2rem 0 0; }
.hh-news__item { gap: .15rem 1.25rem; padding: .9rem 0; border-bottom: 1px dashed var(--hh-stone); align-items: baseline; }
.hh-news__item > * { margin: 0 !important; }
.hh-news__date { color: var(--wp--preset--color--stone-dark, #6B6258); font-size: .9rem; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.hh-news__title { flex: 1 1 16rem; font-size: 1rem; font-weight: 500; }
.hh-news__title a { color: var(--hh-ink); text-decoration: none; }
.hh-news__title a:hover { color: var(--hh-green); text-decoration: underline; }
.hh-more { font-size: .95rem; }
.hh-pager { margin-top: 2.5rem; gap: 1rem; }
.hh-fac-icons { gap: clamp(1rem, 5vw, 3.75rem); margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.hh-fac-icons .hh-fac-icon { margin: 0; }
.hh-fac-icon img { height: clamp(120px, 24vw, 288px); width: auto; transition: transform .3s; }
.hh-fac-icon a:hover img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .hh-fac-icon img { transition: none; } .hh-fac-icon a:hover img { transform: none; } }
.hh-contact-line { font-weight: 500; }

/* ---------- about ---------- */
.hh-row { border-bottom: 1px dashed var(--hh-stone); padding-block: 1.25rem; gap: .5rem 2rem; align-items: center; margin-top: 0 !important; }
.hh-row .hh-dt-wrap { flex: 0 0 30%; }
.hh-row .hh-dd { flex: 1 1 60%; }
.hh-dt { font-weight: 500; text-align: center; margin: 0; }
.hh-dt-img { margin: 0 auto !important; }
.hh-facility-addr { margin: 0 0 1rem; }
.hh-facility-addr:last-child { margin-bottom: 0; }
@media (max-width: 781px) { .hh-row .hh-dt-wrap, .hh-row .hh-dd { flex-basis: 100%; } .hh-dt { text-align: left; font-weight: 700; } }
.hh-timeline { list-style: none; padding: 0; margin: 2.5rem 0 0 .6rem; border-left: 3px solid var(--hh-stone); }
.hh-timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.hh-timeline li::before { content: ""; position: absolute; left: -.62rem; top: .55em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--hh-green); border: 3px solid #fff; box-sizing: border-box; }

/* ---------- facility ---------- */
.hh-fac { border-bottom: 1px solid #f0efed; }
.hh-fac-cols { gap: clamp(1.25rem, 4vw, 3rem); }
.hh-fac-big img { width: min(200px, 55%); height: auto; display: block; }
.hh-fac--harebare .hh-h3--left { border-bottom-color: var(--wp--preset--color--teal, #5CC2CF); }
.hh-fac--nichinichi .hh-h3--left { border-bottom-color: var(--wp--preset--color--pink, #EB6E8F); }
.hh-fac--nobinobi .hh-h3--left { border-bottom-color: var(--wp--preset--color--leaf, #65BF97); }
@media (max-width: 781px) { .hh-fac-big img { margin-inline: auto; width: min(160px, 45%); } }

/* ---------- catalog ---------- */
.hh-cat-item { gap: clamp(1rem, 4vw, 2.5rem); margin-block: 2rem; }
.hh-cat-img img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ---------- donate tree ---------- */
.hh-donate-hero {
	background: var(--wp--preset--color--mint, #F5FAEC) url("assets/images/donatetree_bg_01.jpg") center top / cover no-repeat;
	min-height: clamp(240px, 32vw, 380px); display: flex; align-items: flex-end; justify-content: center;
	padding: 1.5rem var(--hh-gutter) 1.25rem; margin: 0 !important;
}
.hh-donate-title {
	margin: 0; font-family: var(--wp--preset--font-family--mincho, serif); font-weight: 600; line-height: 1.3;
	font-size: clamp(1.75rem, 5vw, 3.75rem); text-align: center;
	text-shadow: 0 0 6px #fff, 0 0 14px #fff, 0 0 24px #fff;
}
.hh-bank { background: #fff; border: 1px solid var(--hh-stone); border-radius: 12px; padding: 1rem 1.25rem; }
.hh-bank summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.hh-bank[open] summary { margin-bottom: 1.25rem; }

/* ---------- forms (Contact Form 7) ---------- */
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 input[type=password],
.wpcf7 textarea, .wpcf7 select, .post-password-form input[type=password] {
	width: 100%; max-width: 100%; font: inherit; background: #fff; border: 1px solid #ccc7c1; border-radius: 6px; padding: .7em .9em; box-sizing: border-box;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--hh-green-light); }
.wpcf7 p { margin-block: 1.1rem; }
.wpcf7-not-valid-tip { color: #b00020; font-size: .9rem; }
.wpcf7 form .wpcf7-response-output { border-radius: 6px; margin: 1.5rem 0 0; padding: .8em 1em; }
.wpcf7 input[type=submit], .post-password-form input[type=submit] {
	display: block; margin: 2rem auto 0; width: min(100%, 540px); border: 0; cursor: pointer; font: inherit; font-size: 1.15rem; font-weight: 500;
	color: #fff; background: var(--hh-green); border-radius: 999px; padding: .85em 1em; box-shadow: 0 5px 0 var(--hh-green-dark); transition: background .3s, transform .3s;
}
.wpcf7 input[type=submit]:hover, .post-password-form input[type=submit]:hover { background: var(--hh-green-light); transform: scale(1.02); }

/* ---------- footer ---------- */
.hh-footer { background: var(--wp--preset--color--stone-dark, #6B6258); color: #fff; padding: clamp(2.5rem, 6vw, 3.5rem) var(--hh-gutter) !important; margin: 0 !important; }
.hh-footer a { color: #fff; text-decoration: underline; }
.hh-footer a:hover { text-decoration: none; }
.hh-footer p { margin: 0 0 1rem; font-size: .95rem; }
.hh-footer__copy { font-size: .875rem !important; }
.hh-footer__top { margin: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
