/**
 * m2.html ページの stylesheet を定義します。
 */
    /* メインコンテンツの非表示（スプラッシュ終了後に表示） */
    #main-content {
        /* padding: 0 0 100px; */
        text-align: center;
        font-size: 1.5rem;
    }
  
    body {
        margin: 0;
        padding: 0;
        font-family: 'Arial', sans-serif;
        /* overflow: hidden; */
        background: #8cb7f7;
    }

    .site_logo {
        height: 50%;
    }
    
    #hint_backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    .hint_container {
        display: none;
        position: absolute;
        width: 200px;
        min-width: 320px;
        z-index: 1000;
        display: block;
        background: #fff;
        padding: 16px;
        border: 4px solid #000;
        border-radius: 8px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        img {
            width: 100%;
        }
    }
    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;
            }
        }
    }

    .m2_frame_btns {
        display: flex;
        display: -webkit-flex;
        justify-content: center;
        /* margin-top: -16px; */
        img {
            width: 190px;
            padding: 8px;
            cursor: pointer;
        }
        img:hover {
            transform: scale(1.1);
        }
    }
    .row.hint {
        font-size: 18px;
    }

    /* スマホの縦向き（768px以下 & 縦向き） */
    @media (max-width: 768px) and (max-aspect-ratio: 1/1) {

        .row.hint {
            font-size: 10px;
        }
        section#m2 {
            border: none !important;
        }
        .m2_frame_btns {
            img {
                width: 106px;
                padding: 5px;
            }
        }
        .site_logo {
            height: 24px;
        }
        .left, .right {
            padding: 8px  !important;
            gap: 8px !important;
            .checkmark {
                width: 15px !important;
                height: 15px !important;
                font-size: 20px !important;
            }
            .custom-checkbox input:checked + .checkmark::after {
                left: -6px !important;
                top: -8px !important;
            }
            .row {
                margin-bottom: 8px;
                img {
                    width: 72% !important;
                }
            }
        }
        .red {
         font-size: 32px !important;
        }
         .frame_header {
             width: 100% !important;
             margin-top: 48px !important;
         }
         .frame_item {
             span {
                 font-size: 1rem;
             }
         }

         .frame_item-ok,
         .frame_item-ng {
             img {
                 height: 22px !important;
             }
        }
         .frame_item_start {
             font-size: 20px !important;
             -webkit-text-stroke: none !important;
             color: #000 !important;
         }
         .frame_item_select {
             margin: 0px 8px 16px 8px !important;
             font-size: 30px !important;
         }
         .frame_item-result {
            padding: 24px 16px;
            span {
                font-weight: bold;
                -webkit-text-stroke: 1px #000;
            }
             img {
                 /* width: 80% !important; */
                 width: 58px !important;
                 position: absolute;
                 left: 0 !important;
                 bottom: 0 !important;
             }
         }
         .frame_item_header {
             min-width: 100% !important;
         }
         .frame_item_header.question {
            width: 100% !important;
         }
 
         .frame_item_header.answer {
             margin-top: 0px !important;
             min-width: 90% !important;
         }
         .frame_item_title-ok,
         .frame_item_title-ng {
            padding-top: 16px !important;
            font-size: 32px !important;
         }
         .frame_item_subtitle {
             font-size: 32px !important;
         }
        .virus {
             width: 50px !important;
             height: 50px !important;
        }
        .virus1 {
             top: -8px !important;
             left: -8px !important;
         }
         .virus2 {
             top: -10px !important;
             right: -20px !important;
         }
         .virus3 {
             bottom: 0px !important;
             right: 0px !important;
         }

        #m2r1, #m2r2, #m2r3 {
            font-size: 50px !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#m2 {
        /* height: calc(100vh - 228px); */
        margin: 0 auto;
        max-width: 1000px;
        box-sizing: border-box;
        text-align: center;
        /* background: #8cb7f7;
        border: 14px solid #7f391f; */
        position: relative;
        padding: 50px 0 200px;
        overflow: hidden;
        .frame_header {
            width: calc(100% - 48px);
            max-width: 560px;
            margin-top: 0px;
            margin-bottom: 16px;
        }
        .frame_body {
            position: relative;
            border: 4px solid #1e69d9;
            border-radius: 16px;
            width: calc(100% - 32px);
            max-width: 900px;
            margin: auto;
            background: #fff;
            font-size: 20px;
        }
        #q0 {
            display: block;
        }
        .frame_item {
            display: none;
            font-weight: bold;
            .right {
                display: flex;
                display: -webkit-flex;
                flex-direction: column;
                justify-content: center; /* 縦に等分配置 */
                gap: 16px;
                .checkmark {
                    width: 30px;  /* 幅を大きくする */
                    height: 30px; /* 高さを大きくする */
                    display: inline-block;
                    border: 6px solid #333;  /* 枠線をさらに太くする */
                    border-radius: 5px;
                    position: relative;
                    background-color: white;
                    font-family: 'Architects Daughter', cursive; /* 手書き風フォント */
                    font-size: 32px; /* チェックマークのサイズを調整 */
                    text-align: center;
                    line-height: 28px; /* 中央に配置 */
                    transition: all 0.2s;
                }
                .checkmark:hover {
                    transform: scale(1.1);
                }
                
                .custom-checkbox {
                    cursor: pointer;
                    margin-right: 8px;
                    input[type="checkbox"] {
                        display: none;
                    }
                }
                .custom-checkbox input:checked + .checkmark::after {
                    content: "✓";
                    color: #333;
                    position: absolute;
                    left: -2px; /* 位置を調整 */
                    top: 0px;
                    font-size: 36px; /* チェックマークのサイズを合わせる */
                }
                
                img {
                    width: 50%;
                }
            }
  
            .frame_item_header {
                width: 40%;
                margin-top: 16px;
                min-width: 100%;
                z-index: 200;
                display: inline-block;
            }
            .frame_item_header.question {
                width: 10% !important;
            }
            .frame_item_header.answer {
                width: 15% !important;
                min-width: 480px;
                min-width: 90%;
            }
            .frame_item_subtitle {
                font-size: 40px;
                font-weight: bold;
                margin-top: 8px;
            }
            .frame_item_start, .frame_item_select {
                background: #00A95F;
                font-size: 30px;
                font-weight: bold;
                border-radius: 32px;
                padding: 0px 32px;
                cursor: pointer;
                color: #000;
                box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* 影を追加 */
                margin-top: 15px;
                margin-bottom: 15px;
                line-height: 62px;
            }
            .frame_item_select:hover {
                transform: scale(1.1);
            }
            .frame_item_start:hover {
                transform: scale(1.1);
            }
            .red {
                color: red;
            }
            span {
                vertical-align: bottom;
            }
            .frame_item_title-ok {
                font-size: 56px;
                font-weight: bold;
                padding-top: 32px;
                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: #F7C5DB; */
            background: #fff;
            border-radius: 16px;
            img {
                height: 32px;
                vertical-align: top;
                margin-top: 6px;
            }
        }
        .frame_item-ng {
            /* background: #CAE9FA; */
            background: #fff;
            border-radius: 16px;
            img {
                height: 32px;
                vertical-align: top;
                margin-top: 6px;
            }
        }
        .frame_item-result {

            padding: 16px;
            font-size: 32px;
            span {
                font-weight: bold;
                -webkit-text-stroke: 1px #000;
            }
                img {
                    /* width: 80% !important; */
                    width: 58px !important;
                    position: absolute;
                    left: 56px;
                    bottom: 0;
                }

            img {
                width: 43%;
                margin: 0 auto 0px;
            }

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

            #m2r1 {
                font-size: 80px;
                font-weight: bold;
                padding-top: 40px;
                color: rgb(255, 0, 93); /* 文字色 */
                text-shadow:
                    -2px -2px 0 #000, 
                    2px -2px 0 #000, 
                    -2px 2px 0 #000, 
                    2px 2px 0 #000; /* 文字の周りに黒枠 */
            }
            #m2r2 {
                font-size: 80px;
                font-weight: bold;
                padding-top: 40px;
                color: rgb(255, 68, 0); /* 文字色 */
                text-shadow:
                    -2px -2px 0 #000, 
                    2px -2px 0 #000, 
                    -2px 2px 0 #000, 
                    2px 2px 0 #000; /* 文字の周りに黒枠 */
            }
            #m2r3 {
                font-size: 80px;
                font-weight: bold;
                padding-top: 40px;
                color: rgb(255, 123, 0); /* 文字色 */
                text-shadow:
                    -2px -2px 0 #000, 
                    2px -2px 0 #000, 
                    -2px 2px 0 #000, 
                    2px 2px 0 #000; /* 文字の周りに黒枠 */
            }
        }

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

    footer {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 102;
        width: 100%;
        /* height: 40px; */
        /* padding: 0 16px; */
        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: 16px;
        right: 0px;
    }

    .overlay_popup {
        position: absolute;
        top: 50%;
        left: 50%;
        background: #fff;
        transform: translate(-50%, -50%);
        border-radius: 8px;
        border: 6px solid #000;
        display: none;
        max-width: 85%;
        z-index: 1000;
        .overlay_header {
            margin: 0px 8px;
            text-align: right;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            align-items: center;
            .overlay_title {
                height: 32px;
                width: auto;
            }
            .overlay_close {
                width: 50px;
                cursor: pointer;
            }
            .overlay_close:hover {
                transform: scale(1.1);
            }
        }
        .overlay_content {
            margin: 0px 16px 16px 16px;
            padding: 8px;
            img {
                border-radius: 8px;
                border: 4px solid #000;
                width: 90%;
                padding: 5%;
            }
        }
    }



    @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); }
    }

    /** 共通スタイル */
    .row {
        display: flex;
        display: -webkit-flex;
        justify-content: center;
        align-items: center;
    }
    
    .left, .right {
        /* width: 50%; */
        padding: 20px 20px 0 20px;
        text-align: center;
    }
    .left {
        width: 37%;
    }
    .right {
        width: 40%;
    }
    
    .full {
        width: 100%;
        /* padding: 20px; */
        text-align: center;
    }

@media (min-width: 768px) {
    section#m2 {
        height: calc(100vh - 174px);
        margin: 16px auto 0;
        padding: 0 0 100px;
        overflow: visible;
    }
    .copyright br {
        display: none;
    }
    section#m2 .frame_item span {
        font-size: 20px;
    }
    header .site_logo {
        height: 40px;
    }
    header .header_row_top {
        font-size: 18px;
    }
}
#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;
}

.m2_frame_simple {
    width: 92%;
    height: auto;
}
@media (min-width: 768px) {
    .m2_frame_simple {
        width: 510px;
    }
}