@charset "utf-8";

.unlink-tag {
    position: absolute;
    top: 82%;
    right: 40px;
    z-index: 8;
    display: flex;
    align-items: center;
    /* 縦中央揃え */
    justify-content: center;
    /* 横中央揃え */
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
    cursor: pointer;
}

.unlink-tag a {
    display: flex;
    /* aタグをフレックスボックスにして内容を横並びに */
    align-items: center;
    /* 画像とテキストを縦方向に中央揃え */
    text-decoration: none;
    /* aタグのデフォルトの下線を削除 */
}

.unlink-tag.hidden {
    opacity: 0;
    transform: translateY(-50px);
    visibility: hidden;
    pointer-events: none;
}

.txt-unlink {
    margin-left: 1rem;
    /* 文字と画像の間隔を調整 */
    font-weight: bold;
    color: #fff;
    z-index: 51;
    text-decoration: underline;
    position: absolute;
}

.unlink-tag a:hover .txt-unlink {
    text-decoration: none;
    /* ホバー時に文字の下線を外す */
}

.unlink-tag a:hover {
    transform: scale(1.1);
    /* 10%大きくする */
}

.unlink-tag img {
    max-width: 400px;
    height: auto;
}

@media (max-width: 1200px) {
    .unlink-tag {
        top: 50%;
        right: 58px;
        transform: scale(0.7);
    }
}

@media (max-width: 820px) {
    .unlink-tag {
        top: 40%;
        transform: scale(0.6);
    }
}


@media (max-width: 768px) {
    .unlink-tag {
        top: 37px;
        right: -11rem;
        transform: scale(0.5);
        /* 半分のサイズに縮小 */
    }

    .unlink-tag:hover {
        transform: scale(0.6);
    }

    .unlink-tag.hidden {
        transform: scale(0.5) translateY(-50px);
    }

    .unlink-tag img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 500px) {
    .unlink-tag {
        top: 26px;
        right: -14rem;
        transform: scale(0.4);
    }
}