

.fixed-button {
    position: fixed;
    display: flex;
    bottom: 0;
    right: 0;
    z-index: 10;
    margin-bottom: 0;
}

.fixed-button-link-text {
    position: relative;
    padding: 0;
    font-size: 0;
    width: 100%;
}

@media (min-width:769px) {
    .fixed-button {
        height: 90px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        color: #fff;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }

    .fixed-button-link-text {
        height: 70%;
    }

    .fixed-button-link {
        position: relative;
        width: 200px;
        height: 105px;
        background-repeat: no-repeat;
        margin: auto;
        background-size: cover;
        background-position: center;
        background-image: url('../../../assets/img/top/parts/img_modal_btn.png');
    }

    .fixed-button-link::after {
        width: 75px;
        height: 75px;
        position: absolute;
        content: "";
        display: block;
        z-index: 10;
        top: -30px;
        right: 0;
        left: -5px;
        background-repeat: no-repeat;
        margin: auto;
        background-size: 75px;
        background-position: center;
        background-image: url('../../../assets/img/top/parts/img_modal_gakucho.svg');
        transform: rotate(10deg);
        transition: transform 0.6s ease;
        animation: rotateAnimation 2s infinite alternate ease-in-out;
    }

    .fixed-button-link:hover::after {
        background-image: url('../../../assets/img/top/parts/img_modal_gakucho_on.svg');
        transform: scale(1);
        transition: transform 0.6s ease;
        animation: scaleAnimation .6s ease-in-out;
    }

    .fixed-button-link:hover {
        background-image: url('../../../assets/img/top/parts/img_modal_btn_on.png');
    }
}

@media (max-width:768px) and (min-width:481px) {
    .fixed-button {
        inset-inline: 0;
    }

    .fixed-button-link {
        position: relative;
        width: 60vw;
        height: 70px;
        background-repeat: no-repeat;
        margin: auto;
        background-size: cover;
        background-position: center;
        background-image: url('../../../assets/img/top/parts/img_modal_btn_sp.png');
    }
}

@media (max-width:480px) {
    .fixed-button-link {
        position: relative;
        width: 100vw;
        height: 70px;
        background-repeat: no-repeat;
        margin: auto;
        background-size: cover;
        background-position: center;
        background-image: url('../../../assets/img/top/parts/img_modal_btn_sp.png');
    }
}

@keyframes rotateAnimation {
    0% {
        transform: rotate(15deg);
    }
    100% {
        transform: rotate(-15deg);
    }
}

@keyframes scaleAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

body.modal-open {
    overflow: hidden;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    z-index: 10000;
}
.modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 960px;
    text-align: center;
}

.modal-content .p-table._info::after {
    display: none;
}

.modal-close {
    position: absolute;
    font-size: 0;
    width: 50px;
    height: 50px;
    top: -30px;
    right: -20px;
    z-index: 1;
    padding: 0;
    background: #fff;
    border: solid 2px #666666;
    border-radius: 50px;
    color: #666666;
    cursor: pointer;
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 2px;
    height: 20px;
    background: #666666;
}

.modal-close::before {
    rotate: -45deg;
}

.modal-close::after {
    rotate: 45deg;
}


/* ===================== */
/* TOPのFAQセクション */
/* ===================== */
.uq-top-faq-modal-item {
    width: unset;
    margin: auto;
    top: 60px;
}

.uq-top-faq-modal-item iframe {
    width: 343px;
    aspect-ratio: 458 / 815;
    height: 612px;
}

@media screen and (max-width: 768px) {
    .uq-top-faq-modal-item iframe {
        width: 325px;
        aspect-ratio: 458 / 815;
        height: 580px;
    }

    .uq-top-faq-modal-item {
        top: 40px;
    }
}

/* ===================== */
/* BoothのFilterセクション */
/* ===================== */
@media screen and (max-width: 768px) {
    #modal-filter .uq-booth-filter-wrapper {
        padding: 20px 0 !important;
    }

    #modal-filter .modal-booth {
        padding-bottom: 32px;
        padding-inline: 15px;
        height: 50vh;
        overflow: scroll;
    }

    #modal-filter .modal-content .m-button-wrapper {
        margin-top: 2rem;
    }
}
