@font-face {
  font-family: 'Graduate';
  src: url('../fonts/Graduate-Regular.woff2') format('woff2'),
       url('../fonts/Graduate-Regular.woff') format('woff'),
       url('../fonts/Graduate-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; 
}


div, span, p, [contenteditable] {
  caret-color: transparent;
}


body {
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}


.simulation_wrapper {
  width: 100%;
  background-size: cover;
  position: relative;
  background-image: url(../images/simulation_wrapper_bg.webp) ;
  background-position: center center;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .simulation_wrapper {
    background-image: none;
  }
}

.simulation_wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); 
  z-index: 0; 
}

.simulation_wrapper> * {
  position: relative;
  z-index: 1; 
}

.simulation_wrapper .simulation_slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.simulation_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.simulation_inner {
  max-width: 1700px;
  min-height: calc(100vh - 2vw);
  height: auto;
  margin: 0 5.555555555555555vw auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10.104166666666666vw;
  padding: 1vw;
}

@media screen and (max-width: 1000px) {
  .simulation_inner {
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .simulation_inner {
    flex-direction: column;
    padding: 0;
    max-width: 100%;
    min-height: 100%;
    height: 100%;
  }
}

.simulation_title {
  position: relative;
  width: 22.083333333333332vw;
}

.simulation_logo {
  width: 14.0625vw;
  position: relative;
  margin-bottom: 3.75vw;
}

    .simulation_logo .reset {
  border-radius: 90px;
  box-shadow: 30px 30px 60px 0px rgba(35, 24, 21, 0.3);
  border: none;
  cursor: pointer;
  width: 10.333333333333332vw;
  position: absolute;
  bottom: -45%;
  left: 50%;
  transform: translateX(-50%);
}


@media screen and (max-width: 1000px) {
  .simulation_title,.simulation_logo,.top_logo   {
    display: none;
  }
}

.top_logo{
  position: absolute;
  top: 3.28125vw;
  right: 4.166666666666666vw;
  width: 10vw;
  height: 2.5vw;
  z-index: 2;
}

.simulation {
  aspect-ratio: 540 / 960;
  position: relative;
  flex: 1 1 auto;
  max-width: 360px;
  width: 20%;
  margin: 40px 0;
}

@media screen and (max-width: 768px) {
  .simulation {
      width: 100%;
      height: 100%;
      max-height: 100%;
      max-width: none;
      margin: 0;
  }
}

.simulation::before {
  content: "";
  position: absolute;
  background: url(../images/phone_frame.webp) no-repeat center center;
  background-size: cover;
  width: 110%;
  left: -5%;
  top: -6%;
  aspect-ratio: 540 / 980;
}

@media screen and (max-width: 768px) {
  .simulation::before {
      display: none;
  }
}

#clickBlocker {
  position: absolute;
  inset: 0;
  background: transparent; 
  z-index: 99999;
  display: none;
}

.page {
  display:none; 
  position:relative; 
  height: 100%;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-weight: bold;
  overflow-x: hidden;
}

.page.active { display:flex; }

.page::-webkit-scrollbar {
  width: 3px;
}

.page::-webkit-scrollbar-thumb {
  background: #ef411f;
  border-radius: 10px;
  border: 3px solid transparent;
}

.page::-webkit-scrollbar-thumb:hover {
  background: #ef411fb3;
}

.page::-webkit-scrollbar-track {
  background: rgba(43, 43, 43, 0.8);
}

.fade { opacity:0; transition: opacity 0.5s ease; pointer-events: none;}
.fade.show { opacity:1; pointer-events: auto;}

.fade-content {opacity: 0; transition: opacity 0.5s ease; z-index: 1; pointer-events: none;}
.fade-content.show {opacity: 1; pointer-events: auto;}

.next-button {
  width: 180px;
  height: 45px;
  background-color: #fff;
  color: #E73820;
  border-radius: 40px;
  font-size: 16px;
  display: flex; 
  align-items: center;
  justify-content: center;
  position: absolute;
  box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.6);
}

.next-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #E73820;
}

@media screen and (max-width: 768px) {
.next-button {
  width: 48.4vw;
  height: 12.4vw;
  border-radius: 93px;
  font-size: 4.3999999999999995vw;
}

.next-button::after {
  right: 4.0000vw;
  border-top: 2.1333vw solid transparent;
  border-bottom: 2.1333vw solid transparent;
  border-left: 3.2000vw solid #E73820;
}
}

#firstPage.page {
  height: 100%;
}

/* スタートページ */
#startPage { 
  background: url(../images/start_bg.webp) no-repeat center center; 
  background-size: cover; 
  display: flex !important;
  z-index: 1;
  position: absolute;
  width: 100%;
}

#startPage .next-button {
  bottom: 40px;
  font-family: 'Graduate', sans-serif;
  font-weight: 500;

}

@media screen and (max-width: 768px) {
  #startPage .next-button {
    bottom: 12vw;
  }
}

.start_logo{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 74px;
  height: 18px;
}
@media screen and (max-width: 768px) {
.start_logo{
  position: absolute;
  top: 3.7333vw;
  right: 3.7333vw;
  width: 19.7333vw;
  height: 4.8000vw;
}
}

/* 説明ページ */
#instructionPage {
  background: url(../images/bg.webp) no-repeat center center;
  background-size: cover;
  position: absolute;
  padding-top: 80px;
  display: flex !important;
  top: 0;
  opacity: 1;
  z-index: 0;
  width: 100%;
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  #instructionPage {
    padding-top: 26.666666666666668vw;
  }
}


#instructionPage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* 오버레이  オーバーレイ*/ 
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
}

#instructionPage.bg-dark::before {
  opacity: 1;
}


#instructionPage p {
  text-align: center;
  font-size: 18px;
  line-height: 2;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  #instructionPage p {
    font-size: 4.266666666666667vw;
  }
}

#instructionPage .next-button {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 768px) {
  #instructionPage .next-button{
    bottom: 14.666666666666668vw;
  }
}

#instructionNextBtn {
  display: flex !important;
  justify-content: center;
}


#instructionPage .fixlogo {
  position: absolute;
  top: 45%;
  right: 19px;
  width: 60px;
  z-index: 1;
}

#instructionPage .instruction_txt{
  z-index: 1;
  line-height: 1.5;
  font-size: 13px;
  margin-top: 10px;
}
@media screen and (max-width: 768px) {
#instructionPage .instruction_txt{
  font-size: 3.4666666666666663vw;
  margin-top: 6.666666666666667vw;
}
}


/* 注意ページ */
#noticePage {
  position: absolute;
  top: 0;
  left: 0;
  padding: 50px 20px 0;
  display: flex !important;
  align-items: center;
}
@media screen and (max-width: 768px) {
#noticePage {
  padding: 13.333333333333334vw 5.333333333333334vw 0;
}
}


#noticePage .how_txt,
#noticePage .notice_txt{
  z-index: 1;
}

#noticePage .how_txt{
  margin-bottom: 24px;
}
@media screen and (max-width: 768px) {
#noticePage .how_txt{
  margin-bottom: 5.033333333333334vw;
}
}

#noticePage .how_txt h1,
#noticePage .notice_txt h1 {
  font-size: 20px;
  margin-bottom: 6px;
}
@media screen and (max-width: 768px) {
#noticePage .how_txt h1,
#noticePage .notice_txt h1 {
    font-size: 5.333333333333334vw;
    margin-bottom: 1.6vw;
  }
}

#noticePage .how_txt p,
#noticePage .notice_txt p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
}
@media screen and (max-width: 768px) {
#noticePage .how_txt p,
#noticePage .notice_txt p {
    font-size: 4vw;
  }
}

#noticePage .how_txt p span,
#noticePage .notice_txt p span{
  font-weight: 700;
}



@media screen and (max-width: 768px) {
  #noticePage .next-button{
    position: relative;
    left: auto;
    transform: translateX(0);
    bottom: 0;
    margin-top: 26vw;
  }
}

/* 問題/解説ページ */ 
#quizContainer {
  align-items: center;
  aspect-ratio: 1500 / 2667 ;
  background-attachment: scroll !important;
}

#overlay { 
  position:absolute; 
  top:0; left:0; width:100%; height:100%; 
  background:rgba(0,0,0,0.5); 
  z-index:10;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* オーバーレイイメージ */
#overlayImageContainer { 
  position:absolute; 
  top:0%; left:0%; 
  opacity:0; 
  transition:opacity 1.5s ease; 
  z-index:11; 
  width: 100%;
}

/* 問題 */
#quizPageContent {
  position: relative;
  z-index: 20;
  padding: 25px 20px;
}

@media screen and (max-width: 768px) {
#quizPageContent {
  padding: 8vw 5.333333333333334vw;
}
}

#quizPageContent h1 {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
#quizPageContent h1 {
  margin-bottom: 4.266666666666667vw;
  gap: 2.1333333333333333vw;
}
}

#quizPageContent h1 picture {
  width: 100px;
}
@media screen and (max-width: 768px) {
#quizPageContent h1 picture {
  width: 26.666666666666668vw;
}
}

#quizPageContent h1 span {
  font-size: 20px;
}
@media screen and (max-width: 768px) {
#quizPageContent h1 span {
  font-size: 4.8vw;
}
}

#quizPageContent .questionText {
  font-size: 16px;
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
#quizPageContent .questionText {
  font-size: 4.266666666666667vw;
  margin-bottom: 5.866666666666666vw;
}
}

#quizPageContent .questionText span {
  background-color: #fff;
  color: #000;
}

@media screen and (max-width: 768px) {
#quizPageContent .questionText span {
  text-underline-offset: 0.5333vw;
}
}

#quizPageContent .options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
@media screen and (max-width: 768px) {
#quizPageContent .options {
  gap: 5.333333333333334vw;
}
}

#quizPageContent .options button {
  display:flex;
  align-items: center;
  padding: 0 25px;
  width: 100%;
  aspect-ratio: 134 / 34;
  border: 1px solid #ccc;
  cursor:pointer;
  transition: background 0.3s;
  border-radius: 50px;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
#quizPageContent .options button {
  padding: 0 6.666666666666667vw;
  aspect-ratio: 134 / 34;
  border: 1px solid #ccc;
  cursor:pointer;
  border-radius: 170px;
  font-size: 4.266666666666667vw;
}
}

#quizPageContent .options button span {
  font-size: 34px;
  flex: 0 0 16%;
}

@media screen and (max-width: 768px) {
#quizPageContent .options button span {
  font-size: 9.0667vw;
}
}

#quizPageContent .options button.selected {
  background:#ffffff;
  color: #000;
}

#quizPageContent #answerBtn {
  width: 180px;
  height: 40px;
  background: linear-gradient(90deg, #911A03, #BC2911, #E73820);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  border: 1px solid #fff;
  font-size: 16px;
  margin: 50px auto 0 ;
  position: relative;
}
@media screen and (max-width: 768px) {
#quizPageContent #answerBtn {
  width: 48.4vw;
  height: 12.4vw;
  border-radius: 170px;
  border: 1px solid #fff;
  font-size: 4.266666666666667vw;
  margin: 16vw auto 0 ;
}
}

#quizPageContent #answerBtn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

#quizPageContent #answerBtn span {
  position: absolute;
  right: 20px;
}

/* feedback */
#quizPageContent .feedback {
  position:absolute;
  top:0%; left:0%;
  width: 100%;
}

#quizPageContent .feedback img { 
  width:100%; height:auto; 
  opacity:0;
}

/* 解説 */
#explanationPageContent {
  position: relative;
  padding: 30px 20px;
  font-size: 22px;
  overflow-y: scroll;
  display: none;
  z-index: 20;
}

@media screen and (max-width: 768px) {
#explanationPageContent {
  padding: 8vw 5.333333333333334vw;
}
}

#explanationPageContent::-webkit-scrollbar {
  width: 3px;
}

#explanationPageContent::-webkit-scrollbar-thumb {
  background: #ef411f;
  border-radius: 10px;
  border: 3px solid transparent;
}

#explanationPageContent::-webkit-scrollbar-thumb:hover {
  background: #ef411fb3;
}

#explanationPageContent::-webkit-scrollbar-track {
  background: rgba(43, 43, 43, 0.8);
}

#explanationPageContent h1 {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
#explanationPageContent h1 {
  margin-bottom: 4.266666666666667vw;
}
}

#explanationPageContent h1 picture {
  width: 100px;
}
@media screen and (max-width: 768px) {
#explanationPageContent h1 picture {
  width: 26.666666666666668vw;
}
}

#explanationPageContent h1 span {
  font-size: 20px;
}
@media screen and (max-width: 768px) {
#explanationPageContent h1 span {
  font-size: 4.8vw;
}
}

#explanationPageContent #explanationQuestion {
  margin-bottom: 20px;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationQuestion {
  margin-bottom: 20px;
  font-size: 4.266666666666667vw;
}
}

#explanationPageContent #explanationQuestion span {
  background-color: #fff;
  color: #000;
}

@media screen and (max-width: 768px) {
#explanationPageContent #explanationQuestion span {
  text-underline-offset: 0.5333vw;
}
}

#explanationPageContent #explanationAnswer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media screen and (max-width: 768px) {
#explanationPageContent #explanationAnswer {
  gap: 2.3889vw;
}
}

#explanationPageContent #explanationAnswer strong {
  font-size: 20px;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationAnswer strong {
  font-size: 4.8vw;
}
}

#explanationPageContent #explanationAnswer button {
  display:flex;
  align-items: center;
  padding: 5px 20px;
  width: 100%;
  aspect-ratio: 134 / 34;
  cursor:pointer;
  border-radius: 40px;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  cursor: auto;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationAnswer button {
  padding: 0 6.666666666666667vw;
  border-radius: 170px;
  font-size: 4.133333333333333vw;
}
}

#explanationPageContent #explanationAnswer button span {
  font-size: 40px;
  flex: 0 0 45px;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationAnswer button span {
  font-size: 8vw;
  flex: 0 0 9.6vw;
}
}

#explanationPageContent #explanationText {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#explanationPageContent #explanationText p {
  margin: 10px 0 20px;
  font-size: 14px;
  line-height: 1.8;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationText p {
  margin: 5.333333333333334vw 0 10.666666666666668vw;
  font-size: 4vw;
}
}

#explanationPageContent #explanationText h2 {
  margin-top: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #fff;
  width: 100%;
  font-size: 22px;
  text-align: center;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationText h2 {
  margin-top: 0;
  padding-bottom: 1.6vw;
  font-size: 6.533333333333332vw;
}
}

#explanationPageContent #explanationText ul {
  padding-top: 10px;
  width: 100%;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationText ul {
  padding-top: 5.066666666666666vw;
}
}

#explanationPageContent #explanationText li {
  font-size: 16px;
  text-indent: -16px;
  padding-left: 16px;
  margin-top: 5px;
}
@media screen and (max-width: 768px) {
#explanationPageContent #explanationText li {
  font-size: 4vw;
  text-indent: -4vw;
  padding-left: 4vw;
  margin-top: 2.1333333333333333vw;
}
}

#explanationPageContent .next-button {
  position: relative;
  margin: 30px auto 0;
}

@media screen and (max-width: 768px) {
#explanationPageContent .next-button {
  margin: 8vw auto 0;
  max-height: 100%;
}
}

/* 結果ページ */
.resultPage {
  text-align: center;
  overflow-y: scroll;
  position: relative;
  aspect-ratio: 1500 / 2667 ;
  background: url(../images/bg.webp) no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
}


.bg_wrapper {
  position: relative;
  z-index: 0;
}

.bg_wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: background 1s ease, opacity 1s ease;
  z-index: -1; 
}

.bg_wrapper.dark-bg::before {
  background: rgba(0,0,0,0.5);
  opacity: 1;
}

.resultPage .fade-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

@media screen and (max-width: 768px) {
.resultPage .fade-content {
  opacity: 0;
  transform: translateY(5.3333vw);
  transition: opacity 1s ease, transform 1s ease;
}
}

.resultPage .fade-content.show {
  opacity: 1;
  transform: translateY(0);
}

.resultPage.page.active {
  display: block;
}

.resultPage .result_wrapper {
  position: relative;
  padding: 0 15px;
}

@media screen and (max-width: 768px) {
.resultPage .result_wrapper {
  position: relative;
  padding: 5.3333vw 6.0000vw;
}
}

.resultPage .resultPage_title {
  z-index: 1;
  position: relative;
  padding-top: 46px;
  display: block;
}

@media screen and (max-width: 768px) {
.resultPage .resultPage_title {
  z-index: 1;
  position: relative;
  display: block;
  padding: 15vw 8.3333vw 0;
}
}

.resultPage .resultPage_title picture {
  display: block;
  width: 60%;
  margin: 0 auto;
}

.resultPage .resultPage_title span{
  font-size: 60px;
}

@media screen and (max-width: 768px) {
.resultPage .resultPage_title span{
  font-size: 15vw;
}
}

.resultPage .fixlogo {
  position: absolute;
  top: 45%;
  right: 19px;
  width: 96px;
  z-index: 1;
  transition: opacity 0.6s ease;
  opacity: 1;
}

.resultPage .fixlogo.fade-out {
  opacity: 0;
}

.resultPage #partialScore,
.resultPage #perfectScore {
  font-family: 'Graduate', sans-serif;
  background: url(../images/mark.webp) no-repeat center center;
  background-size: cover;
  width: 90%;
  aspect-ratio: 1 / 1;
  transform:translate(3%,3%); 
  color: #E73820;
  margin: 0 auto;
  padding: 145px 36px 0px 0px;
  line-height: 0.55;
  font-size: 90px;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
.resultPage #partialScore,
.resultPage #perfectScore {
  padding: 37.0000vw 8.0000vw 0.0000vw 0.0000vw;
  font-size: 19.7333vw;
}
}


.resultPage #partialScore b ,
.resultPage #perfectScore b {
  font-size: 136px;
  line-height: 0;
  transform: translateY(6px);
  display: inline-block;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
.resultPage #partialScore b ,
.resultPage #perfectScore b {
  font-size: 29.8667vw;
  transform: translateY(1.6000vw);
}
}

.resultPage #partialScore p,
.resultPage #perfectScore p {
  display: inline-block;
  font-size: 92px;
  letter-spacing: -10px;
  transform: translateY(6px);
}

@media screen and (max-width: 768px) {
.resultPage #partialScore p,
.resultPage #perfectScore p {
  font-size: 23.4667vw;
  letter-spacing: -2.6667vw;
  transform: translateY(1.8667vw);
}
}

.resultPage #partialScore small,
.resultPage #perfectScore small {
  font-size: 28px;
  transform: translateX(7px);
  display: inline-block;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
.resultPage #partialScore small,
.resultPage #perfectScore small {
  font-size: 7.4667vw;
  transform: translateX(1.8667vw);
}
}

.resultPage .next-button {
  position: relative;
  bottom: 0;
}

.resultPage p {
  text-align: center;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
.resultPage p {
  font-size: 4vw;
}
}

.accordionBtn {
  position: relative;
  border-radius: 24px;
}

@media screen and (max-width: 768px) {
.accordionBtn {
  border-radius: 6.4000vw;
}
}

.accordionBtn::before,
.accordionBtn::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 15px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

@media screen and (max-width: 768px) {
.accordionBtn::before,
.accordionBtn::after {
  right: 2.6667vw;
  width: 4.0000vw;
  height: 0.5333vw;
}
}

.accordionBtn::before {
  transform: translate(-50%, -50%);
}

.accordionBtn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordionBtn.open::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion_wrapper {
  height: 0;
  overflow: hidden;
  transition: height 1s ease;
  position: relative;
}


/* 全問正解 */
#perfectResult .resultPage_title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#perfectResult .resultPage_title img{
  width: 160px;
}

@media screen and (max-width: 768px) {
#perfectResult .resultPage_title img{
  width: 42.6667vw;
}
}

#perfectResult .resultPage_title span {
  font-size: 48px;
}

@media screen and (max-width: 768px) {
#perfectResult .resultPage_title span {
  font-size: 12.8000vw;
}
}

#perfectResult input {
  width: 100%;
  height: 40px;
  font-size: 13px;
  border-radius: 5px;
  margin: 12px 0 30px;
  background-color: #fff;
  color: #000;
}

@media screen and (max-width: 768px) {
#perfectResult input {
  height: 11.3333vw;
  font-size: 4vw;
  border-radius: 1.3333vw;
  margin: 6.2000vw 0;
}
}

.certificate_box{
  position: absolute;
  z-index: -100;
  width: 100%;
  height: 100%;
  top: 0;
}


#perfectResult .contents_wrapper > div:not(.terms_wrapper,.certificate) {
  padding: 0 20px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper > div:not(.terms_wrapper,.certificate) {
  padding: 0 5.3333vw;
}
}

#perfectResult .contents_wrapper .certificateBtn {
  width: 100%;
  aspect-ratio: 134 / 34;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.9));
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .certificateBtn {
  width: 100%;
  height: 21.3333vw;
}
}

#perfectResult .contents_wrapper .campaign {
  display: block;
  padding-top: 20px;
  border-top: 1px solid #ffffff;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .campaign {
  padding-top: 8vw;
}
}

#perfectResult .contents_wrapper .campaign p {
  font-size: 10px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .campaign p {
  font-size: 2.6667vw;
}
}

#perfectResult .contents_wrapper .period {
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .period {
  margin-top: 5.6944vw;
}
}

#perfectResult .contents_wrapper .period p{
  font-size: 14px;
  margin-top: 5px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .period p{
  font-size: 3.7722vw;
  margin-top: 0.3472vw;
}
}

#perfectResult .contents_wrapper .period span{
  border: 1px solid #ffffff;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 14px;
  font-weight: 400;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .period span{
  border: 0.0694vw solid #ffffff;
  border-radius: 3.3889vw;
  padding: 0.0694vw 2.5556vw;
  font-size: 4.4722vw;
}
}

#perfectResult .contents_wrapper .social picture{
  display: block;
  width: 100%;
  margin: 19px auto;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .social picture{
  margin: 5.0667vw auto;
}
}

#perfectResult .contents_wrapper .social a {
  color: #92C5FF;
  text-decoration: underline;
}

#perfectResult .contents_wrapper .social .social_txt_box{
  position: relative;
}

#perfectResult .contents_wrapper .social .social_txt {
  position: absolute;
  top: 8px;
  left: 20%;
  text-align: left;
  margin-top: 0;
  font-size: 14px;
  width: 250px;
  font-weight: 500;
  line-height: 1.2;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .social .social_txt {
  top: 3.1333vw;
  font-size: 3.7333vw;
  width: 66.6667vw;
}
}

#perfectResult .contents_wrapper .social .social_read {
  width: 100%;
  font-size: 10px;
  text-align: left;
  text-indent: -10px;
  padding-left: 10px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .social .social_read {
  padding: 1.3333vw;
  border-radius: 2.6667vw;
  font-size: 2.6333vw;
}
}

#perfectResult .contents_wrapper .social .social_read span {
  display: block;
}

#perfectResult .contents_wrapper .price {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .price {
  gap: 2.6667vw;
  margin: 5.3333vw 0;
}
}

#perfectResult .contents_wrapper .price .price_item {
  width: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 5px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .price .price_item {
  border-radius: 2.6667vw;
  gap: 1.3333vw;
}
}

#perfectResult .contents_wrapper .price .price_item button {
  width: 85%;
  height: 35px;
  background: linear-gradient(to right , #921B04 , #E73820);
  color: #ffffff;
  border-radius: 24px;
  font-size: 14px;
  border: 1px solid #ffffff;
  cursor: pointer;
  position: absolute;
  bottom: 20px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .price .price_item button {
  height: 9.3333vw;
  border-radius: 6.4000vw;
  font-size: 3.7333vw;
  border: 0.2667vw solid #ffffff;
  bottom: 5.3333vw;
}
}

#perfectResult .contents_wrapper .price .price_item button::after {
  content: "▶";
  display: inline-block;
  color: #ffffff;
  right: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .price .price_item button::after {
  right: 2.6667vw;
  font-size: 3.2000vw;
}
}

#perfectResult .contents_wrapper .ps {
  text-align: left;
  font-weight: 400;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .ps{
  font-size: 2.6667vw;
}
}

#perfectResult .contents_wrapper .ps p{
  text-align: left;
  font-size: 10px;
  margin-top: 0;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .ps p{
  font-size: 2.6667vw;
}
}

#perfectResult .contents_wrapper .ps span {
  text-align: left;
  margin: 10px 0;
  display: block;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .ps span {
  margin: 2.6667vw 0;
}
}

#perfectResult .contents_wrapper .result_message span {
  display: block;
  font-size: 26px;
  margin-top: 30px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .result_message span {
  font-size: 6.9333vw;
  text-underline-offset: 1.0667vw;
  margin-top: 0;
}
}

#perfectResult .contents_wrapper .campaign_message span {
  display: block;
  font-size: 24px;
  text-underline-offset: 4px;
  margin-bottom: 16px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .campaign_message span {
  font-size: 6.466666666666667vw;
  text-underline-offset: 1.0667vw;
  margin-bottom: 2.666666666666667vw;
}
}

#perfectResult .contents_wrapper #toCertificate {
  color: #92C5FF;
  font-size: 14px;
  margin: 12px auto 20px;
  display: block;
  font-weight: 300;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper #toCertificate {
  font-size: 3.7333vw;
  margin: 3.2000vw auto 5.3333vw;
}
}

#perfectResult .contents_wrapper #termsBtn {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  height: 40px;
  width: 90%;
  margin: 0 auto;
  z-index: 1;
  font-size: 14px;
  transform: translateY(20px);
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper #termsBtn {
  border: 0.2667vw solid #fff;
  height: 10.6667vw;
  margin: 0 auto;
  font-size: 3.7333vw;
  transform: translateY(5.3333vw);
}
}

#perfectResult .contents_wrapper .terms_wrapper {
  color: #000;
  padding: 0 20px;
  background-image: linear-gradient(to bottom , #921B04 , #E73820);
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .terms_wrapper {
  padding: 0 5.3333vw;
}
}

#perfectResult .contents_wrapper .terms_wrapper.open {
  padding: 0 20px 20px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .terms_wrapper.open {
  padding: 0 5.3333vw 5.3333vw;
}
}

#perfectResult .contents_wrapper .terms_wrapper .accordion {
  background-color: #E6E6E6;
  padding: 35px 15px 10px;
  border-radius: 19px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .terms_wrapper .accordion {
  padding: 7.3333vw 4.0000vw 2.6667vw;
  border-radius: 5.0667vw;
}
}

#perfectResult .contents_wrapper .terms_wrapper li {
  margin-bottom: 19px;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .terms_wrapper li {
  margin-bottom: 5.0667vw;
}
}

#perfectResult .contents_wrapper .terms_wrapper p {
  font-size: 13.5px;
  text-align: left;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .terms_wrapper p {
  font-size: 3.3333vw;
}
}

#perfectResult .contents_wrapper .terms_wrapper p.font-red {
  color: #E73820;
}

#perfectResult .contents_wrapper .terms_wrapper p a {
  color: #004697;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#perfectResult .contents_wrapper .certificate {
  margin-top: 60px;
  padding: 40px 20px 20px;
  z-index: 1;
  position: relative;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .certificate {
  margin-top: 16.0000vw;
  padding: 10.6667vw 5.3333vw 5.3333vw;
}
}

#perfectResult .contents_wrapper .certificate::before {
  content: "";
  position: absolute;
  background: #fff;
  width: 90%;
  height: 1px;
  transform: translateX(-50%);
  top: 0;
}

@media screen and (max-width: 768px) {
#perfectResult .contents_wrapper .certificate::before {
  height: 0.2667vw;
}
}

#perfectResult .certificate .profile_wrapper {
  margin-bottom: 20px;
}


@media screen and (max-width: 768px) {
#perfectResult .certificate .profile_wrapper {
  margin-bottom: 5.3333vw;
}
}

#perfectResult .certificate .profile_btn {
  width: 60%;
  text-align: left;
  margin: 10px auto;
  border-bottom: 1px solid #ffffff;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}

@media screen and (max-width: 768px) {
#perfectResult .certificate .profile_btn {
  width: 57%;
  margin: 2.6667vw auto;
}
}


#perfectResult .certificate .profile_btn::before,
#perfectResult .certificate .profile_btn::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 50%;
  width: 15px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

@media screen and (max-width: 768px) {
#perfectResult .certificate .profile_btn::before,
#perfectResult .certificate .profile_btn::after {
  right: 2.6667vw;
  width: 4.0000vw;
  height: 0.5333vw;
}
}

#perfectResult .certificate .profile_btn::before {
  transform: translate(-50%, -50%);
}

#perfectResult .certificate .profile_btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

#perfectResult .certificate .profile_wrapper.open .profile_btn::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

#perfectResult .certificate .profile_wrapper .profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease-in-out;
  background-color: rgba(0, 0, 0, 1);
}

@media screen and (max-width: 768px) {
#perfectResult .certificate .profile_wrapper .profile {
  gap: 5.3333vw;
  border-radius: 2.6667vw;
}
}

#perfectResult .certificate .profile_wrapper.open .profile {
  max-height: 500px;
  transition: max-height 1s ease-in-out;
}


#perfectResult .certificate .profile_wrapper .profile .profile_text {
  padding: 20px;
}

@media screen and (max-width: 768px) {
#perfectResult .certificate .profile_wrapper .profile .profile_text {
  padding: 5.3333vw;
}
}

#perfectResult .certificate .profile_wrapper .profile p {
  text-align: left;
  font-size: 14px;
}

@media screen and (max-width: 768px) {
#perfectResult .certificate .profile_wrapper .profile p {
  font-size: 3.7333vw;
}
}

#perfectResult .certificate .campaign_ps p{
  text-align: left;
  padding-left: 12px;
  text-indent: -12px;
  font-size: 12px;
  margin-bottom: 4px;
}

#perfectResult .certificate .campaign_return{
  display: block;
  width: 50px;
  margin: 30px auto 0;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
#perfectResult .certificate .campaign_ps p{
  padding-left: 3.2000vw;
  text-indent: -3.2000vw;
  font-size: 3.2000vw;
  margin-bottom: 1.0667vw;
}

#perfectResult .certificate .campaign_return{
  width: 13.3333vw;
  margin: 8.0000vw auto 0;
}
}

/* 誤答 */
#partialResult {
  height: 100%; 
  scroll-behavior: smooth;
}

#partialResult .bg_wrapper {
  height: 100%;
}

#partialResult h1 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

@media screen and (max-width: 768px) {
#partialResult h1 {
  margin-bottom: 4.266666666666667vw;
  gap: 2.2666666666666666vw;
}
}

#partialResult h1 picture {
  width: 35%;
  height: auto;
}

@media screen and (max-width: 768px) {
#partialResult h1 picture {
  width: 26.666666666666668vw;
}
}


#partialResult h1 span {
  font-size: 20px;
}

@media screen and (max-width: 768px) {
#partialResult h1 span {
  font-size: 4.8000vw;
}
}

#partialResult .explanation-question {
  text-align: left;
  font-size: 16px;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
#partialResult .explanation-question {
  font-size: 3.7333vw;
  margin-bottom: 7.466666666666668vw;
}
}

#partialResult .explanation-question span {
  background-color: #fff;
  color: #000;
}

#partialResult .next-button {
  width: 100%;
  aspect-ratio: 134 / 18;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
#partialResult .next-button {
  margin-top: 2.6667vw;
}
}

#partialResult .next-button::before {
  content: "";
  position: absolute;
  background: url(../images/retry.webp) center center no-repeat;
  background-size: cover;
  right: auto;
  left: 15px;
  width: 22px;
  height: 22px;
}

@media screen and (max-width: 768px) {
#partialResult .next-button::before {
  background: url(../images/retry.webp) center center no-repeat;
  background-size: cover;
  left: 4.0000vw;
  width: 5.8667vw;
  height: 5.8667vw;
}
}

#partialResult .next-button::after {
  display: none;
}

#partialResult .explanation-answer strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
#partialResult .explanation-answer strong {
  font-size: 4.8000vw;
  margin-bottom: 2.1333vw;
}
}

#partialResult .explanation-answer button {
  display:flex;
  align-items: center;
  padding: 10px 15px;
  width: 100%;
  aspect-ratio: 134 / 34;
  cursor:auto;
  border-radius: 80px;
  font-size: 18px;
  background-color: #fff;
  color: #000;
  text-align: left;
}

@media screen and (max-width: 768px) {
#partialResult .explanation-answer button {
  padding: 2.6667vw 4.0000vw;
  font-size: 4vw;
}
}

#partialResult .explanation-answer button span {
  font-size: 40px;
  flex: 0 0 50px;
}

@media screen and (max-width: 768px) {
#partialResult .explanation-answer button span {
  font-size: 8vw;
  flex: 0 0 9.333333333333334vw;
}
}

#partialResult .explanation-text p {
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  padding-top: 20px;
}

@media screen and (max-width: 768px) {
#partialResult .explanation-text p {
  font-size: 4vw;
  padding-top: 5.333333333333334vw;
}
}


#partialResult .accordion_wrapper {
  margin-top: -30px;
  background-color: #646464;
}

@media screen and (max-width: 768px) {
#partialResult .accordion_wrapper {
  margin-top: -8.0000vw;
}
}

#partialResult .accordionBtn {
  width: 92%;
  height: 45px;
  aspect-ratio: 134 / 18;
  background-image: linear-gradient(to right , #921B04 , #E73820);
  border: 2px solid #fff;
  color: #fff;
  z-index: 10;
  margin: 20px auto 0;
  font-size: 16px;
}

@media screen and (max-width: 768px) {
#partialResult .accordionBtn {
  width: 87.5%;
  height: 12.4vw;
  border: 0.5333vw solid #fff;
  margin: 0.0000vw auto 2.6667vw;
  font-size: 4.4vw;
}
}


#partialResult #wrongExplanations {
  position: relative;
  width: 91.5%;
  margin: 0px auto 10px;
  transform: translateY(20px);
  padding-bottom: 30px;
}

@media screen and (max-width: 768px) {
#partialResult #wrongExplanations {
  width: 87.5%;
  margin: 0.0000vw auto 2.6667vw;
  transform: translateY(0);
  padding-bottom: 8.0000vw;
}
}

#partialResult #wrongExplanations .wrong-explanation {
  background-color: rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  padding: 30px 16px;
}

@media screen and (max-width: 768px) {
#partialResult #wrongExplanations .wrong-explanation {
  margin-bottom: 5.3333vw;
  padding: 5.3333vw 5.6667vw;
}
}

@media screen and (max-width: 768px) {
#partialResult #wrongExplanations .wrong-explanation:first-child {
  padding-top: 12vw;
}
}

#partialResult #wrongExplanations .wrong-explanation:last-child {
  margin-bottom: 0;
}

#footer_special {
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 768px) {
#footer_special {display: none;}
}

#footer{
    border-top: none;
  }

  @media screen and (max-width: 767px) {
    #footer{
    border-top: none;
  }
  }