/* Concept Design MV (.isMvDemo) — sticky + soft text reveal */

.secConceptHero.isMvDemo {
    overflow: visible;
    --concept-bg-fade: 1;
    /* break out of .wrapperFit (40rem) so sticky bg is full-bleed */
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.secConceptHero.isMvDemo:after,
.secConceptHero.isMvDemo:before {
    display: none;
}

.conceptMv__spacer {
    position: relative;
    height: 220vh;
}

@media (min-width: 1216px) {
    .conceptMv__spacer {
        height: 340vh;
    }
}

.conceptMv__sticky {
    /* CSS sticky is broken by #container overflow:hidden; JS pins this */
    position: relative;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #e3e2d9;
    backface-visibility: hidden;
    transform: translateZ(0);
    isolation: isolate;
}

#conceptMvCanvas {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateZ(0);
    transition: opacity 0.35s ease;
    backface-visibility: hidden;
}

#conceptMvCanvas.is-ready {
    opacity: 1;
}

#conceptMvCanvas.is-hidden {
    display: none;
    opacity: 0;
}

.conceptMv__fallbackBg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #e3e2d9;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.conceptMv__fallbackBg.is-show {
    display: block;
}

/* Phase1 のみ（安心など）：切替がない分スクロールを短く */
.secConceptHero.isMvDemo.isPhase1Only .conceptMv__spacer {
    height: 160vh;
}

@media (min-width: 1216px) {
    .secConceptHero.isMvDemo.isPhase1Only .conceptMv__spacer {
        height: 200vh;
    }
}

.conceptMv__gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.72;
    pointer-events: none;
    /* グラデは背景画像側に焼き込み済みのためなし */
    background: none;
    will-change: opacity;
}

.secConceptHero.isMvDemo .secConceptHeroScroll {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.secConceptHero.isMvDemo .secConceptHeroScroll .boxHero04,
.secConceptHero.isMvDemo .secConceptHeroScroll .boxConcept {
    pointer-events: auto;
}

/* Disable old pin / tall track from concept.css */
.secConceptHero.isMvDemo .heroInner01.hero2 {
    min-height: 0;
    height: 100%;
    /* width: 100%; */
    align-items: center;
}

.secConceptHero.isMvDemo .hero2Inner,
.secConceptHero.isMvDemo .hero2Inner.is-fixed,
.secConceptHero.isMvDemo .heroInner01.hero2.is-end .hero2Inner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
}

.secConceptHero.isMvDemo .boxHero04 {
    top: 0;
    margin-left: auto;
    margin-right: 0;
    max-width: none;
    box-sizing: border-box;
}

.secConceptHero.isMvDemo .boxHero04 .boxTxt {
    /* 元の min-width を維持しつつ、画面内に収める */
    min-width: min(80rem, calc(100vw - 12rem));
    max-width: calc(100vw - 12rem);
}

.secConceptHero.isMvDemo .boxTxtPhase1 {
    display: block;
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
}

/* コンセプトTOP：Brand Concept ロゴ（Phase1/2 とも表示） */
.secConceptHero.isMvDemo .boxHeroLogo {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 140rem;
    max-width: calc(100% - 10rem);
    height: 100%;
    transform: translateX(-50%);
    box-sizing: border-box;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease-out;
    will-change: opacity;
}

.secConceptHero.isMvDemo .boxHeroLogo .boxImg {
    width: 64.3rem;
    max-width: 48%;
    flex-shrink: 0;
}

.secConceptHero.isMvDemo .boxHeroLogo img {
    width: 100%;
    height: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.secConceptHero.isMvDemo.isConceptTop .boxTxtPhase1 .titHero {
    font-size: var(--pcFontSize65);
    letter-spacing: var(--pcLetterSpacing50);
    line-height: 1.45;
}

.secConceptHero.isMvDemo.isConceptTop .boxTxtPhase1 .txtHero + .txtHero {
    margin-top: 3.6rem;
}

.secConceptHero.isMvDemo .boxTxtPhase2 {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.secConceptHero.isMvDemo .boxTxtPhase2.is-show {
    z-index: 3;
    pointer-events: auto;
}

/* 行の出現：デザイン／性能ページと同じふわっと（opacity + 上昇 + blur） */
.secConceptHero.isMvDemo .jsConceptLine {
    color: #242423;
    opacity: 0;
    transform: translateY(0.8rem);
    filter: blur(4px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out, filter 0.55s ease-out;
}

.secConceptHero.isMvDemo .jsConceptLine.is-show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* コンセプトTOP Phase1：concept.css の blur 無し例外を打ち消し、他ページと同じふわっとに */
.secConceptHero.isMvDemo:has(.boxHeroLogo) .boxTxtPhase1 .jsConceptLine {
    opacity: 0;
    transform: translateY(0.8rem);
    filter: blur(4px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out, filter 0.55s ease-out;
}

.secConceptHero.isMvDemo:has(.boxHeroLogo) .boxTxtPhase1 .jsConceptLine.is-show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.secConceptHero.isMvDemo .boxConcept {
    opacity: 1;
    transform: none;
    filter: none;
}

.secConceptHero.isMvDemo .conceptScrollHint {
    /* pin 中の fixed + filter は上下端チカチカの原因になりやすい */
    position: absolute;
    left: 50%;
    bottom: 3.2rem;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
    filter: none;
}

.secConceptHero.isMvDemo .conceptScrollHint.is-visible {
    opacity: 1;
}

.secConceptHero.isMvDemo .conceptScrollHint.is-hidden {
    opacity: 0;
}

@media only screen and (min-width: 1216px) {
    /* ピン固定時の 1px 隙間（上下端のチラつき）を塞ぐ */
    .secConceptHero.isMvDemo .conceptMv__sticky {
        top: -1px;
        height: calc(100vh + 2px);
        height: calc(100dvh + 2px);
    }

    /* PCのみ：blur 端のチカチカ防止ではみ出し（スマホは拡大に見えるため不可） */
    #conceptMvCanvas,
    .conceptMv__fallbackBg {
        inset: -3%;
        width: 106%;
        height: 106%;
    }
}

@media only screen and (max-width: 1215px) {
    .conceptMv__sticky {
        /* 実機アドレスバー変動でカバー画像が寄りすぎないよう svh を優先 */
        height: 100vh;
        height: 100svh;
    }

    .secConceptHero.isMvDemo .boxTxtPhase2 {
        top: -4rem;
    }

    .secConceptHero.isMvDemo .boxHero04 {
        margin-left: 0;
        gap: 2rem;
    }

    /* keep text column readable inside full-bleed sticky */
    .secConceptHero.isMvDemo .secConceptHeroScroll .wrapperSp {
        width: calc((335 / 375) * 100%);
        max-width: 40rem;
        margin-inline: auto;
    }

    .secConceptHero.isMvDemo .boxHero04 .boxTxt {
        max-width: calc(100vw - 2rem);
    }

    /* コンセプトTOP SP：ロゴ上・テキスト下の構成 */
    .secConceptHero.isMvDemo .boxHeroLogo {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        transform: none;
        justify-content: center;
        align-items: flex-start;
        padding-top: clamp(7rem, 14vh, 11rem);
        mix-blend-mode: overlay;
    }

    .secConceptHero.isMvDemo .boxHeroLogo .boxImg {
        width: clamp(24rem, 79vw, 29.6rem);
        max-width: 80%;
    }

    .secConceptHero.isMvDemo.isConceptTop .secConceptHeroScroll {
        align-items: center;
        padding-top: 0;
        box-sizing: border-box;
    }

    .secConceptHero.isMvDemo.isConceptTop .boxHero04 .boxTxt {
        position: relative;
        min-height: 80vh;
    }

    /* Phase1 は absolute 固定。scroll の padding 切替だとフェード中に上へ飛ぶのを防ぐ */
    .secConceptHero.isMvDemo.isConceptTop .boxTxtPhase1 {
        position: absolute;
        top: clamp(18rem, 36vh, 28rem);
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
    }

    .secConceptHero.isMvDemo.isConceptTop .boxTxtPhase1 .titHero {
        font-size: 2.5rem;
        letter-spacing: 0;
        line-height: 1.7;
        text-align: center;
        white-space: nowrap;
    }

    .secConceptHero.isMvDemo.isConceptTop .boxTxtPhase1 .txtHero + .txtHero {
        margin-top: 0.4rem;
    }

    .secConceptHero.isMvDemo.isConceptTop .boxConcept {
        display: none;
    }

    /* 次セクションとのつなぎ：下端の白いもや */
    .conceptMv__sticky:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 10rem;
        z-index: 4;
        pointer-events: none;
        background: linear-gradient(
            to top,
            #fff 0%,
            rgba(255, 255, 255, 0.65) 35%,
            rgba(255, 255, 255, 0.25) 70%,
            rgba(255, 255, 255, 0) 100%
        );
    }
}
