/*
Theme Name: Grex Custom Theme
Author: Grex Energy
Version: 1.0
*/
footer {
    background-color: #062a1d;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 2rem 2.5rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 2段構造の境界線 */
}

.footer-logo {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand .company-name {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-brand .address {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--secondary, #00D3A2); }

/* 下段セグメント（規約類＋コピーライト） */
.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.copyright p {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* スマホ表示（レスポンシブ） */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}