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


.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header .left, .header .right {
    width: 25%;
}

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

/*----- -----*/
.start {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin:16px 0;
    padding: 0;
}
.top-img {
    width: 60%;
    text-align: center;
    margin: 0 auto;
}
.top-img img {
    width: 100%;
    max-width: fit-content;
    max-height: fit-content;
}
.top-question {
    width: fit-content;
    margin: 20px auto;
    padding: 16px;
    font-size: 1.8rem;
    line-height: 2.5em;
    text-align: left;
    background-color: #ffffff;
    border: 2px solid #498fcf;
}
/* ---------------------------------------------
    メイン
--------------------------------------------- */
article {
    /* max-width: fit-content; */
    width: 100%;
    height: auto;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ffffff;
    border: 3px solid #498fcf;
    border-radius: .5rem;
}

.material-area {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.material-area p {
    width: 100%;
    font-size: 1.2rem;
    text-align: center;
}
.material-small {
    width: 45%;
    cursor: pointer;
}
.material-small img {
    width: 100%;
    max-width: fit-content;
    max-height: fit-content;
}
.material-magnify {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 10px;
    background-color: #e2f0d9;
    border: 6px solid #c00000;
    border-radius: 1rem;
}
.material-large {
    width: 100%;
    position: relative;
}
.material-large img {
    width: 100%;
    max-width: fit-content;
    max-height: fit-content;
}
.material-magnify img.close-box {
    position: absolute;
    width: 4%;
    right:20px;
    top: 20px;
    cursor: pointer;
}

article.question {
    border: 4px solid #c00000;
    border-radius: .5rem;
}

.question p {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
}

article.q-contents {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

article.explanation, article.last-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
article.explanation {
    justify-content: flex-start;
}
article.last-message {
    justify-content: space-between;
}
article.explanation h2 {
    width: 80%;
    margin: auto auto auto 8px;
    font-size: 2.5rem;
}
p.reference {
    margin: 0;
    width:72%;
    font-size: 1.75rem;
}
article.last-message div.reference {
    margin: 0;
    width:65%;
    font-size: 1.75rem;
}
article.last-message div.reference span {
    color: #c00000;
}
article.last-message div.reference img{
    width: 100%;
    max-width: fit-content;
    max-height: fit-content;
}
article.explanation p.wide {
    width: 80%;
    margin-top: 10px;
    margin-right: 2%;
}
article.explanation p span {
    display: block;
    text-indent: 1em;
}
div.answer, div.comment-img {
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
div.answer {
    width:20%;
    border: 2px solid #498fcf;
}
div.comment-img {
    width:16%;
}
div.answer p {
    width: 100%;
    margin: 0;
    font-size: 1.25rem;
}
div.answer img, div.comment-img img {
    max-width: fit-content;
    max-height: fit-content;
}
div.answer img {
    width: 30%;
    cursor: pointer;
}
div.comment-img img {
    width: 100%;
}
img.qa-seq {
    width: 5%;
    max-width: fit-content;
    max-height: fit-content;
    cursor: auto;
}
.answer-selected {
    border: 4px solid #c00000;
    border-radius: 1.0rem;
}

.narrow-top {
    margin-top: 2px;
}

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

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



    .top-img {
        width: 90%;
    }
    .material-area p {
        display: none;
    }
    .material-small {
        width: 100%;
    }
    .material-magnify img.close-box {
        width: 6%;
        right:15px;
        top: 15px;
        cursor: pointer;
    }

    .material-magnify {
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        padding: 10px;
        background-color: #e2f0d9;
        border: 6px solid #c00000;
        border-radius: 1rem;
    }

    .top-question {
        font-size: 1.2rem;
        line-height: 1.5em;
    }

    .question p{
        font-size: 1.2em;
        text-align: left;
    }

    article.q-contents {
        display: block;
    }

    article.q-contents .reference{
        display: block;
        width: 100%;
        font-size: 1em;
        padding: 8px 0;
    }

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

    article.q-contents .answer p{
        display: block;
        width: 100%;
        font-size: 1em;
        padding: 8px 0;
    }

    article.q-contents .answer div{
        display: flex;
        -webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;

    }

    article.q-contents .answer div img{
        margin: 0 4px;
    }

    article.explanation{
       display: block;
       width: 100%;
    }
    article.explanation .qa-seq{
        width: 45px;
    }

    article.explanation h2{
        font-size: 1.5em;
        margin: 8px 0;
        display: block;
    }


    article.explanation p.wide{
        width: 100%;
        display: block;
        font-size: 1.2em;
        margin: 0;
    }

    article.last-message {
        display: block;
        width: 100%;
     }


     article.last-message div.reference {
        margin: 0;
        width:100%;
        font-size: 1rem;
    }

    .comment-img{
        margin: 0 auto;
    }


}