@charset "utf-8";

.main {
    position: relative;
    padding: 200px 0 0;
}

.main::before {
    content: "";
    position: absolute;
    background: url("../img/works/bg-title.png") no-repeat center center /100% 100%;
    top: 0;
    left: 0;
    width: 100%;
    height: 1624px;
    z-index: -1;
    background-position: top center;
    background-size: contain;
}

.title-page {
    padding: 0 0 min(12vw, 120px);
}

.title-page .tit {
    font-size: 5.6rem;
    color: #fff;
    font-family: "HelveticaNeueThin";
    font-weight: normal;
    line-height: 1.625;
}

.footer {
    z-index: 7;
}

.works-box {
    position: relative;
}

.works-box .img-full {
    width: 100%;
}

.works-box.is-parallax {
    height: max(75vw, 200vh);
    height: max(75vw, 200svh);
    isolation: isolate;
}

.works-parallax-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.works-parallax-media {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(0px - var(--parallax-overflow, 0px));
    bottom: calc(0px - var(--parallax-overflow, 0px));
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    backface-visibility: hidden;
    will-change: transform;
}

.works-parallax-media .img-full {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.works-txt {
    position: absolute;
    z-index: 1;
    width: 94%;
    max-width: 992px;
    display: flex;
    justify-content: space-between;
    top: 50%;
    left: 50%;
    margin: 0 auto;
    transform: translate(-50%, -50%);
}

.works-box.is-parallax .works-txt {
    top: 0;
    left: 0;
    right: 0;
    height: 150svh;
    margin: 0 auto;
    transform: none;
    z-index: auto;
    align-items: center;
}

.works-box.is-parallax .works-txt h3 {
    transform: translate3d(0, var(--text-parallax-y, 0px), 0);
    opacity: var(--text-opacity, 1);
    will-change: transform, opacity;
}

/* .works02.is-parallax .works-txt{top: 15%;}
    .works05.is-parallax .works-txt{top: 10%;}
    .works06.is-parallax .works-txt{top: 12%;} */


.works-txt .clr-w {
    color: #fff;
}

.works-txt h3 {
    display: flex;
    flex-direction: column;
    font-size: 4.8rem;
    letter-spacing: 0.036em;
    font-family: "HelveticaNeueThin";
    font-weight: normal;
    line-height: 1.2;
    margin-top: 180px;
    align-items: flex-start;
}

.works-txt h3 span {
    font-size: 1.2rem;
}

.btn-more {
    position: absolute;
    top: 40%;
    right: 0;
    width: 114px;
    height: 114px;
    border-radius: 50%;
    backdrop-filter: blur(1px) brightness(0.69);
    display: flex;
    justify-content: center;
    align-items: center;
    mix-blend-mode: normal;
    flex-direction: column;
    row-gap: 5px;
    transition: all 0.4s;
}

.btn-more {
    top: calc(40% + var(--text-parallax-y, 0px));
}

.btn-more:hover {
    background: rgba(190, 0, 20, 0.72);
    backdrop-filter: blur(1px) brightness(0.69);
}

.btn-more span {
    color: #fff;
    font-size: 1.2rem;
}

.btn-more i {
    width: 26px;
    height: 26px;
    position: relative;
}

.btn-more i::before {
    content: "";
    width: 100%;
    height: 1px;
    background: #fff;
    top: 50%;
    left: 0;
    position: absolute;
}

.btn-more i::after {
    content: "";
    width: 1px;
    height: 100%;
    background: #fff;
    top: 0;
    left: 50%;
    position: absolute;
}

.works02 {
    background: #fff;
    text-align: center;
}

.works02 h3 {
    line-height: 1.16;
    text-align: left;
}

.works02 .works-txt {
    padding-right: 84px;
}

.works01 .btn-more {
    right: 84px;
}

.works02 .btn-more {
    top: 45%;
    right: 84px;
}

.works03 .btn-more {
    top: 25%;
}

.works04 .btn-more {
    top: 20%;
    right: 84px;
}

.works05 .btn-more {
    left: 50%;
    top: 70%;
}

.works06 .btn-more {
    top: 35%;
}

.works06 h3 {
    color: #fff;
    line-height: 1.16;
    mix-blend-mode: exclusion;
}

.works06 .works-txt {
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: 0 auto;
    transform: none;
    z-index: auto;
    align-items: center;
}


.works04 h3 {
    color: #fff;
    line-height: 1.16;
    mix-blend-mode: exclusion;
}

.works05 {
    background: #272727;
    text-align: center;
}

.works05 h3 {
    color: #fff;
}

.works06 {
    background: #FCCC3F;
    text-align: center;
}

.works-more-cursor {
    display: none;
}

/* Desktop: use the "View Details" button as the pointer for each work. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {

    body.has-works-more-cursor .works-box,
    body.has-works-more-cursor .works-box * {
        cursor: none !important;
    }

    body.has-works-more-cursor .works-box .btn-more {
        opacity: 0;
        pointer-events: none;
    }

    body.has-works-more-cursor .works-box .btn-more:focus-visible {
        opacity: 1;
    }

    .works-more-cursor {
        display: flex;
        position: fixed;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        z-index: 9985;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(-50%, -50%, 0);
        transition: opacity .16s ease, visibility .16s ease, background-color .2s ease;
        will-change: transform;
    }

    .works-more-cursor.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .works-more-cursor.is-pressed {
        background: rgba(190, 0, 20, 0.82);
    }
}

@media (max-width: 768px) {
    .works-box.is-parallax {
        height: 135vh;
        height: 135svh;
    }

    .works-parallax-media {
        will-change: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works-parallax-media {
        transform: none;
        will-change: auto;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 124px 0 0;
    }

    .main::before {
        background: url("../img/works/bg-title-sp.png") no-repeat center center /100% 100%;
        height: 600px;
        background-size: cover;
    }

    .title-page {
        padding-bottom: 94px;
    }

    .title-page .tit {
        font-size: 4.8rem;
        line-height: 1.2;
    }

    .works-txt h3 {
        color: #fff;
        font-size: 2.4rem;
        margin-top: 0;
        mix-blend-mode: exclusion;
        line-height: 1.33;
        align-items: flex-end;
    }

    .works-box .btn-more {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 30px;
        height: 30px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .works-box .btn-more::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: 50%;
        pointer-events: none;
        backdrop-filter: blur(1px) brightness(0.69);
        -webkit-backdrop-filter: blur(1px) brightness(0.69);
    }

    .works-box .btn-more:hover {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .works-box .btn-more:hover::before {
        background: rgba(190, 0, 20, 0.72);
    }

    .btn-more span {
        color: #fff;
        font-size: 1.2rem;
        position: absolute;
        z-index: 1;
        width: 70px;
        left: -80px;
        mix-blend-mode: exclusion;
    }

    .btn-more i {
        width: 10px;
        height: 10px;
        z-index: 1;
    }

    .works-txt {
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: none;
        align-items: flex-end;
        flex-direction: column;
        justify-content: flex-end;
        row-gap: 12px;
        z-index: auto;
    }

    .works-box.is-parallax .works-txt {
        align-items: flex-end;
        flex-direction: column;
        justify-content: flex-end;
        gap: 40px;
    }

    .works02 .works-txt {
        padding-right: 0;
    }

    .works-txt {
        bottom: 0;
        top: unset;
    }



}

.img-abs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94vw;
}

@media (max-width: 576px) {
    .works-box.is-parallax .works-txt {
        gap: 12px;
    }
}

@media (min-width: 769px) {
    .works02 .img-abs {
        max-width: 992px;
    }

    .works05 .img-abs {
        max-width: 992px;
    }

    .works06 .img-abs {
        max-width: 1084px;
    }
}

.works04 .img-abs {
    text-align: center;
}

@media (max-width: 768px) {
    .works-box.is-parallax .works-txt {
        height: unset;
        margin-bottom: 60px;
    }

    .works06.is-parallax .works-txt {
        margin-bottom: 110px;
    }

    .works04.is-parallax .works-txt {
        margin-bottom: 40px;
    }

    .works-parallax-media .img-full {
        height: unset;
    }

    .works-box.is-parallax,
    .works-parallax-sticky {
        height: unset;
    }

    .works-parallax-media {
        position: static;
    }

    .works04 h3 {
        text-align: right;
    }
}

/* .btn-more {
    top: calc(40% + var(--text-parallax-y, 0px));
}
.works02 .btn-more {
    top: calc(35% + var(--text-parallax-y, 0px));
} */
/* .works03 .btn-more{ top: calc(25% + var(--text-parallax-y, 0px));}
.works04 .btn-more{    top: calc(20% + var(--text-parallax-y, 0px));}

.works05 .btn-more{ top: calc(70% + var(--text-parallax-y, 0px));}
.works06 .btn-more{ top: calc(25% + var(--text-parallax-y, 0px));} */