/* ------------------------------------------------------------
 * フッター上CTAコンポーネント
 * ------------------------------------------------------------ */

.site-cta {
	position: relative;
	display: block;
	overflow: hidden;
	color: var(--color-white);
	text-decoration: none;
	width: 100%;
	/* フッター上部の波（80px）を CTA 下部に食い込ませ、さらにフッター本体でも CTA 下部を覆って背景画像が透けないようにする */
	margin-bottom: -120px;
}

/* 背景画像 */
.site-cta__bg {
	position: absolute;
	inset: 0;
	background-color: #2c5b7a;
	/* 画像未指定時のフォールバック */
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	z-index: 0;
}

/* オーバーレイ: 下 #009CD1 → 上 透明 */
.site-cta__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 156, 209, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
}

/* コンテンツ */
.site-cta__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 40px;
	/* padding 分を上乗せして、実質コンテンツ幅を --content-max-width にする */
	max-width: calc(var(--content-max-width) + 80px);
	height: 500px;
	margin: 0 auto;
	padding: 120px 40px 0;
}

/* 本文とボタンを左右に配置 */
.site-cta__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.site-cta__text {
	flex: 1;
	color: var(--color-white);
}

/* 矢印円: 白背景 + ボタンと同じグラデーション枠 */
.site-cta__arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 4px solid transparent;
	border-radius: 50%;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(90deg, rgba(236, 240, 241, 0.5) 0%, rgba(240, 240, 229, 0.5) 100%) border-box;
	transition: transform 0.3s ease;
}

.site-cta__arrow-icon {
	font-family: var(--font-family-base);
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	color: var(--color-text);
}

.site-cta:hover .site-cta__arrow,
.site-cta:focus-visible .site-cta__arrow {
	transform: translateX(6px);
}

/* SP */
@media (max-width: 767px) {
	.site-cta__inner {
		gap: 24px;
		height: 400px;
		padding: 80px 24px 0;
	}

	.site-cta__row {
		gap: 16px;
	}
}