footer {
    background-color: #f0f0f0;
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

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

.footer-links li a {
    padding: 0.25rem;
    display: block;
    border-left: none;
    font-weight: 500;
}

.footer-links li:nth-child(odd),
.footer-links li:nth-child(even) {
    border-left: none;
    /* 縦線はPCでのみ */
}

.copyright p {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
}

/* ===== PC以上（横並び + 縦線） ===== */
@media (min-width: 768px) {
    .footer-links {
        display: flex;
        justify-content: center;
        gap: 0;
    }

    .footer-links li {
        margin: 0 1rem;
        position: relative;
        padding: 0 1rem;
    }

    .footer-links li+li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background-color: #ccc;
    }
}