/*====================
PAGE TOP（VK ExUnit 上書き・建設現場テーマ）
====================*/

body #page_top.page_top_btn,
body a.page_top_btn {
	position: fixed;
	right: clamp(16px, 3vw, 28px);
	bottom: clamp(20px, 4vw, 32px);
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 8px 6px 6px;
	border: 2px solid #fff !important;
	border-radius: 6px;
	background: var(--color-brand-navy, #00297d) !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 1;
	text-indent: -9999px;
	overflow: hidden;
	box-shadow:
		0 4px 16px rgba(0, 41, 125, 0.28),
		inset 0 -3px 0 rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px);
	transition:
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.28s ease,
		opacity 0.24s ease,
		visibility 0.24s ease;
}

body #page_top.page_top_btn.is-visible,
body a.page_top_btn.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

body #page_top.page_top_btn::before,
body a.page_top_btn::before {
	content: "";
	display: block;
	width: 26px;
	height: 16px;
	margin: 0 auto 1px;
	border: none;
	background: url("../../img/logo/logo_icon_white.svg") no-repeat center top / 26px auto;
	text-indent: 0;
}

body #page_top.page_top_btn::after,
body a.page_top_btn::after {
	content: "TOP";
	display: block;
	color: #fff;
	font-family: var(--font-en, sans-serif);
	font-size: 9px;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0.14em;
	line-height: 1;
	text-indent: 0;
}

body #page_top.page_top_btn:hover,
body a.page_top_btn:hover {
	transform: translateY(-3px);
	box-shadow:
		0 8px 22px rgba(0, 41, 125, 0.32),
		inset 0 -3px 0 rgba(0, 0, 0, 0.15);
	opacity: 1;
}

body #page_top.page_top_btn.is-pressing,
body a.page_top_btn.is-pressing {
	animation: site-pagetop-press 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes site-pagetop-press {
	0% {
		transform: translateY(0) scale(1);
	}

	35% {
		transform: translateY(6px) scale(0.94);
		box-shadow: 0 2px 8px rgba(0, 41, 125, 0.2);
	}

	70% {
		transform: translateY(-8px) scale(1.02);
	}

	100% {
		transform: translateY(0) scale(1);
	}
}

body.is-drawer-open #page_top.page_top_btn,
body.is-drawer-open a.page_top_btn {
	z-index: 1004;
}

@media (prefers-reduced-motion: reduce) {
	body #page_top.page_top_btn,
	body a.page_top_btn {
		transition: box-shadow 0.2s ease;
	}

	body #page_top.page_top_btn.is-pressing,
	body a.page_top_btn.is-pressing {
		animation: none;
		transform: translateY(-2px);
	}
}
