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


article {
    /* max-width: fit-content; */
    height: auto;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #498fcf;
}

article.main {
    margin-top: 20px;
}


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




div {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

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

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

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

.top-img img {
    width: 50%;
    height: fit-content;
}

.top-question {
    width:100%;
    margin: 16px 0;
    padding: 16px;
    font-size: 1.5rem;
    line-height: 2em;
    text-align: left;
    background-color: #ffffff;
    border: 2px solid #498fcf;
}

.top-question span {
    font-weight: bold;
}

/* ---------------------------------------------
    内容の並べかえ
--------------------------------------------- */
.contents-2>p, .contents-3>p {
    width: fit-content;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0;
}
.contents-2>p span {
    font-size: 1.25rem;
}

.answer-list {
    width: 100%;
    border-spacing: 0;
    margin: 0 0 1rem 0;
    border-collapse: collapse;
}

.answer-list th {
    background-color: #498fcf;
    color: white;
    height: 2rem;
    min-height: 2rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    border: solid 1px #ccc;
}
.answer-list th.half-column {
    width:50%;
}
.answer-list td {
    height: 2rem;
    min-height: 2rem;
    font-size: 1.25rem;
    padding: 2px 4px;
    border: solid 1px #ccc;
}
.answer-list td.answer-title {
    width: 25%;
}
.answer-list td.center {
    text-align: center;
}
.answer-list td.right {
    text-align: right;
}

.contents-3 div.title {
    width: 70%;
    height: auto;
    margin: auto;
    padding: 5px 10px;
    background-color: #ffffff;
    color: #222222;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.card-shuffle-area {
    position: relative;
}

.card-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 8px 0;
}

.card-container table {
    border-spacing: 0 5px;
    margin: 0;
}
.card-container table.scene-result {
    border-spacing: 0;
    border-collapse: collapse;
}
.card-container table.setting-scene{
    width: 45%;
    margin: 5px auto;
    color: #ffffff;

}
.card-container table.setting-scene th, .card-container table.scene-result th {
    vertical-align: middle;
    background-color: #507296;
}
.card-container table.setting-scene th {
    height: 150px;
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem;
}
.card-container table.scene-result th {
    height: auto;
    text-align: center;
    font-size:1.25rem;
    font-weight: bold;
    padding: 5px 0;
    color: #ffffff;
    border: solid 1px #ccc;
}

.help {
    height: 1.5rem;
}

.card-container table.scene-result td {
    height: auto;
    padding: 5px;
    vertical-align: middle;
    border: solid 1px #ccc;
    background-color: #fff;
}
.card-container table.scene-result td.result-scene-no {
    width: 10%;
    text-align: center;
    font-size: 1.25rem;
}
.card-container table.scene-result td.result-scene-no img {
    height: 1.5rem;
}
.card-container table.scene-result td.result-scene-graph {
    padding: 2px;
    text-align: center;
}
.card-container table.scene-result td.result-scene-graph img {
    height: 180px;
    border: solid 1px lightgray;
}
.card-container table.scene-result td.result-scene-explanation {
    font-size: 1.5rem;
}

.card-item {
    display: flex;
    flex-wrap: wrap;
    width: 42%;
    margin: 20px;
    justify-content: space-around;
    position: relative;
}

.card-item div {
    width: 150px;
    padding: 4px;
    text-align: center;
    font-size: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 4px 2px;
    cursor: grab;
    position: relative;
}
.card-item div img {
    width: 100%;
}
.card-item div p {
    width: 100%;
    position: absolute;
    left: 2px;
    top: 2px;
    text-shadow: 2px 2px 0 #ffffff;
    z-index: 10001;
}
.card-item>p {
    font-size: 1.25rem;
}

.maru-red, .batsu-red {
    width: 140px;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* 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;
    background-image: none;
}
.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;
}

/*================PC2 600px ~ 959px================ */
@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;
    }

    h2{
        display: block;
        width: 100%;
    }



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

    .start {
        -ms-flex-wrap: wrap-reverse;
        flex-wrap: wrap-reverse;
    }

    .start div{
        width: 100%;
        margin: 8px 0;
    }

    .contents-2>p, .contents-3>p {
        font-weight: normal;
        font-size: 1.0rem;
    }
    .contents-2>p span {
        font-size: 1.0rem;
    }
    .answer-list th, .answer-list td {
        font-size: 1.0rem;
    }

    .card-container {
        display: block;
    }

    .card-container table.setting-scene{
        width: 90%;
    }

    .card-container table.scene-result th,
    .card-container table.scene-result td.result-scene-no,
    .card-container table.scene-result td.result-scene-explanation{
        font-size: 1.0rem;
    }

    .card-container table.scene-result td.result-scene-graph img {
        height: 110px;
    }

    .card-item {
        width: 90%;
        position: static;
        margin: 20px auto;
    }
    .card-item div img {
        width: 25%;
    }

    .step-box{
        width: 100%;
        display: block;
    }

    .step-box .title_td{
        display: none;
    }

    .card-container table.step-box {
        display: table;
        width: 100%;
    }

    .card-container table.step-result {
        width: 100%;
    }

    .step-result td div{
        width: 80%;
    }

    .card-item div, table.step-box td div , table.step-result td div {
        width: 80%;
    }

    /* modal */
    .modal {
        display: block;
        width: 90%;
        top: 50%;
        left: 0;
        transform: translate(0, -50%);
    }
    .modal p {
        font-size:1.2rem;
        line-height: 1.5em;
        padding: 8px;
        margin: 16px 0;
    }

    .modal input{
        width: 100%;
        margin: 0 auto;
        border: solid 1px #ccc;
        padding: 8px;
        border-radius: 4px;
        margin: 8px 0;
    }

    .modal button{
        margin: 0 auto;
    }

    .answer_pop{
        width: 90%;
    }

    .answer_pop h1{
        font-size: 0.8em;
    }


    .answer_pop p{
        font-size: 0.7em;
        padding: 16px 0;
        line-height: 1.5em;
    }

    .answer_pop .buttons{
        display: block;
        width: 100%;
        margin: 16px 0;
        padding: 0 16px;
    }

    .answer_pop button{
        width: 100%;
        margin: 8px 0;
    }


}