/* 푸터 전체 스타일 */
.footer {
    /*background-color: #44ccba; */
    /*background-color: #2bcc38;*/
    /*background-color: #024908;*/
    background-color: var(--color-primary);
    color: #999;
    padding: 60px 0 40px;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    margin-top:100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 상단 영역: 링크 및 SNS */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a.bold {
    font-weight: 700;
    color: #fff; /* 개인정보처리방침 강조 */
}

.footer-sns {
    display: flex;
    gap: 15px;
}

.footer-sns a {
    color: #999;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-sns a:hover {
    color: #fff;
}

/* 구분선 */
.footer-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 0 0 30px 0;
}

/* 하단 영역 */
.footer-bottom {
    /*display: flex;*/
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 30px;
}


.footer-logo-img {
    /* 높이를 기준으로 크기를 잡으면 비율에 맞춰 가로가 조절 */
    height: 85px;
    /*height: 100%;*/
    width: auto;

    /* 혹시 모를 이미지 왜곡 방지 */
    object-fit: contain;

    /* 투명도 조절 */
    opacity: 0.9;
    display: block;
}

.logo-text {
    font-size: 50px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align:center;
}

.footer-address span {
    display: inline-block;
    margin-right: 20px;
}

.copyright {
    font-size: 12px;
    color: #666;
    margin: 0;
    text-align:center;
}

/* 패밀리 사이트 선택창 */
.family-site select {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #444;
    padding: 8px 15px;
    width: 180px;
    outline: none;
    cursor: pointer;
    font-size: 13px;
}

.family-site select option {
    background-color: #1a1a1a;
    color: #fff;
}

.footer-responsive-logo {
    display: block;
    margin: 0 auto;           /* 이미지 중앙 정렬 */
    width: 100%;             /* 부모 너비에 맞춤 */
    max-width: 400px;        /* PC 최대 높이가 400px이었으므로 너비도 그에 맞춰 제한 */
    height: auto;            /* 비율 유지하며 자동 조절 */
    object-fit: contain;     /* 이미지가 잘리지 않게 함 */
    transition: all 0.3s ease; /* 부드러운 크기 변화 */
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px 20px;
    }

    .family-site {
        width: 100%;
        margin-top: 20px;
    }

    .family-site select {
        width: 100%;
    }

    .footer-logo-img {
        height: 20px;
    }

    .footer-responsive-logo {
        max-width: 250px;    /* 모바일에서는 조금 더 작게 배치 */
    }
}