/* ==========================================
   Footer Section
   ========================================== */

.site-footer {
    display: flex;
    align-items: center;
    background-color: #E5E5EA;
    padding: 53px 0;
    font-family: 'IBM Plex Sans JP', sans-serif;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(40px, 8.33vw, 120px);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

/* Logo Section */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-left: clamp(40px, 5vw, 75px);
    margin-top: 8px;
}

.footer-logo-img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.footer-copyright {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
    position: absolute;
    bottom: 5px;
    left: calc(clamp(40px, 8.33vw, 120px) + clamp(40px, 5vw, 75px) - 10px);
    margin: 0;
}

/* Social Section */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.footer-social-title {
    font-size: 18px;
    font-weight: 450;
    color: #000;
    margin: 0;
    letter-spacing: 0;
    line-height: 1;
}

.footer-social-icons {
    display: flex;
    gap: clamp(30px, 3vw, 50px);
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.social-icon--disabled {
    opacity: 0.3;
    cursor: default;
}

.social-icon img {
    width: 30px;
    height: 30px;
    display: block;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    margin-right: clamp(40px, 5vw, 75px);
}

.footer-link {
    font-size: 18px;
    font-weight: 450;
    color: #000;
    text-decoration: none;
    letter-spacing: 0;
    line-height: 1;
    display: block;
    font-family: 'Roboto Flex', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive - Below 1025px */
@media (max-width: 1025px) {
    .footer-container {
        padding: 0 40px;
        gap: 2rem;
    }

    .footer-copyright {
        left: calc(15px + clamp(40px, 5vw, 75px));
    }
}

/* Responsive - Tablet (768px - 1025px) */
@media (max-width: 1025px) and (min-width: 768px) {
    .site-footer {
        height: 150px;
        padding: 0;
    }

    .footer-logo {
        margin-left: calc(8vw - 40px);
    }

    .footer-logo-img {
        width: 65px;
        height: auto;
    }

    .footer-copyright {
        top: 47px;
        left: calc(8vw + 32.5px);
        transform: translateX(-50%);
        font-size: 10px;
    }

    .footer-social {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        row-gap: 1.5rem;
    }

    .footer-social-title {
        font-size: 16px;
    }

    .social-icon img {
        width: 22px;
        height: 22px;
    }

    .footer-social-icons {
        gap: 35px;
    }

    .footer-links {
        margin-right: calc(8vw - 40px);
        gap: 0.5rem;
    }

    .footer-link {
        font-size: 15px;
    }

}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .site-footer {
        height: auto;
        padding: 50px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
        gap: 40px;
    }

    .footer-logo {
        order: 3;
        align-items: center;
        justify-content: flex-start;
        margin-left: 0;
    }

    .footer-social {
        order: 1;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .footer-social-icons {
        gap: 45px;
    }

    .footer-links {
        order: 2;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        margin-right: 0;
    }

    .footer-social-title {
        font-size: 16px;
    }

    .footer-link {
        font-size: 15px;
        font-weight: 500;
    }

    .footer-logo-img {
        width: 60px;
    }

    .footer-copyright {
        font-size: 9px;
        position: static;
        left: auto;
        bottom: auto;
        order: 4;
        align-self: center;
        margin-top: calc(10px - 40px);
    }
}
