/* フローティングバナー広告のスタイル */
.floating-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(0);
    opacity: 1;
    margin-bottom: 0px !important;
}

.floating-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.banner-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.banner-link:hover {
    opacity: 0.9;
}

.banner-image {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    display: block;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #C45050;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.close-button:hover {
    background: #cc0000;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .banner-content {
		max-width: 550px;
        padding: 5px 15px;
    }

    .banner-image {
        max-height: 80px;
    }

    .close-button {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: -14px;
        right: 2px;
    }
}

/* WordPressの管理バーがある場合の調整 */
.admin-bar .floating-banner {
    bottom: 0;
}

/* ショートコード用スタイル */
.floating-banner-shortcode {
    border-radius: 5px;
    overflow: hidden;
}

.floating-banner-shortcode img {
    transition: opacity 0.2s ease;
}

.floating-banner-shortcode a:hover img {
    opacity: 0.8;
}