@charset "utf-8";
.header {
    position: fixed;
    z-index: 100;
}
.gallery__sub--title {
    text-align: center;
    margin-top: 20px;
    font-family: "Roboto";
}

.sub__title--en {
    font-size: 2rem;
    font-weight: 400;
    line-height: 100%;
}

.sub__title--jp {
    font-size: 1rem;
    line-height: 100%;
    margin-top: 10px;
}

.gallery__contents {
    overflow: hidden;
    width: 100vw;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery__item {
    width: min(106.7vw, 693px);
    height: auto;
    position: relative;
    z-index: 50;
}

.gallery__item img {
    width: 100%;
}

.item__name {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
}

.name__category {
    text-align: center;
    text-shadow: 1px 3px 0px var(--primary-black);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--primary-black);
    font-family: 'Courgette';
    font-size: min(17.1vw, 11.3rem);
}

.name__year {
    text-align: center;
    text-shadow: 1px 1px 0px var(--primary-black);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--primary-black);
    font-family: 'Courgette';
    font-size: min(6.4vw, 4.16rem);
    letter-spacing: 1.2px;
    margin-top: -10px;
}

.gallery__list {
    display: flex;
    flex-direction: column;
    gap: 5vw;
    align-items: center;
}

.gallery__item:first-of-type {
    margin-right: 34.7vw;
}

.gallery__item:last-of-type {
    margin-left: 34.7vw;
}

.hover__box {
    width: min(60.5vw, 393px);
    height: min(60.5vw, 393px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 100;
    border-radius: 100%;
}


.original__item--24.hover,
.fan__item--24.hover,
.original__item--23.hover,
.fan__item--23.hover {
    animation: fluffy 3.5s infinite,modal 1s 0s ease forwards;
    cursor: pointer;
}

.gallery__list--23 {
    padding-bottom: 20px;
}

@keyframes fluffy {

    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}
/* modal */
.modal__container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(7, 10, 104, 0.3);
    opacity: 0;
    visibility: hidden;
    padding-bottom: 100px;
    z-index: -100;
    overflow-y: auto;
    animation: modalClose 1s 0s ease forwards;
}
.gallery__title {
    animation: modal 1s 0s ease forwards;
}
.gallery__title.open {
    animation: modalClose 1s 0s ease forwards;
}
.modal__content {
    width: 67.5vw;
    margin: 130px auto 0; 
    max-width: 464.4px;
    
}
.modal__item {
    margin-top: 80px;
}
.modal__content li img {
    outline: 4px solid var(--primary-white);
    display: block;
    margin: 0 auto;
}
.modal__close {
    display: block;
    position: fixed;
    top: 50px;
    right: 4.3vw;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.modal__close::before, .modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 30px;
    background-color: var(--primary-white);
}
.modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__container.open {
    visibility: visible;
    animation: modal 1s 0s ease forwards;
    z-index: 100;
    /* transition: opacity 1s ease, visibility 0.8s; */
}
@keyframes modal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.gallery__item {
    animation: modal 1s 0s ease forwards;
}
.header {
    animation: modal 1s 0s ease forwards;
}
.gallery__item.open {
    animation: modalClose 1s 0s ease forwards;
}
.header.open {
    animation: modalClose 1s 0s ease forwards;
}
@keyframes modalClose {

    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


/* スマホ横向き */
@media screen and (orientation: landscape) {
    .gallery__item {
        width: min(70.7vw, 693px);
    }
    .hover__box {
        width: min(40.5vw, 393px);
        height: min(40.5vw, 393px);
    }
    .name__category {
        font-size: min(23vh, 11.3rem);
    }
    .name__year {
        margin-top: -5vh;
        font-size: min(10.4vh, 4.16rem);
    }
    .modal__content {
        max-width: 50%;
    }
}

/*======================================================== 
========================768px ============================
========================================================*/
@media screen and (min-width: 768px) {
    .gallery__contents {
        margin-top: 75px;
    }
    .sub__title--en {
        font-size: min(2.8vw, 50px);
    }
    .sub__title--jp {
        font-size: min(1.1vw, 20px);
        margin-top: 16px;
    }
    .name__category {
        text-shadow: 3px 4px 0px var(--primary-black);
    }
    .name__year {
        text-shadow: 2px 2px 0px var(--primary-black);
        margin-top: -10px;
    }
    .modal__content {
        width: 400px;
        max-width: none;
    }
    .modal__content li img {
        outline: 6px solid var(--primary-white);
    }

}

/*======================================================== 
========================1081px ============================
========================================================*/
@media screen and (min-width: 1081px) {
    .gallery__contents {
        margin-top: 100px;
        flex-direction: row;
        justify-content: space-evenly;
    }
    .gallery__item:first-of-type,
    .gallery__item:last-of-type {
        margin: 0;
    }
    .gallery__item {
        width: min(40vw, 950px);
    }
    .name__category {
        font-size: min(8.1vw, 19rem);
    }
    .name__year {
        font-size: min(2.6vw, 6.1rem);
    }
    .hover__box {
        width: min(23vw, 546px);
        height: min(23vw, 546px);
    }

    /* modal */
    .modal__content {
        margin: 200px auto 0; 
        /* max-width: 600px; */
        max-width: none;
        width: 34.7vw;
    }
    .modal__content li {
        margin-top: 120px;
    } 
    .modal__content li img {
        outline: 8px solid var(--primary-white);
    }


}
/* ======================================================
masonry 
========================================================*/
.gallery__modal--contents {
    width: 87.2%;
    margin: 80px auto 0;
}

.masonry {
    list-style: none;
    margin: 0 auto;
}

.item {
    width: 100%;
}




@media screen and (min-width:768px) {
    .works__contents {
        max-width: none;
    }
    .item {
        width: 400px;
    }
    .item img {
        outline: 8px solid var(--primary-white);
        width: 100%;
    } 
}


