@charset "utf-8";   /* CSS Document */
@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;
}

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 auto;
    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;
}

* {
    -webkit-user-select: none;
    user-select: none;
}


main, article{
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
}



h1 {
    font-size: 2em;
    text-align: center;
    padding: 32px;
    margin: 0;
    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;
}

ul,li {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    background-color: #1565C0;
    font-size: 1.2em;
    color: #fff;
    border-radius: 15px;
    padding: 2px 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;
}


img {
    pointer-events: none;
}

.flex{
    display: flex;
}

.flex_center{
    display: flex;
    justify-content: center;
}
.flex_between{
    display: flex;
    justify-content: space-between;
}
.flex_around{
    display: flex;
    justify-content: space-around;
}


.selectmenu{
    width: 80%;
    margin: 0 auto;
    justify-content: space-evenly;
}
.selectmenu div{
    text-align: center;
    margin: 2rem 0;
    /* margin: 5rem;
    width: 40rem;
    font-size: 4rem; */
}
.selectmenu p{
    text-align: center;
    /* width: 40rem; */
    font-size: 1em;
    margin: 1rem 0 0;
}
.selectmenu button{
    text-align: center;
    font-size: 1.5em;
    padding: 1vh 0;
    width: 14rem;
}
.selectmenu img{
    text-align: center;
    width: 15rem;
    height: 10rem;
}

.bottom-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 40px auto;
    padding: 0;
}

/*-- 学年別 --*/
h2.low, h2.high {
    font-size: 1.5em;
    text-align: center;
    margin: 2rem auto 0.5rem;
    padding: 16px 0;
    position: relative;
    background-color: #fff;
    border: 2px solid #498fcf;
    width: 100%;
    font-weight: bold;
    border-radius: .5rem;
}

.low-q-contents,
.mid-q-contents,
.high-q-contents {
    width: 100%;
}
.low-exp-contents,
.mid-exp-contents,
.high-exp-contents {
    width: 100%;
    margin: auto;
}
.low-q-contents, .low-exp-contents,
.mid-q-contents, .mid-exp-contents,
.high-q-contents, .high-exp-contents {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #fff;
    border: 2px solid #498fcf;
    border-radius: .5rem;
    line-height: 1.5em;
}
.low-q-contents, .low-exp-contents,
.mid-exp-contents,
.high-q-contents, .high-exp-contents {
    font-size: 1.3em;
}
.mid-q-contents {
    font-size: 1.3em;
}
.low-q-contents, .low-exp-contents,
.high-exp-contents {
    padding: 16px 0;
    align-items: flex-start;
}
.mid-q-contents, .mid-exp-contents {
    padding: 10px 20px;
    align-items: flex-start;
}
.high-q-contents {
    padding: 10px 10px;
    align-items: center;
}
.none-background {
    background-color: transparent;
    border: none;
}
.dir-column {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.low-q-contents div.reference,
.mid-q-contents div.reference,
.high-q-contents div.reference,
.high-q-contents div.step-reference {
    display: flex;
}
.low-q-contents div.reference {
    width: 48%;
}
.mid-q-contents div.reference {
    width: 100%;
}
.low-q-contents div.reference,
.mid-q-contents div.reference {
    justify-content: flex-start;
    align-items: flex-start;
}
.high-q-contents div.reference {
    width: 44%;
    justify-content: flex-start;
    align-items: flex-start;
}
.high-q-contents div.step-reference {
    width: 52%;
    margin-bottom: 30px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.low-q-contents div.reference img {
    width: 30%;
}
.mid-q-contents div.reference img {
    width: 20%;
}
.low-q-contents div.reference img,
.mid-q-contents div.reference img {
    margin: 8px;
    max-width: fit-content;
    max-height: fit-content;
}
.low-q-contents div.question {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
    padding: 16px 0;
    background-color: #EFF7FD;
}
.low-q-contents div.question p {
    margin: 0 auto 12px auto;
    text-align: center;
    font-weight: bold;
}
.low-q-contents div.answers {
    width: 100%;
    margin: 2rem 0;
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}
.low-q-contents div.answers .answer-div {
    width: 25%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.low-q-contents div.answers .answer-div p {
    width: 100%;
    padding: 6px 8px;
    background-color: #3973A8;
    border-radius: 1.0rem;
    color: #ffffff;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 8px;
}
.low-q-contents div.answers .answer-div img {
    width: 70%;
    max-width: fit-content;
    max-height: fit-content;
}

.low-exp-contents div.explanation,
.mid-exp-contents div.explanation,
.high-exp-contents div.explanation {
    width: 100%;
    margin: 3rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.low-exp-contents div.explanation .exp-div,
.mid-exp-contents div.explanation .exp-div,
.high-exp-contents div.explanation .exp-div {
    position: relative;
}
.low-exp-contents div.explanation .exp-div p,
.mid-exp-contents div.explanation .exp-div p,
.high-exp-contents div.explanation .exp-div p {
    padding: 16px;
    font-size: 1.2rem;
    background-color: #C7EBFF;
    border-radius: 1.0rem;
}
.low-exp-contents div.explanation img,
.mid-exp-contents div.explanation img,
.high-exp-contents div.explanation img {
    margin-left: 1rem;
    width: 15%;
    max-width: fit-content;
    max-height: fit-content;
}

.high-q-contents div.step-reference div {
    width: 100%;
    margin: 8px auto;
}
.high-q-contents div.high-step {
    width: 100%;
}
.high-q-contents div.step-reference div, .high-q-contents div.high-step {
    padding: 8px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #FFECBE;
    border-radius: .5rem;
    color: black;
    font-size: 1.2rem;
}
.high-q-contents div.high-step {
    margin: 16px 0 8px 0;
}
.high-q-contents div.step-reference div p, .high-q-contents div.high-step p {
    margin: 0;
}
.high-q-contents div.step-reference img {
    max-height: 100px;
    max-width: fit-content;
}
.high-q-contents .high-step-1,
.high-q-contents .high-step-2,
.high-q-contents .high-step-3,
.high-q-contents .high-step-4,
.high-q-contents .high-step-5 {
    width: 100%;
    min-height: 5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    margin-bottom: 8px;
}
.high-q-contents div.bottom-spacer {
    margin-bottom: 20px;
}

.high-q-contents .high-step-1 div.high-step-1-select {
    width: 19%;
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 1.25rem;
    border-radius: 1.0rem;
    cursor: pointer;
}
.high-q-contents .high-step-1 p {
    margin:auto;
}
.high-q-contents .high-step-1 .high-step-1-input {
    width: 40%;
    border-radius: 1.0rem;
}
.high-q-contents .high-step-2 .high-step-2-input,
.high-q-contents .high-step-3 .high-step-3-input,
.high-q-contents .high-step-5 .high-step-5-input {
    width: 99%;
    border-radius: 1.0rem;
}
.high-q-contents .high-step-1 .high-step-1-input,
.high-q-contents .high-step-2 .high-step-2-input,
.high-q-contents .high-step-3 .high-step-3-input,
.high-q-contents .high-step-5 .high-step-5-input {
    min-height: 10rem;
    font-size: 1.1rem;
}
.high-q-contents .high-step-2 p, .high-q-contents .high-step-3 p {
    width: 99%;
    margin: 6px 10px;
    font-size: 1.25rem;
}
.high-q-contents .high-step-2 p {
    color: #cc0000;
}

.high-step-1-default {
    background-color: #ffffff;
    border: solid 6px #498fcf;
}
.high-step-1-selected {
    background-color: #FFF2E5;
    border: solid 6px #c00000;
}

img.true-false {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

/*-- 中学年用 --*/
.card-shuffle-area {
    position: relative;
    width: 100%;
}
.card-container {
    width: 100%;
    position: relative;
}
.card-shuffle-area .comment {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom:8px;
}
.card-shuffle-area .invisible {
    display: none;
}
.card-shuffle-area .comment p {
    margin: 0 0 0 20px;
    max-width: 70%;
    display: inline-block;
    position: relative;
    padding: 8px;
    border: solid 1px #999999;
    border-radius: 12px;
    background: #F6FDEF;
    font-size: 1.1rem;
}

.card-shuffle-area .comment p:before,
.card-shuffle-area .comment p:after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY( -50% );
    left: -1.2rem;
    border-top: 10px solid transparent;
    border-right: 1.2rem solid #999999;
    border-bottom: 10px solid transparent;
}
.card-shuffle-area .comment p:after {
    left: calc( 3px - 1.2rem );
    border-right: solid 1.2rem #F6FDEF;
}

.card-shuffle-area .comment img {
    height: 3.5rem;
    max-width: fit-content;
}

.card-shuffle-area table {
    width: 100%;
    margin-bottom: 40px;
}
.card-shuffle-area table th {
    background-color: #1F5E4A;
    color: #fff;
    border: solid 6px transparent;
}
.card-shuffle-area table.three-column th {
    width: 33%;
}
.card-shuffle-area table td {
    max-height: 40rem;
    background-color: #68A692;
}
.card-shuffle-area table.one-column td {
    height: 11rem;
}
.card-shuffle-area table.three-column td {
    height: 25rem;
}

.card-item {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: stretch;
}
.card-item>div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 19.5%;
    margin: 2px 4px;
    padding: 3px 6px;
    font-size: 1.0rem;
    border-radius: 1.0rem;
    cursor: grab;
    user-select: none;
}
.card-item>div.card-default,
.card-item>div.card-correct,
.card-item>div.card-incorrect {
    line-height: 1.2em;
    padding: 8px;
    text-align: left;
    font-size: 0.8em;
}
.card-item>div.card-default {
    background-color: #FFF4E2;
    border: solid 1px #FFC362;
    margin-bottom: 8px;
}

.card-item>div.card-correct {
    background-color: #FF8C00;
    border: solid 1px #996666;
    color: #000000;
    font-size: 0.8em;
}
.card-item>div.card-incorrect {
    background-color: #E4E4E4;
    border: solid 1px #999999;
    font-size: 0.8em;
}

.nowrap {
    white-space: nowrap;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.invisible {
    display: none;
}

.ui-draggable, .ui-droppable {
    -ms-touch-action: none;
    touch-action: none;
}


/*================PC2 600px ~ 959px================ */
@media screen and ( max-width:960px){
    body{
        font-size: 96%;
    }

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

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

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

    .selectmenu{
        width: 80%;
        margin: 0 auto;
        display: block;
    }

    .back_button{
        margin: 40px 0;
        padding: 0;
        text-align: center;
    }



    /*-- 学年別 --*/
    h2.low, h2.high {
        margin:0 auto;
        margin: 16px 0;
        text-align: left;
        padding: 8px;
        font-size: 1.2em;
    }

    .low-q-contents div.reference,
    .mid-q-contents div.reference,
    .high-q-contents div.reference,
    .high-q-contents div.step-reference {
        display: block;
        text-align: center;
    }

    .low-q-contents div.reference img{
        width: 40%;
    }

    .low-q-contents div.reference p{
        display: block;
        padding: 8px;
        font-size: 1em;
        text-align: left;
    }

    .low-q-contents div.reference {
        width: 100%;
    }

    main .low-q-contents .question{
        text-align: left;
        padding: 8px;
        font-size: 0.9em;
    }

    .low-q-contents div.answers{
        display: block;
        padding: 0 16px;

    }

    .low-q-contents div.answers .answer-div {
        width: 100%;
        margin: 8px 0;
    }

    .low-q-contents div.answers .answer-div p{
        text-align: left;
        font-size: 1em;
        width: 100%;
    }

    .low-exp-contents div.explanation,
    .mid-exp-contents div.explanation,
    .high-exp-contents div.explanation {
        padding: 16px;
        margin: 16px auto;
    }

    .mid-q-contents, .mid-exp-contents {
        line-height: 1.5em;
        font-size: 1.1em;
        padding: 8px;
    }

    .mid-q-contents p{
        text-align: justify;
    }

    .mid-q-contents .reference img{
        width: 50% !important;
    }

    .low-exp-contents div.explanation .exp-div,
    .mid-exp-contents div.explanation .exp-div,
    .high-exp-contents div.explanation .exp-div {
        width: 66%;
        position: inherit;
        font-size: 1.3em;
        margin: 0;
        padding: 0;
    }


    .low-exp-contents div.explanation .exp-div p,
    .mid-exp-contents div.explanation .exp-div p,
    .high-exp-contents div.explanation .exp-div p {
        font-size: 1em;
        line-height: 2em;
        margin: 0;
    }
    .low-exp-contents div.explanation img,
    .mid-exp-contents div.explanation img,
    .high-exp-contents div.explanation img {
        width: 20%;
        display: block;
        margin: 0 auto;
        padding: 0;
    }

    .card-item>div {
        display: block;
        width: 46%;
    }


    .card-shuffle-area table {
        width: 100%;
        margin: 40px 0;
    }

    .card-shuffle-area table thead{
        display: none;
    }

    .card-shuffle-area table td{
        display: block;
        width: 100%;
        position: relative;
    }

    .card-shuffle-area table.three-column td {
        height: 12rem;
    }

    .card-shuffle-area table .mid1_td1:before {
        content: "学校でのそなえ";
        background: #1F5E4A;
        box-sizing: border-box;
        color: #fff;
        font-weight: bold;
        height: 40px;
        padding: 10px;
        position: absolute;
        top: -41px;
        left: -0.2%;
        display: block;
        width: 100%;
    }

    .card-shuffle-area table .mid1_td2:before {
        content: "B市でのそなえ";
        background: #1F5E4A;
        box-sizing: border-box;
        color: #fff;
        font-weight: bold;
        height: 40px;
        padding: 10px;
        position: absolute;
        top: -41px;
        left: -0.2%;
        display: block;
        width: 100%;
    }

    .card-shuffle-area table .mid1_td3:before {
        content: "家でのそなえ";
        background: #1F5E4A;
        box-sizing: border-box;
        color: #fff;
        font-weight: bold;
        height: 40px;
        padding: 10px;
        position: absolute;
        top: -41px;
        left: -0.2%;
        display: block;
        width: 100%;
    }

    .high-q-contents{
        display: block;
        width: 100%;
    }

    .high-q-contents .reference{
        display: block;
        width: 100% !important;

    }

    .high-q-contents .reference p{
        text-align: left;
        font-size: 0.9em;
        line-height: 1.5em;

    }

    .high-q-contents .step-reference{
        display: block;
        width: 100% !important;
    }

    .high-q-contents .step-reference p{
        display: block !important;
        font-size: 0.8em;
        line-height: 1.5em;
        text-align: justify;
    }

    .dir-column{
        margin: 0;
        padding: 0;
    }

    .high-q-contents .high-step p{
        display: block;
        font-size: 0.9em;
        line-height: 1.5em;
        text-align: justify;
    }

    .high-q-contents .high-step-1{
        display: block;
    }

    .high-q-contents .high-step-1-select{
        width: 100% !important;
        display: block;
        font-size: 0.8em !important;
        line-height: 1.5em;
        margin-bottom: 8px;
        text-align: left;
    }

    .high-q-contents .high-step-1-select p{
        width: 100%;
        text-align: left;
    }

    .high-q-contents textarea{
        width: 100% !important;
        padding: 8px;
    }

    .high-q-contents .high-step-2 p, .high-q-contents .high-step-3 p{
        font-size: 0.8em !important;
        line-height: 1.5em;
    }

    .high-exp-contents .exp-div p{
        font-size: 0.8em !important;
        text-align: justify !important;
    }



}
