/**
 * Mobile Sticky Banner Styles
 */

/* 1024px以下（iPad以下）でのみ表示 */
@media screen and (max-width: 1024px) {
    .mobile-sticky-banner-area {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999999;
        pointer-events: auto;
        animation: slideUp 0.3s ease-out;
    }

    /* 閉じるボタン */
    .mobile-sticky-banner-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        background-color: rgba(0, 0, 0, 0.6);
        border: none;
        border-radius: 50%;
        color: #ffffff;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000000;
        transition: background-color 0.3s ease;
        line-height: 1;
        padding: 0;
        pointer-events: auto;
    }

    .mobile-sticky-banner-close:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .mobile-sticky-banner {
        display: block;
        width: 100%;
        line-height: 0;
        pointer-events: auto;
    }

    .mobile-sticky-banner img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
        pointer-events: auto;
    }

    a.mobile-sticky-banner {
        display: block;
        width: 100%;
        line-height: 0;
        cursor: pointer;
        pointer-events: auto;
    }

    /* バナーが表示されている時のbodyの下部余白 */
    body.has-mobile-sticky-banner {
        /* JavaScriptで動的に設定 */
    }

    /* スライドアップアニメーション */
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}

/* 1025px以上では非表示 */
@media screen and (min-width: 1025px) {
    .mobile-sticky-banner-area {
        display: none;
    }
}
