footer {
    background-color: #ffffff;
    /* 白背景 */
    border-top: 3px solid #ddd;
    /* 上に薄いライン */
    padding: 2rem 0 0.5rem;
    color: #333;
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    margin-top: auto;
    width: 100%;
    flex-direction: column;
    text-align: center;
}

.organizer,
footer .inquiry {
    display: flex;
    align-items: center;
}

.organizer a {
    margin-right: 1rem;
    display: inline-block;
    margin: 0 0 1rem 0;
}

.organizer a img {
    width: 150px;
    display: block;
    margin: 0px 0.8rem;
}

footer .inquiry {
    flex-direction: column;
    justify-content: center;
    text-align: center;

}

footer .inquiry .inner>div {
    margin-bottom: 0.3rem;
}

footer>div {
    flex: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: column-reverse;
    /* ここで順番を逆にする */
    align-items: center;
}

.organizer {
    flex: 1 1 50%;

    justify-content: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.related-link img {
    margin-top: 1rem;
    width: 150px;
}

footer .inquiry {
    flex: 1 1 50%;
    justify-content: flex-end;
}

footer .inquiry .footer-faq {
    padding: 8px 20px;
    border: 1px solid #333;
    border-radius: 4px;
    margin: 1rem 0;
    display: inline-block;
}

footer .inquiry .inner .title {
    font-weight: 600;
    position: relative;
    display: inline-block;
    /* 横幅がテキスト幅に合わせる */
    padding: 0 5rem;
    /* 左右の線とテキストの間に余白を作る */
}

footer .title {

    font-size: 1.2rem;
}

footer .inquiry .inner .title::before,
footer .inquiry .inner .title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    /* 線の長さ */
    height: 1px;
    /* 線の太さ */
    background-color: #333;
    /* 線の色 */
    transform: translateY(-50%);
}

footer .inquiry .inner .title::before {
    left: -40px;
}

footer .inquiry .inner .title::after {
    right: -40px;
}

.footer-links {
    /* 薄いグレーなど */
    text-align: center;
    margin-bottom: 0.3rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item {
    border-bottom: 1px solid #ccc;
    padding: 0.75rem 0;

}

.footer-link-item:first-child {
    border-top: 1px solid #ccc;
}


.footer-link {
    text-decoration: none;
    color: #333;
}

.footer-link:hover {
    text-decoration: underline;
}


footer .copyright {
    flex-basis: 100%;
    text-align: center;
    font-size: 0.75rem;
}




/* PC以上（768px以上） */
@media (min-width: 768px) {
    footer {
        flex-wrap: nowrap;
        margin-top: auto;
        font-size: 1.1rem;
    }

    .banner-container {
        display: flex;
        flex-direction: row;
        margin: 0;
    }

    .related-link img {
        margin-top: 0;
        width: 150px;
    }

    footer .inquiry .inner .title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    footer .organizer {
        flex-wrap: nowrap;
        justify-content: flex-start;
        flex-direction: row;
        margin-bottom: 0;
    }

    .organizer a img {
        width: 200px;
    }


    footer .inquiry {
        flex-direction: column;
    }

    .related-link img {
        width: 200px;
    }

    .footer-links-list {
        display: flex;
        justify-content: center;
    }

    .footer-link-item {
        border-bottom: none;
        /* PCでは下線を消す */
        border-right: 1px solid #ccc;
        padding: 0 1rem;
    }

    .footer-link-item:last-child {
        border-right: none;
    }

    .footer-link-item:first-child {
        border-top: none;
    }

    .footer-link {
        font-size: 1rem;
    }


    footer .copyright {
        margin-top: 1rem;
        font-size: 1rem;
    }

    footer .inquiry .inner .title::before,
    footer .inquiry .inner .title::after {
        width: 250px;
    }

    footer .inquiry .inner .title::before {
        left: -220px;
    }

    footer .inquiry .inner .title::after {
        right: -220px;
    }

}