/**
 * m1.html ページの stylesheet を定義します。
 */
    /* メインコンテンツの非表示（スプラッシュ終了後に表示） */
    #main-content {
        text-align: center;
        font-size: 1.5rem;
    }

    body {
        margin: 0;
        padding: 0;
        font-family: 'Arial', sans-serif;
        /* overflow: hidden; */
        background: #fff337;
    }
    
    header {
        /* height: 56px; */
        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: 13px 11px 13px 15px;
            font-size: 10px;
            width: 100%;
            box-sizing: border-box;
            a {
                color: #fff;
            }
        }
    }
    /* スマホの縦向き（768px以下 & 縦向き） */
    @media (max-width: 768px) and (max-aspect-ratio: 1/1) {
        .site_logo {
            height: 24px;
        }  
       .red {
        font-size: 32px !important;
       }
        .frame_header {
            width: 96% !important;
            margin-top: 63px !important;
            margin-left: -16px !important;
        }
        .frame_item {
            span {
                font-size: 1rem;
            }
        }
        .frame_item_start {
            font-size: 20px !important;
            -webkit-text-stroke: none !important;
            color: #000 !important;
        }
        .frame_item_select {
            width: 80px !important;
            height: 80px !important;
            margin: 0px 8px 16px 8px !important;
        }
        .frame_item-result {
            img {
                width: 80% !important;
            }
        }
        .frame_item_header {
            min-width: 80% !important
        }

        .frame_item_header.answer {
            margin-top: 0px !important;
            min-width: 90% !important;
        }
        .frame_item_title-ok,
        .frame_item_title-ng {
            font-size: 40px !important;
        }
        .frame_item-ok,
        .frame_item-ng {
            img {
                height: 30px !important;
            }
        }
        .frame_item_subtitle {
            font-size: 32px !important;
        }
       .virus {
            width: 50px !important;
            height: 50px !important;
       }
       .virus1 {
            top: -30px !important;
            left: 0px !important;
        }
        .virus2 {
            top: -10px !important;
            right: -20px !important;
        }
        .virus3 {
            bottom: 0px !important;
            right: 0px !important;
        }
        .frame_item_start.last-1st {
            margin-bottom: 8px !important;
        }
        .frame_item_start.last-2nd {
            margin-top: 8px !important;
        }
    }

    /* PCやタブレットの横向き（769px以上 or 横向き） */
    @media (min-width: 769px), (min-aspect-ratio: 1/1) {
       
    
    }
    section#m1 {
        height: calc(100vh - 228px);
        text-align: center;
        position: relative;
        padding: 50px 0 200px;
        overflow-x: hidden;
        .frame_header {
            width: calc(100% - 48px);
            max-width: 520px;
            margin-top: 16px;
            /* margin-bottom: -16px; */
        }
        .frame_body {
            position: relative;
            border: 4px solid #019e40ff;
            border-radius: 16px;
            width: calc(100% - 32px);
            max-width: 900px;
            margin: 50px auto 0;
            background: #fff;
            font-size: 20px;
        }
        #q0 {
            display: block;
        }
        .frame_item {
            display: none;
            padding: 16px;
            font-weight: bold;
            .frame_item_header {
                width: 40%;
                min-width: 280px;
                z-index: 200;
                display: inline-block;
            }
            .frame_item_header.question {
                width: 10% !important;
                min-width: 80px !important;
                margin-bottom: 16px;
            }
            .frame_item_header.answer {
                width: 15% !important;
                margin-top: 8px;
                min-width: 400px;
                /* min-width: 480px; */
            }
            .frame_item_subtitle {
                font-size: 40px;
                font-weight: bold;
                margin-top: 8px;
                img {
                    width: 40px;
                    margin: 0px 8px -4px 0px;
                }
            }
            .frame_item_start {
                background: yellow;
                font-size: 40px;
                font-weight: bold;
                border-radius: 32px;
                padding: 4px 16px;
                cursor: pointer;
                /* -webkit-text-stroke: 3px #000; */
                box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* 影を追加 */
                margin-top: 15px;
                margin-bottom: 10px;
                -webkit-text-stroke: none !important;
                color: #000 !important;
                line-height: 62px;
                margin-left: 16px;
            }
            .frame_item_select {
                width: 120px;
                height: 120px;
                background: #fff;
                border-radius: 4px;
                padding: 8px;
                vertical-align: bottom;
                cursor: pointer;
                border: none; /* 枠線をなくす */
                margin: 0px 16px 32px 16px;
                box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.5); /* 影をつける */
                img {
                    width: calc(100% - 16px);
                    height: calc(100% - 16px);
                }
            }
            .frame_item_select:hover {
                transform: scale(1.1);
            }
            .frame_item_start:hover {
                transform: scale(1.1);
            }
            .red {
                color: red;
            }
            span {
                vertical-align: bottom;
                line-height: 2;
            }
            .frame_item_title-ok {
                font-size: 50px;
                font-weight: bold;
                /* padding-top: 40px; */
                color: red; /* 文字色 */
                text-shadow:
                    -2px -2px 0 #fff, 
                    2px -2px 0 #fff, 
                    -2px 2px 0 #fff, 
                    2px 2px 0 #fff; /* 文字の周りに黒枠 */
            }
            .frame_item_title-ng {
                font-size: 50px;
                font-weight: bold;
                color: #4d4398; /* 文字色 */
                text-shadow:
                    -2px -2px 0 #fff, 
                    2px -2px 0 #fff, 
                    -2px 2px 0 #fff, 
                    2px 2px 0 #fff; /* 文字の周りに黒枠 */
            }
        }
        .frame_item-ok {
            background: #fff;
            border-radius: 16px;
            img {
                height: 40px;
            }
        }
        .frame_item-ng {
            background: #fff;
            border-radius: 16px;
            img {
                height: 40px;
            }
        }
        .frame_item-result {
            img {
                width: 28%;
                margin: 0 auto 0px;
            }

            .frame_item_start {
                background: yellow;
                font-size: 20px;
                font-weight: bold;
                border-radius: 32px;
                padding: 0px 32px;
                cursor: pointer;
                /* -webkit-text-stroke: 1px #000; */
                color: #000;
                box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* 影を追加 */
                margin-top: 15px;
                margin-bottom: 15px;
            }
        }

        .virus {
            position: absolute;
            display: block;
            width: 100px; /* 画像サイズ */
            height: 100px;
            z-index: 100;
        }
    }

    footer {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 102;
        width: 100%;
        background: #005f2f;
        display: flex;
        display: -webkit-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        .copyright {
            color: #fff;
            font-size: 12px;
            line-height: 1.5;
        }
        .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 (max-width: 768px) {
        footer {
            .copyright {
                font-size: 10px !important;
            }
            .footer-links {
                span {
                    font-size: 9px !important;
                }
            }
        }
    }

    .virus1 {
        top: -30px;
        left: -50px;
    }
    .virus2 {
        top: -100px;
        right: -50px;
    }
    .virus3 {
        bottom: 0px;
        right: 0px;
    }



    @keyframes vibration {
        0% { transform: translate(0, 0); }
        25% { transform: translate(-2px, 2px) rotate(-1deg); }
        50% { transform: translate(2px, -2px) rotate(1deg); }
        75% { transform: translate(-1px, -1px) rotate(-0.5deg); }
        100% { transform: translate(1px, 1px) rotate(0.5deg); }
    }
@media (min-width: 768px) {
    header .site_logo {
        height: 40px;
    }  
    header .header_row_top {
        font-size: 18px;
    }
    section#m1 {
        height: calc(100vh - 170px);
        padding: 0;
    }
    .foot_link_list {
        bottom: 42px;
    }
    .copyright br {
        display: none;
    }
    section#m1 .frame_body {
        margin: auto;
    }
}
#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;
    }
}
#story_backdrop {
    position: fixed;
    top: 0;
    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;
}
.m1_frame {
    width: 92%;
    height: auto;
}
@media (min-width: 768px) {
    .m1_frame {
        width: 510px;
    }
}