.footer {
    position: relative;
    z-index: 1;
}

.footer__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.footer__bg-img.u-pc {
    display: block;
    object-position: top;

    @media screen and (max-width: 768px) {
        display: none;
    }
}

.footer__bg-img.u-sp {
    display: none;

    @media screen and (max-width: 768px) {
        display: block;
        object-position: top;
    }
}

.footer__wrapper {
    padding-block: 200px 80px;

    @media screen and (max-width: 768px) {
        padding-block: 245px 100px;
    }

    @media screen and (max-width: 570px) {
        padding-block: 160px 50px;
    }
}


.footer__top {
    width: fit-content;
    margin-inline: auto;
    display: block;
    cursor: pointer;

    @media screen and (max-width: 768px) {
        width: 258px;
    }

    @media screen and (max-width: 570px) {
        width: 120px;
    }


}

.footer__top-title {
    font-size: 30px;
    font-family: var(--sub-font-family);
    color: var(--main-color);
    text-align: center;
}

.footer__top-text {
    font-size: 13px;
    color: var(--main-color);
    font-family: var(--third-font-family);
    margin-top: 10px;
    text-align: center;

    @media screen and (max-width: 768px) {
        font-size: 20px;
    }
}

.footer__nav {
    width: fit-content;
    margin-inline: auto;
    margin-top: 40px;

    @media screen and (max-width: 768px) {
        margin-top: 73px;
    }

    @media screen and (max-width: 570px) {
        margin-top: 30px;
    }
}


.footer__nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 15px;
    color: var(--main-color);
    font-family: var(--sub-font-family);
    font-weight: 700;

    @media screen and (max-width: 768px) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        font-size: 24px;
    }

    @media screen and (max-width: 570px) {
        gap: 10px;
        font-size: 14px;
    }

    a {
        display: inline-block;
        text-decoration: none;
        color: inherit;
        transition: opacity 0.3s ease, transform 0.2s ease, color 0.3s ease;
        padding: 5px 0;

        &:hover {
            opacity: 0.8;
            transform: translateY(-2px);
            color: var(--main-color);
        }
    }
}

.footer__nav-item {
    list-style: none;

    @media screen and (max-width: 768px) {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .footer__nav-item:nth-child(5) {
        grid-column-start: 2;
    }
}

.footer__copyright {
    width: fit-content;
    text-align: center;
    margin-inline: auto;
    margin-top: 43px;
    color: var(--footer-text-color);
    font-family: var(--third-font-family);
    font-size: 12px;

    @media screen and (max-width: 768px) {
        font-size: 18px;
        margin-top: 68px;
    }

    @media screen and (max-width: 570px) {
        font-size: 12px;
        margin-top: 30px;
    }
}

