.floating-banner {
    position: fixed;
    bottom: 78px;
    right: 0;
    z-index: 9999;
    width: 100%; /* SPのデフォルトサイズ */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 非表示状態 */
.floating-banner.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floating-banner__link {
    display: block;
    text-decoration: none;
}

.floating-banner__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* バツボタンのスタイル */
.floating-banner__close {
    position: absolute;
    top: -15px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* PC用設定: 768px以上かつ印刷時 */
@media print, screen and (min-width: 768px) {
    .floating-banner {
        width: 300px; /* PCのサイズ */
        bottom: 30px;
        right: 30px;
    }
    .floating-banner {
        position: fixed;
        bottom: 0px;
        right: 100px;
        z-index: 9999;
        width: 250px; /* SPのデフォルトサイズ */
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .floating-banner__close {
        position: absolute;
        top: -12px;
        right: -12px;
        width: 30px;
        height: 30px;
        background: #000;
        color: #fff;
        border: 2px solid #fff;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }
}
