/* ==========================================================================
   BLOG-BANNERS.CSS - Monerionブログ誘導バナースタイル
   ========================================================================== */

/* ===== サイドバー固定バナー（デスクトップ用） ===== */
.monerion-side-banners {
    display: none;
}

/* 画面幅1400px以上で表示 */
@media screen and (min-width: 1400px) {
    .monerion-side-banners {
        display: block;
    }

    .side-banner {
        position: fixed;
        top: 300px;
        width: 160px;
        height: 600px;
        background: #ffffff;
        border-radius: 0;
        padding: 20px 15px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
        z-index: 100;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #000000;
        text-align: center;
        will-change: transform;
        border: 2px solid #000000;
    }

    .side-banner:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
    }

    .side-banner-left {
        left: 20px;
    }

    .side-banner-right {
        right: 20px;
    }

    .side-banner-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        background: white;
        border-radius: 12px;
        padding: 10px;
    }

    .side-banner-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .side-banner-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .side-banner-features {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
        font-size: 0.85rem;
        flex-grow: 1;
    }

    .side-banner-features li {
        margin-bottom: 12px;
        padding-left: 20px;
        position: relative;
        text-align: left;
    }

    .side-banner-features li::before {
        content: "✓";
        position: absolute;
        left: 0;
        font-weight: bold;
    }

    .side-banner-cta {
        background: #000000;
        color: #ffffff;
        padding: 10px 20px;
        border-radius: 0;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: block;
        width: 100%;
        border: 2px solid #000000;
    }

    .side-banner-cta:hover {
        background: #333333;
        color: #ffffff;
        transform: scale(1.05);
        border: 2px solid #333333;
    }

    .side-banner-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: background 0.2s ease;
    }

    .side-banner-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* ===== アイドル時フルスクリーンバナー ===== */
.idle-banner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.idle-banner-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.idle-banner-content {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.idle-banner-overlay.show .idle-banner-content {
    transform: scale(1);
}

.idle-banner-visual {
    width: 200px;
    height: 150px;
    margin: 0 auto 30px;
    background: #f8f8f8;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 2px solid #000000;
}

.idle-banner-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
    line-height: 1.2;
}

.idle-banner-subtitle {
    font-size: 1.2rem;
    color: #6B7280;
    margin-bottom: 32px;
}

.idle-banner-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.idle-banner-cta-primary {
    background: #000000;
    color: white;
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
    border: 2px solid #000000;
}

.idle-banner-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.3);
    background: #333333;
}

.idle-banner-cta-secondary {
    background: transparent;
    color: #6B7280;
    padding: 16px 32px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.idle-banner-cta-secondary:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.idle-banner-close-x {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6B7280;
    transition: all 0.2s ease;
}

.idle-banner-close-x:hover {
    background: #E5E7EB;
    color: #374151;
}

/* ===== モバイル用スクロール追従バナー ===== */
@media screen and (max-width: 768px) {
    .mobile-sticky-banner {
        position: fixed;
        bottom: -100px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 12px 16px;
        z-index: 1000;
        transition: bottom 0.3s ease;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        display: none;
        border-top: 2px solid #000000;
    }

    .mobile-sticky-banner.show {
        display: block;
        bottom: 0;
    }

    .mobile-banner-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
    }

    .mobile-banner-text {
        flex: 1;
        color: #000000;
    }

    .mobile-banner-title {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .mobile-banner-subtitle {
        font-size: 0.75rem;
        opacity: 0.9;
    }

    .mobile-banner-cta {
        background: #000000;
        color: #ffffff;
        padding: 8px 16px;
        border-radius: 0;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.85rem;
        white-space: nowrap;
        transition: all 0.2s ease;
        margin-left: 12px;
        border: 2px solid #000000;
    }

    .mobile-banner-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        color: white;
        margin-left: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }
}

/* ===== アニメーション ===== */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.side-banner-left {
    animation: slideInLeft 0.5s ease-out;
}

.side-banner-right {
    animation: slideInRight 0.5s ease-out;
}

.mobile-sticky-banner.show {
    animation: slideUp 0.3s ease-out;
}

/* ===== ユーティリティクラス ===== */
.banner-hidden {
    display: none !important;
}