@charset "utf-8";

/* ==========================================
scene01
========================================== */

.scene01.wrapper {
    padding: 15rem 0 15rem;
}

.scene01-text-block {
    margin: 4.5rem auto 0;
    text-align: center;
}

.scene01-text-block p span {
    font-size: clamp(1.6rem, 1.454rem + 0.621vw, 2.2rem);
}

/* ==========================================
scene02
========================================== */

.sticky-section {
    display: flex;
    align-items: flex-start;
    position: relative;
    max-width: 165rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    contain: layout paint;
}

.sticky-panel {
    position: -webkit-sticky;
    position: sticky;
    top: 10vh;
    align-items: flex-start;
    width: 39.6%;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
    margin: 4rem 0 0;
    /* padding: 4rem 0; */
    z-index: 1;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.sticky-panel-in{
    position: relative;
    width: 100%;
    aspect-ratio: 640/768;
    padding-bottom: 120%;
}

.sticky-panel>figure.scene-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.scene-image {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: auto;
    margin: 0 !important;
    /* aspect-ratio: 640/768; */
}

.scene-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    /* height: 100% !important; */
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
    max-width: none !important;
    /* WPテーマのmax-width制限を解除 */
    border-radius: 5rem;
}

/* ✅ 修正: is-activeはfigureにつくので、その子imgを対象にする */
.scene-image.is-active img {
    opacity: 1;
    transform: scale(1);
}

/* 番号オーバーレイ */
.scene-number {
    position: absolute !important;
    top: 2rem;
    right: -9rem !important;
    left: auto !important;
    transform: none !important;
    z-index: 2;
    font-size: clamp(6rem, 3.816rem + 9.32vw, 15rem);
    font-family: var(--fontB);
    font-weight: 400;
    line-height: 1;
    /* color: var(--black); */
    letter-spacing: -0.04em;
    pointer-events: none;
    transition: opacity 0.4s;
    width: auto !important;
    max-width: none !important;
}

.scenes-right {
    width: 54.94%;
    padding-left: 8rem;
}

.scene-block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0;
    border-bottom: 1px solid rgba(26, 24, 20, 0.12);
    position: relative;
}

.scene-block:last-child {
    border-bottom: none;
}

.scene-bg-primary .in-en-title90 {
    -webkit-text-stroke: 1px var(--black);
}

.scene-bg-primary .in-en-title80 {
    -webkit-text-stroke: 1px var(--black);
    color: var(--black);
    opacity: 1;
    text-align: right;
}

.scene02-text-block {
    margin: 8rem 0 0 7rem;
}

.white .in-en-title90 {
    -webkit-text-stroke: 1px var(--white);
}

.white .in-en-title80 {
    -webkit-text-stroke: 1px var(--white);
    color: var(--white);
    opacity: 1;
    text-align: right;
}

.scene-open-box {
    margin-bottom: 1.5rem;
}

.scene02-text-block h2 {
    margin-bottom: 1rem;
}

.scene-image-sp {
    display: none;
}

.num-sp {
    display: none;
}

/* ==========================================
scene03
========================================== */

.scene03-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scene03-img-box {
    max-width: 64rem;
    aspect-ratio: 640/768;
    width: 45%;
}

.scene03-img-box img {
    border-radius: 5rem;
}

.scene03-right {
    max-width: 81rem;
    width: 50%;
}

.scene03-btn-fukidashi {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem auto 0;
}

.fukidashi-text20 {
    font-size: clamp(1.5rem, 1.379rem + 0.518vw, 2rem);
    margin: 0 2rem;
}

.scene03-right .in-jp-title40 br {
    display: none;
}


.scene03-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 3rem auto 0;
}

.primary.in-en-title30 {
    -webkit-text-stroke: 1px var(--primary);
    color: var(--primary);
    opacity: 1;
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=1550px) {

    /* ==========================================
    scene02
    ========================================== */
    .scene-block {
        min-height: auto;
    }

    .sticky-panel {
        top: 15vh;
        /* height: auto; */
    }

    .scenes-right {
        padding-left: 6rem;
    }


    .scene02-en-title {
        font-size: 8.5rem;
    }

    .scene03-row {
        justify-content: center;
        gap: 3rem;
    }


}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=1300px) {

    /* ==========================================
    scene02
    ========================================== */

    .scene-number {
        right: -5rem !important;
        font-size: 10rem;
    }
}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=1024px) {

    /* ==========================================
    scene02
    ========================================== */
    /* 
    .sticky-panel {
        top: 20vh;
    } */

    .scene02-text-block {
        margin: 3rem 0 0 7rem;
    }

}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=768px) {

    .scene01.wrapper {
        padding: 6rem 0 6rem;
    }

    /* ==========================================
    scene02（モバイル：縦積みに切り替え）
    ========================================== */

    .scene02 {
        padding: 0;
    }

    .sticky-section {
        flex-direction: column;
    }

    .sticky-panel {
        display: none !important;
    }

    .sticky-panel::before {
        content: '';
        display: block;
        padding-top: 0;
    }

    .scenes-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        padding-left: 0;
    }

    .scene-block {
        min-height: auto;
        padding: 3rem 2.5rem;
        justify-content: flex-start;
    }

    .scene-image-sp {
        display: block;
        width: 100%;
        margin: 0 0 2rem !important;
        aspect-ratio: 768/800;
        overflow: hidden;
    }

    .scene-image-sp img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
        border-radius: 3rem;
    }

    .scene-number {
        position: static !important;
        margin: 0 auto;
        text-align: center;
    }

    .scene-block {
        /* max-height: max-content; */
        min-height: auto !important;
    }

    .wrapper.scene02 {
        padding: 10rem 0 13rem;
    }

    .sticky-section {
        align-items: flex-end;
    }

    .sticky-panel {
        margin: auto 0 0;
        top: auto;
        bottom: 12rem;
    }

    .sticky-panel::before {
        content: '';
        display: block;
        padding-top: 120%;
    }

    .scene02-en-title {
        font-size: 5.5rem;
    }

    .scene-number {
        right: -3.5rem !important;
        font-size: 8rem;
    }

    .in-en-title80 {
        font-size: 5rem;
    }

    .scene02-text-block {
        margin: 5rem 0 0;
    }

    .scene-block {
        min-height: 5rem;
    }



}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=768px) {

    .scenes-right {
        display: block;
    }

    .scene03-right .in-jp-title40 br {
        display: block;
    }

    .sticky-section {
        flex-direction: column;
        padding: 0;
    }

    .scene-block {
        background: unset;
    }

    .scene-bg-primary {
        background: var(--primary);
    }

    .num-sp {
        display: block;
        font-size: clamp(6rem, 3.816rem + 9.32vw, 15rem);
        font-family: var(--fontB);
        font-weight: 400;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    /* ==========================================
    scene03
    ========================================== */

    .scene03-row {
        flex-direction: column;
    }

    .scene03-img-box {
        width: 100%;
    }

    .scene03-right {
        width: 100%;
        margin: 3rem auto 0;
    }
}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=576px) {

    .scene01-text-box p {
        text-align: left;
    }

    /* ==========================================
    scene03
    ========================================== */

    .scene03-btn-row {
        flex-direction: column;
    }

    .scene02-text-block {
        margin: 3rem 0 0;
    }
}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */