/* ================================
   반응형 Footer CSS
   ================================ */

/* 기본 리셋 및 전역 스타일 */
.footer-margin-remover+footer.footer {
    margin-top: 0;
}

footer.footer {
    background-color: #f5f5f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'NotoSansKR', Sans-serif;
    line-height: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

footer.footer .footer-main-container {
    padding: 0 16px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 서비스 메뉴 리스트 */
.footer-margin-remover+footer.footer .footer-service-menu-list {
    border-top: none;
}

footer.footer .footer-service-menu-list {
    display: flex;
    align-items: center;
    padding: 16px 0px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* 메인 푸터 레이아웃 */
footer.footer .footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    margin-top: 32px;
    gap: 32px;
}

/* 공통 스타일 */
.footer-flex-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

footer.footer a {
    text-decoration: none;
}

/* 고객 문의 섹션 */
footer.footer .footer-contact {
    flex-shrink: 0;
    min-width: 280px;
}

footer.footer .footer-contact .footer-menu-title {
    margin-bottom: 8px;
}

.footer-menu-title img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

footer.footer .footer-contact .footer-cs-tel {
    color: #616161;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    display: block;
    margin-bottom: 8px;
}

footer.footer .footer-contact .footer-cs-info {
    margin-top: 8px;
}

footer.footer .footer-contact .footer-cs-info .footer-cs-item {
    display: inline-block;
    color: #616161;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
}

footer.footer .footer-contact .footer-cs-info .footer-cs-subitem {
    display: inline-block;
    color: #9e9e9e;
    margin-left: 6px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

footer.footer .footer-contact .footer-cs-info .footer-cs-item.email {
    margin-top: 8px;
    display: block;
    word-break: break-all;
}

/* 메뉴 리스트 */
footer.footer .footer-menu-list {
    min-width: 180px;
}

footer.footer .footer-menu-list .footer-menu-title {
    color: #616161;
    margin-bottom: 12px;
    gap: 4px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
}

footer.footer .footer-menu-list .footer-menu-item {
    display: block;
    color: #616161;
    font-size: 13px;
    line-height: 20px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

footer.footer .footer-menu-list .footer-menu-item:hover {
    color: #424242;
}

footer.footer .footer-menu-list .footer-menu-item+.footer-menu-item {
    margin-top: 4px;
}

/* 하단 정보 영역 */
footer.footer .footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 60%;
}

footer.footer .footer-company-info .footer-company-info-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

footer.footer .footer-company-info-item {
    color: #9e9e9e;
    font-size: 12px;
    line-height: 18px;
    word-break: keep-all;
}

footer.footer .footer-company-info .footer-company-info-list .footer-divider {
    width: 1px;
    height: 12px;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

footer.footer .footer-company-info .footer-company-info-copyright {
    margin-top: 16px;
    color: #9e9e9e;
    font-size: 12px;
    line-height: 18px;
}

/* 클리어픽스 */
.footer-main-container::before {
    content: "";
    display: table;
    clear: both;
}

/* ================================
   반응형 미디어 쿼리
   ================================ */

/* 태블릿 (768px 이하) */
@media screen and (max-width: 768px) {
    footer.footer .footer-main-container {
        padding: 0 16px 32px;
    }

    /* 메인 푸터를 세로 배치 */
    footer.footer .footer-main-content {
        flex-direction: column;
        gap: 24px;
        margin-top: 24px;
        padding-bottom: 24px;
        align-items: center;
        text-align: center;
    }

    /* 고객 문의 섹션 중앙 정렬 */
    footer.footer .footer-contact {
        text-align: center;
        min-width: auto;
        width: 100%;
    }

    footer.footer .footer-contact .footer-menu-title {
        justify-content: center;
    }

    footer.footer .footer-contact .footer-cs-tel {
        font-size: 18px;
        line-height: 26px;
    }

    /* 회사 정보를 중앙 정렬 */
    footer.footer .footer-company-info {
        text-align: center;
        max-width: 100%;
    }

    footer.footer .footer-company-info .footer-company-info-list {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
    footer.footer .footer-main-container {
        padding: 0 12px 24px;
    }

    /* 메인 푸터 세로 배치 유지 */
    footer.footer .footer-main-content {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        padding-bottom: 20px;
        align-items: center;
        text-align: center;
    }

    /* 고객 문의 중앙 정렬 */
    footer.footer .footer-contact {
        text-align: center;
        min-width: auto;
        width: 100%;
    }

    footer.footer .footer-contact .footer-menu-title {
        justify-content: center;
        margin-bottom: 12px;
    }

    footer.footer .footer-contact .footer-cs-tel {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 12px;
    }

    footer.footer .footer-contact .footer-cs-info {
        text-align: center;
    }

    /* 회사 정보 완전 중앙 정렬 */
    footer.footer .footer-company-info {
        text-align: center !important;
        max-width: 100%;
        align-items: center;
    }

    footer.footer .footer-company-info .footer-company-info-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    footer.footer .footer-company-info-item {
        font-size: 11px;
        line-height: 16px;
        text-align: center;
    }

    footer.footer .footer-company-info .footer-company-info-copyright {
        text-align: center;
        /* margin-top 제거 - 다른 정보들과 같은 간격 */
    }

    /* 구분선 숨기기 (모바일에서는 자동 줄바꿈) */
    footer.footer .footer-company-info .footer-company-info-list .footer-divider {
        display: none;
    }
}

/* 큰 화면 (1200px 이상) */
@media screen and (min-width: 1200px) {
    footer.footer .footer-main-content {
        justify-content: space-between;
        max-width: 1200px;
        margin: 32px auto 0;
    }

    footer.footer .footer-company-info {
        text-align: right;
        max-width: 60%;
    }

    /* 데스크톱에서 copyright는 좌측 정렬 유지 */
    footer.footer .footer-company-info .footer-company-info-copyright {
        text-align: left;
    }
}