/* =============================================
   Site Footer (Refresh 2026)
   ============================================= */

.site-footer {
    background-color: #1f80c9 !important; /* 元のテーマカラーに戻す */
    color: #ffffff !important;
    padding: 60px 0 0 !important;
    margin-top: auto !important;
    font-family: var(--font-mincho), serif;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0;
    overflow: hidden;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 不要な旧デザインの継承を完全に遮断 */
.site-footer::before,
.site-footer::after {
    display: none !important;
    content: none !important;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center; /* 中央寄せ */
    gap: 120px; /* カラム間の間隔 */
    flex-wrap: wrap;
}

/* 2. Sitemap Area */
.footer-sitemap {
    flex: 0 1 auto;
    min-width: 200px;
}

.sitemap-cols {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap; /* カラムが増えた時に折り返す */
}

.sitemap-col-wrap {
    min-width: 180px;
    flex: 0 1 auto;
}

.sitemap-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.footer-sitemap h3, 
.footer-sns h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-align: center; /* タイトルを中央に */
}

.sitemap-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.sitemap-list li {
    margin-bottom: 15px;
}

.sitemap-item-parent > a {
    font-weight: 700;
    opacity: 0.9 !important;
}

.sitemap-child-list {
    list-style: none;
    margin: 8px 0 0 15px;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-child-list li {
    margin-bottom: 8px;
    padding-left: 12px;
    position: relative;
}

.sitemap-child-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.sitemap-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
}

.sitemap-list a:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* 3. SNS Icons */
.footer-sns {
    flex: 0 1 auto;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 内容を中央に */
}

.sns-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sns-icon {
    display: block;
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.sns-icon:hover {
    transform: scale(1.1) translateY(-2px);
}

.sns-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sns-icon:hover svg {
    opacity: 1;
    /* 派手な色は使わず、後ろが少しだけ光る上品な演出 */
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

/* 4. Footer Bottom (Band) */
.footer-bottom {
    margin-top: 60px;
    background-color: #1966a1; /* html背景色と一致させてオーバースクロールに対応 */
    padding: 20px 0 30px; /* 下部に余裕を持たせる */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }
    .footer-inner {
        flex-direction: column;
        align-items: center; /* モバイルでも中央寄せ */
        gap: 40px;
        padding: 0 20px;
    }
    .footer-sitemap {
        width: 100%;
        text-align: center;
    }
    .sitemap-cols {
        justify-content: center;
        display: flex;
        flex-direction: column; /* モバイルでは1列に */
        align-items: center;
        gap: 30px;
    }
    .sitemap-col-wrap {
        width: 100%;
        text-align: center;
    }
    .sitemap-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sitemap-child-list {
        margin: 10px 0 0 0 !important; /* インデントを消して中央寄せを活かす */
        border-left: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sitemap-child-list li {
        padding-left: 0 !important;
    }
    .sitemap-child-list li::before {
        display: none !important;
    }
    .footer-logo-text {
        font-size: 1.5rem;
    }
}
