/* 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");
  }


  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;
  }
  /* リセット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{
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-weight: 600;
  }

* {
    box-sizing: border-box;
}

body{
	font-size: 94%;
	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;
}

p{
    text-align: justify;
}

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

h1 {
    font-size: 2rem;
    text-align: center;
    padding: 8px;
    margin: 0;
    line-height: 166%;
    background-color: #347CB3;
    width: 100%;
    color: #fff;
    background-image: url("../../img/nav.png");
}

main h2 {
    margin-top: 4px;
    line-height: 133%;
}

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

button:hover{
    opacity: 0.8;
}

.back_button{
    margin: 20px 0;
}


.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: 12rem;
}
.selectmenu img{
    text-align: center;
    width: 15rem;
    height: 10rem;
}

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


.explanation {
    width: 100%;
    margin-top: 40px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid #498fcf;
    border-radius: 1rem;
    font-size: 1.5rem;
}
.explanation .results {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ddeeff;
    border: 2px solid #498fcf;
    border-radius: 1rem;
}
.explanation .results>div {
    text-align: center;
}
.explanation .results>div.wide {
    width: 70%;
    border-right: solid 2px #498fcf;
}
.explanation .results>div.narrow {
    width: 30%;
    font-size: 2rem;
}




.explanation p {
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}
.explanation a {
    font-size: 1.1rem;
    word-break: break-all;
    color: #498fcf;

}
.explanation .buttons {
    width: 80%;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
}


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

.nowrap {
    white-space: nowrap;
}

.right {
    text-align: right;
}

.invisible {
    display: none;
}


/*================PC2 600px ~ 959px================ */
@media screen and ( max-width:960px){
    main{
        width: 100%;
        margin: 0 auto;
    }

   h1 {
        font-size: 1.5rem;
    }

    main h2 {
        font-size: 1.25rem;
    }

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

    .selectmenu button{
        text-align: center;
        font-size: 1.2rem;
        padding: 1vh 0;
        width: 100%;
    }
    .back_button{
        margin: 40px 0;
        text-align: center;

    }


    .explanation {
        width: 90%;
        margin: 0 auto;
        margin-top: 40px;
    }
    .explanation .results {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #ddeeff;
        border: 2px solid #498fcf;
        border-radius: 1rem;
    }


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



    .explanation .buttons{
        display: block;
        text-align: center;
    }

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



}
