*{
    margin: 0px;
}
body , html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    background-color: antiquewhite;
    display: flex;
    justify-content: center;
    align-items: center;
}
main {
    background-color: white;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.button {
    cursor: pointer;
}
/* フォント */
@font-face {
	font-family: 'gameFont';
	src: url(/fonts/TsukimiRounded-SemiBold.ttf);
    /* https://sankoufont.com/japanese-font/tsukimirounded-bold/ */
}
@font-face {
	font-family: 'gameFont2';
	src: url(/fonts/ZenMaruGothic-Medium.ttf);
    /* https://sankoufont.com/japanese-font/zenmarugothic-bold/ */
}


@media screen and (max-width: 660px) {
    /* スマホ表示 */
    main {
        width: 100%;
        height: 100%;
        overflow-y: scroll;
    }
}
@media screen and (min-width: 660px) {
    /* PC表示 */
    main {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        border-radius: 10px;
    }
    @media screen and (max-height: 600px){
        /* PCの中で縦600px以下の場合 */
        main {
            height: 100%!important;
        }
    }
}

/* attenstion(警告表示) */
#attention {
    width: 400px;
    height: 200px;
    border-radius: 10px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 172, 64, 0.95);
    top: 40px;
    right: auto;
    left: auto;
    display: none;
}
@media screen and (max-width: 400px) {
    #attenstion {
        width: 100%!important;
    }
}
    .attentionClose {
        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
        animation-name: attentionClose;
    }
    @keyframes attentionClose{
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    #attention .main {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        background-color: white;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 25px;
    }


/* start */
#start {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    display: none;
                    
}
    #start .title {
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 50px;
    }
    #start .startMenu {
        width: 100%;
        height: calc(100% - 120px);
        display: flex;
        justify-content: center;
        align-items: center;
    }
        #start .startMenu .contents {
            width: 700px;
            height: 500px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        @media screen and (max-width: 700px) {
            #start .startMenu .contents {
                flex-direction: column;
            }
        }
        @media screen and (max-width: 500px) {
            #start .startMenu .contents {
                width: 100%;
            }
        }
        @media screen and (min-width: 500px) and (max-width: 700px) {
            #start .startMenu .contents {
                width: 500px;
            }
        }
        @media screen and (max-height: 500px) {
            #start .startMenu .contents {
                height: 100%;
            }
        }
            #start .startMenu .contents .button1 {
                width: 250px;
                height: 100px;
                border-radius: 10px;
                background-color: rgb(0, 205, 102);
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: "uddigikyokasho-pro", sans-seri;
                font-size: 50px;
                margin-bottom: 20px;
            }
            @media screen and (min-width: 701px) {
                #start .startMenu .contents .button1 {
                    margin-right: 50px;
                    margin-bottom: 0px!important;
                }
            }
            #start .startMenu .contents .button2 {
                width: 250px;
                height: 100px;
                border-radius: 10px;
                background-color: rgb(181, 181, 181);
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: "uddigikyokasho-pro", sans-seri;
                font-size: 50px;
            }
    #start .c {
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

/* settings */
#settings {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}
    #settings .title {
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 50px;
    }
        #settings .side {
            width: 160px;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: "uddigikyokasho-pro", sans-seri;
        }
        #settings .center {
            width: calc(100% - 320px);
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: "uddigikyokasho-pro", sans-seri;
        }
        @media screen and (max-width: 420px) {
            #settings .side {
                width: 80px!important;
            }
            #settings .center {
                width: calc(100% - 160px);
                display: flex;
                justify-content: center;
                align-items: center;
                font-family: "uddigikyokasho-pro", sans-seri;
            }
        }
    #settings .block {
        width: 100%;
        display: flex;
    }
        #settings .block .context {
            min-width: 150px;
        }
    #setting_request_url {
        width: 300px;
    }

/* info */
#info {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    display: none;
}
    #info .title {
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 50px;
        font-family: "uddigikyokasho-pro", sans-seri;
    }
    #info .main {
        /*  */
        width: 100%;
        height: calc(100% - 120px);
    }
    #info .bottom {
        width: 100%;
        height: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
        #info .bottom .button1 {
            width: 250px;
            height: 100px;
            border-radius: 10px;
            background-color: rgb(181, 181, 181);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: "uddigikyokasho-pro", sans-seri;
            font-size: 50px;
            /* margin-bottom: 20px; */
        }
        @media screen and (min-width: 701px) {
            #info .bottom .button1 {
                margin-right: 50px;
            }
        }
        @media screen and (max-width: 701px) {
            #info .bottom .button1 {
                margin-bottom: 0px!important;
            }
        }
        @media screen and (max-width: 501px) {
            #info .bottom .button1 {
                width: 50%;
            }
            #info .bottom .button2 {
                width: 50%;
                font-size: 1rem;
            }
        }
        #info .bottom .button2 {
            width: 250px;
            height: 100px;
            border-radius: 10px;
            background-color: rgb(0, 205, 102);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: "uddigikyokasho-pro", sans-seri;
            font-size: 50px;
        }

/* countOfQuestion */
#countOfQuestion {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    font-family: "uddigikyokasho-pro", sans-seri;
    z-index: 1001;
}
    .countOfQuestion_hiddin {
        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
        animation-name: countOfQuestioin;
    }
    @keyframes countOfQuestioin {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }

/* announcement */
#announcement { 
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}
    #announcement .title {
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 50px;
        font-family: "uddigikyokasho-pro", sans-seri;
    }
    #announcement .main {
        width: 100%;
        height: calc(100% - 80px);
        display: flex;
        flex-direction: column;
    }
        #announcement .main .top {
            width: 100%;
            height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 30px;
            text-decoration: underline;
            text-decoration-color: green;
        }
        #announcement .main .rankingArea {
            width: 100%;
            height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 30px;
            text-decoration: underline;
            text-decoration-color: rgb(208, 208, 0);
        }
        #announcement .main .center {
            width: 100%;
            height: calc(100% - 180px);
            overflow-y: scroll;
        }
            #announcement .main .center .replay {
                width: 100%;
                height: 100%;
            }
                #announcement .main .center .replay table ,#announcement .main .center .replay table tbody {
                    width: 100%;
                    /* height: 100%; */
                }
                    #announcement .main .center .replay table tbody tr {
                        width: 100%;
                        height: 40px;
                    }
                        #announcement .main .center .replay table tbody tr .th1 {
                            width: 50px;
                            height: 100%;
                        }
                        #announcement .main .center .replay table tbody tr .th2 {
                            width: calc(100% - 100px);
                            height: 100%;
                        }
                        #announcement .main .center .replay table tbody tr .th3 {
                            width: 50px;
                            height: 100%;
                        }
                        #announcement .main .center .replay table tbody tr .td1 {
                            /* display: flex; */
                            justify-content: center;
                            align-items: center;
                        }
                        #announcement .main .center .replay table tbody tr .td2 {
                            /* display: flex; */
                            align-items: center;
                        }
                        #announcement .main .center .replay table tbody tr .td3 {
                            /* display: flex; */
                            justify-content: center;
                            align-items: center;
                        }
                        #announcement .main .center .replay table tbody .gray {
                            background-color: rgb(212, 212, 212);
                        }
        #announcement .main .bottom {
            width: 100%;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
            #announcement .main .bottom .button1 {
                width: 300px;
                height: 100px;
                border-radius: 10px;
                background-color: rgb(0, 205, 102);
                display: flex;
                align-items: center;
                justify-content: center;
                font-family: "uddigikyokasho-pro", sans-seri;
                font-size: 50px;
                margin-bottom: 20px;
            }
            @media screen and (min-width: 701px) {
                #announcement .main .bottom .button1 {
                    margin-right: 50px;
                    margin-bottom: 0px !important;
                }
            }
    #announcement #pop {
        width: calc(100% - 0px);
        height: calc(100% - 0px);
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        background-color: rgba(0, 0, 0, 0.4);
        top: 0px;
        left: 0px;
    }
        #announcement #pop .display {
            max-width: calc(100% - 10px) !important;
            max-height: calc(100% - 10px) !important;
            width: 700px;
            height: 500px;
            background-color: white;
            border-radius: 10px;
            border: black solid 2px;
        }
            #announcement #pop .display .top {
                width: 100%;
                height: 80px;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 30px;
                text-decoration: underline;
                text-decoration-color: green;
            }
            #announcement #pop .display .center {
                width: 100%;
                height: calc(100% - 190px);
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","Meiryo",sans-serif !important;
            }
                #announcement #pop .display .center .title {
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","Meiryo",sans-serif !important;
                }
                #announcement #pop .display .center .form table {
                    width: 100%;
                    height: auto;
                }
                    #announcement #pop .display .center .form table tr {
                        /* width: 100%; */
                        height: 40px;
                    }
                        #announcement #pop .display .center .form table tr .td1 {
                            width: 100px;
                        }
                        #announcement #pop .display .center .form table tr .td2 {
                            width: 300px;
                        }
                            #rankingFormName {
                                width: calc(100% - 5px);
                                height: 30px;
                                font-size: 25px;
                                border: 1px solid;
                                border-radius: 3px;
                            }
                        #announcement #pop .display .center .form table tr .button{
                            width: 100px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            background-color: rgb(82, 182, 255);
                            border-radius: 4px;
                            margin: auto;
                        }
            #announcement #pop .display .bottom {
                width: 100%;
                /* height: 80px; */
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","Meiryo",sans-serif !important;
            }
            #announcement #pop .display .bottom .button{
                width: 150px;
                height: 30px;
                background-color: rgb(0, 236, 0);
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 6px;
            }


/* ここから問題area */
    /* Checkbox */
    #question {
        width: 100%;
        min-height: 100%;
        display: none;
        flex-direction: column;
        justify-content: space-between;
    }
        #question #questionTitle {
            width: calc(100% - 20px);
            min-height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 30px;
            font-family: "uddigikyokasho-pro", sans-seri;
            /*  */
            border: solid 1px black;
            border-radius: 10px;
            margin: 10px;
            background-color: rgb(228, 228, 228);
            line-height: 1.0em;
        }
        #question .main {
            width: 100%;
            /* height: calc(100% - 500px); */
            display: flex;
            justify-content: center;
        }
            #question .main .text {
                width: calc(100% - 20px);
                border-radius: 10px;
                display: flex;
                justify-content: center;
                font-family: "uddigikyokasho-pro", sans-seri;
                font-size: 30px;
            }
        #question .selectArea {
            width: 100%;
            height: 100px;
            display: contents;
        }
            #question .info {
                width: 100%;
                height: 40px;
                display: flex;
                justify-content: center;
                font-size: 20px;
                font-family: "uddigikyokasho-pro", sans-seri;
                text-decoration: underline;
            }
            #question #checkboxSelect {
                width: 100%;
                display: none;
                justify-content: center;
                flex-wrap: wrap;
            }
                #question .selectArea input[type="checkbox"] {
                    width: 50px;
                    min-height: 50px;
                    font-size: 30px;
                    font-family: "uddigikyokasho-pro", sans-seri;
                    display: none;
                }
                    #question .selectArea label {
                        background-color: whitesmoke;
                    }
                    #question .selectArea input[type="checkbox"]+label {
                        width: 400px;
                        min-height: 50px;
                        display: flex;
                        justify-content: center;
                        cursor: pointer;
                        font-size: 30px;
                        font-family: "uddigikyokasho-pro", sans-seri;
                        border-radius: 10px;
                        margin: 10px;
                        line-height: 30px;
                    }
                    #question .selectArea input[type="checkbox"]+label:hover {
                        box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, .1);
                    }
                    #question .selectArea input[type="checkbox"]:checked+label {
                        background    : #67ab23;
                    }
            #question .answerArea {
                width: 100%;
                height: 50PX;
                display: flex;
                justify-content: center;
            }
                #question .answerArea .button {
                    width: 138px;
                    height: 50px;
                    background: #ff4444;
                    border-radius: 10px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 20px;
                }
            #question_result {
                width: 100%;
                height: 100%;
                z-index: 100;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                position: fixed;
                background-color: rgba(0, 0, 0, 0.075);
                left: 0px;
                top: 0px;
                right: 0px;
                bottom: 0px;
            }
                #question_result .main {
                    width: calc(100% - 100px)!important;
                    height: calc(100% - 80px)!important;
                    display: flex;
                    flex-direction: column;
                    background-color: white;
                    border-radius: 10px;
                }
                @media screen and (max-width: 701px) {
                    #question_result .main{
                        width: 100% !important;
                    }
                }
                @media screen and (max-height: 701px) {
                    #question_result .main{
                        height: 100% !important;
                    }
                }
                    @media screen and (max-width : 800px) {
                        #question_result .main {
                            width: 100%;
                            height: 100%;
                        }
                    }
                    #question_result .title {
                        width: 100%;
                        height: 50px;
                        display: flex;
                        justify-content: center;
                    }
                        #question_result .title .img {
                            width: 50px;
                            height: 100%;
                        }
                            #question_result .title .img img {
                                width: 50px;
                                height: 50px;
                            }
                        #question_result .title .isCorrect {
                            width: 50px;
                            height: 100%;
                            font-size: 45px;
                            color: red;
                            display: flex;
                            align-items: center;
                        }
                        #question_result .title .subtitle {
                            /* width: calc(100% - 50px); */
                            height: 50px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            font-size: 30px;
                        }
                    #question_result .main .explanation {
                        width: 100%;
                        height: calc(100% - 150px);
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        position: relative;
                    }
                        #question_result .main .explanation .text {
                            width: calc(100% - 50px);
                            height: calc(100% - 50px);
                            display: flex;
                            justify-content: center;
                            /* align-items: center; */
                            overflow-y: auto;
                            border-radius: 10px;
                            border: black solid 3px;
                            line-height: 30px;
                        }
                        #question_result .main .explanation .title {
                            width: 90px;
                            height: 30px;
                            display       : flex;
                            justify-content: center;
                            align-items: center;
                            background-color: white;
                            box-sizing    : border-box;
                            line-height   : 1;
                            font-weight   : bold;
                            padding       : 8px 15px;
                            top           : 7px;
                            font-size     : 25px;
                            border-right: solid;
                            border-left: solid;
                            position      : absolute;
                        }
                        #question_result .main .next {
                            width: 100%;
                            height: 50PX;
                            display: flex;
                            justify-content: center;
                        }
                            #question_result .main .next .button {
                                width: 138px;
                                height: 50px;
                                background: #39daaf;
                                border-radius: 10px;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                font-size: 20px;
                            }
                    /* #question_result#rankingModal{
                        width: 100%;
                        height: 100%;
                        position: fixed;
                        top: 0px;
                        left: 0px;
                        background-color: rgba(0, 0, 0, 0.25);
                        z-index: 1;
                    } */



/* ここからページ切り替えのアニメーション関連 */
sub {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    display: none;
    z-index: 200;
}
    sub .animationShoji {
        width: 100%;
        height: 100%;
        display: flex;
        position: relative;
        z-index: 1000;
    }
        sub .animationShoji .contents {
            width: 300%;
            height: 100%;
            display: flex;
            position: absolute;
            left: -100%;
        }
            sub .animationShoji .contents .leftDoor {
                width: 100%;
                height: 100%;
                left: 0px;
                top: 0px;
                background-image: url(../img/shoji.jpg);
                animation-duration: 1s;
                animation-iteration-count: 1;
                animation-fill-mode: forwards;
                animation-name: shoji_moveRight;
            }
            sub .animationShoji .contents .centerSpace {
                width: 100%;
                height: 100%;
                left: 0px;
                top: 0px;
            }
            sub .animationShoji .contents .rightDoor {
                width: 100%;
                height: 100%;
                top: 0px;
                right: 0px;
                background-image: url(../img/shoji.jpg);
                animation-duration: 1s;
                animation-iteration-count: 1;
                animation-fill-mode: forwards;
                animation-name: shoji_moveLeft;
            }
            sub .animationShoji .contents .shoji_moveRight {
                animation-duration: 1s;
                animation-iteration-count: 1;
                animation-fill-mode: forwards;
                animation-name: shoji_moveRight2;
            }
            sub .animationShoji .contents .shoji_moveLeft {
                animation-duration: 1s;
                animation-iteration-count: 1;
                animation-fill-mode: forwards;
                animation-name: shoji_moveLeft2;
            }
            /* Animation */
                @keyframes shoji_moveLeft {    /* 閉じる時 */
                    to {
                        transform: translateX(-50%);
                    }
                }
                @keyframes shoji_moveLeft2 {    /* 開ける時 */
                    0% {
                        transform: translateX(-50%);
                    }
                    100% {
                        transform: translateX(50%);
                    }
                }
                @keyframes  shoji_moveRight{    /* 閉じる時 */
                    to {
                        transform: translateX(50%);
                    }
                }
                @keyframes shoji_moveRight2 {    /* 開ける時 */
                    0% {
                        transform: translateX(50%);
                    }
                    100% {
                        transform: translateX(-50%);
                    }
                }
    
    sub #animationArea_countOfQuestion {
        width: 100%;
        height: 100%;
        display: none;
        position: fixed;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        z-index: 999;
        background-color: white;
    }

/* popMsg */
    .popDiv {
        width: 600px;
        max-width: calc(100% - 10px);
        min-height: 50px;
        z-index: 5000;
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 5px;
        background-color: white;
        border-radius: 5px;
        border: 2px solid black;
        animation: pop 4s forwards;
    }
    @keyframes pop {
        0% {
            transform: translateY(-150%);
        }
        20% {
            transform: translateY(0%);
        }
        80% {
            transform: translateY(0%);
        }
        100% {
            transform: translateY(-150%);
        }
    }

/* adminPanel */
#adminPanel {
    width: 0px;
    height: 0px;
}
    #adminPanel .adminPanel_counter {
        width: 150px;
        height: 60px;
        border-radius: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0px;
        right: 0px;
        z-index: 2500;
        border: 1px solid black;
        background-color: white;
    }
        #adminPanel .adminPanel_counter .main {
            width: 100%;
            height: 100%;
        }
            #adminPanel .adminPanel_counter .main .title {
                width: 100%;
                height: 25px;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            #adminPanel .adminPanel_counter .main #adminPanel_counter {
                width: 100%;
                height: 25px;
                display: flex;
                justify-content: center;
                align-items: center;
            }





/* lecture mode */
#lecture {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    right: 0px;
    background-color: white;
}