@charset "UTF-8";
.main {
    margin-top: 120px;
}

@media screen and (min-width: 768px) {
    .main {
        margin-top: 45px;
    }
}

/* =================================
work
====================================*/
.section--work {
    padding: 0;
}

.outLink {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
}

.work__link {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.youtubeImg {
    display: block;
    width: 50px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%)
}

.work__topic {
    width: 100%;
    padding: 0 var(--contentPadding);
    margin-top: 20px;
    font-weight: 500;
    font-size: 1.4rem;
}

.work__topic__date {
    width: 100%;
    padding: 0 var(--contentPadding);
    margin-top: 5px;
    font-family: var(--numberFont);
    font-size: 1rem;
    font-weight: 500;
}

.work__thumbnails {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.work__thumbnails img {
    pointer-events: none;
}

.work__minThumbnails {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.minThumbnail {
    width: 50%;
}

@media screen and (min-width: 768px) {
    .youtubeImg {
        width: 80px;
    }


    .work__topic {
        margin-top: 50px;
        font-weight: 500;
        font-size: 2.4rem;
        letter-spacing: 3px;
    } 

    .work__topic__date {
        margin-top: 10px;
        font-size: 1.2rem;
    }

    .work__thumbnails {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 50px;
    }

    .thumbnail {
        width: 50%;
    }

    .minThumbnail {
        width: 25%;
    }
}

/* =================================
separateFloor
====================================*/
.detail__txt {
    border-left: 1.5px solid var(--primary-gray);
    padding: 5px 15px;
    line-height: 2;
}

.detail__txt a {
    font-weight: 700;
    position: relative;
    white-space: nowrap;
}

.detail__txt a::after {
    display: inline-block;
    background-image: url(../images/moving-q);
    background-size: contain;
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    aspect-ratio: 1/1;
    right: -20px;
}
/* 
.detail__txt .nanjo {
    color: red;
}

.detail__txt .kawahara {
    color: green;
}

.detail__txt .teramoto {
    color: blue;
} */

.detail__txtB {
    margin-top: 30px;
    border-left: 1.5px solid var(--primary-gray);
    padding: 5px 15px;
}

.detail__txtB a {
    font-weight: 700;
    position: relative;
    white-space: nowrap;
}

.related__imgBlock {
    display: none;
}

@media screen and (min-width: 768px) {
    .separateFloor {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 var(--contentPadding);
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .separateFloor a {
        padding: 2px 5px;
        transition: .8s ease;
        background: var(--primary-white);
    }

    .separateFloor a:hover {
        background: var(--bg-gradientB);
        background-size: 200% 200%;
        animation: Grad 5s ease infinite;
        transition: .8s ease;
        color: var(--primary-white);
    }

    .separateFloor a.nanjo:hover {
        background: var(--bg-gradientA);
    }

    .separateFloor a.kawahara:hover {
        background: var(--bg-gradientD);
    }

    .separateFloor a.teramoto:hover {
        background: var(--bg-gradientC);
    }
    
    .section--detail {
        width: 50%;
        padding: 0;
        margin-left: 0;
    }

    .related__imgBlock {
        margin-top: 145px;
        display: block;
        position: relative;
        width: 35%;
        aspect-ratio: 8 / 9;
    }

    .related__imgBlock img {
        width: 100%;
        position: absolute;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.1);
        transition: opacity 0.5s ease, filter 0.8s ease, transform 0.8s ease;
    }

    .related__imgBlock .A {
        top: 0;
        left: 0;
    }

    .related__imgBlock .B {
        bottom: 0;
        left: 0;
    }

    .related__imgBlock img {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.1);
        transition: opacity 0.5s ease, filter 0.8s ease, transform 0.8s ease;
    }

    body.hover-nanjo .related--nanjo,
    body.hover-kawahara .related--kawahara,
    body.hover-teramoto .related--teramoto {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

/* =================================
otherWork
====================================*/

.allList {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.allList__item {
    width: 33%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.allList__item a {
    display: block;
    height: 100%;
}


@media screen and (min-width: 768px) {
    .section--other {
        padding-bottom: 50px;
    } 

    .allList {
        width: 100%;
        gap: 2px;
    }

    .allList__item {
        width: 24.5%;
        cursor: pointer;
    }

    .allList__item a {
        width: 100%;
        aspect-ratio: 16 / 9;
        display: block;
        overflow: hidden;
    }

    .allList__item img {
        aspect-ratio: 16 / 9;
        transform: scale(100%);
        transition: 0.8s ease;
    }

    .allList__item:hover img {
        transform: scale(115%);
        transition: 0.8s ease;
    }
}

@media screen and (min-width: 1024px) {
    .allList__item {
        width: 16%;
    }
}
