/* 矢印ボタン */
/*== ボタン共通設定 */
.scroll_btn {
    /*アニメーションの起点とするためrelativeを指定*/
    width: 35rem;
    height: 5rem;
    line-height: 5rem;
    position: relative;
    overflow: hidden;
    /*ボタンの形状*/
    text-decoration: none;
    display: inline-block;
    border: 1px solid #555;
    /* ボーダーの色と太さ */
    border-radius: 10rem;
    padding: 0px 30px;
    text-align: center;
    outline: none;
    /*アニメーションの指定*/
    transition: all ease .2s;
}

/*ボタン内spanの形状*/
.scroll_btn span {
    position: relative;
    z-index: 3;
    /*z-indexの数値をあげて文字を背景よりも手前に表示*/
    color: var(--base_font_color);
}

.scroll_btn:hover span {
    color: #fff;
}

/*== 背景が流れる（左から右） */
.bgleft:before {
    content: '';
    /*絶対配置で位置を指定*/
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    /*色や形状*/
    background: #333;
    /*背景色*/
    width: 100%;
    height: 100%;
    /*アニメーション*/
    transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
    transform: scale(0, 1);
    transform-origin: right top;
}

/*hoverした際の形状*/
.bgleft:hover:before {
    transform-origin: left top;
    transform: scale(1, 1);
}

/*矢印と下線の形状*/

.btn_arrow {
    position: relative;
    display: block;
    text-align: left;
    transition: all 1.3s;
}

.btn_arrow::before {
    content: '';
    /*絶対配置で下線の位置を決める*/
    position: absolute;
    top: 60%;
    right: 1%;
    /*下線の形状*/
    width: 36px;
    height: 1px;
    background: #333;
    /*アニメーションの指定*/
    transition: all 1.3s;
}

.btn_arrow::after {
    content: '';
    /*絶対配置で矢印の位置を決める*/
    position: absolute;
    top: 50%;
    right: 1%;
    /*矢印の形状*/
    width: 15px;
    height: 1px;
    background: #333;
    transform: rotate(35deg);
    /*アニメーションの指定*/
    transition: all 1.3s;
}

.bgleft:hover .btn_arrow {
    color: var(--base_white);
}

.bgleft .btn_arrow {
    color: var(--base_font_color);
}

.bgleft:hover .btn_arrow::before {
    /*絶対配置で下線の位置を決める*/
    /*下線の形状*/
    background: #fff;
    /*アニメーションの指定*/
    transition: all 1.3s;
}

.bgleft:hover .btn_arrow::after {
    /*絶対配置で矢印の位置を決める*/

    /*矢印の形状*/
    background: #fff;
    /*アニメーションの指定*/
    transition: all 1.3s;
}



/* 通常フェードイン */
.fade_in {
    opacity: 0;
    animation: fadein 1.5s .3s ease-out forwards;
}

@keyframes fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*上からフェードイン*/
.fade_in_top {
    opacity: 0;
    animation: fadein_top 1.5s .3s ease-out forwards;
}

@keyframes fadein_top {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*下からフェードイン*/
.fade_in_bottom {
    opacity: 0;
    animation: fadein_bottom 1.5s 0 ease-out forwards;
}

@keyframes fadein_bottom {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*左からフェードイン*/
.fade_in_left {
    opacity: 0;
    animation: fadein_left 1.5s 0 ease-out forwards;
}

@keyframes fadein_left {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*右からフェードイン*/
.fade_in_right {
    opacity: 0;
    animation: fadein_right 1.5s 0 ease-out forwards;
}

@keyframes fadein_right {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}





/* aosカスタム */

.delay_lr [data-aos="delay_lr"] {
    opacity: 0;
    transition-property: transform, opacity;
}

.delay_lr [data-aos="delay_lr"].aos-animate {
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .delay_lr [data-aos="delay_lr"]:nth-of-type(odd) {
        transform: translateX(-100px);
    }

    .delay_lr [data-aos="delay_lr"]:nth-of-type(even) {
        transform: translateX(100px);
    }

    .delay_lr [data-aos="delay_lr"].aos-animate {
        transform: translateX(0);
    }
}



.delay_ul [data-aos="delay_ul"] {
    opacity: 0;
    transition-property: transform, opacity;
}

.delay_ul [data-aos="delay_ul"].aos-animate {
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .delay_ul [data-aos="delay_ul"]:nth-of-type(odd) {
        transform: translateX(-100px);
    }

    .delay_ul [data-aos="delay_ul"]:nth-of-type(even) {
        transform: translateX(100px);
    }

    .delay_ul [data-aos="delay_ul"].aos-animate {
        transform: translateX(0);
    }
}

.lefty_move label:nth-of-type(1) {
    transition-delay: .1s;
}

.lefty_move label:nth-of-type(2) {
    transition-delay: .2s;
}

.lefty_move label:nth-of-type(3) {
    transition-delay: .3s;
}

.lefty_move label:nth-of-type(4) {
    transition-delay: .4s;
}

.lefty_move label:nth-of-type(5) {
    transition-delay: .5s;
}

.lefty_move label:nth-of-type(6) {
    transition-delay: .6s;
}

.lefty_move label:nth-of-type(7) {
    transition-delay: .7s;
}

.lefty_move label:nth-of-type(8) {
    transition-delay: .8s;
}

.lefty_move label:nth-of-type(9) {
    transition-delay: .9s;
}

.lefty_move label:nth-of-type(10) {
    transition-delay: 1.0s;
}

.lefty_move label:nth-of-type(11) {
    transition-delay: 1.1s;
}

.lefty_move label:nth-of-type(12) {
    transition-delay: 1.2s;
}

.lefty_move label:nth-of-type(13) {
    transition-delay: 1.3s;
}

.lefty_move label:nth-of-type(14) {
    transition-delay: 1.4s;
}

.lefty_move label:nth-of-type(15) {
    transition-delay: 1.5s;
}

.lefty_move label:nth-of-type(16) {
    transition-delay: 1.6s;
}

.lefty_move label:nth-of-type(17) {
    transition-delay: 1.7s;
}

.lefty_move label:nth-of-type(18) {
    transition-delay: 1.8s;
}

.lefty_move label:nth-of-type(19) {
    transition-delay: 1.9s;
}

.lefty_move label:nth-of-type(20) {
    transition-delay: 2.0s;
}

.lefty_move label:nth-of-type(21) {
    transition-delay: 2.1s;
}


.custom02 {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.custom02.sample {
    width: 100%;
}


.custom02 .box {
    width: 250px;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .custom02 div:nth-of-type(2) {
        transition-delay: .1s;
    }

    .custom02 div:nth-of-type(3) {
        transition-delay: .2s;
    }
}