footer *{
 /* overflow:hidden !important; */
}

footer{
    color: white;
    background-color: #3b251b;

    padding: 60px 0;
}

footer .top_wrap p span{
    padding: 0 28px ;
}

footer .bottom_wrap{
    color : #a49993;
}

footer .bottom_wrap address{
    line-height: 1.6;
}

footer .bottom_wrap p{
    align-self: flex-end;
}


.f_bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-direction:column-reverse; 
    gap: 20px;
}


/* 바로가기 버튼 */
.f_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    white-space: nowrap;
}

.f_btn:hover {
    border-color: #fff;
    color: #fff;
}

.f_btn::after {
    content: "›";
    font-size: 18px;
}


footer .footer_top {
    width: 95px;
    height: 95px;
 position: fixed;
    bottom: 100px;
    right: 100px;
    cursor: pointer;
        z-index: 9999;
}


.footer_top img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin infinite 5s linear;

    -webkit-animation-name: spin;
    -webkit-animation-duration: 5s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}

@keyframes spin{
    0%{
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.footer_top i{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #fff;
    transition: margin-top .3s;
}

.footer_top:hover i{
    margin-top: -7px;
}

#footer .footer_top{
    transition: all 0.5s ease-in-out;
}

#footer.scroll .footer_top{
    color :#8d766c;
    filter: invert(48%) sepia(3%) saturate(2775%) hue-rotate(333deg) brightness(98%) contrast(83%);
}

#footer b{
    font-weight: normal;
}


/* mobile */
@media screen and (max-width: 767px) {
    footer{
        padding: 30px 0 !important;
    }

    #footer{
        position: relative;
    }

    footer .footer_top{
        width: 50px;
        height: 50px;
    }

    footer .footer_top.m_top{
        position: absolute;
        bottom: 50%;
        right: 5%;
        /*transform: scale(0.6);*/
    }

    .footer_top img{
        width: 70px;
    }

    .footer_top i{
        font-size: 20px;
    }

    footer .top_wrap{
        flex-direction: column;
        gap: 14px;
        margin-bottom: 14px;
    }

    footer .top_wrap img{
        width: 120px;
    }

    footer .top_wrap p span{
        padding: 0 4px;
    }

    footer .bottom_wrap address{
        line-height: 1.4;
    }

    footer .bottom_wrap p {
        align-self: flex-start;
    }

    .footer_top:hover i{
        margin-top: 0px;
    }


}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    footer .footer_top{
        bottom: 5%;
        right: 5%;
    }

    footer .bottom_wrap{
        flex-direction: column;
        gap: 10px;
    }

    footer .bottom_wrap p{
        align-self: baseline;
    }

    .footer_top.m-none{
        display: none;
    }

    #footer{
        position: relative;
    }



    footer .footer_top{
        width: 80px;
        height: 80px;
    }

    footer .footer_top.m_top{
        position: absolute;
        bottom: 30%;
        right: 7%;
        /*transform: scale(0.6);*/
    }

    .footer_top img{
        width: 90px;
    }

    .footer_top i{
        font-size: 28px;
    }


}