/* 전체 푸터 스타일 */
.footer_box {
    position: relative;
    bottom: 0;
    left: 0;
    font-family: 'Roboto', sans-serif;
    color: white;
    font-size: 12px;
    font-weight: 400;
}


/* 상단 섹션 */
.footer_top {
    display: grid;
    grid-template-columns: 1fr 200px;
    /*gap: 60px;*/
    align-items: start;
}

.footer_studio_list {
    width: 100%;
    color: #9b9b9b;
    font-size: 14px;
    line-height: 1.8;
}

.footer_studio_list li {
    margin-top: 8px;
    transition: color 0.3s ease;
}

.footer_studio_list li:last-child {
    /*margin-bottom: 20px;*/
}

.footer_studio_list .highlight {
    color: #ffffff;
}

.footer_studio_list .divider {
    margin: 0 10px;
}
/* 메뉴 카테고리 (오른쪽) */
.footer_menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 오른쪽 정렬 */
    gap: 15px;
}

.footer_menu a {
    color: #9b9b9b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer_menu a:hover {
    color: #ffffff;
}

/* 하단 섹션 */
.footer_bottom {
    position: relative;
}

.sns {
    position: fixed;
    bottom: 50px;
    left: 50px;
    width: 60px;
    /*height: 600px;*/
    z-index: 50;
}

.sns_list {
    width: 100%;
}

.sns_list li {
    width: 100%;
    height: 60px;
    margin-bottom: 20px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.sns_list li img{
    width: 100%;
    height: 60px;
    border-radius: 50%;               /* 기본: 동그란 모양 */
    opacity: 1;        /* 기본: 완전히 보임 */
}

.sns_list li:hover img {
    /*animation: fadeInOut 2s ease-in-out 1;*/
}
/* fadeInOut 애니메이션 정의: 0%에서 100%까지 opacity가 1 → 0 → 1로 변화 */
@keyframes fadeInOut {
    /*0% {*/
    /*    opacity: 1;*/
    /*}*/
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 1450px) {
    .sns {
        display: none;
    }
}



/* 하단 섹션 */
.divider_line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    margin-bottom: 20px;
}

.footer_studio_list li {
    width: 100%;
    margin-top: 20px;
}

.footer_studio_list li:last-child {
    margin-bottom: 20px;
}
.footer_bottom_content {
    display: flex;
    align-items: center;         /* 세로 중앙 정렬 */
    justify-content: space-between; /* 좌우에 균등 분배 */
    /* 필요시 여백이나 패딩을 추가하세요. */
}

/* 소셜 미디어 & 라이센스 */
.social_license {
    flex: 0 0 auto;  /* 고정 크기 */
}
.icon_list {
    display: flex;
    gap: 10px;       /* 아이콘 간 간격 */
    padding: 0;
    margin: 0;
    list-style: none;
}

.icon_list li {
    width: 40px;
    height: 40px;
}

.icon_list li img {
    width: 100%;
    height: 100%;
    border-radius: 50%;  /* 기본: 원형 */
    opacity: 1;        /* 기본: 완전히 보임 */
}

.icon_list li:hover img {
    /*animation: fadeInOut 2s ease-in-out 1;*/
}
/* fadeInOut 애니메이션 정의: 0%에서 100%까지 opacity가 1 → 0 → 1로 변화 */
@keyframes fadeInOut {
    /*0% {*/
    /*    opacity: 1;*/
    /*}*/
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* 중앙 영역: 라이센스 텍스트 */
.empty_space {
    flex: 1;         /* 남은 공간 모두 사용 */
    text-align: center; /* 텍스트 중앙 정렬 */
}

.license_text {
    font-size: 13px;
    color: #9b9b9b;
    margin: 0;       /* 불필요한 마진 제거 */
}
/* 오른쪽 영역: 이용약관 등 */
.footer_links {
    flex: 0 0 auto;
}
/* 이용약관 */
.pri_list {
    display: flex;
    justify-content: flex-end; /* 오른쪽 정렬 */
    align-items: center;
    /*gap: 10px;*/
    list-style: none;
    margin: 0;
    padding: 0;
}

.pri_list li {
    position: relative;
}

.pri_list li::after {
    content: "|"; /* 구분자 추가 */
    padding-left: 10px; /* 구분자와 텍스트 사이 간격 */
    padding-right: 10px; /* 구분자와 텍스트 사이 간격 */
    color: #9b9b9b;
}

.pri_list li:last-child::after {
    content: ""; /* 마지막 항목은 구분자를 숨김 */
    padding-left: 0; /* 구분자와 텍스트 사이 간격 */
    padding-right: 0; /* 구분자와 텍스트 사이 간격 */
}

.pri_list a {
    color: #9b9b9b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pri_list a:hover {
    color: #ffffff;
}
.pri_list .highlight {
    color: #ffffff;
}

.pri_list .bold {
    font-weight: 700;
}

/* 기타 (배경 등) 필요한 경우 추가 스타일 작성 */
.bg {
    /*height: 100vh;*/
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#main_footer_style_list {
    position: relative;
    margin-top: 55px;
    width: 100%;
    /*height: 600px;*/
}



.bg_type1 {
    position: relative;
    /*height: 180px;*/
}

.bg_type2 {
    position: absolute;
    background-color: #fff;
    top: 0;
    width: 100%;
    height: 20px;
}

.bg_type3 {
    background-color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
}

#main_footer_style_list .main_only_img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 600px;*/
    height: 50vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

#main_footer_style_list .main_only_p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#footer_style_list {
    position: relative;
    width: 100%;
    margin-top: 55px;
}

#footer_style_list .footer_only_img {
    position: relative;
    height: 300px;
    top: 0;
    left: 0;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#footer_style_list .footer_only_p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}




/* TOP_BTN START */
.top_btn {
    position: fixed;
    bottom: -80px;
    right: 50px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
    font-size: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.top_btn.show {
    opacity: 1;
    transform: translateY(0);
    right: 20px; /* 화면 내 원하는 위치로 조정 */
    transition: transform 0.5s ease;
}

.top_btn img,
.top_btn.show img{
    transition: transform 0.5s ease;
}
/* TOP_BTN END */

@media screen and (max-width: 1450px) {
    #top_btn {
        display: none;
    }
}

@media screen and (max-width: 1300px) {
    .l_wrap {
        width: 100%;
    }
}

@media screen and (max-width: 1020px) {
    /* 푸터 전체 컨테이너 */
    .footer_box {
        background: #333;
        width: 100%;
    }

    /* 푸터 상단 레이아웃 변경 */
    .footer_top {
        position: relative;
        display: block; /* flex에서 block으로 변경 */
        padding: 30px 0;
    }

    /* 로고와 회사 정보 */
    .footer_info_box {
        width: 100%;
        display: block;
        margin-bottom: 30px;
    }


    .footer_studio_list {
        padding: 0;
        margin: 0;
        width: 100%;
        list-style: none;
    }

    .footer_studio_list img {
        width: 30%;
        height: auto;
        margin-bottom: 10px;
    }

    /* 메뉴 스타일 완전 수정 */
    .footer_menu {
        width: 100%;
        display: flex ;
        flex-direction: row;
        justify-content: space-evenly;
    }

    /* 푸터 하단 */
    .divider_line {
        height: 1px;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 0 -20px;
    }

    .footer_bottom_content {
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* 소셜 아이콘 */
    .social_license {
        width: 100%;
        text-align: center;
    }

    .icon_list {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 0;
        margin: 0;
    }

    .icon_list img {
        width: 30px;
        height: 30px;
    }

    /* 저작권 텍스트 */
    .empty_space {
        width: 100%;
        text-align: center;
    }

    .license_text {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
    }

    /* 이용약관 링크 */
    .footer_links {
        width: 100%;
    }

    .pri_list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }

    .pri_list li a {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
    }
}

@media screen and (max-width: 1250px) {

}

@media screen and (max-width: 1020px) {
    .footer_studio_list span,
    .footer_studio_list p,
    .footer_studio_list strong{
        font-size: 12px;
    }

    .footer_studio_list img {
        width: 30%;
    }

}

@media screen and (max-width: 700px) {
    .footer_studio_list span,
    .footer_studio_list p,
    .footer_studio_list strong{
        font-size: 10px;
    }

    .footer_studio_list img {
        width: 35%;
    }
}

@media screen and (max-width: 420px) {
    .footer_studio_list span,
    .footer_studio_list p,
    .footer_studio_list strong{
        font-size: 8px;
    }

    .footer_studio_list img {
        width: 45%;
    }
}
