/*======================
    FV（新バージョン - 2カラムレイアウト）
    新しいクラス名（_new）を使用して既存のFVと完全に分離
    左側：FVコンテンツ、右側：インスタグラム
    
    注意：このCSSファイルは既存のスライダー（.slider）には影響しません
    すべてのスタイルは新しいクラス名（_new付き）に限定されています
======================*/

/* 新しいFVレイアウト専用スタイル */
.top_fv_new_layout{
    position: relative;
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 1304px;
    height: 100%;
    padding: 0;
}

/* FV全画面レイアウトのコンテナ */
.top_fv_wrap_new{
    position: relative;
    margin: 0 auto;
    padding: 0;
    height: 100vh;
    min-height: 1304px;
    width: 100%;
}

/* FVコンテンツ：全画面 */
.fv_content_new{
    height: 100%;
    width: 100%;
    min-height: 650px;
    position: relative;
    display: block;
    background-image: url(../img/top_fv_animation.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* 2カラムレイアウト時のニュースセクション調整 */
.fv_content_new .top_news{
    position: absolute;
    left: calc(70 / 1400 * 100vw);
    width: clamp(675px, 77vw, 1000px);
    top: calc(658 / 1400 * 100vw);
    box-shadow: 0px 5px 15px 0px rgba(134, 134, 134, 0.35);
}

.fv_content_new .top_news_inn{
    width: 100%;
    max-width: 100%;
    height: auto;
    box-shadow: none;
}

/* スマホ用ニュースセクション（新しいFV使用時） */
.fv_content_new .top_news_sp{
    display: none;
}

/* 右側：インスタグラム（absoluteで浮かせる） */
.fv_instagram.fv_instagram_new,
.fv_instagram_new{
    width: clamp(150px, 14vw, 200px);
    max-width: clamp(150px, 14vw, 200px);
    min-width: clamp(150px, 14vw, 200px);
    padding: 109px 1.5% 40px 1.5%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    right: 0;
    height: 88%;
    display: block;
    box-sizing: border-box;
    z-index: 1;
}


/*------------------------------------------*/
/*----- メディアクエリ: 1400px以上（PCサイズ） -----*/
@media screen and ( min-width: 1401px ){
    .fv_instagram_new{
        width: clamp(150px, 14vw, 200px);
        max-width: clamp(150px, 14vw, 200px);
        min-width: clamp(150px, 14vw, 200px);
        padding: 100px 40px 40px 40px;
    }
}

.fv_instagram_inn_new{
    width: 100%;
}

/* インスタグラム全体のアニメーションを無効化（最初から表示） */
.fv_instagram_new,
.fv_instagram_inn_new,
.fv_instagram_feed_wrap,
.fv_instagram_feed_3items_wrap{
    opacity: 1;
    animation: none;
    transition: none;
}

.fv_instagram_new *,
.fv_instagram_inn_new *{
    opacity: 1;
    animation: none;
    transition: none;
}

.fv_instagram_new .fv_instagram_title{
    margin-bottom: 25px;
    text-align: center;
}

.fv_instagram_new .fv_instagram_title_ja{
    font-size: 24px;
    font-weight: 700;
    color: var(--deep-red);
    margin: 0 0 8px 0;
}

.fv_instagram_new .fv_instagram_title_en{
    font-size: 14px;
    color: var(--title-en);
    margin: 0;
}

.fv_instagram_new .fv_instagram_link{
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: var(--link-black);
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: clamp(10px, 1vw, 16px);
}

.fv_instagram_new .fv_instagram_link:hover{
    opacity: 0.8;
}

/* インスタグラムフィードのスタイル調整（FV横：縦並び3件） */
.fv_instagram_new #sb_instagram,
.fv_instagram_inn_new #sb_instagram{
    margin: 0;
    opacity: 1;
    animation: none;
    transition: none;
}

/* グリッドレイアウトを1カラム（縦並び）に変更 */
.fv_instagram_new #sb_instagram #sbi_images,
.fv_instagram_inn_new #sb_instagram #sbi_images{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fv_instagram_new #sb_instagram .sbi_item,
.fv_instagram_inn_new #sb_instagram .sbi_item{
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
    opacity: 1;
    animation: none;
    transition: none;
    visibility: visible;
    box-sizing: border-box;
}

/* FV横のインスタグラム：5番目以降のアイテムを非表示（4件のみ表示） */
.fv_instagram_feed_3items #sb_instagram #sbi_images .sbi_item:nth-child(n+5),
.fv_instagram_feed_3items_wrap #sb_instagram #sbi_images .sbi_item:nth-child(n+5),
.fv_instagram_feed_3items .sbi_item:nth-child(n+5),
.fv_instagram_feed_3items_wrap .sbi_item:nth-child(n+5){
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    opacity: 0;
}

/* インスタグラム画像のスタイル */
.fv_instagram_new #sb_instagram .sbi_item img{
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-sizing: border-box;
}

.fv_instagram_new #sb_instagram .sbi_photo_wrap{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fv_instagram_new #sb_instagram .sbi_photo{
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ::afterを無効化（デフォルト） */
.top_fv_new_layout::after{
    display: none;
}

/* top_fv_animationクラスが付いたら::afterを表示（既存と同じスタイル） */
.top_fv_new_layout.top_fv_animation::after{
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(-120 / 1980 * 100vw);
    width: 0;
    height: 0;
    border-style: solid;
    border-right: calc(1619 / 1980 * 100vw) solid transparent;
    border-left: calc(1619 / 1980 * 100vw) solid transparent;
    border-top: 0;
    border-bottom: 0 solid #fff;
    z-index: 0;
    animation: animationTriangle 0.8s ease-in-out forwards;
}

@keyframes animationTriangle{
    0%{
        border-bottom: 0 solid #fff;
    }
    40%{
        border-bottom: 0 solid #fff;
    }
    100%{
        border-bottom: calc(413 / 1980 * 100vw) solid #fff;
    }
}

.fv_content_new .fv_on_text_wrap{
    position: relative;
    top: 250px;
    left: calc(70 / 1400 * 100vw);
}

.fv_content_new .fv_on_text,
.fv_content_new .fv_on_text_bg{
    color: #fff;
}

.fv_content_new .fv_on_text{
    font-size: 60px;
    text-shadow: #000 1px 0 10px;
}

.fv_content_new .fv_on_text_bg{
    padding: 7px 0 7px 14px;
    display: inline-block;
    font-size: 35px;
    background-color: var(--link-black);
}

.fv_content_new .fv_on_text01{
    margin: 35px 0 20px;
}

.fv_content_new .top_sp_on,
.fv_content_new .fv_on_text02_sp{
    display: none;
}

/*- h2アニメーション -*/
.fv_content_new .fv_on_text_title{
    position: relative;
    height: auto;
    min-height: 1.45em;
    font-size: 60px;
    overflow: visible;
}

.fv_content_new .fv_on_text_title h2{
    position: relative;
    animation: animation 1s;
}

@keyframes animation{
    0%{
        opacity: 0;
        transform: translateY(20px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

/*------------------------------------------*/
/*----- メディアクエリ: 1400px -----*/
@media screen and ( max-width: 1400px ){
    .top_fv_new_layout{
        background-image: none;
        min-height: calc(1178 / 1400 * 100vw);
    }
    .top_fv_wrap_new{
        min-height: calc(1178 / 1400 * 100vw);
    }
    .fv_instagram_new{
        width: 350px;
        min-width: 350px;
        max-width: 350px;
        padding: calc(300 / 1400 * 100vw) 30px 30px 30px;
        position: absolute;
        top: 0;
        right: 0;
        height: auto;
    }
    .fv_content_new .top_news{
        left: calc(70 / 1400 * 100vw);
    }
    .fv_content_new .fv_on_text_wrap{
        top: calc(300 / 1400 * 100vw);
        left: calc(70 / 1400 * 100vw);
    }
    .fv_content_new .fv_on_text_title{
        font-size: calc(60 / 1400 * 100vw);
    }
    .fv_content_new .fv_on_text{
        font-size: calc(60 / 1400 * 100vw);
        text-shadow: #000 calc(1 / 1400 * 100vw) 0 calc(10 / 1400 * 100vw);
    }
    .fv_content_new .fv_on_text_bg{
        padding: calc(7 / 1400 * 100vw) 0 calc(7 / 1400 * 100vw) calc(14 / 1400 * 100vw);
        font-size: calc(35 / 1400 * 100vw);
    }
    .fv_content_new .fv_on_text01{
        margin: calc(35 / 1400 * 100vw) 0 calc(20 / 1400 * 100vw);
    }
}

/* ------------------------------------------*/
/*----- メディアクエリ: 1200px以下（右側Instagramを非表示） -----*/
/* ------------------------------------------*/
/*----- メディアクエリ: 1000px以下（タブレット） -----*/
@media screen and ( max-width: 1000px ){
    .fv_content_new .top_news{
        position: absolute;
        left: calc(70 / 1400 * 100vw);
        width: 74vw;
        max-width: 1000px;
        top: 55%;
        box-shadow: 0px 5px 15px 0px rgba(134, 134, 134, 0.35);
    }
    
    .fv_content_new .top_news_inn{
        width: 100%;
        max-width: 100%;
        height: auto;
        box-shadow: none;
    }
    
    .top_fv_new_layout.top_fv_animation::after{
        bottom: 0;
    }
    .fv_instagram.fv_instagram_new, .fv_instagram_new{
        padding: 58px 2% 40px 2%;
    }
}

/* ------------------------------------------*/
/*----- スマホ用 Instagram 横スライダー（デフォルトは非表示） -----*/
.fv_instagram_sp_slider{
    display: none;
}

/* ------------------------------------------*/
/*----- メディアクエリ: 765px以下（SP/タブレット） -----*/
@media screen and ( max-width: 765px ){
    /* A. 右カラムInstagramを完全に非表示 */
    .fv_instagram_new,
    .fv_instagram.fv_instagram_new{
        display: none !important;
    }
    
    /* FV全体の高さ固定を解除 */
    .top_fv_new_layout{
        height: auto;
        min-height: 600px;
    }
    .top_fv_wrap_new{
        height: auto;
        min-height: auto;
    }
    .fv_content_new{
        width: 100%;
        min-height: 600px;
    }
    
    /* newsの絶対座標を解除して通常配置へ（重なり対策） */
    .fv_content_new .top_news{
        position: relative;
        left: auto;
        top: 270px;
        transform: none;
        margin: 20px 0 0;
        max-width: 100%;
    }
    
    .fv_content_new .top_news_inn{
        width: 100%;
        max-width: 100%;
        height: auto;
        box-shadow: none;
    }
    
    /* メインテキストの絶対座標も調整 */
    .fv_content_new .fv_on_text_wrap{
        position: relative;
        top: 130px;
        left: auto;
        transform: none;
        padding: 20px;
    }
    
    /* メインテキストのフォントサイズ調整 */
    .fv_content_new .fv_on_text_title{
        font-size: calc(35 / 767 * 100vw);
    }
    .fv_content_new .fv_on_text{
        font-size: calc(35 / 767 * 100vw);
        text-shadow: #000 calc(1 / 767 * 100vw) 0 calc(10 / 767 * 100vw);
    }
    .fv_content_new .fv_on_text_bg{
        font-size: calc(25 / 767 * 100vw);
    }
    .fv_content_new .fv_on_text01{
        margin: calc(35 / 767 * 100vw) 0 calc(15 / 767 * 100vw);
    }
    
    /* スマホ用ニュースセクション表示 */
    .fv_content_new .top_news_sp{
        display: block;
        position: absolute;
        top: auto;
        bottom: 0;
        width: 100%;
        z-index: 1;
    }
    
    /* アニメーション調整 */
    .top_fv_new_layout.top_fv_animation::after{
        bottom: calc(-10 / 1980 * 100vw);
        animation: animationTriangle2 1.8s ease-in-out forwards;
    }
    @keyframes animationTriangle2{
        0%{
            border-bottom: 0 solid #fff;
        }
        40%{
            border-bottom: 0 solid #fff;
        }
        100%{
            border-bottom: calc(515 / 1980 * 100vw) solid #fff;
        }
    }
    
    /* ===== Instagram 横スライダー（765px以下で表示） ===== */
    .fv_instagram_sp_slider{
        display: block;
        background-color: #fff;
        padding: 30px 0 40px;
        margin-top: 16px;
        border-top: 1px solid #e0e0e0;
        position: relative;
        z-index: 1;
        top: -20px;
    }
    .fv_instagram_sp_slider_title{
        padding: 0 20px 24px;
    }
    .fv_instagram_sp_slider_title_text{
        padding: 0 20px;
        font-size: 26px;
        font-weight: 500;
        color: var(--deep-red);
        margin: 0;
    }
    .fv_instagram_sp_slider_wrap{
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0 0 16px;
    }
    .fv_instagram_sp_slider_wrap::-webkit-scrollbar{
        height: 4px;
    }
    .fv_instagram_sp_slider_wrap::-webkit-scrollbar-track{
        background: #f0f0f0;
    }
    .fv_instagram_sp_slider_wrap::-webkit-scrollbar-thumb{
        background: #ccc;
        border-radius: 2px;
    }
    .fv_instagram_sp_slider_container{
        display: flex;
        gap: 12px;
        padding: 0 20px;
        width: max-content;
    }
    .fv_instagram_sp_slider_container #sb_instagram{
        display: block;
        width: auto;
        margin: 0;
    }
    .fv_instagram_sp_slider_container #sb_instagram #sbi_images{
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: max-content;
        margin: 0;
    }
    /* カードサイズ */
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item{
        flex-shrink: 0;
        width: 70vw !important;
        max-width: 250px !important;
        height: 70vw !important;
        max-height: 250px !important;
        aspect-ratio: 1 / 1;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
        visibility: visible !important;
        box-sizing: border-box !important;
    }
    /* MV直下は最大4枚 */
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item:nth-child(n+5){
        display: none !important;
    }
    /* プラグインのスタイルを強制的に上書き */
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item > *{
        position: relative !important;
    }
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item img{
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        object-fit: contain !important;
        display: block !important;
        border-radius: 4px;
        position: relative !important;
    }
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item .sbi_photo_wrap{
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        aspect-ratio: 1 / 1;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        position: relative !important;
    }
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item .sbi_photo{
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        aspect-ratio: 1 / 1;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        position: relative !important;
    }
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item a{
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
    }
    /* キャプション、いいね数など不要な要素を非表示 */
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item .sbi_caption,
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item .sbi_likes,
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item .sbi_comments,
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item .sbi_username,
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item .sbi_follow_btn{
        display: none;
    }
    .fv_instagram_sp_slider_link{
        position: relative;
        display: block;
        max-width: 250px;
        width: 94%;
        height: 60px;
        line-height: 60px;
        color: #fff;
        text-align: center;
        background-color: var(--link-black);
        transition: all .3s;
        margin: 30px auto 0;
        text-decoration: none;
    }
    .fv_instagram_sp_slider_link:hover{
        background-color: var(--deep-red);
    }
}
/* ------------------------------------------*/
/*----- メディアクエリ: 500px -----*/
@media screen and ( max-width: 500px ){
    .top_fv_new_layout{
        height: auto;
    }
    .fv_instagram_new .fv_instagram_title_ja{
        font-size: 20px;
    }
    .top_fv_new_layout::after{
        left: calc(-65 / 500 * 100vw);
        bottom: calc(-35 / 500 * 100vw);
        display: none;
    }
    .top_fv_new_layout.top_fv_animation::after{
        bottom: calc(-15 / 500 * 100vw);
        animation: animationTriangle3 1.0s ease-in-out forwards;
        display: none;
    }
    @keyframes animationTriangle3{
        0%{
            border-bottom: 0 solid #fff;
        }
        40%{
            border-bottom: 0 solid #fff;
        }
        100%{
            border-bottom: calc(190 / 500 * 100vw) solid #fff;
        }
    }
    .fv_content_new .fv_on_text_wrap{
        top: calc(80 / 500 * 100vw);
    }
    .fv_content_new .fv_on_text_title{
        min-height: 2.9em;
        font-size: 30px;
    }
    .fv_content_new .fv_on_text{
        font-size: 30px;
    }
    .fv_content_new .fv_on_text02_pc{
        display: none;
    }
    .fv_content_new .fv_on_text_bg{
        padding: 6px 5px 6px 10px;
        font-size: 22px;
    }
    .fv_content_new .top_sp_on{
        display: block;
    }
    .fv_content_new .fv_on_text02_sp{
        display: inline-block;
    }
    .fv_content_new .fv_on_text01{
        margin: 20px 0 13px;
    }
    .fv_content_new .fv_on_text02_sp01{
        margin: 0 0 13px;
    }
    .top_news_link_sp::after{
        right: 20px;
    }
    .top_news_content_sp{
        padding: 20px 15px 20px 15px;
        flex-direction: column;
        height: auto;
        line-height: normal;
    }
    
    /* Instagram横スライダーのカードを小さく */
    .fv_instagram_sp_slider_container #sbi_images > .sbi_item{
        width: 56vw !important;
        max-width: 180px !important;
        height: 56vw !important;
        max-height: 180px !important;
    }
}
/* ------------------------------------------*/
/*----- メディアクエリ: 400px -----*/
@media screen and ( max-width: 400px ){
    .top_fv_new_layout{
        background-image: none;
        height: auto;
    }
    .fv_content_new{
        background-image: url(../img/top_fv_animation400.jpg);
    }
    .top_fv_new_layout::after{
        bottom: calc(0 / 400 * 100vw);
        left: calc(-290 / 400 * 100vw);
        width: 0;
        height: 0;
        border-style: solid;
        border-right: calc(585 / 400 * 100vw) solid transparent;
        border-left: calc(585 / 400 * 100vw) solid transparent;
        border-top: 0;
        display: none;
    }
    .top_fv_new_layout.top_fv_animation::after{
        animation: animationTriangle4 1.8s ease-in-out forwards;
        display: none;
    }
    @keyframes animationTriangle4{
        0%{
            border-bottom: 0 solid #fff;
        }
        40%{
            border-bottom: 0 solid #fff;
        }
        100%{
            border-bottom: calc(150 / 400 * 100vw) solid #fff;
        }
    }
    .fv_content_new .fv_on_text_wrap{
        top: 80px;
        /* top: calc(285 / 400 * 100vw); */
    }
}
/* ------------------------------------------*/
/*----- メディアクエリ: 375px -----*/
@media screen and ( max-width: 375px ){
    .top_fv_new_layout::after{
        bottom: calc(-15 / 375 * 100vw);
        display: none;
    }
}
/* ------------------------------------------*/
/*----- メディアクエリ: 350px -----*/
@media screen and ( max-width: 350px ){
    .top_fv_new_layout::after{
        bottom: calc(-30 / 350 * 100vw);
        display: none;
    }
}
/* ------------------------------------------*/
/*----- メディアクエリ: 300px -----*/
@media screen and ( max-width: 300px ){
    .top_fv_new_layout::after{
        bottom: calc(-40 / 300 * 100vw);
        display: none;
    }
}
