@charset "UTF-8";

/* ポップアップ設定 */
.fixed-mmd-popup {
    position: fixed;
    bottom: 150px;
    right: 15px;
    z-index: 9999;
    padding: 10px;
    box-sizing: border-box;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.fixed-mmd-popup.visible {
    opacity: 0;
    visibility: hidden;
}

.fixed-mmd-popup img {
    height: auto;
    display: block;
    max-width: 400px;
}

.fixed-mmd-popup a:hover {
    opacity: 0.6;
    /* scale: 1.05; */
}

/* ✕ボタン */
.close-btn {
    position: absolute;
    top: -30px;
    right: -5px;
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dedede;
    cursor: pointer;
    z-index: 9999;
}

.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 21px;
    background: #929292;
    transform-origin: center;
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/*メディアクエリ */
@media (max-width: 768px) {
    .fixed-mmd-popup {
        bottom: 130px;
        right: 5px;
        padding: 8px;
    }

    .fixed-mmd-popup img {
        max-width: 350px;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        top: -13px;
        right: 4px;
    }

    .close-btn::before,
    .close-btn::after {
        height: 16px;
        width: 2px;
    }
}

@media only screen and (max-width: 767px) {
    .fixed-mmd-popup img {
        max-width: 170px;
    }

    .close-btn {
        top: -15px;
    }
}