﻿/* ==========================================================================
   Footer Base Container
   ========================================================================== */
#Footer_Contents {
    width: 100%;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
    padding: 0;
    box-sizing: border-box;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    clear: both;
}

#Footer_Up_Conainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
    display: block;
    box-sizing: border-box;
}

#Footer_Logo {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
    margin-right: 14px;
    margin-bottom: 16px;
}

    #Footer_Logo img {
        height: 24px;
        width: auto;
        display: block;
    }

#Footer_Up_Text {
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
    color: #64748b;
    border-left: 2px solid #e60055;
    padding-left: 12px;
    line-height: 1.4;
    margin-bottom: 16px;
    font-weight: bold;
}

/* センターナビゲーション (余計な上部点線を撤廃) */
#Footer_Center_Container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 20px 30px;
    border-top: none !important; /* ★余計な点線を消去 */
    box-sizing: border-box;
}

#Footer_Menu_Left ul,
#Footer_Menu_Center ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.Footer_Menu_Text a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

    .Footer_Menu_Text a::before {
        content: ">";
        color: #cbd5e1;
        font-size: 10px;
        margin-right: 6px;
        font-family: sans-serif;
        transition: color 0.15s ease;
    }

    .Footer_Menu_Text a:hover {
        color: #e60055;
        transform: translateX(2px);
    }

        .Footer_Menu_Text a:hover::before {
            color: #e60055;
        }

#Footer_Other_Menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#Footer_Member_Other_Link {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.AdminLinkContainer a {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .AdminLinkContainer a::before {
        content: "-";
        color: #94a3b8;
        margin-right: 6px;
    }

    .AdminLinkContainer a:hover {
        color: #e60055;
        text-decoration: underline;
    }

#Footer_Member_Login_Btn a,
#Footer_Member_Join_Btn a,
#Footer_Tenpo_Login_Btn a,
#Footer_Cast_Login_Btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: bold;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 6px;
    margin-bottom: 6px;
}

    #Footer_Member_Login_Btn a:hover,
    #Footer_Member_Join_Btn a:hover,
    #Footer_Tenpo_Login_Btn a:hover,
    #Footer_Cast_Login_Btn a:hover {
        border-color: #e60055;
        color: #e60055;
        background: #fff5f8;
    }

#Footer_Copyright {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 16px 15px 140px 0;
    font-size: 11px;
    line-height: 1.6;
    box-sizing: border-box;
    clear: both;
}

#Footer_Copyright_Text {
    max-width: 1200px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* フッター レスポンシブ (タブレット 600px - 899px) */
@media screen and (max-width: 899px) and (min-width: 600px) {
    #Footer_Up_Conainer {
        padding: 20px 15px 0;
    }

    #Footer_Center_Container {
        grid-template-columns: 1fr 1fr 1.2fr;
        gap: 15px 20px;
        padding: 16px 15px 20px;
    }

    .Footer_Menu_Text a {
        font-size: 12px;
    }
}

/* フッター レスポンシブ (スマホ 600px未満) */
@media screen and (max-width: 599px) {
    #Footer_Contents {
        margin-top: 25px;
    }

    #Footer_Up_Conainer {
        padding: 16px 15px 0;
    }

    #Footer_Logo {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

        #Footer_Logo img {
            height: 20px;
        }

    #Footer_Up_Text {
        display: block;
        border-left: none;
        border-top: 2px solid #e60055;
        padding-left: 0;
        padding-top: 6px;
        margin-bottom: 14px;
        font-size: 11px;
    }

    #Footer_Center_Container {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
        padding: 10px 15px 18px;
        border-top: none !important;
    }

    #Footer_Other_Menu {
        grid-column: 1 / -1;
        border-top: none !important; /* ★SP時の余計な点線も消去 */
        padding-top: 6px;
    }

    #Footer_Member_Other_Link {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
    }

    .Footer_Menu_Text a {
        font-size: 12px;
    }
}
/* ==========================================================================
   SEOガイド文章 スタイル
   ========================================================================== */
.FooterMsgContainer {
    font-size: 12px;
    font-weight: bold;
    padding-top: 10px;
}

.guide-content {
    max-width: 1200px;
    margin: 24px auto;
    padding: 24px 28px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    color: #333333;
    line-height: 1.75;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.guide-block {
    margin-bottom: 22px;
}

    .guide-block:last-child {
        margin-bottom: 0;
    }

    .guide-block p {
        margin: 0 0 10px 0;
        font-size: 13px;
        color: #4f4f4f;
        font-weight: 400;
        text-align: justify;
    }

.guide-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #e60055 0%, #ff2a70 100%);
    padding: 10px 14px;
    margin: 0 0 14px 0;
    border-radius: 6px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.guide-sub-title {
    font-size: 14px;
    font-weight: 700;
    color: #e60055 !important;
    background: transparent !important;
    margin: 0 0 10px 0;
    padding: 0 0 0 8px;
    border: none !important;
    border-left: 3px solid #e60055 !important;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

    .guide-sub-title::after,
    .guide-sub-title::before {
        display: none !important;
    }

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

    .guide-list li {
        background-color: #fafbfc;
        border: 1px solid #edf0f2;
        border-left: 3px solid #e60055;
        border-radius: 4px;
        padding: 8px 12px;
        margin-bottom: 6px;
        font-size: 12.5px;
        color: #333333;
        line-height: 1.6;
    }

        .guide-list li:last-child {
            margin-bottom: 0;
        }

.guide-order-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

    .guide-order-list li {
        background-color: #ffffff;
        border: 1px solid #ffe3ec;
        border-radius: 4px;
        padding: 9px 12px;
        margin-bottom: 6px;
        font-size: 12.5px;
        font-weight: 600;
        color: #222222;
        line-height: 1.6;
    }

        .guide-order-list li:last-child {
            margin-bottom: 0;
        }

.guide-closing {
    margin: 18px 0 0 0 !important;
    padding: 12px 16px !important;
    background-color: #ffffff;
    border: 1px solid #e60055 !important;
    border-radius: 6px;
    color: #e60055 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 1.55;
}

@media screen and (max-width: 768px) {
    .guide-content {
        padding: 16px 12px;
        margin: 12px auto;
    }

    .guide-title {
        font-size: 14px;
        padding: 9px 12px;
    }

    .guide-sub-title {
        font-size: 13px;
        padding-left: 7px;
    }

    .guide-block p,
    .guide-list li,
    .guide-order-list li {
        font-size: 12px;
    }

    .guide-closing {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
}

/* ==========================================================================
   フッターポップアップバナー (追従バー・戻るボタン完全共存版)
   ========================================================================== */
/* ==========================================================================
   フッターポップアップバナー (比率維持・高さmax80px・右上内部×ボタン)
   ========================================================================== */

/* PC表示 (900px以上): 非表示 */
@media screen and (min-width: 900px) {
    .footer_bnr_pop_wrap,
    #FooterPopBnrWrap {
        display: none !important;
    }
}

/* スマホ表示 (899px以下) */
@media screen and (max-width: 899px) {

    /* 固定枠: 画面最下部に固定し、横幅が足りない時だけ上品な半透明ダーク余白を入れる */
    .footer_bnr_pop_wrap,
    #FooterPopBnrWrap {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9990 !important;
        background: rgba(15, 23, 42, 0.95) !important; /* 横幅が足りない時の左右余白用 */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25) !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        line-height: 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

        .footer_bnr_pop_wrap.is-active,
        #FooterPopBnrWrap.is-active {
            transform: translateY(0) !important;
        }

    /* バナー中身のコンテナ: 高さを80px固定・相対配置で×ボタンの基準にする */
    .footer_bnr_pop_box {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 80px !important; /* ★基準高さ80px */
        max-height: 80px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

        .footer_bnr_pop_box a {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 100% !important;
            height: 100% !important;
            line-height: 0 !important;
        }

        /* ★バナー画像: 比率は絶対に狂わせず、高さ80pxに合わせて全体表示 */
        .footer_bnr_pop_box img {
            width: 100% !important;
            max-width: 100% !important;
            height: 80px !important; /* ★高さ最大80px */
            max-height: 80px !important;
            object-fit: contain !important; /* ★比率を維持！歪ませず四隅まで完全表示 */
            display: block !important;
            margin: 0 auto !important;
            padding: 0 !important;
            border: none !important;
        }

    /* ★×（閉じる）ボタン: バナー画像の「右上内部」にピタリと重ねる */
    button.footer_bnr_close_btn,
    .footer_bnr_close_btn,
    #FooterPopBnrCloseBtn {
        position: absolute !important;
        top: 6px !important; /* ★画像の右上内部に配置 */
        right: 8px !important; /* ★画像の右上内部に配置 */
        left: auto !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        background: rgba(15, 23, 42, 0.75) !important; /* 半透明ダーク丸 */
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: bold !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
        z-index: 20 !important;
        outline: none !important;
        padding: 0 0 2px 0 !important;
        box-sizing: border-box !important;
        transition: background 0.15s ease !important;
    }

        button.footer_bnr_close_btn:active,
        .footer_bnr_close_btn:active {
            background: #e11d48 !important;
        }

    /* 戻るボタンの持ち上げ */
    body:has(.footer_bnr_pop_wrap.is-active) #backtotop {
        bottom: 92px !important;
        transition: bottom 0.25s ease !important;
    }

    /* キープ・検索バーの持ち上げ */
    body:has(.footer_bnr_pop_wrap.is-active) [class*="Keep"],
    body:has(.footer_bnr_pop_wrap.is-active) [class*="SearchFixed"],
    body:has(.footer_bnr_pop_wrap.is-active) [class*="BottomNav"],
    body:has(.footer_bnr_pop_wrap.is-active) .FixedBottomBar {
        bottom: 86px !important;
        transition: bottom 0.25s ease !important;
    }
}





/* ==================================================
   フッターポップアップ広告 70px化
   スマホ・タブレットのみ
   ================================================== */
@media screen and (max-width: 899px) {

    /* 広告表示枠 */
    .footer_bnr_pop_box {
        height: 70px !important;
        max-height: 70px !important;
    }

        /* 広告画像：縦横比を維持 */
        .footer_bnr_pop_box img {
            height: 70px !important;
            max-height: 70px !important;
            object-fit: contain !important;
        }

    /* ページトップボタン */
    body:has(.footer_bnr_pop_wrap.is-active) #backtotop {
        bottom: 82px !important;
    }

    /* 下部固定バー */
    body:has(.footer_bnr_pop_wrap.is-active) [class*="Keep"],
    body:has(.footer_bnr_pop_wrap.is-active) [class*="SearchFixed"],
    body:has(.footer_bnr_pop_wrap.is-active) [class*="BottomNav"],
    body:has(.footer_bnr_pop_wrap.is-active) .FixedBottomBar {
        bottom: 76px !important;
    }
}
