/* footer.css */

.footer {
    background: #e8ecef;
    padding: 64px 0 32px;
}

.footer__inner {
    width: 85%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 24px;
}


/* ナビゲーション */

.footer__nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__nav-group {
    flex: 0 1 auto;
    min-width: 120px;
}

.footer__nav-title {
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: bold;
    color: #222;
    margin-bottom: clamp(16px, 1.25vw, 32px);
}

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

.footer__nav-list li {
    margin-bottom: 12px;
}

.footer__nav-list a {
    color: #666;
    text-decoration: none;
    font-size: clamp(15px, 1.17vw, 28px);
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
}

.footer__nav-list a:hover {
    color: #1ab3a3;
}


/* 見積もりボタン */

.footer__estimate {
    text-align: center;
    margin-bottom: 48px;
}

.footer__estimate-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0A324C;
    color: #fff;
    text-decoration: none;
    width: clamp(150px, 11.7vw, 300px);
    height: clamp(150px, 11.7vw, 300px);
    border-radius: 50%;
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: bold;
    transition: transform 0.3s;
    margin: 0 0 0 auto;
    text-align: center;
    padding: 0;
    line-height: 1.4;
}

.footer__estimate-btn:hover {
    transform: translateY(-2px);
}

.footer__estimate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.footer__estimate-icon svg {
    width: 45px;
    height: 45px;
    color: #fff;
}


/* 下部情報 */

.footer__bottom {
    border-top: 1px solid #0A324C;
    padding-top: 32px;
    /* display: flex; */
    justify-content: space-between;
    align-items: flex-start;
}

.footer__info {
    flex: 1;
    display: flex;
}

.footer__logo {
    flex: 1;
    margin-bottom: 24px;
    height: auto;
    /* ロゴ用のスタイルは後で追加 */
}

.footer__logo img {
    height: clamp(100px, 7.8vw, 200px);
}

.footer__address {
    flex: 1;
    color: #666;
    font-size: clamp(15px, 1.17vw, 28px);
    line-height: 1.6;
}

.footer__address p {
    font-size: clamp(15px, 1.17vw, 28px);
    color: #1a2a3a;
    font-weight: 600;
    margin: 0 0 clamp(4px, 0.31vw, 8px);
    display: flex;
    align-items: anchor-center;
}

.footer__links {
    text-align: right;
    margin-bottom: clamp(10px, 0.78vw, 18px);
}

.footer__privacy {
    color: #666;
    text-decoration: none;
    font-size: clamp(15px, 1.17vw, 28px);
    font-weight: 600;
    transition: color 0.3s;
}

.footer__privacy:hover {
    color: #1ab3a3;
}


/* レスポンシブ対応 */

@media (max-width: 1024px) {
    .footer__nav-container {
        gap: 32px 24px;
        justify-content: flex-start;
    }
    .footer__nav-group {
        flex: 0 0 calc(25% - 24px);
    }
}

@media (max-width: 960px) {
    .footer {
        padding: 40px 16px 80px;
    }
    .footer__content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .footer__logo {
        margin-bottom: 16px;
    }
    .footer__logo img {
        height: 40px;
    }
    .footer__info {
        margin-bottom: 16px;
    }
    .footer__info p {
        font-size: 0.9rem;
    }
    .footer__nav {
        justify-content: center;
    }
    .footer__nav a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .footer__nav-container {
        display: none;
    }
    .footer__info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .footer__address p {
        font-size: clamp(10px, 0.78vw, 18px);
        text-align: left;
        color: #1a2a3a;
        font-weight: 600;
        margin: 0 0 clamp(4px, 0.31vw, 8px);
    }
    .footer__estimate {
        text-align: center;
        margin-bottom: 48px;
        display: none;
    }
    .footer__logo img {
        height: 150px;
    }
    .footer__logo {
        margin-bottom: 10px;
        text-align: center;
    }
}