.wrapper {
  width: 402px;
  min-height: 100vh;
  border: 1px solid #000;
  margin: 0 auto;
  padding-bottom: 30px;
  background-image: url(./images/back_New.jpg);
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
}

img{
  max-width: 100%;
  height: auto;
}

h1{
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  margin-top: 61px;
}

h2{
  font-size: 13px;
  color: #0013E6;
  text-align: center;
  margin-top: 28px;
  line-height: 23px;
}

.top-text{
font-size: 13px;
margin-top: 64px;
text-align: center;
line-height: 28px;
}

.top-buttons{
  text-align: center;
  margin-top: 64px;
  margin-bottom: 64px;
  display: flex;
  justify-content: center;
  gap: 19px 7px;
  flex-wrap: wrap;
}

.blue-button{
  background-color:#36129A;
  color: #fff;
  padding: 10px 16px;
  border-radius:20px;
  display: inline-block;
  margin: 75px auto;
}

.white-button{
  background-color:#FCFCFC;
  border: 1px solid #D6D6D6;
  color: #000;
  padding: 10px 16px;
  border-radius:20px;
}

.blue-button-wide{
  background-color:#36129A;
  color: #fff;
  padding: 10px 16px;
  border-radius:20px;
  display: block;
  width: 202px;
  margin: 75px auto;
}

.page-title{
  font-size: 20px;
  font-weight: normal;

}

.vertical-buttons{
  text-align: center;
  margin-top: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.capsule-button{
  border: 1px solid #000;
  width: 152px;
  padding: 10px;
  font-size: 15px;
  border-radius: 20px;
}

.capsule-button-large{
  width: 80%;
}

.text-button{
color: #36129A;
text-decoration:underline;
}

.information-text{
  font-size: 12px;
  color: #ff0000;
  text-align: center;
  margin-top: 10px;
}

/* 無限ループ画像スライダー */
.swiper-slide{
  width: 50%;
  height: 150px;
}
.swiper-slide.-slide1{
  background: #dc5a45;
}
.swiper-slide.-slide2{
  background: #e8c72e;
}
.swiper-slide.-slide3{
  background: #3d8582;
}
.swiper-wrapper {
  transition-timing-function: linear;
}
.swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 級選択ページ */
.level-button-disabled{
  opacity: 0.2;
  pointer-events: none;
}

/* タイプ選択ページ */
.page-typeselect .vertical-buttons{
  gap: 10px;
  margin-top: 30px;
}
.page-typeselect h2{
  font-size: 20px;
}
.page-typeselect .capsule-button-group{
  display: flex;
  gap: 8px;
}

.page-typeselect .capsule-button-large{
  margin-top: 0px;
}

.page-typeselect .text-button{
margin-top: 60px;
}

.typeselect-text{
  font-size: 13px;
  color: #000;
  margin-top: 20px;
}

.page-typeselect .white-button{
  margin-top: 20px;
}

/* 単語暗記ページ */
.vocaburaly{
  height: 465px;
  /* background-image: url(./images/words/scorching.jpg); */
  background-size: cover;
  background-position: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.vocaburaly-title{
  color: #36129A;
  font-size: 40px;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0;
  padding: 10px 20px;
}

.vocaburaly-meaning{
  color: #36129A;
  font-size: 15px;
  margin-top: 7px;
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 5px 10px;
}

.answer{
  width: 251px;
  margin: 24px auto;
}

.sentence-title{
  color: #1C008E;
  text-align: left;
  margin-top: 0;
  font-size: 16px;
}

.sentence-meaning{
  color: #1C008E;
  text-align: left;
  margin-top: 7px;
  font-size: 16px;
}

/* クイズページ */
.quiz{
  margin: 60px auto;
}

.quiz-vocaburaly-area{
  position: relative;
}

.quiz-meaning{
  font-size: 13px;
  text-align: center;
  color: #000;
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
}

.quiz-vocaburaly{
  font-size: 40px;
  text-align: center;
  margin-top: 10px;
}

.quiz-answer{
  margin-top: 54px;
  text-align: center;
}

.quiz-answer button{
  border: 1px solid #000;
  border-radius: 10px;
  width: 250px;
  padding: 18px;
  text-align: center;
  font-size: 16px;
}

/* 選択肢のスタイル */
.quiz-answer button:hover{
  background-color: #36129A;
  color: #fff;
  cursor: pointer;
}
.quiz-answer button.no-hover:hover{
  background-color: initial;
  color: initial;
}


/* 選択肢の無効化 */
.quiz-answer button.disabled{
  background-color: #D6D6D6;
  color: #7A7A7A;
  cursor: not-allowed;
}

.quiz-answer button+button{
  margin-top: 20px;
}

.quiz-correct, .quiz-wrong{
  color: #44ff00;
  font-size: 150px;
  font-weight: bold;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.quiz-wrong{
  color: #ff0000;
}

.show{
  opacity: 1;
  pointer-events: auto;
  top: 40%;
}



/* 結果発表ページ */
.result-fraction{
  font-size: 24px;
  text-align: center;
  margin-top: 36px;
}

.result-fraction-score{
  vertical-align: 15px;
}
.result-fraction-slash{
  font-size: 50px;
  margin: 0 8px;
}
.result-fraction-total{
  vertical-align: 0px;
}   

.result-list{
  margin-top: 50px;
  padding: 0 20px;
}
.result-list h2{
  font-size: 18px;
  text-align: left;
  border-bottom: 1px solid #000;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.result-item{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.result-wrong-title{
color: #ff0000;
}

.result-correct-title{
  color: #34c503;
  }

.result-wrong-table, .result-correct-table{
  width: 100%;
  border-collapse: collapse;
  line-height: 2;
} 

.result-wrong-table th,.result-correct-table th{
  text-align: left;
  width: 40%;
}

.result-popover-btn{
  background: none;
  border: none;
  color: #36129A;
  text-decoration: underline;
  font-size: inherit;
  cursor: pointer;
}

.result-popover{
  padding: 12px;
  border: 1px solid #000;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 250px;
}

.result-popover img{
  display: block;
  margin-bottom: 8px;
  width: 100%;
}

.result-buttons .blue-button,.result-buttons .blue-button-wide{
  margin: 0;
} 

/* 学習履歴ページ */
.learned-selects{
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.learned-select{
    border: 1px solid #000;
    border-radius: 8px;
    padding: 8px 16px;
    appearance: auto;
}

.learned-table{
  width: 80%;
  border-collapse: collapse;
  line-height: 2;
  margin: 20px auto;
  vertical-align: bottom;
}

.learned-table th{
  text-align: left;
  width: 25%;
  padding: 16px 0;
}

.learned-table td{
  text-align: left;
  vertical-align: bottom;
  padding: 16px 0;
  width: 75%;
  line-height: 1.8;
}

.learned-table img{
  object-fit: cover;
}

.learned-select-color{
  display: none;
}

.learned-back-top{
  text-align: center;
  margin-top: 20px;
}

.learned-back-top .blue-button{
  margin: 0;
}


/* 色選択ページ */ 
.color-list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 10%;
  margin-top: 50px;
}

.color-item{
  width: 20%;
  text-align: center;
}

.color-list img{
  width: 100%;
  /* aspect-ratio: 1 / 1; */

}

/* サービスページ */
.service-catchcopy{
  text-align: center;
  margin-top: 40px;
}

.service-catchcopy img{
  width: 100%;
}

.service-logo{
  margin: 15px auto 0 auto;
} 
.page-service h1{
  color: #2d42a8;
}
.page-service p{
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
  line-height: 24px;
}

.service-name-section{
  text-align: center;
  margin-top: 60px;
  background-color: rgba(45, 66, 169, 0.05);
  padding: 44px 8px;
}

.service-name-section h1{
  margin-top: 0;
  font-size: 20px;
  color: #2d42a8;
}

p.service-name-copy{
  font-size: 13px;
  margin-top: 8px;
}

.service-name-copy span{
  font-size: 10px;
}

.service-images{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.service-images img{
  object-fit: cover;
  width: 80px;
  height: 80px;
}

.service-character{
  text-align: center;
  margin-top: 20px;
}

.service-character h2{
  color: #000;
  font-size: 15px;
  margin-top: 4px;
}

.service-character-description{
background-color: #fff;
border-radius: 30px;
  margin-top: 10px;
  width: fit-content;
margin: 10px auto;
padding: 10px 40px 20px;
}

/* サービスのスライダー */
.swiper-service{
  /* overflow: hidden; */
  width: 90%;
  margin: 40px auto 0 auto;
  padding: 10px;
  border-radius: 65px;
  position: relative;
}

.swiper-service::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(./images/service/service_mockup.png);
  background-size: cover;
  background-position: center;
  z-index: 10;
  pointer-events: none;
}

.-service-wrapper {
  transition-timing-function: ease-in;
}

.-service-slide{
  width: 100%;
  height: 700px;
}

.-service-slide img{
  padding: 5px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: scale-down;
}

/* スマホ対応 */
@media screen and (max-width: 499px) {
  .wrapper {
    width: 100%;
    border-color: transparent;
  }
}
