@charset "utf-8";
/*
 * トップページ（front-page.php）専用スタイル
 *
 * functions.php の my_styles() で is_front_page() のときだけ読み込む。
 * 依存に 'my-style' を指定しているため style.css より後に読まれる。
 *
 * すべてのルールを .homehub 配下に限定している。style.css を直接いじると
 * 全ページに波及するため、打ち消しもここで完結させる。
 *
 * 打ち消しが必要な style.css の指定:
 *   h1,h2,h3,h4,h5,p { margin: 2em 0 }  … 見出し・段落の余白が過大になる
 *   a { color:#333; display:inline-block } … 本文中のリンクで行送りが崩れ、色も死ぬ
 *   h1 { font-size: 2rem } ほか          … サイズが合わない
 * いずれもクラスを前置した詳細度（0,1,1）で勝てる。
 *
 * 色は緑と白を基調にする。文字を載せる面には green-600 を使わない
 * （白文字で 3.26:1 と AA に届かないため）。green-700 なら 5.02:1。
 * green-600 は罫線・枠・アイコンなど、文字を載せない用途に限る。
 */

.homehub {
	--home-green-50: #f0fdf4;
	--home-green-100: #dcfce7;
	--home-green-200: #bbf7d0;
	--home-green-600: #16a34a;
	--home-green-700: #15803d;
	--home-green-900: #14532d;
	--home-tint: #f3faf4;
	--home-line: #e2eee5;
	--home-ink: #1a1a1a;
	--home-ink-light: #4a4a4a;
	/* #7a7a7a は淡い背景でコントラスト 4.2:1 でAAに届かない。#6b6b6b を使う。 */
	--home-ink-muted: #6b6b6b;
	--home-font-display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
	--home-font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
	--home-card: 0 1px 2px rgba(20, 83, 45, 0.04), 0 8px 24px rgba(20, 83, 45, 0.05);

	font-family: var(--home-font-body);
	color: var(--home-ink);
	background: #fff;
	line-height: 1.9;
	/* 禁則処理：小書きの仮名が行頭に来るのを防ぐ */
	line-break: strict;
	-webkit-font-smoothing: antialiased;
}

/* ---- style.css の素の要素セレクタを打ち消す ---- */

.homehub h1,
.homehub h2,
.homehub h3,
.homehub p,
.homehub ul,
.homehub ol,
.homehub li {
	margin: 0;
	padding: 0;
}

.homehub ul,
.homehub ol {
	list-style: none;
}

.homehub a {
	display: inline;
	color: var(--home-green-700);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	transition: color 0.2s;
}

.homehub a:hover {
	color: var(--home-green-900);
}

.homehub a:focus-visible {
	outline: 2px solid var(--home-green-600);
	outline-offset: 3px;
}

.homehub img {
	max-width: 100%;
}

.homehub-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* ---- 共通レイアウト ---- */

.homehub-hero,
.homehub-section,
.homehub-cta {
	position: relative;
	overflow: hidden;
}

.homehub-container {
	position: relative;
	z-index: 1;
	/* 共通ナビ（.sitenav-inner: max-width 1080 / padding 0 20px）と左端を揃える。 */
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

.homehub-section {
	padding: 84px 0;
}

.homehub-section--tint {
	background: var(--home-tint);
}

/* 見出しを左の柱に、内容を右に置く2分割 */
.homehub-secgrid {
	display: grid;
	grid-template-columns: 300px 1fr;
	column-gap: 44px;
	align-items: start;
}

/* ---- セクションの見出し ---- */

.homehub .homehub-secmeta {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 6px;
}

.homehub-secno {
	font-family: var(--home-font-display);
	font-size: 2.7rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #cde3d2;
}

.homehub-seclabel {
	font-family: var(--home-font-display);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--home-green-700);
}

.homehub h2 {
	font-size: clamp(1.45rem, 3.3vw, 1.95rem);
	font-weight: 900;
	line-height: 1.55;
	letter-spacing: 0.01em;
	color: var(--home-ink);
	margin: 0 0 14px;
}

.homehub h2 em {
	font-style: normal;
	color: var(--home-green-700);
}

.homehub .homehub-secintro {
	margin: 0 0 20px;
	font-size: 0.85rem;
	line-height: 1.95;
	color: var(--home-ink-light);
}

.homehub h3 {
	font-family: var(--home-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.6;
	color: var(--home-ink);
	margin: 0 0 8px;
}

.homehub p {
	font-size: 0.95rem;
}

/* ---- hero ---- */

.homehub-hero {
	padding: 68px 0 84px;
	background:
		radial-gradient(105% 85% at 82% 18%, #eaf7ec 0%, rgba(234, 247, 236, 0) 62%),
		linear-gradient(180deg, #ffffff 0%, #f4fbf5 100%);
}

.homehub-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	column-gap: 40px;
	align-items: center;
}

/* h1 はブランド名を含む小さなラベルと、大きなキャッチの2段。
   読み上げ・検索エンジンには両方が渡る。 */
.homehub h1 {
	margin: 0 0 22px;
}

.homehub-h1-eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.01em;
	color: var(--home-green-700);
}

.homehub-h1-main {
	display: block;
	font-size: clamp(2.1rem, 5.4vw, 3.5rem);
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: 0.005em;
	color: var(--home-ink);
}

.homehub-h1-main em {
	font-style: normal;
	color: var(--home-green-700);
}

.homehub .homehub-lead {
	margin: 0 0 30px;
	font-size: 0.92rem;
	line-height: 2;
	color: var(--home-ink-light);
}

.homehub-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* 3つの数字。モックと同じく1枚のカードにまとめて縦罫で区切る。 */
.homehub .homehub-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: 440px;
	margin-top: 34px;
	padding: 16px 6px;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 14px;
	box-shadow: var(--home-card);
}

.homehub .homehub-stats li {
	padding: 0 8px;
	text-align: center;
}

.homehub-stats li + li {
	border-left: 1px solid var(--home-line);
}

.homehub-stat-label {
	display: block;
	font-size: 0.7rem;
	line-height: 1.6;
	color: var(--home-ink-muted);
}

.homehub-stat-value {
	display: block;
	font-family: var(--home-font-display);
	font-size: 1.95rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--home-green-700);
}

.homehub-stat-value small {
	font-family: var(--home-font-body);
	font-size: 0.82rem;
	font-weight: 700;
	margin: 0 1px;
}

.homehub-stat-unit {
	display: block;
	font-size: 0.68rem;
	line-height: 1.6;
	color: var(--home-ink-muted);
}

/* 風景の上にキャラクターを重ねる。どちらも装飾なので alt="" ・aria-hidden。 */
.homehub-hero-art {
	position: relative;
	line-height: 0;
}

.homehub-hero-land {
	display: block;
	width: 100%;
	height: auto;
}

.homehub-hero-char {
	position: absolute;
	right: 4%;
	bottom: 1%;
	width: 46%;
	height: auto;
}

/* ---- 01 まずはここから ---- */

.homehub-startlist {
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 16px;
	box-shadow: var(--home-card);
	overflow: hidden;
}

.homehub-startlist li + li {
	border-top: 1px solid var(--home-line);
}

.homehub .homehub-startlist a {
	display: grid;
	grid-template-columns: 40px 1fr 22px;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	color: var(--home-ink);
	text-decoration: none;
	transition: background 0.2s;
}

.homehub .homehub-startlist a:hover {
	background: var(--home-green-50);
}

.homehub-start-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--home-green-50);
	color: var(--home-green-700);
}

.homehub-start-icon .homehub-icon {
	width: 22px;
	height: 22px;
}

.homehub-start-text strong {
	display: block;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.6;
}

.homehub-start-text span {
	display: block;
	font-size: 0.8rem;
	line-height: 1.8;
	color: var(--home-ink-light);
}

.homehub-start-arrow {
	font-size: 0.95rem;
	color: var(--home-green-700);
	text-align: right;
	transition: transform 0.2s;
}

.homehub .homehub-startlist a:hover .homehub-start-arrow {
	transform: translateX(3px);
}

/* ---- 02 ロードマップ ---- */

.homehub-roadmap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px 22px;
}

.homehub-roadmap li {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.homehub-step-head {
	display: flex;
	align-items: center;
	gap: 9px;
}

.homehub-step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--home-green-700);
	color: #fff;
	font-family: var(--home-font-display);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
}

.homehub-step-name {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--home-green-900);
}

.homehub-step-body {
	position: relative;
	display: grid;
	grid-template-columns: 54px 1fr;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 16px;
	box-shadow: var(--home-card);
}

/* 横の細い線で同じ行のステップをつなぐ。ステップは順番に進むものなので、
   並んでいるだけでなく「続いている」ことを見せる。 */
.homehub-step-body::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -22px;
	width: 22px;
	height: 2px;
	background: var(--home-green-200);
}

.homehub-roadmap li:nth-child(3n) .homehub-step-body::after {
	display: none;
}

.homehub-step-body img {
	display: block;
	width: 54px;
	height: 54px;
	object-fit: contain;
}

.homehub-step-body span {
	font-size: 0.76rem;
	line-height: 1.75;
	color: var(--home-ink-light);
}

/* ---- 03 サービス ---- */

.homehub-services {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.homehub .homehub-services li {
	display: flex;
	flex-direction: column;
	padding: 20px 18px 22px;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 18px;
	box-shadow: var(--home-card);
}

.homehub-services h3 {
	margin: 0 0 12px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--home-green-900);
	text-align: center;
}

.homehub-service-img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 14px;
}

.homehub-services p {
	flex-grow: 1;
	font-size: 0.78rem;
	line-height: 1.85;
	color: var(--home-ink-light);
}

/* ---- 04 ブログ ---- */

.homehub-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.homehub .homehub-posts a {
	display: block;
	color: var(--home-ink);
	text-decoration: none;
}

.homehub-post-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	overflow: hidden;
	background: var(--home-green-50);
}

.homehub-post-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.homehub .homehub-posts a:hover .homehub-post-thumb img {
	transform: scale(1.04);
}

.homehub-post-cat {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 10px;
	border-radius: 6px;
	background: rgba(20, 83, 45, 0.88);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.7;
}

.homehub-post-title {
	display: block;
	margin-top: 12px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.65;
	transition: color 0.2s;
}

.homehub .homehub-posts a:hover .homehub-post-title {
	color: var(--home-green-700);
}

.homehub-post-date {
	display: block;
	margin-top: 4px;
	font-family: var(--home-font-display);
	font-size: 0.75rem;
	letter-spacing: 0.03em;
	color: var(--home-ink-muted);
}

/* ---- リンク・ボタン ---- */

.homehub .homehub-arrow-link {
	font-size: 0.83rem;
	font-weight: 700;
	text-decoration: none;
}

.homehub-arrow-link::after {
	content: " →";
}

.homehub .homehub-arrow-link:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.homehub-services .homehub-arrow-link {
	margin-top: 12px;
	align-self: flex-start;
}

.homehub .homehub-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.homehub .homehub-button,
.homehub .homehub-button--primary {
	/* 白文字を載せる面に green-600 を使うとコントラストが 3.26:1 で AA に届かない。
	   green-700 なら 5.02:1。 */
	background: var(--home-green-700);
	border: 1px solid var(--home-green-700);
	color: #fff;
}

.homehub .homehub-button:hover,
.homehub .homehub-button--primary:hover {
	background: var(--home-green-900);
	border-color: var(--home-green-900);
	color: #fff;
}

.homehub .homehub-button--ghost {
	background: #fff;
	border: 1px solid var(--home-green-600);
	color: var(--home-green-700);
}

.homehub .homehub-button--ghost:hover {
	background: var(--home-green-50);
	border-color: var(--home-green-700);
	color: var(--home-green-900);
}

.homehub .homehub-button--outline {
	padding: 12px 22px;
	background: #fff;
	border: 1px solid var(--home-green-200);
	color: var(--home-green-700);
	font-size: 0.82rem;
}

.homehub .homehub-button--outline::after {
	content: "→";
	font-size: 0.78rem;
}

.homehub .homehub-button--outline:hover {
	background: var(--home-green-50);
	border-color: var(--home-green-600);
	color: var(--home-green-900);
}

.homehub .homehub-cta-inline {
	margin-top: 22px;
}

/* ---- 最後のCTA ---- */

.homehub-cta {
	padding: 84px 0 0;
	background: linear-gradient(180deg, #ffffff 0%, #eaf6ec 100%);
}

.homehub-cta-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 48px;
	align-items: center;
	padding-bottom: 32px;
}

.homehub-cta h2 {
	font-size: clamp(1.4rem, 3.4vw, 2rem);
	margin-bottom: 16px;
}

.homehub-cta p {
	font-size: 0.88rem;
	line-height: 2;
	color: var(--home-ink-light);
}

.homehub-cta-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 300px;
}

.homehub-cta-art {
	display: block;
	width: 100%;
	height: auto;
	/* イラストの下端は角が丸まっていて、左右の隅に地色が見える切り欠きができる。
	   .homehub-cta の overflow:hidden で最下部をわずかに隠して詰める。
	   % 指定なので、どの画面幅でも同じ割合だけ切れる。 */
	margin-bottom: -1.6%;
}

/* ---- 読み込み時の一度きりの動き ----
   スクロールのたびに要素が現れる作りにはしない。最初の画面で見出しと
   イラストが立ち上がる一度きりの流れだけを持たせる。 */

@keyframes homehub-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

.homehub h1,
.homehub .homehub-lead,
.homehub-hero-buttons,
.homehub-stats,
.homehub-hero-art {
	animation: homehub-rise 0.8s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

.homehub h1               { animation-delay: 0.05s; }
.homehub .homehub-lead    { animation-delay: 0.16s; }
.homehub-hero-buttons     { animation-delay: 0.26s; }
.homehub-stats            { animation-delay: 0.36s; }
.homehub-hero-art         { animation-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
	.homehub *,
	.homehub *::before,
	.homehub *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---- レスポンシブ ---- */

@media screen and (max-width: 1000px) {
	.homehub-secgrid {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}

	.homehub-services {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 900px) {
	.homehub-hero-grid {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}

	.homehub-hero-art {
		max-width: 520px;
		margin: 0 auto;
	}

	.homehub-roadmap {
		grid-template-columns: repeat(2, 1fr);
	}

	/* 3列前提のつなぎ線なので、列数が変わったら消す */
	.homehub-step-body::after {
		display: none;
	}

	.homehub-cta-grid {
		grid-template-columns: 1fr;
		row-gap: 26px;
	}

	.homehub-cta-buttons {
		min-width: 0;
	}
}

@media screen and (max-width: 700px) {
	.homehub-posts {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media screen and (max-width: 600px) {
	.homehub-hero {
		padding: 44px 0 60px;
	}

	.homehub-section {
		padding: 60px 0;
	}

	.homehub-cta {
		padding: 60px 0 0;
	}

	.homehub-secno {
		font-size: 2.2rem;
	}

	.homehub-seclabel {
		font-size: 0.85rem;
	}

	.homehub-stats {
		max-width: none;
	}

	.homehub-hero-buttons .homehub-button,
	.homehub-cta-buttons .homehub-button {
		width: 100%;
	}

	.homehub .homehub-startlist a {
		grid-template-columns: 36px 1fr 18px;
		gap: 12px;
		padding: 18px 16px;
	}

	.homehub-start-icon {
		width: 36px;
		height: 36px;
		border-radius: 10px;
	}

	/* 2列だとカードが狭すぎるので1列にし、そのぶん横並びで詰める */
	.homehub-roadmap {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.homehub-services {
		grid-template-columns: 1fr;
	}

	/* 1列にすると縦に伸びすぎるので、イラストを左・文言を右の横並びにする */
	.homehub .homehub-services li {
		display: grid;
		grid-template-columns: 116px 1fr;
		column-gap: 16px;
		align-items: start;
	}

	.homehub-service-img {
		grid-column: 1;
		grid-row: 1 / span 3;
		margin-bottom: 0;
	}

	.homehub-services h3,
	.homehub-services p,
	.homehub-services .homehub-arrow-link {
		grid-column: 2;
	}

	.homehub-services h3 {
		text-align: left;
		font-size: 0.9rem;
		margin-bottom: 8px;
	}

	.homehub-services .homehub-arrow-link {
		margin-top: 10px;
	}
}
