/* メインビジュアル ------------------------- */

.mv__section {
  position: relative;
  text-align: center;
}

.mv__inner {
  position: absolute;
  color: var(--color-dark);
  font-weight: 600;
  top: 10px;
}

.mv__title {
  font-size: clamp(1.25rem, 4vw, 2.6875rem);
  line-height: 1.7;
}

.mv__copy__sub {
  font-size: var(--text-md);
  font-weight: 700;
}

.mv__img {
  max-width: 1241px;
  width: 95%;
  margin: auto;
}

.scroll__wrap {
  position: relative;
}

.scroll {
  font-size: clamp(0.6875rem, 0.834rem + 0.2vw, 1rem);
  position: absolute;
  display: inline-block;
  bottom: 0px;
  left: -17px;
  top: -180px;
  color: var(--color-dark);
}

.scroll-border {
  position: relative;
  top: -47px;
  left: -16px;
  width: 100%;
  height: 40px;
  overflow: hidden;
}

.scroll-border::after {
  content: '';
  display: block;
  position: absolute;
  width: 1px;
  height: 24px;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  animation: scrollbar 2.5s ease-in-out infinite;
  margin: 5px 12px;
}

@keyframes scrollbar {
  0% {
    height: 0;
    top: 0;
  }

  30% {
    height: 100%;
  }

  100% {
    top: 100%;
  }
}

/* タブレット版 */
@media (max-width:768px) {
  .sp-br {
    display: block;
  }

  .mv__img {
    max-width: 670px;
    width: 90%;
  }

  .mv__inner {
    top: -20px;
  }
}

@media (max-width:629px) {
  .scroll__wrap {
    display: none;
  }
}

/* SP版 */
@media (max-width: 420px) {
  .mv__inner {
    top: -45px;
  }

  .mv__img {
    max-width: 100%;
    width: 100%;
  }

  .mv__copy__sub {
    color: var(--color-fff);
    font-size: 3.05vw;
    position: absolute;
    bottom: -190px;
    left: 11px;
  }
}

/***************************************
英語を“勉強”ではなく“日常”に
****************************************/

.intro__section {
  position: relative;
  margin-bottom: clamp(70px, 15vw, 210px);
}

.intro__inner {
  margin: 155px 0 210px;
  text-align: center;
}

@media screen and (max-width:768px) {
  .intro__inner {
    margin: 70px 20px 244px;
  }
}

.intro__caption {
  font-size: var(--text-ttl);
  color: var(--color-dark);
  margin-bottom: 62px;
  font-weight: 600;
}

.intro__txt {
  font-size: var(--text-md);
  margin-bottom: 52px;
  color: var(--color-dark);
}

.about__img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  width: 100%;
}

.about__illustration {
  position: absolute;
  bottom: 34%;
  left: 50%;
  transform: translate(-50%);
  width: 100%;
  z-index: -1;
}

.about__illustration img {
  width: 100%;
  display: block;
}

/* スライドの動き等速 */
.swiper-wrapper {
  transition-timing-function: linear;
  align-items: center;
}


/* 画像のサイズ調整 */
.intro__box img {
  height: auto;
  max-width: 280px;
  width: 80%;
  border-radius: 20px;
}

@media (max-width:768px) {
  .about__illustration {
    bottom: 26%;
  }

  /* 画像のサイズ調整 */
  .intro__box img {
    max-width: 280px;
    width: 100%;
    border-radius: 10px;
  }

  .swiper__intro.swiper-wrapper {
    gap: 20px;
  }
}

@media (max-width:420px) {

  .intro__txt {
    margin-bottom: 30px;
  }

  .about__illustration {
    bottom: 20%;
  }
}


/***************************************
イングリッシュガーデンの特徴
****************************************/

.about__section {
  margin-bottom: clamp(70px, 15vw, 300px);
}

.about__inner {
  position: relative;
  width: 100%;
}

.about__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 37px;
  background-color: var(--color-fff);
  border-radius: 20px;
  padding: 35px 21px 32px;
  border: 1px solid var(--color-dark);
  height: auto;
}

.box__tll {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.about__ico {
  margin: 0 auto;
  max-width: 80px;
  width: 90%;
}

.about__box .about__txt {
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-align: left;
  font-size: clamp(13px, 1.1vw, 14px);
}

/* SP版: 768px以下Swiper有効 */
@media (max-width: 768px) {
  .about__section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }

  .swiper_features .swiper-wrapper {
    display: flex;
  }

  .swiper_features .swiper-slide {
    width: 265px;
    max-width: 85vw;
    height: 330px;
  }

  .about__box {
    width: 100%;
    max-width: 100%;
  }

  /* コントロール部分 */
  .swiper-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 270px;
    margin: 30px auto 10px;
  }

  /* 前後ボタン */
  .swiper-button-next-features-sp,
  .swiper-button-prev-features-sp {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    background-color: #fff;
    border-radius: 99px;
    border: 1px solid var(--color-dark);
    width: 40px;
    height: 40px;
    margin: 0;
    cursor: pointer;
    /* transition: all 0.3s; */
  }

  /* 矢印の基本設定 */
  .swiper-button-next-features-sp::after,
  .swiper-button-prev-features-sp::after {
    content: "";
    position: absolute;
    bottom: 0;
    margin: auto;
    width: 0;
    height: 0;
  }


  /* 前へ（左向き矢印） */
  .swiper-button-next-features-sp::after {
    top: 3px;
    left: 1px;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border-width: 6px 10px 6px 0;
    border-color: transparent var(--color-dark) transparent transparent;
  }

  /* 次へ（右向き矢印） */
  .swiper-button-prev-features-sp::after {
    top: 3px;
    left: 1px;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--color-dark);
  }

  button.swiper-button-next-features-sp {
    width: 40px;
    height: 40px;
    top: 0;
    right: 187px;
  }

  button.swiper-button-prev-features-sp {
    width: 40px;
    height: 40px;
    top: 0;
    left: 187px;
  }

  /* ページネーション数字 */
  .swiper-pagination-custom {
    position: relative;
    display: inline-block !important;
    width: auto;
    bottom: auto;
    left: auto;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-dark);
    min-width: 60px;
    text-align: center;
  }

  /* fractionのスタイル */
  .swiper-pagination-fraction .swiper-pagination-current {
    font-weight: 700;
  }

  .swiper-pagination-fraction .swiper-pagination-total {
    color: #666;
  }
}

/* PC版: 769px以上だとswiper無効 */
@media (min-width: 769px) {

  .swiper_features {
    overflow: visible;
  }

  .swiper_features .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 23px 25px;
    transform: none !important;
    /* Swiperのtransformをリセット */
    align-items: stretch;
  }

  /* スライドを確実に表示 */
  .swiper_features .swiper-slide {
    opacity: 1 !important;
    /* 追加 */
    transform: none !important;
    /* 追加 */
    width: 100%;
    /* 固定幅 */
    max-width: 265px;
  }

  /* 1〜4個目: 4列レイアウト */
  .swiper_features .swiper-slide:nth-child(-n+4) {
    width: calc((100% - 75px) / 4) !important;
    max-width: 265px;
    margin-left: 0;
  }

  /* 5〜7個目: 3列レイアウト */
  .swiper_features .swiper-slide:nth-child(n+5) {
    width: calc((100% - 75px) / 3) !important;
    max-width: 265px;
    margin-left: 0;
  }

  .about__box {
    width: 100%;
  }

  /* コントロール非表示 */
  .swiper-controls,
  .swiper-pagination-features {
    display: none;
  }
}

/***************************************
コースについて
****************************************/
.course__section {
  margin-bottom: clamp(70px, 15vw, 300px);
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.course__inner {
  background-color: var(--color-main);
  padding-bottom: 20px;
}

.course__box {
  position: relative;
  background-color: var(--color-bk);
  border-radius: 20px;
  padding: 50px;
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.course__label {
  display: inline-block;
  position: absolute;
  top: -19px;
  left: 0px;
  background-color: var(--color-dark);
  color: var(--color-fff);
  padding: 6px 28px;
  border-radius: 10px 10px 10px 0;
  font-size: var(--text-sm);
}

.course__label span {
  font-size: clamp(1.125rem, 0.743rem + 0.56vw, 1.25rem);
}

.course__ttl {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-dark);
}

.course__ttl span {
  font-size: var(--text-sm);
  padding-left: 7px;
}

.course__ttl:nth-of-type(4) {
  display: block;
}

.course__txt {
  line-height: 1.75;
  padding-bottom: 27px;
  font-size: var(--text-sm);
}

.course__osusume {
  background-color: #FAE57C;
  border-radius: 10px 2px;
  padding: 4px 18px;
  margin-bottom: 7px;
  font-weight: 700;
  display: inline-block;
  color: var(--color-dark);
}

.course__box.--box-yellow {
  background-color: #FCF8D3;
}

/* こんな方におすすめリスト */
.osusume__list {
  list-style-type: none;
}

.osusume__list li {
  display: flex;
  align-items: center;
  gap: 0 5px;
  padding: .3em;
  margin-left: 1.3em;
}

.osusume__list li::before {
  display: list-item;
  list-style-image: url("/image/check.svg");
  content: '';
  height: 20px;
}

.course__img {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 345px;
  gap: 20px;
}



@media (max-width:1020px) {
  span.ttl__sub {
    display: block;
    padding-left: 0;
  }
}

@media (max-width:768px) {
  .course__box {
    flex-direction: column;
    align-items: center;
    padding: 40px;
  }

  .course__img {
    max-width: 100%;
    align-items: center;
  }

}

/***************************************
speakingclub
****************************************/

.speakingclub__section {
  margin-top: clamp(70px, 15vw, 150px);
  margin-bottom: clamp(110px, 15vw, 240px);
}

.speakingclub__inner {
  display: flex;
  justify-content: space-around;
  margin: auto;
  gap: clamp(30px, 5vw, 100px);
}

.speakingclub__contents {
  position: relative;
  max-width: 440px;
  width: 36.6vw;
}

/* pickup設定 */
.speakingclub__label {
  display: inline-block;
  position: absolute;
  top: -23px;
  background-color: var(--color-fff);
  color: var(--color-dark);
  display: inline-block;
  padding: 6px 28px;
  border-radius: 50px;
  border: 1px solid var(--color-dark);
  z-index: 2;
  font-weight: 600;
}

.speakingclub__container {
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
  width: 95%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.speakingclub__container::before {
  content: "";
  display: block;
  width: calc(90% + 6.4rem);
  height: 20rem;
  background-color: #FFF0B8;
  position: absolute;
  bottom: -36px;
  left: -28px;
  border-radius: 50px;
  z-index: -1;
}

/* 前への矢印 */
.swiper-button-prev.swiper-pagination-swipersc {
  left: -18px;
  z-index: 1;
}

/* 次への矢印 */
.swiper-button-next.swiper-pagination-swipersc.--reverse {
  right: -18px;
  z-index: 1;
}

/* 前へ次への矢印位置設定 */
.swiper-button-prev:after,
.swiper-button-next:after {
  bottom: 0;
  content: "";
  height: 0;
  margin: auto;
  position: absolute;
  top: 0;
  width: 0;
}

/* 前へ次への矢印カスタマイズ */
.swiper-button-prev:after,
.swiper-button-next:after {
  border-bottom: 6px solid transparent;
  border-right: 14px solid var(--color-dark);
  border-top: 6px solid transparent;
  margin-right: 4px;
}

.swiper-button-prev,
.swiper-button-next {
  background-color: #fff;
  border-radius: 50%;
  border: 1px solid var(--color-dark);
}

svg.swiper-navigation-icon {
  display: none;
}

.event__thumb {
  max-width: 500px;
  width: 100%;
}

.speakingclub__txt {
  margin-bottom: 53px;
}

.swiper-button-next {
  left: 451px;
}

.pickup__inner .news__link {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

.btn-sp {
  display: none;
}

@media (max-width:814px) {
  .pickup__inner .news__link {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }
}

@media (max-width:768px) {
  /* .speakingclub__inner {
    flex-direction: column;
    gap: 50px;
    justify-content: center;
  } */

  .speakingclub__contents {
    width: 60%;
    max-width: 100%;
  }

  .speakingclub__event {
    margin-top: 72px;
  }

  .speakingclub__container {
    width: 80%;
  }

  .speakingclub__container::before {
    bottom: -36px;
    width: calc(85% + 6.4rem);
    height: 20rem;
    left: -36px;
  }
}

@media (max-width:420px) {

  .speakingclub__inner {
    flex-direction: column;
    justify-content: center;
    margin: 25px auto 100px;
    gap: clamp(30px, 5vw, 100px);
  }

  .speakingclub__contents {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .speakingclub__container {
    width: 80%;
  }

  .speakingclub__container::before {
    bottom: -26px;
    height: 16rem;
    left: auto;
  }

  .speakingclub__txt {
    margin-bottom: 0;
  }

  .pickup__inner .news__link {
    gap: 0px;
    margin: 15px 0 0 15px;
  }

  /* 前への矢印 */
  /* 次への矢印 */
  .swiper-button-prev.swiper-pagination-swipersc {
    top: 92px;
  }

  .swiper-button-next.swiper-pagination-swipersc.--reverse {
    top: 92px;
  }

  .swiper-horizontal.swiper-button-next,
  .swiper-horizontal.swiper-button-prev {
    top: var(--swiper-navigation-top-offset, 39%);
  }

  .btn-sp {
    display: block;
  }
}

/***************************************
生徒の声
****************************************/

.voice__section {
  background-color: var(--color-light);
  border-radius: 0 13.3vw 0 13.3vw;
  padding: 11.25vw 0;
  overflow: hidden;
}

.voice__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc((100% - 75px) / 3);
  max-width: 375px;
  border-radius: 20px;
  background-color: var(--color-fff);
}

.voice__img {
  max-width: 100%;
  border-radius: 20px 20px 0 0;
}

.voice__txt {
  padding: 21px 42px;
}

.voice__label {
  padding-top: 28px;
  color: #777;
}

.voice__label span::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 17px;
  background-color: #777;
  margin: -2px 6px;
}

.voice__inner {
  display: flex;
  justify-content: center;
  gap: 35px;
}

/* コントロール部分 */
.swiper-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 270px;
  margin: 30px auto 10px;
}

/* 前後ボタン */
.swiper-button-next-voice-sp,
.swiper-button-prev-voice-sp {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  background-color: #fff;
  border-radius: 99px;
  border: 1px solid var(--color-dark);
  width: 40px;
  height: 40px;
  margin: 0;
  cursor: pointer;
  /* transition: all 0.3s; */
}

/* 矢印の基本設定 */
.swiper-button-next-voice-sp::after,
.swiper-button-prev-voice-sp::after {
  content: "";
  position: absolute;
  bottom: 0;
  margin: auto;
  width: 0;
  height: 0;
}


/* 前へ（左向き矢印） */
.swiper-button-next-voice-sp::after {
  top: 2px;
  left: -1px;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  border-width: 6px 10px 6px 0;
  border-color: transparent var(--color-dark) transparent transparent;
}

/* 次へ（右向き矢印） */
.swiper-button-prev-voice-sp::after {
  top: 2px;
  left: 1px;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--color-dark);
}

/* 前へ（ボタン位置） */
button.swiper-button-next-voice-sp {
  width: 40px;
  height: 40px;
  top: 0;
  right: 187px;
}

/* 次へ（ボタン位置） */
button.swiper-button-prev-voice-sp {
  width: 40px;
  height: 40px;
  top: 0;
  left: 187px;
}

/* PC版: Flexレイアウト */
@media (min-width: 769px) {

  .swiper_voice {
    overflow: visible;
  }

  .swiper_voice .swiper-wrapper {
    display: flex;
    justify-content: center;
    gap: 35px;
  }

  .voice__box {
    width: 30%;
    height: 100%;
  }

  /* ページネーション非表示 */
  .swiper-controls {
    display: none;
  }
}

@media (max-width:768px) {
  .voice__box {
    width: 100%;
    max-width: 375px;
  }
}


/***************************************
講師紹介
****************************************/

.teachers__section {
  margin: 140px auto;
  margin-bottom: clamp(70px, 15vw, 300px);
}

.teachers__inner .swiper-slide {
  position: relative;
  /* padding-left: 10px; */
}

.swiper__teachers.swiper-wrapper {
  gap: 50px;
}

.teachers__img img {
  max-width: 290px;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-dark);
  border-radius: 50% 50% 0 0;
}

.teachers__label {
  position: absolute;
  bottom: 1px;
  left: 1px;
  background-color: var(--color-yellow-light);
  border-radius: 0 20px 0 0;
  font-size: clamp(0.8125rem, 0.575rem + 1.28vw, 1.375rem);
  font-weight: 700;
  padding: 7px 12px;
}

.teachers__label span {
  font-size: 1.3vw;
}

@media (max-width:768px) {

  /* 画像のサイズ調整 */
  .teachers__box img {
    max-width: 320px;
    width: 100%;
  }

  .swiper__teachers.swiper-wrapper {
    gap: 20px;
  }

  .teachers__label {
    font-size: 0.8125rem;
    padding: 4px 6px;
  }

  .teachers__label span {}
}

/***************************************
無料体験レッスン
****************************************/

.trial__section {
  background-color: var(--color-main);
  border-radius: 160px 20px 160px 20px;
  padding: 120px 50px;
  margin-bottom: clamp(70px, 15vw, 170px);
}

.trial__inner {
  position: relative;
  text-align: center;
  color: var(--color-fff);
}

.trial_img01 {
  position: absolute;
  top: -151px;
  left: 43px;
  width: 24%;
  border-radius: 20px;
}

.trial_img02 {
  position: absolute;
  top: 70px;
  left: 20px;
  width: 15%;
  border-radius: 20px;
}

.trial_img03 {
  position: absolute;
  bottom: 127px;
  right: 90px;
  width: 18%;
  border-radius: 20px;
}

.trial_img04 {
  position: absolute;
  top: -35px;
  right: 14px;
  width: 20%;
  border-radius: 20px;
}

@media (max-width:768px) {
  .trial__section {
    width: 100%;
    border-radius: 80px 20px 80px 20px;
    padding: 80px 20px;
  }

  .trial_img01 {
    top: -118px;
    left: 29px;
    width: 25%;
  }

  .trial_img02 {
    top: 64px;
    left: 18px;
  }

  .trial_img03 {
    bottom: 160px;
    right: 61px;
  }

  .trial_img04 {
    top: -42px;
    right: 32px;
  }
}

@media (max-width:450px) {
  .trial__img {
    display: none;
  }
}

@media (max-width:400px) {
  .trial__section {
    border-radius: 80px 20px 80px 20px;
    padding: 60px 50px;
  }

  .trial__section.section__ttl {
    margin-bottom: 20px;
  }
}

/***************************************
お知らせ
****************************************/

.news__section {
  display: flex;
  justify-content: space-between;
  gap: clamp(1.25rem, -0.842rem + 4vw, 6.25rem);
  margin-bottom: clamp(70px, 15vw, 190px);
  padding: 0 33px;
  align-items: center;
}

.news__ttl {
  line-height: 1.5;
  margin-bottom: clamp(25px, 15vw, 82px);
  color: var(--color-dark);
}

.news__inner {
  margin: 0;
  min-width: 230px;
}

ul.news__list {
  text-align: left;
}

.news__list li {
  max-width: 689px;
  border-bottom: 2px solid var(--color-main);
  padding: 17px 0;
}

.news__list time {
  padding-left: 53px;
  display: inline-block;
}

.news__list .news__link {
  display: flex;
  justify-content: start;
  gap: 92px;
}

.news__txt {
  display: inline-block;
}

@media (max-width:768px) {
  .news__ttl {
    margin-bottom: 35px;
  }
}

@media (max-width:420px) {

  .news__section {
    flex-direction: column;
    width: 100%;
  }

  .news__list time {
    padding-left: 0;
  }

  .news__list .news__link {
    flex-direction: column;
    gap: 0px;
  }

  .btn-course {
    width: 100%;
  }
}