.scroll-hint-icon {
    position: absolute;
    inset-inline-end: 30px;
    top: calc(50% - 25px);
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    overflow-x: hidden;
    text-align: center;
    background: rgb(0 0 0 / 50%);
    border-radius: 5px;
    opacity: 0;
}

.scroll-hint-icon-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    pointer-events: none;
}

.scroll-hint-icon-wrap.is-active .scroll-hint-icon {
    opacity: 1;
}

.scroll-hint-icon::before {
    display: inline-block;
    font-family: FontAwesome;
    font-size: 32px;
    line-height: 1;
    vertical-align: middle;
    color: #fff;
    text-align: center;
    content: "\f101";
    transform: scaleY(1.6);
}

.scroll-hint-icon:lang(ar)::before {
    content: "\f100";
}

.scroll-hint-icon-wrap.is-active .scroll-hint-icon::before {
    animation:
        scroll-hint-appear 0.9s linear 0s 2,
        scroll-hint-fadein 0.3s linear 1.8s 1;
}

.scroll-hint-icon-wrap.is-active .scroll-hint-icon:lang(ar)::before {
    animation:
        scroll-hint-appear-rtl 0.9s linear 0s 2,
        scroll-hint-fadein 0.3s linear 1.8s 1;
}

@keyframes scroll-hint-fadein {
    0% {
        opacity: 0;
        transform: translate(0, 0) scaleY(1.6);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) scaleY(1.6);
    }
}

@keyframes scroll-hint-appear {
    0% {
        opacity: 0;
        transform: translate(-4px, 0) scaleY(1.6);
    }

    48% {
        opacity: 1;
    }

    96% {
        opacity: 0.1;
        transform: translate(4px, 0) scaleY(1.6);
    }

    100% {
        opacity: 0;
    }
}

/* ▼ RTL用（右→左方向） */
@keyframes scroll-hint-appear-rtl {
    0% {
        opacity: 0;
        transform: translate(4px, 0) scaleY(1.6);
    }

    48% {
        opacity: 1;
    }

    96% {
        opacity: 0.1;
        transform: translate(-4px, 0) scaleY(1.6);
    }

    100% {
        opacity: 0;
    }
}
