@charset "utf-8";

@media screen and (min-width:800.1px){
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.visible {
    opacity: 1;
}

.modal-content {
    text-align: center;
    position: relative;
    max-width: 50%;
}

.modal-content a{
    text-decoration: none!important;
}

.close-button {
    position: absolute;
    top: -10px;
    right: -40px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: transform 0.2s;
}

.close-button:hover {
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 65vh;
    display: block;
    transition: transform 0.2s;
}

.modal-image:hover {
    transform: scale(0.99);
}

.no-scroll {
    overflow: hidden;
}

.modal_sp{
    display: none;}
}

@media screen and (max-width:800px){
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.visible {
    opacity: 1;
}

.modal-content {
    text-align: center;
    position: relative;
    max-width: 98%;
}

.modal-content a{
    text-decoration: none!important;
}

.close-button {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 50%;
    padding: 3px;
    z-index: 1001;
    transition: transform 0.2s;
}

.close-button:hover {
    transform: scale(1.1);
}

.modal-image {
    max-width: 90%;
    max-height: 65vh;
	margin:0 auto;
    display: block;
    transition: transform 0.2s;
}

.modal-image:hover {
    transform: scale(0.99);
}

.no-scroll {
    overflow: hidden;
}

.modal_pc{
    display: none;}
}