/**
 * Bottom CTA + Footer
 */

/* ==========================================================================
   CTA
   ========================================================================== */

.bottom-cta {
	position: relative;
	background:
		radial-gradient(ellipse 50% 60% at 50% 40%, rgba(237, 231, 246, 0.9) 0%, transparent 70%),
		radial-gradient(ellipse 40% 50% at 85% 50%, rgba(255, 236, 179, 0.45) 0%, transparent 65%),
		linear-gradient(180deg, #FFFEFB 0%, #F8F5FC 100%);
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: 0;
	overflow: hidden;
	border-bottom: none;
}

.bottom-cta__inner {
	position: static;
	display: block;
	padding-bottom: clamp(4rem, 10vw, 7rem);
}

.bottom-cta__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding-bottom: 1rem;
}

.bottom-cta__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary-dark);
	line-height: 1.5;
	margin-bottom: 0.85rem;
	letter-spacing: 0.02em;
}

.bottom-cta__lead {
	font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
	color: #555;
	line-height: 1.8;
	margin-bottom: 1.75rem;
}

.bottom-cta__lead-break {
	display: none;
}

.bottom-cta__lead-keep {
	white-space: nowrap;
}

@media (min-width: 769px) {
	.bottom-cta__lead {
		white-space: nowrap;
	}
}

@media (max-width: 768px) {
	.bottom-cta__lead-break {
		display: block;
		height: 0;
	}
}

.bottom-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
}

.bottom-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 52px;
	padding: 0.85rem 1.5rem;
	border-radius: 9999px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: var(--font-weight-medium);
	letter-spacing: 0.02em;
	transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
	white-space: nowrap;
}

.bottom-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(74, 31, 110, 0.14);
}

.bottom-cta__btn--primary {
	background-color: #4B2588;
}

.bottom-cta__btn--primary:hover {
	background-color: #3d1d6e;
}

.bottom-cta__btn--green {
	background-color: #00B700;
}

.bottom-cta__btn--green:hover {
	background-color: #009a00;
}

.bottom-cta__btn-arrow {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	font-size: 0;
	line-height: 0;
	background: url('../images/icon-arrow-right-white.svg') center / contain no-repeat;
}

.bottom-cta__btn--outline .bottom-cta__btn-arrow {
	background-image: url('../images/icon-arrow-right-purple.svg');
}

.bottom-cta__deco {
	position: absolute;
	bottom: 0;
	z-index: 0;
	display: block;
	pointer-events: none;
	height: auto;
}

.bottom-cta__deco--tree {
	left: 0;
	width: clamp(340px, 48vw, 640px);
	object-fit: contain;
	object-position: left bottom;
}

.bottom-cta__deco--children {
	right: 0;
	width: clamp(340px, 50vw, 660px);
	object-fit: contain;
	object-position: right bottom;
	transform: translateY(4%);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	position: relative;
	background-color: #4B2588;
	color: #fff;
	padding: 0;
	border-top: none;
}

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(220px, 1.1fr) 2fr;
	gap: 2.5rem;
	padding-block: 2.75rem 2.25rem;
}

.site-footer__logo-link {
	display: inline-block;
	margin-bottom: 0.75rem;
}

.site-footer__logo,
.site-footer__logo-link .custom-logo {
	height: 52px;
	width: auto;
	max-width: 300px;
	filter: brightness(0) invert(1);
}

.site-footer__name {
	display: none;
}

.site-footer__address {
	font-style: normal;
	font-size: 0.8125rem;
	line-height: 1.8;
	opacity: 0.9;
}

.site-footer__address a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.site-footer__nav-title {
	font-size: 0.875rem;
	font-weight: var(--font-weight-bold);
	margin-bottom: 0.85rem;
	letter-spacing: 0.04em;
}

.site-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__nav-list li + li {
	margin-top: 0.5rem;
}

.site-footer__nav-list a {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.88);
	transition: opacity 0.2s ease;
}

.site-footer__nav-list a:hover {
	opacity: 0.7;
}

.site-footer__sns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.site-footer__sns-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__sns-link img {
	display: block;
	width: 28px;
	height: 28px;
	filter: grayscale(1) contrast(1.1);
}

.site-footer__sns-link:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.site-footer__affiliates {
	background-color: #fff;
	padding-block: 1.25rem 1.35rem;
}

.site-footer__affiliates-title {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.08em;
	color: #4B2588;
	text-align: center;
}

.site-footer__affiliates-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__affiliate {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
}

.site-footer__affiliate img {
	display: block;
	height: 42px;
	width: auto;
	max-width: min(240px, 72vw);
}

.site-footer__affiliate:hover {
	opacity: 0.8;
}

.site-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem 1.15rem;
	flex-wrap: wrap;
}

.site-footer__copyright {
	font-size: 0.75rem;
	opacity: 0.85;
	text-align: left;
	margin: 0;
	color: #fff;
}

.site-footer__legal {
	font-size: 0.75rem;
	margin: 0;
}

.site-footer__legal a {
	color: rgba(255, 255, 255, 0.9);
}

.site-footer__legal a:hover {
	text-decoration: underline;
}

.site-footer__legal-sep {
	margin-inline: 0.5rem;
	opacity: 0.6;
}

.site-footer__pagetop {
	position: absolute;
	right: clamp(1rem, 3vw, 2rem);
	top: 0;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background-color: #4B2588;
	border: 2px solid #fff;
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	z-index: 5;
	transition: transform 0.25s ease, background-color 0.25s ease;
	text-align: center;
	padding: 0.35rem;
}

.site-footer__pagetop:hover {
	background-color: #3d1d6e;
	transform: translateY(-50%) translateY(-3px);
}

.site-footer__pagetop-arrow {
	font-size: 0.875rem;
	line-height: 1;
}

.site-footer__pagetop-text {
	font-size: 0.5625rem;
	line-height: 1.25;
	letter-spacing: 0.02em;
}

@media (max-width: 900px) {
	.bottom-cta__inner {
		padding-bottom: clamp(4rem, 14vw, 6rem);
	}

	.bottom-cta__deco--tree {
		width: clamp(180px, 52vw, 300px);
	}

	.bottom-cta__content {
		padding-bottom: 2.5rem;
	}

	.bottom-cta__deco--children {
		width: clamp(190px, 55vw, 320px);
		transform: translateY(2%);
	}

	.bottom-cta__actions {
		flex-direction: column;
		align-items: center;
	}

	.bottom-cta__btn {
		width: auto;
		min-width: 0;
		max-width: 100%;
		white-space: normal;
		text-align: center;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding-block: 2.5rem 2rem;
	}

	.site-footer__nav {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.site-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__pagetop {
		width: 64px;
		height: 64px;
		right: 1rem;
	}
}

@media (max-width: 480px) {
	.bottom-cta {
		padding-top: 2.5rem;
		padding-bottom: 0;
	}

	.site-footer__pagetop-text {
		font-size: 0.5rem;
	}
}
