
.footer {
    max-width: 128rem;
    width: 100%;
    position: relative;
    background-color: #FFEFD9;
    padding: 7.4rem 0 2.7rem;
    border-radius: 6rem 6rem 0 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer__inner {
    display: flex;
    width: 113rem;
    margin: 0 auto;
    padding-bottom: 9.8rem;
    border-bottom: 1px solid #000;
}

.footer__contact {
    height: 0;
}

.footer__contact a {
    display: block;
    width: 56rem;
    padding: 3.6rem 4rem;
    border-radius: 1rem;
    color: #fff;
    background-color: #EE7B49;
    background-image: url('../img/header_footer/footer_contact_icon2.svg');
    background-repeat: no-repeat;
    background-position: right 4rem center;
    background-size: 6.3rem 4.5rem;
    position: absolute;
    left: 0;
    right: 0;
    top: -8rem;
    margin: 0 auto;
}

.footer__contact-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: calc(100 / 100);
    letter-spacing: calc(10 / 100 * 20 / 10 * 1rem);
    padding: 1rem 0;
    background-image: url('../img/header_footer/footer_contact_icon1.svg');
    background-repeat: no-repeat;
    background-position: 26.2rem center;
    background-size: 4rem 4rem;
    margin-bottom: 2rem;
}

.footer__contact-text {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: calc(28 / 16);
    letter-spacing: calc(5 / 100 * 16 / 10 * 1rem);
}

.footer__logo {
    width: 33.9rem;
    height: 9rem;
}

.fnav {
    display: flex;
    gap: 3.5rem;
}

.fnav__item {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: calc(28 / 16);
    letter-spacing: calc(5 / 100 * 16 / 10 * 1rem);
}

.fnav__item--title,
.fnav__title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: calc(28 / 16);
    letter-spacing: calc(5 / 100 * 16 / 10 * 1rem);
    margin-bottom: 1.5rem;
    color: #1E2328;
}

.fnav__item:last-child {
    margin-bottom: 0;
}

.fnav__item{
    color: #1E2328;
}

.footer__fb {
    z-index: 99;
    display: grid;
    place-content: center;
    position: fixed;
    width: 6.6rem;
    height: 6.6rem;
    border-radius: 50%;
    background-color: #EE7B49;
    right: 7rem;
    bottom: 7rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: calc(100 / 100);
    letter-spacing: calc(5 / 100 * 12 / 10 * 1rem);
    color: #FFEFD9;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.35s ease;
}

.footer__fb::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #FFEFD9;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
    pointer-events: none;
}

.footer__fb::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 1.5rem solid transparent;
    border-left: 1.5rem solid transparent;
    border-bottom: 2.5rem solid currentColor;
    border-top: 0;
    margin-bottom: 0.5rem;
}
.footer__fb:hover,
.footer__fb:focus-visible {
    color: #EE7B49;
}

.footer__fb:hover::after,
.footer__fb:focus-visible::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .footer__fb,
    .footer__fb::after {
        transition: none;
    }
}

.footer__copyright {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: calc(100 / 100);
    letter-spacing: calc(5 / 100 * 16 / 10 * 1rem);
    color: #1E2328;
    display: block;
    text-align: center;
}

@media screen and (max-width: 699.98px) {
    .footer {
        width: 37.5rem;
        padding: 4.7rem 0 2.4rem;
    }

    .footer__contact a {
        width: 33.5rem;
        padding: 2.4rem 2rem;
        background-size: 4.4rem 3.1rem;
        background-position: right 2rem center;
    }

    .footer__contact-title {
        font-size: 2.2rem;
        font-weight: 500;
        line-height: calc(100 / 100);
        letter-spacing: calc(10 / 100 * 22 / 10 * 1rem);
        background-position: 18rem center;
    }

    .footer__contact-text {
        font-size: 1.4rem;
        font-weight: 500;
        line-height: calc(175 / 100);
        letter-spacing: calc(5 / 100 * 14 / 10 * 1rem);
    }

    .footer__inner {
        flex-direction: column;
        width: 33.5rem;
        margin: 0 auto 2.8rem;
        padding-bottom: 11.2rem;
    }

    .footer__logo {
        width: 25.5rem;
        height: 8rem;
        margin-bottom: 2.8rem;
    }

    .fnav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }

    .dnav__item--title,
    .fnav__title{
        font-size: 1.4rem;
        line-height: calc(175 / 100);
        letter-spacing: calc(5 / 100 * 14 / 10 * 1rem);
        margin-bottom: 0.8rem;
    }

    .fnav__item {
        font-size: 1.3rem;
        line-height: calc(175 / 100);
        letter-spacing: calc(5 / 100 * 13 / 10 * 1rem);
        margin-bottom: 0.8rem;
    }

    .footer__fb {
        width: 5.6rem;
        height: 5.6rem;
        right: 2rem;
        bottom: 2rem;
        font-size: 1rem;
        letter-spacing: calc(5 / 100 * 10 / 10 * 1rem);
    }

    .footer__fb::before {
        border-right: 1.3rem solid transparent;
        border-left: 1.3rem solid transparent;
        border-bottom: 2rem solid currentColor;
    }

    .footer__copyright {
        font-size: 1rem;
        letter-spacing: calc(5 / 100 * 16 / 10 * 1rem);
    }

}
