@charset 'utf-8';

.mv {
    background-color: antiquewhite;
    padding: 40px;
}
.mv .inner {
    max-width: 1000px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mv .left {
    max-width: 41%;
    width: 800px;
    padding: 15px;
    border-radius: 15px;
    background-color: #fff;
    transition: 0.7s;
}
.mv .right {
    display: flex;
    display: none;
    align-items: center;
    justify-content: center;
    width: 59%;
    font-size: 40px;
    font-weight: 600;
}
.mv .right h2 {
    color: #4B4B4B;
}
.js-animation {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: calc(100%* 0.691);
}

/* 左側の画像 */
.left img {
    width: 100%;
    height: auto;
}

/* 右側のテキスト */
.right h2 {
    font-size: 44px;
    line-height: 1.5;
    font-weight: bold;
    color: #333;
    overflow: hidden;
}

/* 1行ずつスライドさせるマスク */
.line-mask {
    display: inline-block;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ラインエフェクト */
.line-mask::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: -1;
    background: #FDEC4E;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease-out;
}

/* 各テキストの初期状態 */
.text {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* アニメーションを適用するクラス */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.line-animate::after {
    transform: scaleX(1) !important;
}
.service_img_box img {

}
.js-animation {    
    position: relative;
    width: 100%; /* 画像のサイズに合わせる */
    height: auto;
}

.animated-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: opacity 1.5s ease-in-out;
}
.animated-frame {
    z-index: 11;
}
#img8 {
    opacity: 1; /* 8枚目（モニタのみ）は常に表示 */
    z-index: 9;
}

#img7 {
    opacity: 1; /* 7枚目（人物あり）も最初は表示 */
    z-index: 10;
}
@media screen and (max-width:1023px) {
    .mv .inner {
        flex-wrap: wrap;
    }
    .right h2 {
        font-size: 24px;
    }
}
@media screen and (max-width:767px) {
    .mv {
        height: calc(100vh - 90px);
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .mv .inner {
        width: 100%;
    }
    .mv .left, .mv .right {
        max-width: none;
        width: 100%!important;
        height: auto!important;
    }
    .mv .left {
        position: absolute;
        width: calc(100vw - 30px) !important;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
    }
    .mv .right {
        top: calc(((100% - ((100vw - 60px)* 0.6909 + 30px + 155px))) / 2 + ((100vw - 60px)* 0.6909 + 30px + 25px));
        position: absolute;
    }
}