/* footer 
**************/


footer>.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer__logo {
    text-align: center;
}

.footer__logo a {
    display: block;
}

.footer__info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__map {
    width: 100%;
    max-width: 1080px;
}

.footer__map iframe {
    width: 100%;
    height: 200px;
}

.footer__bottom {
    width: 100%;
}

.footer__bottom,
.footer__links {
    display: flex;
}

@media (max-width: 767px) {
    footer {
        padding: calc(75/var(--base-font-size-row-value) * 1rem) 0;
        font-size: calc(12/var(--base-font-size-row-value) * 1rem);
    }

    footer>.container {
        gap: calc(40/var(--base-font-size-row-value) * 1rem);
    }

    .footer__store {
        margin-bottom: calc(12/var(--base-font-size-row-value) * 1rem);
    }

    .footer__logo a svg {
        display: block;
        margin: 0 auto;
        max-width: calc(200/var(--base-font-size-row-value) * 1rem);

    }

    .footer__logo {
        margin-bottom: calc(40/var(--base-font-size-row-value) * 1rem);
    }

    .footer__map {
        margin-top: calc(20 / var(--base-font-size-row-value) * 1rem);
    }

    #footer__nav {
        width: 100%;
    }

    #footer__nav ul li {
        border-top: solid 1px var(--primary-color);

    }

    #footer__nav ul li:last-child {
        border-bottom: solid 1px var(--primary-color);
    }

    #footer__nav ul li a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: calc(15/var(--base-font-size-row-value) * 1rem) 0;
        padding-left: 5%;
        gap: calc(15/var(--base-font-size-row-value) * 1rem);
    }

    #footer__nav ul li a .en {
        font-size: calc(18/var(--base-font-size-row-value) * 1rem);
        color: var(--primary-color);

    }

    #footer__nav ul li a .jp {
        font-size: calc(10/var(--base-font-size-row-value) * 1rem);
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: calc(40/var(--base-font-size-row-value) * 1rem);
    }

    .footer__links {
        flex-direction: column;
        align-items: center;
        gap: calc(15/var(--base-font-size-row-value) * 1rem);
    }
}

@media (min-width: 768px) {
    footer {
        padding-top: calc(85/var(--base-font-size-row-value) * 1rem);
        padding-bottom: calc(62/var(--base-font-size-row-value) * 1rem);
    }

    .footer__store {
        font-size: calc(18/var(--base-font-size-row-value) * 1rem);
        margin-bottom: calc(15/var(--base-font-size-row-value) * 1rem);
    }

    .footer__info {
        font-size: calc(18/var(--base-font-size-row-value) * 1rem);
    }

    .footer__logo {
        margin-bottom: calc(52/var(--base-font-size-row-value) * 1rem);
    }

    .footer__logo a svg {
        display: block;
        margin: 0 auto;
        max-width: calc(324/var(--base-font-size-row-value) * 1rem);

    }

    .footer__map {
        margin-top: calc(40 / var(--base-font-size-row-value) * 1rem);
    }


    #footer__nav,
    .footer__bottom {
        font-size: calc(15/var(--base-font-size-row-value) * 1rem);
    }

    #footer__nav {
        width: 100%;
        margin-top: calc(80/var(--base-font-size-row-value) * 1rem);
        padding-bottom: calc(72/var(--base-font-size-row-value) * 1rem);
        border-bottom: 1px solid var(--primary-color);
    }

    #footer__nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 95%;
        margin: 0 auto;
        row-gap: 10px;
    }

    #footer__nav ul li,
    .footer__bottom ul li {
        padding: 0 calc(30/var(--base-font-size-row-value) * 1rem);
    }

    #footer__nav ul li:first-child,
    .footer__bottom ul li:first-child {
        padding-left: 0;
    }

    #footer__nav ul li:last-child,
    .footer__bottom ul li:last-child {
        padding-right: 0;
    }

    #footer__nav ul li+li,
    .footer__bottom ul li+li {
        border-left: solid 1px #707070;
    }

    #footer__nav ul li a .en {
        display: none;
    }

    .footer__bottom {
        justify-content: space-between;
        width: 90%;
        margin-top: calc(63/var(--base-font-size-row-value) * 1rem);
        max-width: 1380px;
    }

    #footer__nav a,
    .footer__links a {
        position: relative;
    }

    #footer__nav a::after,
    .footer__links a::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        height: 1px;
        width: 100%;
        background-color: var(--foreground-color);
        transform: scale(0, 1);
        transform-origin: right top;
        transition: transform .3s;
    }

    #footer__nav a:hover::after,
    .footer__links a:hover::after {
        transform-origin: left top;
        transform: scale(1, 1);
    }

}

/* footer-btn(SP)
**************/
#footer_btn {
    position: fixed;
    bottom: 0;
    overflow: hidden;
    width: 100%;
    height: calc(60/var(--base-font-size-row-value) * 1rem);
    z-index: 8;
    font-size: calc(14 / var(--base-font-size-row-value) * 1rem);
}

#footer_btn ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
}

#footer_btn ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(6.5 / var(--base-font-size-row-value) * 1rem);
    flex-direction: column;
    width: 14vw;
    font-size: calc(10 / var(--base-font-size-row-value) * 1rem);
    letter-spacing: 0;
    padding-top:  calc(5 / var(--base-font-size-row-value) * 1rem);
}

#footer_btn ul li img {
    height: calc(20/var(--base-font-size-row-value) * 1rem);
}

@media (min-width: 768px) {
    #footer_btn {
        display: none;
    }
}