.head-link {
  width: 100%;
  text-align: right;
  margin: 1% 0;
  padding: 0 2%;
}

#quiz-title {
  width: 100%;
  text-align: center;
  margin-top: 2%;
  padding: 0 1%;
}

#quiz-title img {
  width: 100%;
  max-width: 800px;
}

.introduction {
  width: 90%;
  margin: 1% auto;
  display: flex;
  justify-content: center;
}

.introduction-wrap {
  background: #fff;
  border-radius: 5px;
  padding: 1%;
}

.introduction-wrap p {
  padding: 0;
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

/*全体の窓*/
.quiz-window {
  display: none;
  width: 90%;
  margin: 0 auto;
  padding: 1% 0;
/*  background: #80eefe;*/
/*  background: #0A8F3D;*/
  background: #008D54;
/*  border: 12px solid #7A531A;*/
  border-radius: 10px;
}

@media screen and (max-width: 420px) {
  .quiz-window {
    border-radius: 10px;
  }
}

/*問題*/

#question-number {
  text-align: center;
  font-size: 2.5em;
  margin: 0 auto;
/*  color: #0A1A2F;*/
/*  color:#333;*/
  color: #fff;
  font-weight: bold;
/*
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff;
*/
  position: relative;
}

#question-number:before {
  content: '';
  position: absolute;
  bottom: -10px;
  display: inline-block;
  width: 85px;
  height: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 5px;
}

/*
#number-span {
  display: inline-block;
  color: #0A1A2F;
  padding: 0;
  margin: 0 0.2em;
  width: 1.5em;
  height: 1.5em;
  background: #fff;
  border-radius: 50%;
}
*/
/*
#number-span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #0A1A2F;
  width: 1.5em;
  height: 1.5em;
  background: #fff;
  border-radius: 50%;
  margin: 0 0.2em;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
*/
  /* ★ PC での下がり対策（ベースライン微調整） */
/*
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */
/*
}
*/

#number-span {
  margin: 0 0.3em;
  padding: 0;
}

#question-text {
  width: 95%;
  margin: 0 auto;
  padding: 0;
  font-size: 2.5em;
  font-weight: bold;
/*  color: #0A1A2F;*/
  color: #fff;
/*
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff;
*/
}

.quiz-question-item {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  color: #0A1A2F;
  width: 85%;
  background: #fff;
  margin: 2% auto ;
  padding: 0.8% 0 0.5% 0;
/*  border: 5px solid #1C6BA0;*/
  border: 5px solid #7CE0B9;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

.quiz-question-item:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
}

#question-item-1::before {
  content: "1";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.75em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #0A8F3D;*/
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */
}

#question-item-2::before {
  content: "2";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.75em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #0A8F3D;*/
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */

}

#question-item-3::before {
  content: "3";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.75em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #0A8F3D;*/
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */

}

#question-item-4::before {
  content: "4";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.75em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #0A8F3D;*/
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */

}

.quiz-question-item:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
}

#question-image,
#answer-image {
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

#question-image img,
#answer-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
}

@media screen and (max-width: 1024px){
  #question-item-wrap {
    display: block;
  }
  .quiz-question-item {
    font-size: 1.3em;
  }
}

@media screen and (max-width: 420px){
  #question-number {
    font-size: 1.5em;
  }

  .quiz-question-item {
    width: 95%;
    font-size: 1.1em;
    padding: 2% 0;
  }

  #question-text {
    font-size: 1.2em;
  }

  #question-image img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
  }

}

/*こたえ*/
#answer {
/*  display: none;*/
}

#answer-main {
  width: 85%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
#answer-main p.maru {
  font-size: 5em;
  margin: 0;
  padding: 0;
  color: #FF0100;
  letter-spacing: 0.1em;
  font-weight: bold;
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff;
}
*/

.maru {
  width: 100%;
  max-width: 660px;
}

.answer-image-marine {
  vertical-align: top;
  max-width: 150px;
}
/*
#answer-main p.batsu {
  font-size: 5em;
  margin: 0;
  padding: 0;
  color: #018ad8;
  letter-spacing: 0.1em;
  font-weight: bold;
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff;
}
*/

.batsu {
  width: 100%;
  max-width: 780px;
}

#answer-correct {
  width: 85%;
  margin: 0 auto;
  text-align: center;
}

#answer-correct p {
  display: inline-block;
  text-align: center;
  font-size: 2em;
  background: #fff;
  padding: 2% 3%;
  border-radius: 9999px;
}

#answer-correct p span {
  position: relative;
  padding-left: 2em;
  margin-left: 0.5em;
  font-weight: bold;
}

#answer-correct p span.correct1::before {
  content: "1";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.7em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */

}

#answer-correct p span.correct2::before {
  content: "2";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.7em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */

}

#answer-correct p span.correct3::before {
  content: "3";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.7em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */

}

#answer-correct p span.correct4::before {
  content: "4";
  font-size: 1em;
  position: absolute;
  top: calc(50% - 0.7em);
  left: 1%;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
/*  background: #1C6BA0;*/
  background: #008D54;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  /* ★ PC での下がり対策（ベースライン微調整） */
  vertical-align: baseline; /* -0.06〜-0.12em くらいで調整 */

}

.answer-res-br {
  display: none;
}

@media screen and (max-width: 820px) {

  .answer-res-br {
    display: block;
  }

  #answer-correct {
    width: 100%;
  }

  #answer-correct p {
    font-size: 1.7em;
    padding: 4%;
  }


}

@media screen and (max-width: 420px) {

  .answer-res-br {
    display: block;
  }

  #answer-correct {
    width: 100%;
  }

  #answer-correct p {
    font-size: 1.2em;
    padding: 4%;
  }


}

#answer-desc {
  width: 90%;
  margin: 2em auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0.5em 1em;
  background: #fff;
  border-radius: 10px;
}

#answer-text {
  margin: 0 auto;
  padding: 0;
  font-size: 1.5em;
  font-weight: bold;
  padding: 0 1%;
/*  color: #fff;*/
  background: #fff;
  /*  background: #345840;*/
/*  border: 10px solid #C38005;*/
/*  border-radius: 20px;*/
  position: relative;
}

#answer-text1 {
  display: flex;
  align-items: center;
}

.answer-koju {
  width: 100%;
  height: auto;
  max-width: 150px;
  max-height: 150px;
}

#answer-image {
  margin: 1% 0;
}

.detail-text {
  font-size: 0.7em!important;
  font-weight: normal;
  margin-bottom: 0;
}

#detail {
  margin-bottom: 1%;
}

#detail a {
  display: block;
  margin: 0 0 1% 0;
  font-size: 0.7em!important;
  font-weight: normal;
  text-decoration: underline;
}

#next-wrap,
#result-wrap {
  width: 95%;
  margin: 1% auto 3% auto;
  text-align: center;
}

#result-wrap {
  display: none;
}

#next {
  display: none;
}

#next,
#result {
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
  width: 20%;
  background: #fff;
  padding: 0.3% 0 0.5% 0;
/*  border: 5px solid #1c6ba0;*/
  border: 5px solid #7CE0B9;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

#next:hover,
#result:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
}

@media screen and (max-width: 1024px){
  #answer-desc {
    width: 95%;
    display: block;
    text-align: center;
  }

  #answer-text {
    text-align: left;
  }

  #answer-text1 {
    flex-wrap: wrap;
  }

  #desc-marine {
    margin-top: 1%;
  }
}

@media screen and (max-width: 420px){

  #answer-main {
    width: 95%;
    margin: 0 auto;
    text-align: center;
    display: block;
    align-items: center;
    justify-content: center;
}

  .answer-image-marine {
    display: none;
  }

  #desc-marine {
    max-width: 100px;
  }

  #answer-text {
    border-radius: 10px;
    text-align: left;
  }

  .answer-koju {
    width: 100%;
    height: auto;
    max-width: 100px;
    max-height: 100px;
  }

  #answer-text1 {
    display: block;
    padding: 1%;
    font-size: 0.85em;
  }

  #next,
  #result {
    font-size: 1.3em;
    width: 95%;
    padding: 1%;
  }

}

/*結果発表*/
#quiz-result {
  display: none;
}

#result-head {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
/*
#result-head p {
  text-align: center;
  font-size: 4em;
  padding: 0;
  margin: 0 auto;
  font-weight: bold;
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff;
}
*/

#result-head img {
  max-width: 600px;
}

#result-main {
  width: 85%;
  margin: 0 auto;
  text-align: center;
}

#result-main p {
  display: inline-block;
  font-size: 4em;
  padding: 0;
  position: relative;
  color: #fff;
}

#class-icon {
  max-width: 150px;
  transform: rotateZ(-30deg);
  position: absolute;
  right: -150px;
  bottom: -35px;
}

#result-class {
  width: 50%;
  margin: 2% auto;
  margin-top: -3em;
  padding: 0;
  background: #fff;
  border: 8px solid #C38005;
}

.result-border {
  border: 2px solid #C38005;
  margin: 4px;
}

#result-class p {
  text-align: center;
  font-size: 1.5em;
  padding: 0;
  color: #333;
}

.result-class-flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#result-img {
  width: 100%;
  max-width: 150px;
  max-height: 150px;
}

#class-number {
  font-size: 4em;
  font-weight: bold;
}

#result-comment {
  width: 85%;
  margin: 0 auto;
  padding: 1% 0;
  background: #fff;
  border-radius: 20px;
  color: #333;
  text-align: center;
}

#result-comment-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-comment-img {
  margin-right: 2%;
}

.result-comment-p {
  margin-left: 2%;
}

.result-comment-img img {
  max-width: 200px;
  margin-left: 5%;
}

#result-comment p {
  font-size: 1.2em;
  padding: 0 1% 0 0;
  text-align: left;
}

#result-comment a {
  text-align: center;
  font-size: 1.2em;
  padding: 0;
}

#retry-wrap {
  width: 95%;
  margin: 0 auto 3% auto;
  text-align: center;
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  display: none;
}

#retry {
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
  background: #fff;
  width: 40%;
  margin: 0 2%;
  padding: 0.3% 0 0.5% 0;
/*  border: 5px solid #1c6ba0;*/
  border: 5px solid #7CE0B9;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

#top {
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
  background: #fff;
  width: 40%;
  padding: 0.3% 0 0.5% 0;
/*  border: 5px solid #1c6ba0;*/
  border: 5px solid #7CE0B9;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

#top a {
  text-decoration: none;
  color: #000;
}

#retry:hover,
#top:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
}

@media screen and (max-width: 768px){
  .result-comment-img img {
    max-width: 150px;
  }

  #retry-wrap {
    display:block;
  }

  #retry {
    width: 95%;
    margin-bottom: 2%;
    padding: 2% 0;
  }

  #top {
    width: 95%;
    margin-bottom: 2%;
    padding: 2% 0;
  }

}

@media screen and (max-width: 420px){
  #result-head {
    margin-top: 2%;
  }

  #result-head img {
    max-width: 90%;
  }

  #result-main {
    margin-top: -5%;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
  }

  #result-main p {
    text-align: center;
    font-size: 3em;
  }

  #result-class {
    width: 95%;
    margin-bottom: 10%;
  }

  #class-number {
    font-size: 3em;
    font-weight: bold;
  }

  #class-icon {
    display: block;
    max-width: 120px;
    margin: 0 auto;
    position: relative;
    right: initial;
    bottom: initial;
  }

  #result-comment {
    width: 95%;
    margin: -5% auto 2% auto;
    border-radius: 10px;
  }

  #result-comment-flex {
    display: block;
  }

  .result-comment-img {
    margin: 1% auto;
  }

  .result-comment-img img {
    margin: 0;
  }

  .result-comment-p {
    margin: 0;
    text-align: left;
    padding-left: 0.5em;
  }

  .result-comment-img img {
    max-width: 120px;
  }

  #result-comment p {
    font-size: 1em;
    padding: 0;
  }

  #retry-wrap {
    display:block;
  }

  #retry {
    font-size: 1.2em;
    width: 95%;
    margin-bottom: 2%;
    padding: 2% 0;
  }

  #top {
    font-size: 0.8em;
    width: 95%;
    margin-bottom: 2%;
    padding: 2% 0;
  }

}

/*====2階層目のフレーム====
[class^="list-design"] .item .sub-image-frame{
  border:solid 6px #ffaa2b;
  border-radius: 40px;
}*/

/*=====footer=====*/
.footer_main {
  background: #008D54;
  margin:0;
  padding:0.5rem;
}

.footer_main p {
margin:2em 4em 2em auto;
height:30px;
color:#fff;
text-align: right;
}

.confetti canvas {
  height: 100%;
  width: 100%;
  position: absolute;
}

/*紙吹雪のスタイル*/
.confetti {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -100%;/*アニメーション以外の紙吹雪を非表示*/
  left: 0;
  z-index: 50;
}

/*アニメーションの記述*/
.confetti span:nth-child(2n + 1) {
  animation: confetti1 5s 0s linear infinite;
}

.confetti span:nth-child(2n + 2) {
  animation: confetti2 5s 0s linear infinite;
}

/*紙吹雪を回転させる記述*/
@keyframes confetti1 {
  0% {
    top: -10%;
    transform: translateX(0) rotateX(0) rotateY(0);
  }

  100% {
    top: 100%;
    transform: translateX(20px) rotateX(180deg) rotateY(360deg);
}
}

@keyframes confetti2 {
  0% {
    top: -10%;
    transform: translateX(0) rotateX(0) rotateY(0);
  }

  100% {
    top: 100%;
    transform: translateX(-20vw) rotateX(180deg) rotateY(360deg);
  }
}

/*紙吹雪の配置*/
.confetti span:nth-child(1) {
  left: 0%;
}

.confetti span:nth-child(2) {
  left: 10%;
}

.confetti span:nth-child(3) {
  left: 20%;
}

.confetti span:nth-child(4) {
  left: 30%;
}

.confetti span:nth-child(5) {
  left: 40%;
}

.confetti span:nth-child(6) {
  left: 50%;
}

.confetti span:nth-child(7) {
  left: 60%;
}

.confetti span:nth-child(8) {
  left: 70%;
}

.confetti span:nth-child(9) {
  left: 80%;
}

.confetti span:nth-child(10) {
  left: 90%;
}

.confetti span:nth-child(11) {
  left: 100%;
}

/*紙吹雪の大きさ*/
.confetti span:nth-child(3n + 1) {
  width: 2.5vw;
  height: 2.5vw;
}

.confetti span:nth-child(3n + 2) {
  width: 1.5vw;
  height: 1.5vw;
}

.confetti span:nth-child(3n + 3) {
  width: 1vw;
  height: 1w;
}

/*紙吹雪の色*/
.confetti span:nth-child(2n + 1) {
  background: red;
}

.confetti span:nth-child(2n + 2) {
  background: orange;
}

.confetti span:nth-child(2n + 3) {
  background: purple;
}

.confetti span:nth-child(2n + 4) {
  background: pink;
}

.confetti span:nth-child(2n + 5) {
  background: blue;
}

.confetti span:nth-child(2n + 6) {
  background: green;
}

.confetti span:nth-child(2n + 7) {
  background: yellow;
}

/*アニメーションの秒数*/
.confetti span:nth-child(2n + 1) {
  animation-duration: 5s;
}

.confetti span:nth-child(2n + 2) {
  animation-duration: 6s;
}

.confetti span:nth-child(2n + 3) {
  animation-duration: 10s;
}

.confetti span:nth-child(2n + 4) {
  animation-duration: 4s;
}

/*紙吹雪が降り始めるまでの時間*/
.confetti span:nth-child(2n + 1) {
  animation-delay: 0s;
}

.confetti span:nth-child(2n + 2) {
  animation-delay: 4s;
}

.confetti span:nth-child(2n + 3) {
  animation-delay: 6s;
}

.confetti span:nth-child(2n + 4) {
  animation-delay: 2s;
}

.confetti span:nth-child(2n + 5) {
  animation-delay: 6s;
}

.confetti span:nth-child(2n + 6) {
  animation-delay: 10s;
}

.confetti span:nth-child(2n + 7) {
  animation-delay: 2s;
}

.confetti span:nth-child(2n + 8) {
  animation-delay: 4s;
}

.confetti span:nth-child(2n + 9) {
  animation-delay: 11s;
}

.confetti span:nth-child(2n + 10) {
  animation-delay: 1s;
}

.confetti span:nth-child(2n + 11) {
  animation-delay: 5s;
}

