/*----------------------
 Floating CT Banner (Test Only)
 追従バナー - CT装置LP用
----------------------*/

.floating-ct-banner {
    position: fixed;
    right: 20px;
    bottom: 80px; /* page-topボタン(60px)の上に配置 */
    z-index: 90; /* page-top(z-index:99)より下に */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-ct-banner.is-show {
    opacity: 1;
    visibility: visible;
}

.floating-ct-banner a {
    display: block;
    width: 250px;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-ct-banner a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-ct-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* 閉じるボタン */
.floating-ct-banner-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
}

.floating-ct-banner-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.floating-ct-banner-close::before,
.floating-ct-banner-close::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    background: #fff;
}

.floating-ct-banner-close::before {
    transform: rotate(45deg);
}

.floating-ct-banner-close::after {
    transform: rotate(-45deg);
}

/* スマートフォン対応 */
@media screen and (max-width: 768px) {
    .floating-ct-banner {
        right: 10px;
        bottom: 70px; /* SPのpage-top(5.5rem)の上に配置 */
    }

    .floating-ct-banner a {
        width: 200px;
    }
}
