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

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: 8px 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: 100%;
}

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

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

div.theme {
    font-weight: bold;
    font-size: 1.25rem;
}

.card-shuffle-area {
    position: relative;
    margin-bottom: 3rem;
}

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

.card-container table {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}
.card-container table.step-title{
    min-width: 15%;
    color: #222222;
}
.card-container table.step-result {
    min-width: 95%;
    color: #222222;
}
.card-container table.step-box {
    min-width: 75%;
}

.card-container table tr{
    border: solid 1px #fff;
}

.card-container table.step-result th, .card-container table.step-box th {
    background-color: #3973A8 ;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px;
}

.card-container table.step-box td, .card-container table.step-result td{
    background-color: #b0c4de;
    padding: 8px;
    width: 80% !important;
    border-left: solid 1px #fff;
}
.card-container table.step-title th, .card-container table.step-box td {
    height: 150px;
    padding: 8px;
}
.card-container table.step-title th, .card-container table.step-box td#step-2 {
    height: 190px;
}
.card-container table.step-result th, .card-container table.step-result td{
    min-height: 118px;
    padding: 8px;
}

.bg_td{
    background-color: #3973A8 !important;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
}



.card-item {
    display: flex;
    flex-wrap: wrap;
    width: 354px;
    justify-content: center;
    position: absolute;
    background-color: #ffffff;
    right: 0;
}

.card-item div, table.step-box td div , table.step-result td div {
    width: 342px;
    padding: 7px 8px;
    background-color: #8c51ba;
    color: #ffffff;
    text-align: left;
    font-size: .9rem;
    line-height: 1.5rem;
    display: flex;
    border-radius: 8px;
    align-items: center;
    justify-content: flex-start;
    border: solid 1px #fff;
}
.card-item div.original {
    background-color: #dc143c;
    border: solid 1px #ffffff;
}
.card-item div{
    margin: 4px 2px;
    cursor: grab;
    position: relative;
    border: solid 1px #7da4cd;
}
table.step-box td div, table.step-result td div {
    margin: 2px;
}

.maru-red, .batsu-red {
    width: 30%;
    display: none;
    position: absolute;
    top: -24px;
    left: 100px;
}

/* modal */
.modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    width: 70%;
    height: auto;
    border-radius: .5rem;
    border: solid .2rem #498fcf;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
}
.modal p {
    font-size:1.5rem;
    padding: 1rem 2rem;
    margin: .5rem auto;
}

#original-1, #original-2, #original-3 {
    width: 90%;
    height: 2rem;
    margin-bottom: 3px;
    font-size:1.25rem;
    border: solid 1px #556b2f;
}

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


    .card-container {
        display: block;
    }

    .card-item {
        position: static;
    }

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




}