/*
Theme Name: Hanauta
Theme URI: https://play.google.com/store/apps/details?id=com.plants_sns.app
Author: Hanauta
Description: 植物SNSアプリ「はなうた」公式サイト用ブロックテーマ。アプリと同じ朝焼けの配色で、シニアにも読みやすい大きな文字・高いコントラストを採用しています。
Version: 1.0.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hanauta
*/

/* ==========================================================================
   Base
   ========================================================================== */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	-webkit-font-smoothing: antialiased;
	word-break: normal;
	overflow-wrap: anywhere;
	line-break: strict;
}

/* セクション間の余計な隙間をなくす */
.wp-site-blocks > *,
.hn-main > * {
	margin-block-start: 0;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	padding: 1rem;
	background: #fff;
	z-index: 100000;
}

/* ==========================================================================
   Header
   ========================================================================== */
.hn-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 2px 14px rgba(62, 39, 35, 0.08);
}

body.admin-bar .hn-site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .hn-site-header { top: 46px; }
}

.hn-header {
	max-width: 1200px;
	margin-inline: auto;
	padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
	gap: 1.5rem;
}

.hn-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--wp--preset--color--contrast);
	font-size: 1.625rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
}

.hn-brand img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.hn-header .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
	padding-block: 0.5rem;
}

.hn-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.hn-header-cta .wp-block-button__link {
	font-size: 1rem;
	padding: 0.65rem 1.25rem;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.hn-header-cta {
		display: none !important;
	}
	.hn-header {
		padding: 0.5rem 1rem;
		gap: 0.75rem;
	}
	.hn-brand {
		font-size: 1.35rem;
	}
	.hn-brand img {
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}
}

/* モバイルのメニュー（オーバーレイ） */
.hn-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	padding: 2rem;
}

.hn-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: 1.375rem;
}

.hn-header .wp-block-navigation__responsive-container-open svg,
.hn-header .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

/* ==========================================================================
   Common section / parts
   ========================================================================== */
.hn-section {
	padding-block: var(--wp--preset--spacing--70);
}

.hn-section--white {
	background: var(--wp--preset--color--surface);
}

.hn-eyebrow {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
	letter-spacing: 0.12em;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0.25rem !important;
}

.hn-lead {
	font-size: var(--wp--preset--font-size--large);
}

.hn-card {
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 2rem 1.5rem;
	height: 100%;
	text-align: center;
}

.hn-section--white .hn-card {
	background: var(--wp--preset--color--base);
	box-shadow: none;
}

.hn-card h3 {
	margin-top: 0.5rem;
}

.hn-card p:last-child {
	margin-bottom: 0;
}

.hn-icon {
	width: 96px;
	height: 96px;
	margin: 0 auto !important;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-soft);
	display: grid;
	place-items: center;
	font-size: 2.75rem;
	line-height: 1;
}

.hn-section--white .hn-icon {
	background: var(--wp--preset--color--surface);
}

.hn-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}

.hn-chips mark,
.hn-chip {
	background: var(--wp--preset--color--primary-soft) !important;
	color: var(--wp--preset--color--primary-dark) !important;
	border-radius: 999px;
	padding: 0.15rem 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hn-hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--gradient--sunrise);
	color: #fff;
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hn-hero::before,
.hn-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.hn-hero::before { width: 520px; height: 520px; right: -140px; top: -180px; }
.hn-hero::after { width: 340px; height: 340px; left: -120px; bottom: -160px; }

.hn-hero > * { position: relative; z-index: 1; }

.hn-hero h1,
.hn-hero p {
	color: #fff;
}

.hn-hero h1 {
	font-size: clamp(2.375rem, 5.5vw, 3.75rem);
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 12px rgba(62, 39, 35, 0.2);
}

.hn-hero .hn-lead {
	font-weight: 700;
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.hn-store-buttons {
	gap: 1rem;
}

.hn-btn-store .wp-block-button__link {
	background: var(--wp--preset--color--contrast);
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	box-shadow: 0 6px 18px rgba(62, 39, 35, 0.25);
}

.hn-btn-store .wp-block-button__link::before {
	content: "";
	width: 1.5rem;
	height: 1.5rem;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2334A853' d='M3.6 1.8 13.8 12 3.6 22.2c-.4-.2-.6-.6-.6-1.1V2.9c0-.5.2-.9.6-1.1z'/%3E%3Cpath fill='%23FBBC04' d='m17.2 15.4-3.4-3.4 3.4-3.4 4 2.3c.9.5.9 1.8 0 2.3z'/%3E%3Cpath fill='%23EA4335' d='M3.6 22.2 13.8 12l3.4 3.4-11.9 6.8c-.6.3-1.2.3-1.7 0z'/%3E%3Cpath fill='%234285F4' d='M3.6 1.8c.5-.3 1.1-.3 1.7 0l11.9 6.8-3.4 3.4z'/%3E%3C/svg%3E");
}

.hn-btn-store .wp-block-button__link:hover {
	background: #000;
}

.hn-btn-appstore .wp-block-button__link {
	background: #000;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	box-shadow: 0 6px 18px rgba(62, 39, 35, 0.25);
}

.hn-btn-appstore .wp-block-button__link::before {
	content: "";
	width: 1.5rem;
	height: 1.5rem;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 170'%3E%3Cpath fill='%23fff' d='M150.37 130.25c-2.45 5.66-5.35 10.87-8.71 15.66-4.58 6.53-8.33 11.05-11.22 13.56-4.48 4.12-9.28 6.23-14.42 6.35-3.69 0-8.14-1.05-13.32-3.18-5.19-2.12-9.97-3.17-14.34-3.17-4.58 0-9.49 1.05-14.75 3.17-5.26 2.13-9.5 3.24-12.74 3.35-4.35.13-9.16-1.9-14.42-6.08-3.7-3.04-7.69-7.77-11.98-14.2-6.52-9.78-11.75-20.94-15.68-33.48-3.92-12.54-5.88-24.32-5.88-35.34 0-14.78 3.73-27.18 11.2-37.21 7.47-10.03 16.79-15.17 27.97-15.42 4.13 0 9.07 1.15 14.83 3.44 5.76 2.3 9.4 3.49 10.92 3.59 2.18-.21 6.13-1.5 11.85-3.87 5.73-2.38 10.42-3.43 14.08-3.17 14.13 1.08 24.89 6.74 32.28 16.98-12.61 7.61-18.72 17.84-18.33 30.68.33 10.01 4.18 18.42 11.55 25.24 7.37 6.81 16.14 10.74 26.31 11.78-2.61 7.83-5.87 15.8-9.78 23.9zM119.22 31.95c0-7.17 2.61-13.8 7.83-19.89 5.22-6.09 11.74-9.89 19.57-11.4-.33 1.3-.54 2.5-.65 3.59-.43 4.24-1.63 8.37-3.59 12.39-1.96 4.02-4.57 7.39-7.83 10.11-3.37 2.83-6.95 4.89-10.76 6.2-1.96.65-3.8.98-5.54.98-.33-.65-.65-1.3-.76-1.96-.21-.01-.27-.02-.27-.02z'/%3E%3C/svg%3E");
}

.hn-btn-appstore .wp-block-button__link:hover {
	background: #333;
}

.hn-btn-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.9);
}

.hn-btn-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.15);
}

.hn-hero-note {
	font-size: 1rem !important;
	opacity: 0.95;
}

/* スマホ画面のイメージ */
.hn-phone {
	width: 300px;
	max-width: 100%;
	margin-inline: auto;
	background: #1d1512;
	border-radius: 46px;
	padding: 12px;
	box-shadow: 0 30px 60px rgba(62, 39, 35, 0.4);
	transform: rotate(2deg);
}

.hn-phone__screen {
	background: var(--wp--preset--color--base);
	border-radius: 36px;
	overflow: hidden;
	height: 580px;
	display: flex;
	flex-direction: column;
	color: var(--wp--preset--color--contrast);
	line-height: 1.5;
}

.hn-phone__bar {
	background: var(--wp--preset--gradient--sunrise-soft);
	color: #fff;
	font-weight: 700;
	text-align: center;
	padding: 2.1rem 1rem 0.8rem;
	font-size: 1.05rem;
}

.hn-phone__feed {
	flex: 1;
	padding: 0.75rem;
	display: grid;
	align-content: start;
	gap: 0.75rem;
	overflow: hidden;
}

.hn-post {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(62, 39, 35, 0.08);
	overflow: hidden;
}

.hn-post__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 700;
}

.hn-post__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #FFE0B2;
	display: grid;
	place-items: center;
	font-size: 0.9rem;
}

.hn-post__head small {
	margin-left: auto;
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.hn-post img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}

.hn-post__plant {
	padding: 0.5rem 0.75rem 0;
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark);
	font-size: 0.85rem;
}

.hn-post__react {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.45rem 0.75rem 0.7rem;
}

.hn-post__react span {
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-dark);
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	font-size: 0.7rem;
	font-weight: 700;
}

.hn-phone__tabs {
	display: flex;
	justify-content: space-around;
	background: #fff;
	border-top: 1px solid #F3E5CF;
	padding: 0.55rem 0 1.1rem;
	font-size: 0.65rem;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

.hn-phone__tabs span::before {
	display: block;
	font-size: 1.15rem;
	line-height: 1.3;
}

.hn-phone__tabs .t1::before { content: "🏠"; }
.hn-phone__tabs .t2::before { content: "📷"; }
.hn-phone__tabs .t3::before { content: "⭐"; }
.hn-phone__tabs .t4::before { content: "👤"; }

.hn-phone__tabs .is-active {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

@media (max-width: 781px) {
	.hn-hero {
		text-align: center;
		padding-block: 2.5rem 3rem;
	}
	.hn-hero h1 {
		font-size: 2rem;
		line-height: 1.35;
	}
	.hn-hero .hn-lead {
		font-size: 1.15rem;
	}
	.hn-store-buttons {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem !important;
		margin-top: 1.5rem !important;
	}
	.hn-store-buttons .wp-block-button {
		width: 100%;
		max-width: 280px;
	}
	.hn-store-buttons .wp-block-button__link {
		width: 100%;
		font-size: 1.05rem !important;
		padding: 0.85rem 1.25rem !important;
	}
	.hn-btn-store .wp-block-button__link::before,
	.hn-btn-appstore .wp-block-button__link::before {
		width: 1.25rem;
		height: 1.25rem;
	}
	.hn-phone {
		transform: none;
		margin-top: 1.5rem;
		width: 260px;
	}
	.hn-phone__screen {
		height: 480px;
	}
}

/* ==========================================================================
   Steps
   ========================================================================== */
.hn-step-num {
	width: 76px;
	height: 76px;
	margin: 0 auto !important;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 6px 16px rgba(230, 81, 0, 0.3);
}

.hn-steps > .wp-block-column {
	position: relative;
}

@media (min-width: 782px) {
	.hn-steps > .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 38px;
		right: calc(-1 * var(--wp--style--block-gap, 2em) / 2 - 14px);
		width: 28px;
		height: 28px;
		background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFB74D' d='M8.6 3.4 7.2 4.8 14.4 12l-7.2 7.2 1.4 1.4L17.2 12z'/%3E%3C/svg%3E");
	}
}

/* ==========================================================================
   Senior friendly
   ========================================================================== */
.hn-check {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: var(--wp--preset--color--base);
	border-radius: 16px;
	padding: 1.5rem;
	height: 100%;
}

.hn-check .hn-check__mark {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	margin: 0 !important;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.hn-check h3 {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
}

.hn-check p {
	margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.hn-faq {
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 0 1.5rem;
	margin-block-start: 1rem !important;
}

.hn-faq summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 1.25rem 2.5rem 1.25rem 2.25rem;
	font-size: 1.1875rem;
	font-weight: 700;
}

.hn-faq summary::-webkit-details-marker { display: none; }

.hn-faq summary::before {
	content: "Q";
	position: absolute;
	left: 0;
	top: 1.15rem;
	color: var(--wp--preset--color--primary-dark);
	font-size: 1.375rem;
	font-weight: 700;
}

.hn-faq summary::after {
	content: "＋";
	position: absolute;
	right: 0;
	top: 1.2rem;
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
}

.hn-faq[open] summary::after { content: "－"; }

.hn-faq summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary-dark);
	outline-offset: 2px;
	border-radius: 8px;
}

.hn-faq > :not(summary) {
	padding: 0 0 1.25rem 2.25rem;
	margin-top: 0;
	border-top: 1px dashed #F3E5CF;
	padding-top: 1rem;
}

/* ==========================================================================
   News
   ========================================================================== */
.hn-news .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid #EBDDC5;
}

.hn-news .wp-block-post {
	margin: 0 !important;
	border-bottom: 1px solid #EBDDC5;
}

.hn-news-item {
	padding: 1.1rem 0.25rem;
	gap: 0.25rem 1.5rem !important;
}

.hn-news-item .wp-block-post-date {
	min-width: 7em;
}

.hn-news-item .wp-block-post-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}

.hn-news-item .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.hn-news-item .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.hn-cta {
	background: var(--wp--preset--gradient--sunrise);
	border-radius: 24px;
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem) !important;
	color: #fff;
	text-align: center;
	box-shadow: 0 16px 40px rgba(191, 54, 12, 0.25);
}

.hn-cta h2,
.hn-cta p {
	color: #fff;
}

.hn-btn-white .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--primary-dark);
}

.hn-btn-white .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-soft);
}

@media (max-width: 781px) {
	.hn-cta .wp-block-button__link {
		font-size: 1.05rem !important;
		padding: 0.85rem 1.25rem !important;
		width: 100%;
		max-width: 280px;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hn-site-footer {
	background: var(--wp--preset--color--contrast);
	color: #fff;
}

.hn-footer {
	max-width: 1200px;
	margin-inline: auto;
	padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.hn-footer .hn-brand {
	color: #fff;
}

.hn-footer p {
	color: #F5EBDD;
}

.hn-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
}

.hn-footer-links a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.hn-footer-links a:hover {
	text-decoration: underline;
}

.hn-footer a:focus-visible {
	outline-color: #fff;
}

.hn-copyright {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 1.5rem;
	font-size: 0.9375rem !important;
}

/* ==========================================================================
   Pages / posts
   ========================================================================== */
.hn-page-header {
	background: var(--wp--preset--color--primary-soft);
	padding-block: var(--wp--preset--spacing--60);
	text-align: center;
}

.hn-page-header h1 {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 0;
}

.hn-entry {
	padding-block: var(--wp--preset--spacing--60);
}

.hn-entry h2 {
	border-left: 6px solid var(--wp--preset--color--primary);
	padding-left: 0.75rem;
	margin-top: 2.5em;
}

.hn-archive .wp-block-post {
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 1.5rem 1.75rem;
}

.hn-archive .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.hn-archive .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
}
