@charset "UTF-8";

/* ========================================
   メインビジュアル
======================================== */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	background-color: #eaf7fc;
	background-image: url("../images/hero-bg.jpg");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
}

/* ========================================
   レイアウト
======================================== */
.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;

	min-height: clamp(560px, 56vw, 760px);
	padding-block: 70px 110px;
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: 540px;
}

/* ========================================
   キャッチコピー
======================================== */
.hero__title {
	margin-bottom: 30px;

	font-family: var(--font-heading);
	font-size: clamp(32px, 3.5vw, 48px);
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.6;
	animation: hero-text-appear 1.6s ease-out both;
}

.hero__pair,
.hero__line {
	display: block;
}

.hero__pair+.hero__pair {
	margin-top: 8px;
}

.hero__line--indent {
	padding-left: 0.8em;
}

.hero__character {
	font-size: 1.5em;
	line-height: 1;
}

.hero__character--wind {
	color: var(--color-blue);
}

.hero__character--soil {
	color: #6aab45;
}

.hero__small {
	font-size: 0.72em;
}

/* ========================================
   説明文
======================================== */
.hero__text {
	font-family: var(--font-heading);
	font-size: 16px;
	letter-spacing: 0.04em;
	line-height: 2;
	animation: hero-text-appear 1.6s ease-out .2s both;
}

/* ========================================
   写真の左側を白くする
======================================== */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(90deg,
			rgb(255 255 255 / 94%) 0%,
			rgb(255 255 255 / 80%) 25%,
			rgb(255 255 255 / 40%) 45%,
			rgb(255 255 255 / 0%) 70%);
}

/* ========================================
   風：位置とマスク解除
   表示後の波の変形はhero.jsで制御
======================================== */
.hero__wind {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.hero__wind-track,
.hero__boundary-track {
	position: absolute;
	left: 0;
	width: 100%;
}

.hero__wind-track {
	top: -45px;
	height: 340px;
}

.hero__boundary-track {
	bottom: -1px;
	height: 220px;
}

.hero__wind-track>svg,
.hero__boundary-track>svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.hero__wind-track>svg {
	animation: hero-wind-reveal 1s ease-in-out both;
}

.hero__boundary-track>svg {
	position: absolute;
	inset: 0;
}

/* 白い境界は読み込み直後から表示 */
.hero__boundary-track>.hero__boundary-base {
	clip-path: none;
}

.hero__boundary-track>.hero__boundary-ribbons {
	animation: hero-wind-reveal 1.1s ease-in-out .1s both;
}

/* ========================================
   葉っぱ：出現後、定位置で浮遊
======================================== */
.hero__leaf {
	--leaf-delay: 1.2s;
	--leaf-duration: 6s;
	--leaf-angle: -15deg;

	position: absolute;
	z-index: 2;
	display: block;
	width: 48px;
	height: 27px;
	border-radius: 100% 0 100% 0;
	background: linear-gradient(145deg,
			#d3e997 0%, #94c743 45%, #4c982f 100%);
	animation:
		hero-leaf-appear 1.3s ease-out var(--leaf-delay) both,
		hero-leaf-float var(--leaf-duration) ease-in-out calc(var(--leaf-delay) + 1.3s) infinite;
}

.hero__leaf::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 8%;
	width: 84%;
	height: 1px;
	background: rgb(255 255 255 / 40%);
	transform: rotate(-25deg);
}

.hero__leaf--1 {
	top: 16%;
	left: 73%;
}

.hero__leaf--2 {
	--leaf-delay: 1.4s;
	--leaf-duration: 7.5s;
	--leaf-angle: -25deg;
	top: 32%;
	left: 88%;
	width: 65px;
	height: 36px;
}

.hero__leaf--3 {
	--leaf-delay: 1.6s;
	--leaf-duration: 5.5s;
	--leaf-angle: 10deg;
	top: 48%;
	left: 57%;
	width: 36px;
	height: 20px;
}

.hero__leaf--4 {
	--leaf-delay: 1.8s;
	--leaf-duration: 8s;
	--leaf-angle: -20deg;
	top: 78%;
	left: 89%;
}

.hero__leaf--5 {
	--leaf-delay: 2s;
	--leaf-duration: 7s;
	--leaf-angle: 20deg;
	top: 12%;
	left: 48%;
	width: 32px;
	height: 18px;
}

.hero__leaf--6 {
	--leaf-delay: 2.2s;
	--leaf-duration: 6.5s;
	--leaf-angle: -35deg;
	top: 39%;
	left: 76%;
	width: 40px;
	height: 23px;
}

.hero__leaf--7 {
	--leaf-delay: 2.4s;
	--leaf-duration: 8.5s;
	--leaf-angle: 15deg;
	top: 63%;
	left: 66%;
	width: 30px;
	height: 17px;
}

.hero__leaf--8 {
	--leaf-delay: 2.6s;
	--leaf-duration: 7.2s;
	--leaf-angle: -10deg;
	top: 69%;
	left: 94%;
	width: 38px;
	height: 21px;
}

/* ========================================
   アニメーション
======================================== */
@keyframes hero-wind-reveal {
	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes hero-text-appear {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes hero-leaf-appear {
	from {
		opacity: 0;
		transform: translateY(25px) rotate(calc(var(--leaf-angle) - 12deg)) scale(.85);
	}

	to {
		opacity: 1;
		transform: translateY(0) rotate(var(--leaf-angle)) scale(1);
	}
}

@keyframes hero-leaf-float {

	0%,
	100% {
		transform: translate(0, 0) rotate(var(--leaf-angle)) scale(1);
	}

	30% {
		transform: translate(5px, -9px) rotate(calc(var(--leaf-angle) + 6deg)) scale(1);
	}

	65% {
		transform: translate(-4px, 5px) rotate(calc(var(--leaf-angle) - 5deg)) scale(1);
	}
}

/* ========================================
   タブレット
======================================== */
@media (max-width: 1023px) {
	.hero__inner {
		min-height: 580px;
		padding-block: 60px 90px;
	}

	.hero__title {
		font-size: 38px;
	}

	.hero__text {
		font-size: 14px;
	}
}

/* ========================================
   スマートフォン
======================================== */
@media (max-width: 767px) {
	.hero__inner {
		min-height: 560px;
		padding-block: 55px 85px;
	}

	.hero__content {
		width: 100%;
	}

	.hero__title {
		margin-bottom: 26px;
		font-size: clamp(28px, 7.5vw, 36px);
		letter-spacing: .03em;
	}

	.hero__pair+.hero__pair {
		margin-top: 12px;
	}

	.hero__text {
		font-size: clamp(12px, 3.2vw, 14px);
		letter-spacing: 0;
	}

	/* 風のカーブを浅くする */
	.hero__wind-track {
		top: -12px;
		left: -15%;
		width: 130%;
		height: 150px;
	}

	.hero__boundary-track {
		left: -10%;
		width: 120%;
		height: 85px;
	}

	.hero__leaf {
		width: 30px;
		height: 17px;
	}

	.hero__leaf--1 {
		left: 76%;
	}

	.hero__leaf--2 {
		left: 85%;
		width: 40px;
		height: 22px;
	}

	.hero__leaf--3 {
		left: 62%;
	}

	.hero__leaf--4 {
		left: 80%;
	}

	.hero__leaf--5 {
		top: 10%;
		left: 49%;
		width: 22px;
		height: 13px;
	}

	.hero__leaf--6 {
		left: 88%;
		width: 27px;
		height: 15px;
	}

	.hero__leaf--7 {
		left: 59%;
		width: 21px;
		height: 12px;
	}

	.hero__leaf--8 {
		left: 91%;
		width: 25px;
		height: 14px;
	}
}

/* ========================================
   動きを減らす設定：完成状態を表示
======================================== */
@media (prefers-reduced-motion: reduce) {

	.hero__wind-track>svg,
	.hero__boundary-track>.hero__boundary-ribbons {
		animation: none;
		clip-path: none;
	}

	.hero__title,
	.hero__text {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.hero__leaf {
		animation: none;
		opacity: 1;
		transform: rotate(var(--leaf-angle));
	}
}



/* ========================================
   背景写真：ふんわり表示
======================================== */
.hero {
	background-image: none;
}

/* 写真を独立したレイヤーにする */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;

	background-image: url("../images/hero-bg.jpg");
	background-repeat: no-repeat;
	background-position: inherit;
	background-size: cover;

	animation: hero-photo-appear 1.8s ease-out both;
}

@keyframes hero-photo-appear {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero::after {
		animation: none;
		opacity: 1;
	}
}