/**
 * #Arrow
 */

.c-arrow {
	--arrow-size: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--arrow-size);
	height: var(--arrow-size);
	clip-path: inset(0 -8px 0 0);

	&::after {
		content: "";
		display: block;
		width: 100%;
		height: 100%;
		background-color: currentColor;
		mask-image: url("/wp-content/themes/edance-parent/assets/img/icon/btn-arrow.svg");
		mask-size: contain;
		mask-repeat: no-repeat;
		mask-position: center;
		-webkit-mask-image: url("/wp-content/themes/edance-parent/assets/img/icon/btn-arrow.svg");
		-webkit-mask-size: contain;
		-webkit-mask-repeat: no-repeat;
		-webkit-mask-position: center;
	}

	&.c-arrow--sm {
		--arrow-size: 14px;
	}
}

a:hover .c-arrow::after,
button:hover .c-arrow::after {
	animation: arrow-hover 0.6s cubic-bezier(0.18, 0.89, 0.32, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	a:hover .c-arrow::after,
	button:hover .c-arrow::after {
		animation: none;
	}
}
