/* ========================================
   フッター関連CSS
   3カラムレイアウト: ロゴ | メニュー | 会社情報
   下部: SNSアイコン | コピーライト
======================================== */

/* 親テーマの不要な要素を非表示 */
#footer_widget,
#footer_category_menu,
#widget_area_overlay,
#footer_video,
#footer_social_link {
    display: none;
}

/* フッター全体 */
#footer {
    width: 100%;
    background: #fff;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ========================================
   フッタートップ (3カラムエリア)
   高さ: 440px
======================================== */
#footer_top {
    padding: 0;
    width: 100%;
    height: 500px;
    background: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

/* 1080px幅のボーダー */
#footer_top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1080px;
    max-width: 100%;
    height: 1px;
    background: #000000;
}

/* 親テーマの幅1160pxを上書き - IDセレクタで上書き */
#footer_top_inner,
#footer_top_inner.footer-top-inner {
    width: 1080px;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: 30px 0 0 0;
    box-sizing: border-box;
}

/* ========================================
   カラム共通スタイル
   1080px ÷ 3 = 360px
======================================== */
.footer-column {
    width: 360px;
    height: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* ========================================
   1. 左カラム: ロゴ
======================================== */
.footer-column--logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer_logo {
    margin-bottom: 20px;
    text-align: center;
    position: static;
    height: auto;
    width: auto;
    display: block;
}

#footer_logo img {
    width: 340px;
    max-width: 100%;
    height: auto;
    max-height: none;
}

#footer_logo .desc {
    font-size: 14px;
    margin-top: 10px;
    color: #666;
}

/* ========================================
   2. 中央カラム: メニュー
======================================== */
.footer-column--menu {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 auto;
}

/* 親テーマの#footer_menuを完全上書き */
#footer_menu,
.footer_menu {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

#footer_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
}

#footer_menu ul li {
    margin-bottom: 9px;
    width: 100%;
    float: none;
}

#footer_menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    transition: color 0.3s ease;
    display: block;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ========================================
   3. 右カラム: 会社情報
======================================== */
.footer-column--info {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 500;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-left: 40px;
}

#footer_company_info {
    width: auto;
    text-align: left;
}

#footer_company_info p {
    margin: 0 0 8px 0;
}

.company-address {
    margin-bottom: 12px;
    font-size: 16px;
}

/* お問い合わせボタン */
.footer-contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 1px solid #000;
    padding: 10px 0;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #000;
}

.footer-contact-btn .contact-icon {
    width: 22px;
    height: auto;
    margin-right: 12px;
    /* アイコンを白くするフィルター（元が黒の場合に有効） */
    filter: brightness(0) invert(1);
}

.footer-contact-btn:hover {
    background: #9E2339;
    border-color: #9E2339;
    color: #fff !important;
}

.company-map-link {
    display: block;
    width: 100%;
    border: 1px solid #333;
    padding: 4px 12px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.company-map-link:hover {
    background: #9E2339;
    color: #fff !important;
}

/* ========================================
   フッターボトム (SNS & コピーライト)
   高さ: 60px
======================================== */
#footer_bottom {
    background: #9E2339;
    padding: 0;
    color: #fff;
    width: 100%;
    height: 60px;
    position: static;
    display: flex;
    align-items: center;
}

#footer #footer_bottom_inner {
    width: 1080px;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* SNSアイコン */
.footer-sns-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-sns-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

.footer-sns-item a:hover {
    opacity: 0.8;
}

.footer-sns-item a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* アイコンを白くする */
    filter: brightness(0) invert(1);
}

/* コピーライト */
#copyright {
    margin: 0;
    font-size: 12px;
    color: #fff;
    text-align: right;
    float: none;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

/* タブレット (1210px以下) */
@media (max-width: 1210px) {

    #footer_top_inner,
    #footer_top_inner.footer-top-inner {
        width: 100%;
        padding: 30px 20px 0 20px;
    }

    #footer_bottom {
        padding: 0 !important;

    }

    #footer_bottom_inner {
        width: 100%;
    }
}

/* モバイル (650px以下) */
@media (max-width: 650px) {
    #footer_top {
        height: auto;
        padding-bottom: 0px;
    }

    #footer_top_inner,
    #footer_top_inner.footer-top-inner {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px 25px 20px;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 40px;
        padding: 0;
        text-align: left;
        /* 左揃え */
        height: auto;
    }

    /* ボーダーの幅調整: 左右に20pxの余白 */
    #footer_top::before {
        width: calc(100% - 40px);
    }

    /* 並び順: メニュー(1) -> 会社情報(2) -> ロゴ(3) */
    .footer-column--menu {
        order: 1;
        border: none;
        padding: 0;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 中央配置 */
    }

    .footer-column--info {
        order: 2;
        padding-left: 0;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 中央配置 */
    }

    .footer-column--logo {
        order: 3;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }

    #footer_logo img {
        width: 280px;
        /* スマホ用に少し小さく */
        height: auto;
    }

    /* メニューのスタイル調整 */
    #footer_menu {
        width: 100% !important;
        max-width: 300px !important;
    }

    #footer_menu ul {
        text-align: left;
    }

    #footer_menu ul li {
        text-align: left;
    }

    /* 会社情報のスタイル調整 */
    #footer_company_info {
        width: 100%;
        max-width: 300px;
        text-align: left;
    }

    /* フッターボトム */
    #footer #footer_bottom_inner {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        height: auto;
    }

    #copyright {
        justify-content: center;
        /* スマホでは中央揃え */
        text-align: center;
    }
}

#copyright {
    text-align: center;
}