@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, article{
    width: 80%;
    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;
}



h2{
    font-size: 1.5rem;
    margin: 0;
    width: 100%;
}



.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: 1.5rem;
    margin: 1rem 0 0;
}
.selectmenu button{
    text-align: center;
    font-size: 1.75rem;
    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: 24px 0;
    padding: 0;
}

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

.q-contents {
    width: 100%;
    margin-top: 40px;
}
.exp-contents {
    width: 100%;
    margin: auto;
}
.q-contents, .exp-contents {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 15px 20px 15px;
    background-color: #fff;
    border: 2px solid #498fcf;
    border-radius: 1rem;
    font-size: 1.25rem;
}
.q-contents {
    align-items: flex-start;
}
.exp-contents {
    align-items: center;
}
.none-background {
    background-color: transparent;
    border: none;
}
.dir-column {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.q-contents div.reference {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.q-contents div.reference p {
    margin: 8px 0;
}


.q-contents div.reference p.caution {
    margin: 0 auto;
    font-size: 1rem;
}

.q-contents table.application {
    width: 100%;
    background-color: #3274A1 ;
    border: solid 1px #ccc;
    border-collapse:collapse;
    border-spacing: 0;
    font-size: 1.1rem;
}
.q-contents table.application th {
    border: solid 1px #ffffff;
    color: #ffffff;
    padding: 4px;
}
.q-contents table.application th.use-os {
    width: 24%;
    text-align: center;
}
.q-contents table.application th.sub-th {
    border: solid 1px #ccc;
    background-color: #ffffff;
    color: #222222;
}
.q-contents table.application th.small {
    font-size: 1.0rem;
}
.q-contents table.application td {
    padding: 4px 8px;
    border: solid 1px #ffffff;
    background-color: #E1EBF1;
    font-size: 1.2rem;
    color: #000000;
}



.q-contents table.application td.row2 {
    background-color: #CDE3F1;
}
.q-contents table.application td>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

img.app-logo {
    height: 40px;
    max-width: fit-content;
    border: solid 3px #ffffff;
    background-color: #ffffff;
    margin-right: 2px;
}
.q-contents table.application td ul {
    list-style: disc;
    margin: 0;
    padding-left: 14px;
    font-size: .8rem;
}
.q-contents table.application td ul li {
    list-style: disc;
}

/*-- ドラッグ領域 --*/
.card-shuffle-area {    /* ドラッグ可能な領域 */
    position: relative;
    width: 100%;
}
.answer-container {     /* ドロップさせるアイテムの領域 */
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}
.answer-container div.answers {
    display: flex;
    flex-direction: column;
}
.answer-container .active-title,
.answer-container .active-drop,
.card-container .active-title {
    width: 100%;
    min-height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px #666666;
    border-radius: 1.0rem;
    text-align: center;
}
.answer-container .active-title,
.card-container .active-title {
    background-color: 	#FFF2C0;
    user-select: none;
    border-radius: 1.0rem 1.0rem 0 0;
}
.answer-container .active-drop{
    border-radius: 1.0rem 1.0rem 0 0;
}
.answer-container .answer-drop-box {
    width: 100%;
    min-height: 13rem;
    max-height: 20rem;
    background-color: #37a582;
    border: solid 2px #666666;
    border-top: none;
    border-radius: 0 0 1.0rem 1.0rem;

}

.card-container {       /* ドラッグさせるアイテムの領域 */
    width: 100%;
    margin: 16px 0;
    position: relative;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid 2px #999999;
}
.card-container h2 {
    margin: 0 auto 8px auto;
    font-size: 1.5rem;
}
.active-item,
.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: flex-start;
    align-items: center;
    text-align: left;
    margin: 2px 4px;
    padding: 6px 6px;
    font-size: 0.9rem;
    color: #000000;
    background-color: #B9CCFF;
    font-weight:bold;
    border-radius: 1.0rem;
    user-select: none;
    border:solid 2px #fff
}
.draggable,
.card-item>div {
    cursor: grab;
}
.card-shuffle-area .comment {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin:8px auto;
}
.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: #ffffaa;
    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 #ffffaa;
}

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

/*-- ページ別ドラッグ＆ドロップ情報 --*/
.column4 .answer-container div.answers {
    width: 20%;
}
.column4 .answer-container img.arrow {
    width: 4%;
    max-height: fit-content;
}
.column4 .card-container .card-item>div {
    width: 18.5%;
}
.column3 .answer-container div.answers {
    width: 30%;
}
.column3 .answer-container img.arrow {
    width: 4%;
    max-height: fit-content;
}
.column3 .card-container .card-item>div {
    width: 23.5%;
}
.column6 .answer-container div.answers,
.column6 .card-container div.active-title {
    width: 15%;
}
.column6 .card-container div.active-title {
    height: 3.6rem;
}
.column6 .answer-container img.arrow {
    margin-top: 1.5rem;
    width: 1.5%;
    max-height: fit-content;
}
.column6 .card-container .card-item>div {
    width: 15%;
}

/* 解説 */
.exp-contents div.correct-example {
    width: 98%;
    margin: auto auto 16px auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    border-bottom: solid 2px #498fcf;
}
.exp-contents div.explanation {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.exp-contents div.explanation .exp-div p {
    margin: 2px auto;
    padding: 0 12px;
    font-size: 1.25rem;
}
.exp-contents div.explanation .exp-div ul {
    list-style: disc;
    margin: 10px 0 10px 1.5rem;
    padding-left: 1rem;
}
.exp-contents div.explanation .exp-div ul li {
    list-style: disc;
}
.exp-contents div.explanation img {
    margin: 2rem auto auto 1rem;
    width: 20%;
    max-width: fit-content;
    max-height: fit-content;
}


sup {
    vertical-align: top;
    font-size: small;
}

.top-spacer {
    margin-top: 30px;
}

.nowrap {
    white-space: nowrap;
}

.center {
    text-align: center;
}

.vcenter {
    vertical-align: middle;
}

.right {
    text-align: right;
}

.invisible {
    display: 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;
    }

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

    .q-contents {
        margin-top: 24px;
    }


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

    .selectmenu div{
        width: 100%;
        padding: 0;
        margin: 24px 0;
    }


    .back_button{
        margin: 40px 0;
        padding: 0;
        text-align: center;
    }
    .q-contents, .q-contents div.reference {
        font-size: 1.5rem;
    }
    .q-contents table.application th, .q-contents table.application td {
        font-size: 1.2rem;
    }
    .q-contents table.application td ul {
        font-size: 1.0rem;
    }
    .card-container .active-title,
    .answer-container .active-title {
        font-size: 1.2rem;
    }
    img.app-logo {
        height: 30px;
    }

    .card-shuffle-area table th {
        font-size: 1.5rem;
    }
    .card-shuffle-area table.one-column td {
        height: 20rem;
    }
    .card-shuffle-area table.three-column td {
        height: 28rem;
    }
    .exp-contents div.correct-example {
        font-size: 1.5rem;
    }

    .table-area {
        width: 100%;
        margin: 0 auto;
        overflow-x: scroll;
    }

    .table-area table {
        width: 100%;
        min-width: 900px;
    }

    /*-- ページ別ドラッグ＆ドロップ情報 --*/

    .column4 .answer-container, .column3 .answer-container, .column6 .answer-container{
        -ms-flex-wrap: wrap;
  	    flex-wrap: wrap;
    }

    .column6 .answer-container div.answers,
    .column6 .card-container div.active-title {
        width: 100%;
        margin: 8px 0;
    }

    .column4 .answer-container div.answers, .column3 .answer-container div.answers, .column6 .answer-container div.answers {
    width: 100%;
}
.column4 .answer-container img.arrow, .column3 .answer-container img.arrow, .column6 .answer-container img.arrow{
    width: 8%;
    margin: 8px 0;
    transform:rotate(90deg);
}
.column4 .card-container .card-item>div, .column3 .card-container .card-item>div, .column6 .card-container .card-item>div  {
    width: 100%;
    margin: 8px 0;
}

.exp-contents div.correct-example{
    display: block;
    padding: 8px 0;
    font-size: 1em;
}

.exp-contents div.explanation {
    display: block;
}

.exp-contents div.explanation img{
    width: 50%;
}



}