/* ==========================================================
   Hero
========================================================== */

.alp-hero {
	position: relative;
	overflow: hidden;

	padding: 250px 0;
}

.alp-hero__inner {
	position: relative;
	z-index: 2;

	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0;

	border: 1px solid #ccc;
	border-radius: 10px;

	background-color: #fff;

	text-align: center;
}


/* ==========================================================
   Search form
========================================================== */

.alp-search-form {
	display: flex;
	gap: 14px;

	width: 100%;
	max-width: 640px;
	margin: 32px auto 0;
}

.alp-search-form input {
	flex: 1;
	min-width: 0;
	width: 100%;
	min-height: 58px;
	padding: 0 24px 0 56px;

	border: 1px solid #cbd5e1;
	border-radius: 999px;

	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 20px center;
	background-size: 22px;

	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;

	color: #111827;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1;

	outline: none;
}

.alp-search-form input::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.alp-search-form input:focus {
	border-color: #0b2b50;

	box-shadow:
		0 0 0 3px rgba(11, 43, 80, 0.12);
}

.alp-search-form button {
	flex: 0 0 170px;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;

	height: 58px;
	padding: 0 24px;

	border: 1px solid #0b2b50;
	border-radius: 999px;

	background: #0b2b50;
	color: #fff;

	font-family: inherit;
	font-size: 1.3rem;
	font-weight: 700;

	cursor: pointer;

	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.alp-search-form button::after {
	content: "";

	display: block;
	flex: 0 0 auto;

	width: 25px;
	height: 25px;

	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.alp-search-form button:hover,
.alp-search-form button:focus-visible {
	border-color: #a52a2a;
	background: #a52a2a;

	/*box-shadow:
		0 10px 22px rgba(165, 42, 42, 0.2);

	transform: translateY(-2px);*/
}


/* ==========================================================
   Floating images
========================================================== */

.alp-hero__visual {
	position: absolute;
	inset: 0;
	z-index: 1;

	width: min(1200px, 100%);
	margin: 0 auto;

	pointer-events: none;
}

.alp-hero__float {
	position: absolute;
	display: block;

	width: 180px;
	aspect-ratio: 4 / 3;

	border-radius: 20px;

	object-fit: cover;
	opacity: 0.82;

	--move-y: -14px;
	--scale: 1.03;
	--duration: 6s;

	animation: alpFloat var(--duration) ease-in-out infinite alternate;
}

.alp-hero__float--01 {
	top: 10%;
	left: 5%;

	width: 180px;
	rotate: -4deg;

	--duration: 5.8s;
}

.alp-hero__float--02 {
	top: 12%;
	right: 8%;

	width: 210px;
	rotate: 3deg;

	--duration: 6.4s;
}

.alp-hero__float--03 {
	top: 34%;
	left: 16%;

	width: 220px;
	rotate: 5deg;

	--duration: 7.2s;
}

.alp-hero__float--04 {
	top: 70%;
	right: 33%;

	width: 140px;
	rotate: 5deg;

	--duration: 5.8s;
}

.alp-hero__float--05 {
	bottom: 18%;
	left: 7%;

	width: 200px;
	rotate: 4deg;

	--duration: 7.6s;
}

.alp-hero__float--06 {
	right: 9%;
	bottom: 14%;

	width: 190px;
	rotate: -3deg;

	--duration: 6.2s;
}

.alp-hero__float--07 {
	top: 74%;
	left: 33%;

	width: 200px;
	rotate: -2deg;

	--duration: 8s;
}

.alp-hero__float--08 {
	top: 12%;
	right: 34%;

	width: 260px;
	rotate: 4deg;

	--duration: 7.4s;
}

@keyframes alpFloat {
	from {
		translate: 0 0;
		scale: 1;
	}

	to {
		translate: 0 var(--move-y);
		scale: var(--scale);
	}
}

.alp-sp {
	display: none;
}


/* ==========================================================
   Hero - Mobile
========================================================== */

@media (max-width: 768px) {

	.alp-hero {
		padding: 100px 16px 80px;
	}

	.alp-hero__inner {
		width: calc(100% - 16px);
		max-width: none;
		margin: 0 auto;
		padding: 28px 18px 26px;

		border-radius: 8px;
	}

	.alp-hero__label {
		font-size: 0.8125rem;
		line-height: 1.6;
		letter-spacing: 0.04em;
	}

	.alp-hero__title {
		margin-top: 10px;

		font-size: clamp(1.7rem, 7.2vw, 1.95rem);
		line-height: 1.45;
		letter-spacing: 0.02em;
	}

	.alp-search-form {
		flex-direction: column;
		gap: 12px;

		max-width: none;
		margin-top: 24px;
	}

	.alp-search-form input,
	.alp-search-form button {
		width: 100%;
		box-sizing: border-box;
	}

	.alp-search-form input {
		min-height: 56px;

		padding: 0 18px 0 52px;

		background-position: 18px center;
		background-size: 21px;

		font-size: 0.95rem;
		line-height: 1;

		appearance: none;
		-webkit-appearance: none;
	}

	.alp-search-form button {
		height: 56px;
		flex-basis: auto;

		min-width: 0;
		padding: 0 22px;

		border-radius: 999px;

		font-size: 1.3rem;
	}

	.alp-hero__visual {
		width: 100%;
	}

	.alp-hero__float {
		width: 120px;

		border-radius: 12px;
		opacity: 0.5;

		--move-y: -8px;
		--scale: 1.01;
	}

	.alp-hero__float--01 {
		top: 4%;
		left: -28px;
		width: 120px;
	}

	.alp-hero__float--02 {
		top: 5%;
		right: -30px;
		width: 130px;
	}

	.alp-hero__float--03 {
		top: 40%;
		left: -45px;
		width: 130px;
	}

	.alp-hero__float--04 {
		display: none;
	}

	.alp-hero__float--05 {
		bottom: 4%;
		left: -30px;
		width: 125px;
	}

	.alp-hero__float--06 {
		right: -35px;
		bottom: 5%;
		width: 125px;
	}

	.alp-hero__float--07,
	.alp-hero__float--08 {
		display: none;
	}

	.alp-sp {
		display: inline;
	}
}

/* ==========================================================
   Reduced motion
========================================================== */

@media (prefers-reduced-motion: reduce) {

	.alp-hero__float {
		animation: none;
	}

	.alp-search-form input,
	.alp-search-form button {
		transition: none;
	}
}

@media (max-width: 768px) {
	.alp-hero__inner :is(h1, h2, p) {
		text-wrap: balance;
	}
}
