@charset "utf-8";

.works__category {
    display: flex;
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 50px;
    justify-content: center;
    column-gap: 30px;
    position: sticky;
    top: 100px;
    z-index: 400;
}

.category__item {
    padding-bottom: 10px;
    font-size: min(4.3vw, 2rem);
    font-weight: 600;
}

/* .category__all {
    border-bottom: solid 1px var(--primary-white);
    } */
.category__item.choice {
    border-bottom: solid 2px var(--primary-white);
}

/* タブ切り替え */
.tab_contents_item {
    display: none;
}

.tab_contents_item.active {
    display: block;
}


/* item */
.masonry__item img {
    border: 4px solid var(--primary-white);
    display: block;
    margin: 0 auto;
    width: 77.4%;
    cursor: pointer;
}

.item__name {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 500;
    margin-top: 20px;
}

.item__txt {
    text-align: center;
    font-size: 1.4rem;
    margin-top: 10px;
}

@keyframes vibration {
    0% {
        transform: translate(0px, 0px) rotateZ(0deg)
    }

    25% {
        transform: translate(2px, 2px) rotateZ(1deg)
    }

    50% {
        transform: translate(0px, 2px) rotateZ(0deg)
    }

    75% {
        transform: translate(2px, 0px) rotateZ(-1deg)
    }

    100% {
        transform: translate(0px, 0px) rotateZ(0deg)
    }
}

/* ======================================================
masonry 
========================================================*/
.works__contents {
    width: 87.2%;
    max-width: 600px;
    margin: 80px auto 0;
    position: relative;
}

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

.masonry__item {
    width: 100%;
    margin-bottom: 80px;
    display: none;
}
.masonry__item.visible {
    display: block;
}
.stand__wrap:last-of-type {
    margin-bottom: 0;
}

.footer {
    margin-top: 20px;
}


/* glitch-スマホ横向き */
@media screen and (orientation: landscape) {
    .masonry__item img {
        width: 50%;
    }
    .works__category {
        top: 12vh;
    }
}

/* min-width:768px==================================================== */
@media screen and (min-width:768px) {
    .works__category {
        top: 80px;
    }
    .works__contents {
        max-width: none;
    }

    .masonry__item {
        width: 400px;
    }

    .masonry__item img {
        border: 6px solid var(--primary-white);
        width: 100%;
    }

    
}

/* min-width:1081px==================================================== */
@media screen and (min-width:1081px) {
    .works__category {
        font-size: 1.8rem;
        column-gap: 40px;
        top: 7vw;
    }

    .masonry__item img {
        border: 8px solid var(--primary-white);
    }

    .masonry {
        margin-top: 100px;
    }

    .category__item.choice {
        border-bottom: solid 2px var(--primary-white);
    }    
}



#grayDisplay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100% !important;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

#grayDisplay img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 70%;
    max-height: 70%;
    /* height: 90%; */
    object-fit: contain;
}


.close-btn {
    display: block;
    position: fixed;
    top: 50px;
    right: 4.3vw;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 30px;
    background-color: var(--primary-white);
}

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

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