/* フッター */
footer {
    background-color: #18448f;
    padding-top: 2em;
}

footer>div:first-child {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1em;
}

footer>div:first-child ul {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

footer>div:first-child ul li img {
    width: 160px;
    height: 40px;
    margin-bottom: 0.5em;
    object-fit: cover;
    vertical-align: baseline;
}

footer>div:nth-child(2) {
    width: 100%;
    color: white;
    margin-top: 2em;
    padding: 0.5em 0 0.5em;
}

footer>div:nth-child(2)>* {
    text-align: center;
    margin-bottom: 0.5em;
}

footer>div:nth-child(2)>:last-child {
    font-size: 0.8em;
}

footer>div:nth-child(2) a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    margin: 0 1em;
}

@media screen and (min-width: 380px) {
    footer>div:first-child ul {
        width: calc(320px + .5em);
        justify-content: start;
    }
}

@media screen and (min-width: 576px) {
    footer>div:first-child ul {
        width: calc(400px + .5em);
    }

    footer>div:first-child ul li img {
        width: 200px;
        height: 50px;
        margin-bottom: 0;
    }
}

@media screen and (min-width: 768px) {
    footer>div:first-child ul {
        width: calc(600px + 1em);
    }

    footer>div:nth-child(2) {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    footer>div:nth-child(2) a {
        font-weight: normal;
        margin: 0 0.5em;
    }

    footer>div:nth-child(2) a:hover {
        text-decoration: underline;
    }
}

@media screen and (min-width: 992px) {
    footer>div:first-child ul {
        width: calc(800px + 2em);
    }
}

@media screen and (min-width: 1200px) {
    footer>div:first-child ul {
        width: calc(1000px + 2em);
    }
}
