@charset "utf-8";
:root{
    --color-black: #323231;
    --color-white: #fff;
    --color-gray: #575757;
    --color-graylight: #6D6D6D;
}

.firstview{
    margin-top: 75px;
    height: 471px;
    object-fit: cover;
}

.work--content{
    padding: 40px 5.3% 48px;
}

.title{
    font-size: 1.9rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.tag{
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 24px;
}

.viewmore{
    font-size: 2rem;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 42px;
}

.arrow-icon img{
    background-color: var(--color-black);
    border-radius: 2px;
    margin-left: 12px;
    width: 21px;
}

.work-detail-content {
    line-height: 1.67;
}

.detail-item {
    margin-bottom: 48px;
}

.detail-item :last-of-type{
    margin-bottom: 0;
}

.detail-item-image-list{
margin-bottom: 40px;
}

.detail-item-image {
    margin-bottom: 80px;
}

.detail-item-image img {
    margin-bottom: 12px;
}

.detail-item-image img:nth-last-of-type(1) {
    margin-bottom: 0;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-text {
    font-size: 1.3rem;
    color: var(--color-black);
    letter-spacing: 0.03em;
    line-height: 1.67;
}

.bold{
    font-weight: 700;
}

.info-item{
    margin-bottom: 24px;
}

.title-serif {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-links a {
    color: var(--color-black);
}

.nav-links span {
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: block;
    font-weight: 300;
    color: var(--color-graylight);
}

.nav-links strong {
    font-size: 2.1rem;
    font-family: 'EB Garamond' ,'serif';
    font-weight: 500;
}

.next-link img {
    width: 100px;
}

.all-works-section {
    padding: 100px 0 120px;
}

.sub-label{
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 200;
    color: var(--color-graylight);
}

.title-serif-large {
    font-size: 3.2rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.work-index-list li {
    border-top: 1px solid #ccc;
}

.work-index-list li:last-child {
    border-bottom: 1px solid #ccc;
}

.work-index-list a {
    display: block;
    padding: 24px 0;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
}

.hover-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: auto;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8); 
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-index-list li:hover .hover-image-container {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.work-bottom-details,.work-navigation{
    padding: 0 5.3% 0;
}

.work-flex-container {
    display: block;
}

@media screen and (min-width: 620px){
    .firstview{
        height: 769px;
    }
}

/* タブレット　769px */
@media screen and (min-width: 769px){
    .firstview{
        margin-top: 100px;
    }

    .detail-title {
        font-size: 1.4rem;
        margin-bottom: 9px;
    }

    .detail-text {
        font-size: 1.3rem;
    }

    .next-link img {
        width: 150px;
    }

    .nav-links strong {
        font-size: 2.4rem;
    }
}

/* pc 1025px */
@media screen and (min-width: 1025px) {
    .work-flex-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6.73vw;
        padding: 0 2.7% 0;
        margin: 96px auto 88px;
    }

    .firstview {
        width: 50%;
        margin-top: 0;
    }

    .work--content {
        width: 45%;
        padding: 0;
    }

    .viewmore {
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .work-bottom-details{
        padding: 0 2.7% 0;
    }

    .detail-item{
        max-width: 75.625vw;
        margin:  80px auto;
        display: flex;
    }

    .work-navigation{
        padding: 60px 7.7% 0;
    }

    .title{
        font-size: 3.2rem;
        letter-spacing: 0.03em;
    }

    .tag{
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .viewmore{
        font-size: 2.4rem;
        margin-bottom: 150px;
    }

    .arrow-icon img {
        width: 24px;
    }

    .detail-title{
        margin: 0 100px 0 0;
        letter-spacing: 0.03em;
        width: 100px;
    }

    .detail-text{
        font-size: 1.4rem;
        flex: 1;
    }

    .detail-item-image{
        display: flex;
        gap: 1.666vw;
        justify-content: center;
    }

    .detail-item-image img{
        height: 581px;
        object-fit: cover;
        margin-bottom: 0;
    }

    .info-item {
        margin-bottom: 48px;
        display: block;
    }

    .info-item:last-of-type{
        margin-bottom: 0;
    }

    .nav-links span {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .nav-links strong{
        font-size: 4.8rem;
        font-weight: 400;
    }

    .next-link img{
        width: 20.48vw;
    }

    .all-works-section{
        padding: 105px 0 200px;
    }

    .sub-label{
        font-size: 1.7rem;
    }

    .title-serif-large{
        font-size: 5.6rem;
        margin-bottom: 98px;
    }

    .work-index-list a {
        padding: 28px 0;
        font-size: 1.8rem;
    }

    .work-index-list{
        margin: 0 7.7% 0;
    }
}
