@font-face {
    font-family: "Noto Sans JP";
    font-style: normal;
    font-weight: 400;
    src: url("../../font/NotoSansJP-Regular.woff") format("woff");
}

@font-face {
    font-family: "Noto Sans JP";
    font-style: normal;
    font-weight: 700;
    src: url("../../font/NotoSansJP-Bold.woff") format("woff");
}

* {
    box-sizing: border-box;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}


html[lang="ja"] {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    line-height: inherit;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    vertical-align: baseline;
    text-align: justify;
}
/* リセットCSS（Reset CSS） */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

input, select, button,textarea{
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-weight: 600;
}

body{
    padding:0;
    margin:0;
    letter-spacing: 0.03em;
    background-color: #fff;
    background-image: url("../../img/bg.png") ;
    box-sizing: border-box;
    word-break: break-all;
    line-height:180%;
    width: 100%;
    color: #212121;
}


main{
    width: 95%;
    margin: 0 auto;
}




h1 {
    font-size: 2em;
    text-align: center;
    padding: 32px;
    margin: 0 0 16px;
    background-color: #347CB3;
    width: 100%;
    font-weight: bold;
    color: #fff;
    background-image: url("../../img/nav.png");
}

div {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}


button {
    background-color: #1565C0;
    font-size: 1.2em;
    color: #fff;
    border-radius: 15px;
    padding: 8px 20px;
    font-weight: 500;
    cursor: pointer;
    border:none;
    transition: 0.5s;
    min-height: 40px;
}

button:hover{
    opacity: 0.8;
}

.back_button{
    margin: 20px 0;
    padding: 0;
}
main{
    width: 80%;
    margin: 0 auto;
}

article{
    background-color: #fff;
    padding: 16px;
    border:solid 2px #347CB3;
    border-radius: 16px;
}

.btn-tsugi button {
    width: fit-content;
    font-size: 2.0rem;
    text-align: end;
}

.footer{
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right{
    margin: 8px 0;
}

/* ---------------------------------------------
    問題
--------------------------------------------- */
.start {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 auto 30px auto;
    padding: 0;
}
.next {
    margin: 10px auto auto auto;
    padding: 4px 8px;
}
.top-img {
    height: 10%;
    text-align: center;
    margin: 0 auto;
}

.top-img img {
    width: 60%;
}

.top-question {
    width: fit-content;
    margin: 10px auto;
    font-size: 2.0rem;
    text-align: left;
}

/* ---------------------------------------------
    場面
--------------------------------------------- */
article.main {
    margin-top: 20px;
}
.contents-1 p, .contents-5 p , .contents-6 p {
    width: fit-content;
    font-size: 1.25rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;
}
.contents-1 p .answer-box {
    position: relative;
    width: 160px;
    height: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: none;
    border-bottom:solid 1px #3e3e3e;
}

.contents-1 .card-item {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: auto;
    justify-content: space-between;
    position: relative;
}
.contents-1 .card-item p {
    padding: 4px 20px;
    text-align: center;
    font-size: 1.25rem;
    color: #ffffff;
    background-color: #006FAF;
    cursor: grab;
    position: relative;
}

.contents-2 ul, .contents-3 ul {
    margin-left: 5%;
    font-size: 1.25rem;
    line-height: 2.5rem;
    list-style-type: none;
}
.contents-3 ul {
    margin-bottom: 1rem;
}
/*
.contents-2 ul li, .contents-3 ul li {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}
 */
.contents-2 input[type=checkbox], .contents-3 input[type=checkbox] {
    transform: scale(2);
    margin: 0 16px 0 0;
}
.contents-2 img.check-result, .contents-3 img.check-result {
    width: 2rem;
    height: fit-content;
    vertical-align: bottom;
    margin-bottom: 3px;
}

.contents-3 p {
    margin-left: 5%;
    font-size: 1.25rem;
}
.contents-3 textarea.learning, .contents-6 textarea.learning {
    width: 80%;
    margin: auto auto 10px 5%;
    font-size: 1.25rem;
}
.contents-3 textarea.learning {
    height: 7rem;
    border-radius: 16px;
    padding: 8px;
}

.contents-5 p {
    text-indent: 1rem;
}
.contents-5 table {
    width: 98%;
    margin: auto;
}

.contents-5 table th {
    font-size: 1.2rem;
    vertical-align: top;
    white-space: nowrap;
}
.contents-5 table td {
    font-size: 1.0rem;
    vertical-align: top;
    text-indent: -1rem;
    padding-left: 1rem;
}
.contents-5 table td.nowrap {
    white-space: nowrap;
}

.contents-6, .contents-7 {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contents-6 p, .contents-6 div, .contents-7 h2 {
    width: 95%;
    font-size: 1.25rem;
    text-align: center;
}
.contents-6 textarea.learning {
    height: 12rem;
    border-radius: 16px;
    padding: 8px;
}

.maru-batsu {
    display: none;
    color:red;
    font-size: 1.25rem;
    font-weight: bold;
}

.contents-4 div.simulate {
    width: 740px;
    height: 460px;
    margin: 0 auto 40px auto;
    padding: 10px;
    background-color: #ffffff;
    border: solid 1px #006FAF;
    border-radius: 10px;
}

td.pdtop {
    padding-top: 4px;
}
td.left {
    text-align: left;
}
td.bold {
    font-weight: bold;
}
td.center, td.label {
    text-align: center;
}

.titbtn{
    margin: 16px 0;
}

.titbtn button {
    margin-left: 10px;
}

/* modal */
#modal-container1, #modal-container2, #modal-container3, #modal-container4 {
    position: absolute;
    width: 100%;
    z-index: 10003;
}
.modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: auto;
    border-radius: .5rem;
    border: solid .2rem #498fcf;
    background-color: whitesmoke;
    position: absolute;
    top: 0;
    left: 0;
    /*transform: translate(0, 50%);*/
}
.modal p {
    font-size:2.0rem;
    padding: 20px 30px;
}
.modal p.scene-title {
    font-size:1.25rem;
}

.answer_pop{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80%;
    height: 25rem;
    background-color: white;
    border: solid 2px lightskyblue;
    border-radius: 1rem;
    z-index: 10004;
}
.answer_pop img{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14rem;
    transform: translate(-50%,-75%);
}
.answer_pop .explanation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    margin: 20px 0;
    padding: 0;
    width: 100%;
    top: 30%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.answer_pop .explanation h1 {
    margin: auto;
    color: #222222;
    background-color: transparent;
    font-size: 4rem;
    text-shadow: 1px 1px 0 #ffffff;
}
.answer_pop .explanation p {
    margin: auto;
    font-size: 2rem;
    text-shadow: 1px 1px 0 #ffffff;
}
.answer_pop .buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 70%;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%,0);
}
.answer_pop button {
    margin: 0 20px;
    padding: 5px 20px;
    font-size: 1.5rem;
}

.invisible {
    display: none;
}

@media screen and (max-width: 960px) {
    body{
        font-size: 96%;
    }

    main{
        width: 100%;
        padding: 0 8px;
    }

    article{
        width: 100%;
    }

    p, div{
        font-size: 1em;
    }

    h1 {
        font-size: 1.5em;
        padding: 16px;
    }

    .top-question{
        display: block;
        width: 100%;
        font-size: 1.2em;
        line-height: 1.5em;
    }

    .card-shuffle-area p{
        font-size: 1em;
        text-align: justify;
    }

    .top-img {
        width: 40%;
    }


    .contents-1 .card-item {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: auto;
        justify-content: space-between;
        position: relative;
    }
    .contents-1 .card-item p {
        width: 49.5%;
        padding: 4px 0;
    }

    .contents-2 ul, .contents-3 ul {
        font-size: 1rem;
        margin: 0;
        padding: 0;
    }

    .contents-2 ul, .contents-3 ul li{
        margin-bottom: 16px;
    }


    .contents-3 textarea.learning, .contents-6 textarea.learning {
        width: 100%;
        border: solid 1px #ccc;
        border-radius: 16px;
        padding: 16px;
        margin: 0;
    }

    .contents-4 div.simulate {
        width: 100%;
        height: auto;
    }

    .contents-4 div.simulate img{
        width: 100%;
    }

    .contents-5 table {
        width: 100%;
        margin: auto;
    }

    .contents-5 table tr{
        display: block;
    }

    .contents-5 table th {
        font-size: 1.2rem;
        vertical-align: top;
        display: block;
        font-weight: bold;
    }
    .contents-5 table td {
        font-size: 1.0rem;
        vertical-align: top;
        display: block;
        padding: 0 0 8px;
    }

    .contents-2 img.check-result, .contents-3 img.check-result {
        width: 1.75rem;
        margin-bottom: 5px;
    }

}

