/**
 * index.html ページの stylesheet を定義します。
 */

    @keyframes float {
        0% { transform: translateY(0); }
        50% { transform: translateY(-8px); } /* 上に5px移動 */
        100% { transform: translateY(0); }
    }
    
    .site_logo {
        height: 24px;
    }

    /* スプラッシュ画面 */
    #splash {
        position: fixed;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        display: flex;
        display: -webkit-flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        opacity: 0;
    }
    
    /* 画像コンテナ */
    .image-container {
        position: relative;
        width: 100px;
        height: 100px;
    } 
    
    /* 画像の基本スタイル */
    .splash-img {
        position: absolute;
        width: 100px;
        height: 100px;
        opacity: 1;
        animation: explode 1.5s ease-out forwards;
    }
    .splash-logo {
        width: auto;
        height: 120px;
        transform: translateX(-50%);
    }
    
    /* 飛び散る方向を個別に設定 */
    .img1 { animation-delay: 0s; }
    .img2 { animation-delay: 0.05s; }
    .img3 { animation-delay: 0.1s; }
    .img4 { animation-delay: 0.15s; }
    .img5 { animation-delay: 0.2s; }
    .img6 { animation-delay: 0.25s; }
    .img7 { animation-delay: 0.3s; }
    .img8 { animation-delay: 0.35s; }
    .img9 { animation-delay: 0.35s; }

    /* スプラッシュ画面のフェードアウト */
    .fade-out {
        animation: fadeOut 1s ease-out forwards;
    }

    @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
    }
    
    @keyframes fadeOut {
        from {
        opacity: 1;
        }
        to {
        opacity: 0;
        visibility: hidden;
        }
    }
  

    /* アニメーション */
    @keyframes explode {
    from {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(var(--x), var(--y)) scale(0.5);
        opacity: 0;
    }
    }
    
    /* 画像ごとに飛び散る方向を調整 */
    .img1 { --x: -500px; --y: -500px; } /* 左上 */
    .img2 { --x: 0px; --y: -500px; }  /* 上 */
    .img3 { --x: 500px; --y: 500px; }  /* 右上 */
    .img4 { --x: 600px; --y: 0px; }   /* 右 */
    .img5 { --x: 500px; --y: -500px; } /* 右下 */
    .img6 { --x: 0px; --y: 500px; }  /* 下 */
    .img7 { --x: -500px; --y: 500px; }  /* 左下 */
    .img8 { --x: -600px; --y: 0px; }   /* 左 */
    .img9 { --x: -600px; --y: -300px; } /* 左左上 */

    /* メインコンテンツのフェードイン */
    .fade-in-content {
        animation: fadeIn 1.0s ease-in-out forwards;
    }
    
    
    /* メインコンテンツの非表示（スプラッシュ終了後に表示） */
    #main-content {
        display: none;
        text-align: center;
        font-size: 1.8rem;
        opacity: 0;
        /* margin-top: 20%; */
        .virus {
            position: absolute;
            display: block;
            width: 100px; /* 画像サイズ */
            height: 100px;
            z-index: 100;
        }
        .virus7 {
            bottom: 200px;
            right: 200px;
            /* animation: vibration 0.1s infinite alternate ease-in-out; */
        }
        .virus9 {
            top: 320px;
            right: 50px;
        }
    }

  
    #story_backdrop {
        position: absolute;
        left: 0;
        background: rgba(0, 0, 0, 0.6);
        width: 100%;
        height: 100vh;
        z-index: 999;
        display: none;
    }

    .overlay_close {
        width: 50px;
        height: 59px;
        cursor: pointer;
    }


    #story {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        padding: 16px;
        border-radius: 8px;
        z-index: 1000;
        text-align: right;
        img.overlay_story {
            min-width: 320px !important;
            width: 100%;
            max-width: 640px !important;
            height: auto;
        }
    }

    body {
        margin: 0;
        padding: 0;
        font-family: 'Arial', sans-serif;
    }
    header {
        background: #fff;
        display: flex;
        display: -webkit-flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        .site_logo {
            height: 24px;
        }
        .header_row_top {
            width: 100%;
            padding: 8px 11px;
            display: flex;
            justify-content: flex-end !important;
            background: #005F2F;
            font-size: 12px;
            box-sizing: border-box;
            a{
                color: #fff;
            }
        }
        .header_row_bottom {
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            padding: 7px;
            font-size: 10px;
            width: 100%;
            box-sizing: border-box;
            a {
                color: #fff;
            }
        }
    }
  /* 画面幅が768px以下（スマホサイズ）のとき */
    @media (max-width: 420px) {
        section#top {
            gap: 2px !important;
        }
        section#top > .btn_wrapper:last-of-type {
            margin-bottom: 16px !important; /* お好みの値に変更 */
        }
        /* .btn_wrapper {
            height: 55px !important;
        } */
        footer {
            .footer-links {
                span {
                    font-size: 7px !important;
                }
            }
        }
    }
    @media (min-width: 421px) and (max-width: 768px) {
        section#top > .btn_wrapper:last-of-type {
            margin-bottom: 48px !important; /* お好みの値に変更 */
        }
    }
     /* 画面幅が768px以下（スマホサイズ）のとき */
     @media (max-width: 768px) {

        .site_logo {
            height: 40px;
        }

        section#top {
            background-size: contain !important;       
            .btn_wrapper {
                /* margin: 0 !important; */
                margin-bottom: 4px !important;
            }
            
            .virus {
                display: none !important;
            }
        }
    }

    section#top {
        overflow: hidden;
        padding: 117% 10px 150px;
        background: #FFF337 url('../assets/top_bg_sp.jpg') no-repeat top center/100% auto;
        /* background-size: cover; */
        display: flex;
        display: -webkit-flex;
        flex-wrap: wrap;
        /* justify-content: center; 水平方向の中央揃え */
        align-items: flex-end; /* 下方向に揃える */
        gap: 0 10px; /* 画像の間に余白を入れる */
        justify-content: space-between;
        align-content: flex-end;
        background-size: 100% auto;
        background-position: top;

        img {
            /* width: calc(100vw / 4); */
            width: auto;
            height: 48px;
        }
        .btn_wrapper {
            padding: 8px 16px;
            margin-bottom: 10px;
            border-radius: 6px;
            cursor: pointer;
            border: 5px solid #000;
            animation: float 1.5s infinite ease-in-out; /* 1.5秒周期でふわふわ */
            transition: background-color 0.3s;
            flex-grow: 1;
            box-sizing: border-box;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            text-align: center;
            height: 55px;
            justify-content: center;
            cursor: pointer;
        }
        .btn_wrapper:hover {
            box-shadow: 0 0 100px #fff; /* 青い光を追加 */
            transition: all .3s ease-in-out;
        }
        .btn_wrapper_m1 {
            background: #fff337;
            animation-delay: 0s; /* 通常開始 */
            transition: all .3s ease-in-out;
        }
        .btn_wrapper_m2 {
            background: #00B0EC;
            animation-delay: 0.5s; /* 0.5s開始 */
        }
        .btn_wrapper_m3 {
            background: #F7C5DB;
            animation-delay: 1s; /* 1.0s開始 */
            font-weight: bold;
            color: #000;
            
        }
        .btn_wrapper_m4 {
            background: #e9526b;
            animation-delay: 1.5s; /* 1.0s開始 */
            img {
                height: 38px;
            }
        }
        .btn_wrapper_story {
            background: orange;
            animation-delay: 1s; /* 1.0s開始 */
            font-weight: bold;
            color: #000;
            
        }
    }
.btn_wrapper_story {
    width: 100%;
    margin: 20px 0 0;
}
section#top .btn_wrapper_story img {
    height: 22px;
}
section#top .btn_wrapper_m1 img {
    height: 35px;
}
section#top .btn_wrapper_m2 img {
    height: 35px;
}
section#top .btn_wrapper_m3 img {
    height: 35px;
}
section#top .btn_wrapper_m4 img {
    height:30px;
}
.mv_txt {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: clamp(14px, 3.125vw, 24px);
    font-family: "heisei-maru-gothic-std", sans-serif;
}
@media (min-width: 576px) {
    section#top {
        padding: 83% 20px 0;
        background: #FFF337 url('../assets/top_bg_tb.jpg') no-repeat top center/100% auto;
    }
    .btn_wrapper_m1 {
    width: calc(50% - 10px / 2);
    }
    .btn_wrapper_m2 {
        width: calc(50% - 10px / 2);
    }
    .btn_wrapper_m3 {
        width: calc(50% - 10px / 2);
    }
    .btn_wrapper_m4 {
        width: calc(50% - 10px / 2);
    }
}
@media (min-width: 768px) {
    header .header_row_top {
        font-size: 18px;
    }
    section#top .btn_wrapper {
        height: 70px;
    }
}
@media (min-width: 1024px) {
    section#top {
        height: calc(100vh - 136px);
        padding: 0 20px;
        gap: 0 16px;
        background: url('../assets/top_bg.png') no-repeat top center/100% auto;
    }
    .btn_wrapper {
        padding: 8px 16px;
        margin-bottom: 16px;
        border-radius: 8px;
        border: 6px solid #000;
        height: 80px;
    }
    .btn_wrapper_story {
        width: calc(33.333% - ((16px * 2) / 3));
        margin: 0;
    }
    .btn_wrapper_m1 {
        width: calc(33.333% - ((16px * 2) / 3));
    }
    .btn_wrapper_m2 {
        width: calc(33.333% - ((16px * 2) / 3));
    }
    .btn_wrapper_m3 {
    width: calc(50% - 16px / 2);
    }
    .btn_wrapper_m4 {
        width: calc(50% - 16px / 2);
    }
    section#top .btn_story img {
    height: 33px;
    }
    section#top .btn_wrapper_m1 img {
        height: 53px;
    }
    section#top .btn_wrapper_m2 img {
        height: 53px;
    }
    section#top .btn_wrapper_m3 img {
        height: 53px;
    }
    section#top .btn_wrapper_m4 img {
        height: 45px;
    }
    .mv_txt {
        display: none;
    }
}
@media (min-width: 1440px) {
    .btn_wrapper_story {
        width: auto;
    }
    .btn_wrapper_m1 {
        width: auto;
    }
    .btn_wrapper_m2 {
        width: auto;
    }
    .btn_wrapper_m3 {
        width: auto;
    }
    .btn_wrapper_m4 {
        width: auto;
    }
}

    footer {
        position: fixed;
        width: 100%;
        bottom: 0;
        background: #005f2f;
        display: flex;
        display: -webkit-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .copyright {
            color: #fff;
            font-size: 12px;
        }
        .footer-links {
            display: flex;
            display: -webkit-flex;
            gap: 16px;
            justify-content: center;
            width: 90%;
            span {
                flex: 1;
                font-size: 12px;
                a { color: #fff; }
            }
        }
    }
     /* 画面幅が768px以下（スマホサイズ）のとき */
    @media (min-width: 421px) and (max-width: 768px) {
        footer {
            .copyright {
                font-size: 10px !important;
            }
            .footer-links {
                span {
                    font-size: 9px !important;
                }
            }
        }
        /* .indicator {
            font-size: 8px !important;
            padding: 6px !important;
            top: 58px !important;
            left: 8px !important;
        } */
    }

    .indicator {
        /* background: #fff;
        font-size: 11px;
        font-weight: bold;
        padding: 10px 16px 5px;
        border: 2px solid #000;
        border-radius: 32px; */
        position: absolute;
        top: 72px;
        left: 16px;
        z-index: 100;
        cursor: pointer;
        /* transition: all .3s ease-in-out; */
    }
    section#top .indicator img {
        width: 178px;
    }
    /* .indicator:hover {
        transform: scale(1.05);
        transition: all .3s ease-in-out;
    } */
    @media (min-width: 768px) {
        .indicator {
            font-size: 18px;
        }
        section#top .indicator img {
            width: 250px;
        }
    }
    
.nav_btn {
    top: 68px;
}
@media (min-width: 768px) {
    .copyright br {
        display: none;
    }
    .indicator {
        top: 70px;
    }
    header .site_logo {
        height: 40px;
    }
    .nav_btn {
        top: 55px;
    }
}