/* footer */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.main_container,
.main_visual,
.sub_container {
    flex: 1 0 auto;
}

#footer-container {
    flex-shrink: 0;
}

#footer {
    position: relative;
    padding: 0 0;
    background: #333;
    color: #999;
    clear: both;
    line-height: normal;
    flex-shrink: 0;
    width: 100%;
}

#footer .wrap {
    position: relative;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#footer .info {
    position: relative;
    width: 75%;
}

#footer .info .company {
    color: #a7a7a7;
    font-weight: 600;
}

#footer .info address {
    margin: 20px 0;
}

#footer .info address dl {
    margin-bottom: 5px;
    display: flex;
}

#footer .info address dl:last-child {
    margin-bottom: 0px;
}

#footer .info address dl dt {
    width: 10%;
}

#footer .info address dl dd {
    width: 90%;
}

#footer .info address dl dd span {
    display: inline-block;
    padding-right: 12px;
    margin-right: 12px;
    border-right: 1px solid #ffd700;
}

#footer .info address dl dd span:last-child {
    border-right: none;
}

#footer .info .copy {
    font-size: 11px;
    color: #777;
    letter-spacing: 2px;
}

#footer .info .copy span {
    font-weight: 800;
}

#footer .etc {
    position: relative;
    width: 25%;
    text-align: right;
    left: 100px;
}

#footer .etc a {
    display: inline-block;
    color: #999;
    padding-left: 12px;
    margin-left: 12px;
    border-left: 1px solid #111;
}

#footer .etc a:first-child {
    border-left: none;
}

#footer .btn_top {
    position: absolute;
    width: 64px;
    height: 64px;
    background: #000000;
    border-radius: 50%;
    top: -32px;
    right: 50px;
}

/* 태블릿 */
@media screen and (max-width: 1240px) {
    #footer .wrap {
        padding: 0 15px;
        flex-direction: column;
        /* 수직 정렬로 변경 */
    }

    #footer {
        padding: 40px 0;
    }

    #footer .info {
        width: 100%;
    }

    #footer .etc {
        width: 100%;
        margin-top: 20px;
        left: 0;
        /* left 값 제거 */
        text-align: left;
        /* 왼쪽 정렬로 변경 */
    }

    #footer .etc a {
        padding: 0 10px;
        margin: 0;
        border-right: 1px solid #ffd700;
        border-left: none;
    }

    #footer .etc a:last-child {
        border-right: none;
    }

    #footer .btn_top {
        width: 52px;
        height: 52px;
        top: -26px;
        right: 2%;
    }
}

/* 모바일 */
@media screen and (max-width: 700px) {
    #footer {
        font-size: 14px;
        padding: 30px 0;
        /* 패딩 축소 */
    }

    #footer .wrap {
        padding: 0 15px;
    }

    #footer .info address dl {
        flex-direction: column;
        /* 주소 정보 수직 정렬 */
        margin-bottom: 15px;
    }

    #footer .info address dl dt {
        width: 100%;
        margin-bottom: 5px;
    }

    #footer .info address dl dd {
        width: 100%;
    }

    #footer .info address dl dd span {
        display: block;
        padding: 3px 0;
        margin: 0;
        border-right: none;
        line-height: 1.4;
    }

    #footer .copy {
        font-size: 11px;
        letter-spacing: 0;
        line-height: 1.4;
    }

    #footer .etc {
        margin-top: 15px;
    }

    #footer .etc a {
        padding: 5px 10px 5px 0;
    }

    #footer .btn_top {
        width: 40px;
        /* 크기 축소 */
        height: 40px;
        top: -20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        /* 중앙 정렬 */
    }

    #footer .btn_top img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}