/* Footer Styles */
footer {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 60px 40px 40px;
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
}

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

.footer-column ul li {
    margin-bottom: 16px;
}

.footer-column ul li a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.footer-divider {
    border: none;
    border-top: 1px solid #4a4a4a;
    margin: 40px 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.social-icon {
    color: #b8b8b8;
    font-size: 24px;
    transition: color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #ffffff;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-brand {
    text-align: center;
    margin-bottom: 30px;
}

/* ▼ 変更: ロゴ画像用の設定（トリミングと拡大） */
.footer-logo-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    
    /* ヘッダーと同じように枠を定義して余白をカット */
    width: 150px; 
    height: 55px; 
    overflow: hidden;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 100%;
    width: auto;
    display: block;
    /* ヘッダー同様に拡大 */
    transform: scale(2.5);
    transform-origin: center;
}

.footer-copyright {
    color: #b8b8b8;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal-divider {
    color: #4a4a4a;
}

.footer-mobile-section {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    footer {
        padding: 0;
    }

    .footer-columns {
        display: none;
    }

    .footer-mobile-section {
        display: block;
    }

    .mobile-accordion-item {
        border-bottom: 1px solid #4a4a4a;
    }

    .mobile-accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 20px;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
    }

    .mobile-accordion-header:hover {
        background-color: #3a3a3a;
    }

    .mobile-accordion-icon {
        font-size: 24px;
        transition: transform 0.3s ease;
        color: #ffffff;
    }

    .mobile-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-accordion-content.active {
        max-height: 500px;
    }

    .mobile-accordion-content ul {
        list-style: none;
        padding: 0 20px 24px 20px;
        margin: 0;
    }

    .mobile-accordion-content ul li {
        margin-bottom: 16px;
    }

    .mobile-accordion-content ul li a {
        color: #b8b8b8;
        text-decoration: none;
        font-size: 16px;
    }

    .footer-divider {
        display: none;
    }

    .footer-social {
        gap: 24px;
        padding: 40px 20px;
    }

    .social-icon svg {
        width: 28px;
        height: 28px;
    }

    .footer-brand {
        padding: 0 20px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px 40px;
    }

    .footer-legal-divider {
        display: none;
    }

    .footer-legal a {
        text-align: center;
    }
}