@charset "utf-8";
:root{
  --color-black: #231815;
  --color-red: #e60012;
  --color-blue: #0068b7;
}
body {
  -webkit-text-size-adjust: 100%;
  }
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
img{
  vertical-align: bottom;
  width: 100%;
  max-width: 100%;
}
ruby[data-ruby]{
  position: relative;
}
ruby[data-ruby]::before{
  content: attr(data-ruby);
  position:absolute;
  left:-2em;
  right:-2em;
  top:-1em;
  text-align:center;
  font-size:10px;
}
.ttl-q ruby[data-ruby]::before{
 top: -.8em;
}
rt{
  display: none;
}
ul{
  list-style: none;
}
body{
  cursor: default;
  background-color: #fff;
  width: 100vw;
  min-height: 100vh;
}
.bg, .inner{
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.inner{
  position: relative;
  max-width: calc(1084px + 20px);
  width: 100%;
  max-height: calc(626px + 20px + ((100vh - 646px) / 2 + 0px));
  height: calc(1124px * .577 + ((100vh - 646px) / 2 + 0px));
  padding: 10px;
  padding-top: calc((100vh - 646px) / 2 + 0px);
  
}
.bg{
  position: absolute;
  background: url(../img/bg.png) no-repeat center center / contain;
  max-width: calc(1084px);
  width: calc(100% - 20px);
  max-height: calc(626px);
  height: calc(1084px * .577);
  margin: 10px 0;
  overflow: hidden;
}
h1{
  position: relative;
  max-width: calc(1340px / 2);
  margin: 20px auto 10px;
}
h1.w-img::after{
  position: absolute;
  content: '';
  background: url(../img/w_title.png) no-repeat center center / contain;
  width: 120px;
  height: 149px;
  top: -16px;
  right: -130px;
  z-index: 1;
}
p{
  line-height: 1.8;
}
a{
  text-decoration: none;
  color: var(--color-black);
}
rt{
  font-size: 10px;
  line-height: 1;
}


/*************/
#content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}
.btn{
  cursor: pointer;
}
.next{
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  margin: 0 auto;
  width: calc(688px /3);
}
.btn.next.result,
.btn.next.top, .link{
  background-image: linear-gradient(#00629f 0%, #00a0e9 50%, #00629f 100%);
  border: 2px solid #3ebff0;
  border-radius: 40px;
  font-weight: bold;
  color: #fff;
  padding: 6px 0;
  display: block;
  position: static;
  transform: translate(0);
}
.link{
  background-image: linear-gradient(#b40005 0%, #cd4e34 50%, #b40005 100%);
  border: 2px solid #b40005;
}
.btn.next.result{
  width: 350px;
  font-size: 26px;
}
.btn.next.top a{
  color: #fff;
}
#result_event{
  font-family: source-han-sans-japanese, sans-serif;
  font-weight: 700;
  font-style: normal;
}


/** トップ画面 **/
#content.top{
  height: auto;
}
.ttl{
  text-align: center;
}
.start{
  position: relative;
  text-align: center;
  margin: 60px auto;
  padding: 0 130px;
  max-width: 572px;
  width: 100%;
  left: 0;
  transform: translate(0);
}
.start::before{
  position: absolute;
  content: '';
  background: url(../img/start-img.png) no-repeat center center / contain;
  width: calc(600px / 3 * 2);
  height: calc(226px / 3 * 2);
  bottom: calc((-226px / 3 * 2) + -30%);
  left: 50%;
  transform: translate(-50%, 0);
}


/** 問題画面 **/
.ttl-q{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 962px;
  padding: 45px 0;
  width: 100%;
  margin: 0 auto 20px;
}
.ttl-q p, .ttl-q p rb{
  font-size: 24px;
}
.ttl-q::before, .ttl-q::after{
  position: absolute;
  content: '';
  background: url(../img/line.png) no-repeat center center/ contain;
  width: 100%;
  height: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  max-width: 962px;
  max-height: 25px;
}
.ttl-q::before{
  top: 0;
}
.ttl-q::after{
  bottom: 0;
}
.ttl-q .img{
  width: 100%;
  max-width: 196px;
  margin: 0 10px 0 0;
}
.ttl-q p{
  position: relative;
  width: calc(100% - 200px);
  color: var(--color-blue);
  line-height: 1.7;
  padding-left: 30px;
  font-family: source-han-sans-japanese, sans-serif;
  font-weight: 900;
  font-style: normal;
}
.ttl-q p ruby{
  letter-spacing: 0;
}
.ttl-q p::before{
  position: absolute;
  content: '';
  top: 50%;
  left: -4px;
  transform: translate(0, -50%);
  width: 6px;
  height: 90%;
  min-height: 90px;
  background-color: var(--color-blue);
}
.choices{
  width: calc(80% - 16px);
  margin-left: 16px;
}
.choice{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #fff;
  text-align: left;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
}
.choice p{
  font-size: 30px;
  font-weight: bold;
  color: var(--color-black);
  line-height: 1;
  font-family: source-han-sans-japanese, sans-serif;
  font-weight: 700;
  font-style: normal;
  padding-bottom: .25rem;
  width: calc(100% - 57px);
}
.choice .img{
  margin: 0 24px 0 10px;
  width: 100%;
  max-width: 57px;
}
.answer{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 924px;
  min-height: 250px;
  margin: 0 auto;
}
.answer .img{
  width: auto;
}
.answer>.img{
  width: 181px;
  height: auto;
  margin: 0 auto;
}
.answer .choice .img{
  width: 57px;
}


/** 解説画面 **/
.correct_answer,
.commentary{
  font-family: dnp-shuei-mgothic-std, sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 1.7;
  width: 83%;
  font-size: 15px;
}
.ttl-q p ruby,
.correct_answer ruby,
.commentary ruby,
.choice ruby{
  display: inline-block;
}
.correct_answer ruby[data-ruby]::before,
.commentary ruby[data-ruby]::before{
  top: -.8em;
  letter-spacing: -1px;
}
.correct_answer span{
  color: var(--color-blue);
}
.answer .result_img{
  width: 20%;
}
.answer .result_img .img{
  width: 184px;
  height: auto;
  margin: 0 auto;
}
.answer .correct-choices::after, .answer .incorrect-choices1::after, .answer .incorrect-choices2::after{
  position: absolute;
  content: '';
  bottom: -1px;
  right: 0;
  width: 200px;
  height: 160px;
}
.answer .correct-choices::after{
  background: url(../img/w_correct.png) no-repeat center left / contain;
}
.answer .incorrect-choices1::after{
  background: url(../img/w_incorrect_1.png) no-repeat center left / contain;
}
.answer .incorrect-choices2::after{
  background: url(../img/w_incorrect_2.png) no-repeat center left / contain;
}


/** 結果画面 **/
.js-result-content{
  text-align: center;
  font-family: dnp-shuei-mgothic-std, sans-serif;
  font-weight: 600;
  font-style: normal;
  position: relative;
  top: -20px;
}
.rank .img{
  position: relative;
  width: 962px;
  margin: 0 auto;
  padding-top: 75px;
}
.rank{
  position: relative;
}
.rank::after{
  position: absolute;
  content: '';
  background: url(../img/line.png) no-repeat center center/ contain;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  max-width: 962px;
  max-height: 25px;
}
.rank .img{
  width: calc(1710px / 2);
}
.correct_num{
  font-size: 20px;
  position: absolute;
  z-index: 1;
  color: var(--color-blue);
  font-weight: 100;
  top: 115px;
  left: 370px;
}
.share{
  font-size: 16px;
  display: block;
  background: #fff;
  border-radius: 20px;
  width: 500px;
  margin: 6px auto 0;
  padding: 2px 40px 2px 62px;
}
.share span{
  position: relative;
  width: 20px;
  height: 18px;
}
.share span::before{
  position: absolute;
  content: '';
  background: url(../img/icon_dl.png) no-repeat center center / contain;
  top: 50%;
  left: -22px;
  width: 20px;
  height: 18px;
  transform: translate(0, -50%);
}
.js-top-btn{
  display: flex;
  justify-content: center;
  width: 90%;
  margin: 0 auto;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 0);
}
.js-top-btn>*{
  width: 380px;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}
.js-top-btn p{
  display: inline-block;
  font-size: 26px;
  font-family: source-han-sans-japanese, sans-serif;
  font-weight: 700;
  font-style: normal;
}
.link span{
  position: relative;
}

/*********************************/
@media screen and (max-width: 1104px){
  .bg{
    height: calc(100vw * .577 - 10px);
  }
  span.q1{
    display: inline-block;
    min-width: 80px;
    text-align: center;
  }
  span.q8{
    display: inline-block;
    min-width: 70px;
    text-align: center;
  }
  span.q9{
    display: inline-block;
    min-width: 130px;
    text-align: center;
  }

  .inner{
    max-height: calc(100vw * .577 + ((100vh - 100vw * .577) / 2 + 20px));
    padding-top: calc((100vh - 100vw * .577) / 2);
  }
  .js-content{
    position: relative;
    padding-bottom: 8.25vw;
  }
  .top .js-content{
    padding-bottom: 0;
  }
  h1{
    width: 62%;
    margin: 2vw auto 1vw;
  }
  h1.w-img::after{
    width: 11vw;
    height: 13.7vw;
    right: -12vw;
  }
  .start.next{
    width: 54%;
    margin: 0 auto;
    padding: 4.5vw 12vw 5vw;
  }
  .start::before{
    bottom: calc(-13.575vw + 15%);
    width: 36.199vw;
    height: 13.575vw;
  }
  .ttl-q{
    width: 89%;
    margin-bottom: .5vw;
    padding: 3.75vw 0 3vw;
    height: 16vw;
  }
  .ttl-q p{
    width: calc(100% - 14px - 15vw);
  }
  .ttl-q p::before{
    width: 4px;
    min-height: 7vw;
  }
  .ttl-q .img{
    width: 15vw;
  }
  p{
    font-size: 2.125vw;
  }
  .ttl-q p, .ttl-q p rb{
    font-size: 1rem;
  }
  .answer>.img{
    width: 18%;
  }
  .answer{
    max-width: 86vw;
    min-height: auto;
    height: 21vw;
  }
  .answer .result_img{
    width: 18%;
  }
  .choices{
    width: calc(82% - 2vw);
    margin-left: 2vw;
  }
  .answer .choice .img{
    width: 7%;
    margin: 0 3.5% 0 1%;
  }
  .answer .correct-choices::after, .answer .incorrect-choices1::after, .answer .incorrect-choices2::after{
    bottom: -2vw;
  }
  .choice{
    margin-bottom: 1vw;
    padding: 6px 10px;
  }
  .choice p{
    font-size: 2.5vw;
    width: calc(100% - 7%);
  }
  .answer .result_img .img{
    width: 100%;
  }
  .correct_answer,.commentary{
    font-size: .875rem;
    width: 85%;
  }
  .next.start{
    bottom: .875vw;
  }
  .next{
    width: 20%;
    bottom: .5vw;
  }
  .answer .correct-choices::after, .answer .incorrect-choices1::after, .answer .incorrect-choices2::after{
    width: 14.25vw;
    height: 12.5vw;
  }
  .rank{
    width: 90%;
    margin: 0 auto;
  }
  .rank .img{
    width: 87%;
    padding-top: 6.5vw;
  }
  .share{
    font-size: 1.45vw;
    width: 52%;
    margin: .7vw auto 0;
    padding: .125vw 2.5vw .125vw calc(2.5vw + 1.875vw);
  }
  .share::before{
    width: 20px;
    height: 18px;
  }
  .btn.next.result, .btn.next.top, .link{
    width: 39%;
    padding: .5vw 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn.next.result, .js-top-btn{
    position: absolute;
    transform: translate(-50%, 0);
  }
  .js-top-btn p{
    font-size: 2.375vw;
  }
  .btn.next.result{
    width: 30%;
    bottom: 2.5vw;
    width: 35%;
  }
  .correct_num{
    top: 26%;
    left: 33%;
    font-size: 1.75vw;
  }
}
.sp{
  display: none;
}
@media screen and (max-width: 799px){
  .js-content{
    padding: 0 16px;
  }
  .pc{
    display: none;
  }
  .sp{
    display: block;
  }
  .bg, .inner{
    position: relative;
    padding: 0;
    top: 0;
    left: 0;
    transform: none;
    min-height: 100vh;
  }
  .inner{
    height: 100%;
    max-height: 100%;
  }
  .bg{
    display: flex;
    align-items: center;
    overflow: auto;
    background: url(../img/bg_sp.png) no-repeat center center / cover;
    max-height: none;
    height: 100%;
    width: 100%;
    margin: 0;
  }
  #content{
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    height: auto;
  }
  #content.top{
    padding-bottom: 140px;
  }
  #content.top #title{
    margin: 0 auto 2.5rem;
    padding-right: 0;
    width: calc(536px / 2);
    height: calc(246px / 2);
  }
  #title{
    padding-right: 68px;
    width: calc(536px / 3 + 68px);
    height: calc(246px / 3 + 2.5rem);
  }
  h1.w-img{
    margin: 0 auto 1rem;
    padding-top: 2.5rem;
  }
  h1.w-img::after{
    width: calc(120px / 2);
    height: calc(149px / 2);
    right: -8px;
    top: auto;
    bottom: 0;
  }
  .next{
    width: calc(688px / 3);
    height: calc(152px / 3);
    bottom: 50px;
  }
  .start.next{
    width: 90%;
    max-width: 300px;
    padding: 0;
    bottom: 0;
  }
  .start::before{
    background: url(../img/top_sp.png) no-repeat center center / cover;
    width: 300px;
    height: 113px;
    top: 140%;
    left: 50%;
    transform: translate(-50%, 0);
  }
  .ttl-q{
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    height: 100%;
  }
  .ttl-q .img{
    width: calc(392px / 4);
    margin: .75rem auto;
  }
  .ttl-q p{
    width: 90%;
    padding-left: 0;
    margin: .5rem auto;
    font-size: 1rem;
    line-height: 1.8;
  }
  .ttl-q p::before{
    display: none;
  }
  .answer{
    position: relative;
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
    padding-bottom: 160px;
  }
  .answer>.img{
    position: absolute;
    width: calc(169px / 3*2);
    bottom: 10px;
    left: 50%;
    transform: translate(-50%,0);
  }
  .answer .result_img{
    width: calc(181px / 3*2);
    height: calc(227px / 3*2);
    margin: 0 auto .725rem;
  }
  .answer .result_img .img{
    width: 100%;
  }
  .correct_answer, .commentary{
    font-size: 1rem;
    width: 98%;
    letter-spacing: 1px;
    line-height: 1.8;
    margin: 0 auto;
  }
  .sp.rt{
    display: inline;
  }
  .correct_answer{
    margin-top: 0;
  }
  .choices{
    width: 100%;
    margin-left: 0;
    height: 100%;
  }
  .choice{
    margin-bottom: .75rem;
    padding: 10px 10px 6px;
  }
  .choice ruby[data-ruby]::before{
    top: -.8em;
  }
  .answer .choice .img{
    width: calc(57px / 2);
    height: calc(58px / 2);
  }
  .choice p{
    font-size: 1.25rem;
    width: calc(100% - 57px / 2);
    line-height: 1.7;
  }
  .answer .correct-choices::after,
  .answer .incorrect-choices1::after,
  .answer .incorrect-choices2::after{
    top: 7.75rem;
    left: 50%;
    transform: translate(60px, 0);
  }
  .answer .correct-choices::after{
    background: url(../img/w_correct_sp.png) no-repeat center left / contain;
    width: calc(175px / 2);
    height: calc(183px / 2);
  }
  .answer .incorrect-choices1::after{
    background: url(../img/w_incorrect_1_sp.png) no-repeat center left / contain;
    width: calc(161px / 2);
    height: calc(190px / 2);
  }
  .answer .incorrect-choices2::after{
    background: url(../img/w_incorrect_2_sp.png) no-repeat center left / contain;
    width: calc(175px / 2);
    height: calc(183px / 2);
  }
  .btn.next.result{
    width: 80%;
    bottom: 50px;
  }
  #result_event{
    font-size: 1.25rem;
    line-height: 1.4;
  }
  .rank .img{
    padding-top: 9.5vw;
    width: 100%;
    max-width: 639px;
  }
  .rank::after{
    top: 3vw;
  }
  .correct_num{
    font-size: 3.5vw;
    top: 9.5vw;
    left: 6.5%;
  }
  .share{
    font-size: 1rem;
    width: 100%;
    margin: 1rem auto;
    border-radius: 2rem;
  }
  .share{
    width: 100%;
    max-width: 420px;
    padding: .375rem 1rem .375rem calc(2rem);
    line-height: 1.4;
  }
  .share span::before{
    transform: translate(0);
  }
  .js-top-btn{
    display: block;
    position: relative;
    height: auto;
    left: auto;
    bottom: 1rem;
    transform: translate(0);
    padding-bottom: 1rem;
  }
  .btn.next.top, .link{
    width: 100%;
    max-width: 420px;
  }
  .btn.next.top p, .link p{
    font-size: 20px;
  }
  .top{
    margin-bottom: 1rem;
  }
}


@media screen and (max-width: 399px){
  .choice p{
    font-size: 5.125vw;
  }
}