.footer {
    background: #2d0015;
    color: #fff;
    padding: 30px 0 20px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column:nth-child(1) { text-align: left; }
.footer-column:nth-child(2) { text-align: center; }
.footer-column:nth-child(3) { text-align: right; }

.footer-column h3 {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 24px;
    height: 3px;
    background: #9be56a;
    border-radius: 2px;
}

.footer-column:nth-child(1) h3::after { left: 0; }
.footer-column:nth-child(2) h3::after { left: 50%; transform: translateX(-50%); }
.footer-column:nth-child(3) h3::after { right: 0; }

/* Contact column */
.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ddd;
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.5;
}

.footer-contact p i {
    color: #9be56a;
    margin-top: 2px;
    width: 16px;
    text-align: center;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, 100px);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 12px 24px;
    margin-top: 14px;
    justify-content: center;
    text-align: left;
}
.sitemap-grid a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.sitemap-grid a:hover {
    color: #9be56a;
}

/* SNS column - horizontal icons */
.footer-sns {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sns-icons {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 14px;
    align-items: center;
}

.sns-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.sns-icons a:hover {
    background: #9be56a;
    color: #2d0015;
    transform: translateY(-2px);
}

/* Bottom bar */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
}

.footer-links {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-links a:hover {
    color: #9be56a;
}

.footer-divider {
    color: rgba(255,255,255,.55);
    margin: 0 4px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
}

/* Responsive stack for tablet & mobile */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        text-align: center !important;
    }

    .footer-column:nth-child(1) h3::after,
    .footer-column:nth-child(2) h3::after,
    .footer-column:nth-child(3) h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, auto);
        justify-content: center;
    }

    .footer-sns {
        align-items: center;
    }

    .sns-icons {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact p {
        text-align: left;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}