/*==================================================
    ページ共通
==================================================*/
#child {
  --theme-color: #EC9F01;
}

#elementary {
  --theme-color: #268360;
}

#student {
  --theme-color: #ec6039;
}

#employee {
  --theme-color: #004fa8;
}

.image {
  max-width: 100%;
  height: auto;
}

/*==================================================
    パンくず
==================================================*/
.breadcrumb {
  padding: 2.8rem 0;
}

/*==================================================
    ページタイトル
==================================================*/
.pageHead {
  padding-top: 2.2rem;

  .inner {
    width: 1100px;
  }
}

@media screen and (max-width: 767px) {
  .inner {
    max-width: 100%;
  }

  .pageHead {
    padding: 17.8667vw 0 0 0;
  }
}

/*==================================================
    メインビジュアルスライダー
==================================================*/
#mainVisual {
  margin-top: 6rem;

  .swiper-wrapper {
    max-height: 51.1rem;
    width: auto;
    transition-timing-function: linear;
  }

  .swiper-slide img {
    width: auto;
  }

  @media screen and (max-width: 767px) {
    margin-top: 12.27vw;
  }
}

/*==================================================
    Lesson Information
==================================================*/
#lessonInfo {
  text-align: center;
  margin-block: 7rem 8rem;

  .lessonInfo__ttl {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-size: 3.3rem;
  }

  .lessonInfo__text {
    font-size: 1.8rem;
    line-height: 1.78;
    margin-top: 3.6rem;
  }

  .lessonInfo__nav {
    display: flex;
    justify-content: center;
    column-gap: 2.2rem;
    margin: 4rem 2rem 0;
  }

  .lessonInfo__link {
    width: min(189px, calc((100% - 6.6rem) / 4));
    filter: drop-shadow(.2rem 0 1rem rgba(0, 0, 0, 0.22));
  }

  .lessonInfo__link:hover {
    opacity: 1;
  }

  @media screen and (max-width: 767px) {
    margin-top: 13.33vw;

    .lessonInfo__ttl {
      font-size: 6.67vw;
    }

    .lessonInfo__text {
      font-size: 4.27vw;
      margin-top: 9.33vw;
    }

    .lessonInfo__nav {
      flex-wrap: wrap;
      justify-content: space-between;
      column-gap: unset;
      row-gap: 3.33vw;
      margin: 10vw 9.33vw 0;
    }

    .lessonInfo__link {
      width: 46%;
      filter: drop-shadow(.26vw 0 1.33vw rgba(0, 0, 0, 0.22));
    }
  }
}

/*==================================================
    コンテンツ
==================================================*/
.lessonPage {
  background-color: #efebe9;

  .inner {
    width: 1100px;
  }

  section+section {
    margin-top: 4.8rem;
  }

  .lessonContent {
    border-radius: 27px;
    background-color: #fff;
    overflow: hidden;
    padding-bottom: 5.6rem;
  }

  .lessonContent__head {
    grid-template-columns: 1fr 1fr;
    display: grid;
    align-items: center;
    background-color: var(--theme-color);
  }

  .lessonContent__texts {
    height: inherit;
    padding: 0 3.4rem;
  }

  .lessonContent__title {
    font-size: 2.8rem;
    color: #fff;
    font-weight: 600;
  }

  .lessonContent__text {
    color: #fff;
    font-size: 1.8rem;
    margin-top: 4rem;
  }

  .lessonContent__h3 {
    text-align: center;
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding: 0 1.8rem;
    font-size: 2.6rem;
    font-weight: 600;
  }

  .lessonContent__h3::before,
  .lessonContent__h3::after {
    content: "";
    background-color: #000;
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-block;
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .lessonContent__h3::after {
    left: auto;
    right: -1rem;
  }

  @media (max-width:767px) {
    section+section {
      margin-top: 6.4vw;
    }

    .lessonContent__h3 {
      font-size: 4.397vw;
      padding: 0 2.4vw;
    }

    .lessonContent__h3::before,
    .lessonContent__h3::after {
      width: 2.4vw;
      height: 2.4vw;
    }

    .lessonContent {
      border-radius: 4vw;
    }

    .lessonContent__head {
      grid-template-columns: 1fr;
    }

    .lessonContent__title {
      font-size: 5.33vw;
      margin-top: 7.2vw;
    }

    .lessonContent__text {
      font-size: 3.733vw;
      margin-block: 6.67vw 13.33vw;
    }

  }

  /* 特徴 */
  .lessonContent__features {}

  .features__h3 {
    position: relative;
    width: fit-content;
    margin: 8rem auto 0;
    font-size: 3.4rem;
    font-weight: 600;
  }

  .features__h3::before,
  .features__h3::after {
    content: "";
    background: url(../img/lesson/icon_frame.png) no-repeat center center / contain;
    width: 5.8rem;
    height: 6rem;
  }

  .features__h3::before {
    position: absolute;
    top: -1rem;
    left: -1rem;
    transform: translateX(-100%);
  }

  .features__h3::after {
    position: absolute;
    top: auto;
    bottom: -1rem;
    right: -1rem;
    transform: translateX(100%) scale(-1, -1);
  }

  .featuresCards {
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 6.4rem;
    display: grid;
  }

  .featuresCard {
    padding: 0 3.2rem;
    border-right: 1px solid var(--theme-color);
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    gap: 1.6rem;
  }

  .featuresCard:last-of-type {
    border-right: none;
  }

  .featuresCard__head {
    display: flex;
    gap: 1.4rem;
    align-items: center;
  }

  .featuresCard__number img {
    display: block;
    width: auto;
    height: 5.6rem;
  }

  .featuresCard__title {
    flex: 1;
    font-size: min(2.4rem, 1.8vw);
    font-weight: 700;
    color: var(--theme-color);
  }

  #elementary .featuresCard__title {
    font-size: min(2.1rem, 1.7vw);
  }

  .featuresCard__text {
    font-size: 1.8rem;
    font-weight: 400;
    height: auto;
  }

  .featuresCard__img {
    border-radius: 10px;
    overflow: hidden;
  }

  @media (max-width:767px) {
    .featuresCards {
      grid-template-columns: 1fr;
      margin-top: 12vw;
    }

    .featuresCard {
      border-right: none;
      border-bottom: none;
      padding-top: 8.533vw;
      padding-bottom: 8.533vw;
      position: relative;
      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        height: 1px;
        background-color: var(--theme-color);
      }
    }

    .featuresCard:first-of-type {
      padding-top: 0;
    }

    .featuresCard__text {
      font-size: 3.73vw;
    }

    .features__h3 {
      font-size: 5.33vw;
      margin-top: 13.33vw;
    }

    .features__h3::before {
      width: 9.067vw;
      height: 9.067vw;
      top: -1rem;
      left: 0;
    }

    .features__h3::after {
      width: 9.067vw;
      height: 9.067vw;
      top: auto;
      bottom: -1rem;
      right: 0;
    }

    .featuresCard__title,
    #elementary .featuresCard__title {
      font-size: 5.33vw;
    }
  }

  /* ダンスレッスン */
  .lessonContent__dance {
    margin: 8rem auto 6.2rem auto;
    max-width: 980px;
  }

  .dance__img {
    margin-top: 2.4rem;
    text-align: center;
  }

  .dance__img img {
    text-align: center;
    width: 980px;
    max-width: 980px;
  }

  .dance__text {
    margin-top: 2.1rem;
  }

  @media (max-width:1000px) {
    .lessonContent__dance {
      margin-block: 12vw 6.67vw;
    }

    .dance__img {
      max-height: 51.87vw;
      width: auto;
    }

		#child .dance__img {
			/* 1個目のdance__img（幼児のダンスレッスン） */
			margin-left: -13vw;
		}
		
		#elementary .dance__img {
			/* 2個目のdance__img（小学生のダンスレッスン） */
			margin-left: -9vw;
		}
		
		#student .dance__img {
			/* 3個目のdance__img（中高生が受講できるレッスン） */
			margin-left: -12vw;
		}
		
		#employee .dance__img {
			/* 4個目のdance__img（社会人が受講できるダンスレッスン） */
			margin-left: -12vw;
		}

    /* .dance__img::-webkit-scrollbar {
      height: 1.33vw;
    }

    .dance__img::-webkit-scrollbar-thumb {
      background: #c14f10;
      border-radius: 1rem;
    }

    .dance__img::-webkit-scrollbar-track {
      background: linear-gradient(to bottom, #c8c7c7, #e3e1e2);
      border: .13vw solid #c9c8c8;
      border-radius: 1.33vw;
      margin-right: 4.8vw;
    } */

    .dance__img img {
      width: auto;
      height: 100%;
      max-height: 51.87vw;
      max-width: unset;
      padding-bottom: 2rem;
    }

    .dance__text {
      font-size: 3.2vw;
      margin-inline: 2.67vw 2.67vw;
    }
  }

  /* 受講可能ジャンル */
  .genre {
    background-color: #f7f6f6;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
  }

  .genre__buttons {
    margin-top: 2.5rem;
    grid-template-columns: repeat(5, 1fr);
    padding: 0 8rem;
  }

  .genre__buttons.only-one {
    grid-template-columns: auto;
    justify-content: center;
  }

  .genre__buttons.only-one .genre__button {
    min-width: 16rem;
  }

  .genre__text {
    padding: 0 8rem;
    margin-top: 3.5rem;
  }

  @media (max-width:767px) {
    .genre {
      border: 1px solid #ccc;
      border-radius: 1.33vw;
      padding: 5.7vw 3.2vw 5.33vw;
      margin-inline: 2.67vw 2.67vw;
    }

    .genre__buttons {
      padding: 0;
      grid-template-columns: repeat(3, 1fr);
    }

    .genre__buttons.only-one .genre__button {
      min-width: 29.33vw;
    }

    .genre__text {
      font-size: 3.2vw;
      padding: 0;
      margin-top: 4.67vw;
    }
  }

  /* スライダー */
  .lessonContent__slider {
    margin-top: 5rem;
    position: relative;
    margin-right: 7rem;
    margin-left: 7rem;
  }

  .swiper-slide {
    width: 100%;
    height: 100%;
  }

  .swiper-slide img {
    width: 100%;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 5rem;
    height: 5rem;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    content: "";
    width: 5rem;
    height: 5rem;
    display: inline-block;
    margin: auto;
  }

  .swiper-button-prev::after {
    background: url(../img/lesson/slider_icon_left.png) no-repeat center center / contain;
    left: -6.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .swiper-button-next::after {
    right: -6.8rem;
    background: url(../img/lesson/slider_icon_right.png) no-repeat center center / contain;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .scrollbar-outer {
    display: none;
  }

  /* ボタン */
  .lessonContent__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 5.4rem;
  }

  .lessonContent__button {
    background-color: #fff;
    border-radius: 20px;
    width: 27.463rem;
    height: 6.626rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 1px solid #000;
  }

  .icon_face {
    width: 3.4rem;
    margin-right: 1rem;
  }

  .icon_calender {
    width: 2.6rem;
    margin-right: 1.4rem;
  }

  .icon_right_white {
    width: 1.8rem;
  }

  @media (max-width:767px) {
    .lessonContent__slider {
      margin: 8.4vw 2.67vw 0;
    }

    .lessonContent__buttons {
      flex-direction: column;
    }

    .swiper-button-prev,
    .swiper-button-next {
      display: none;
    }

    .scrollbar-outer {
      position: relative;
      display: block;
      margin-top: 6.13vw;
    }

    .swiper-scrollbar {
      background: linear-gradient(to bottom, #c8c7c7, #e3e1e2);
      border: .13vw solid #c9c8c8;
      border-radius: 1.33vw;
    }

    .swiper-scrollbar-drag {
      background: #c14f10;
      border-radius: 1rem;
    }
  }
}

/*==================================================
    ETCで受けられるダンスジャンル紹介
==================================================*/
#genreIntro {
  padding-block: 3.8rem 15.5rem;

  .genreIntro__ttl {
    font-size: 2.6rem;
  }

  .genreIntro__list {
    margin-top: 4.3rem;
  }

  .lessonContent__buttons.sp_display {
    display: none;
  }

  @media screen and (max-width: 767px) {
    padding-block: 13.87vw 21.6vw;
    margin-inline: 4vw 4vw;

    .genreIntro__ttl {
      font-size: 4.53vw;
    }

    .genreIntro__list {
      margin-top: 8.27vw;
    }

    .lessonContent__buttons.sp_display {
      display: flex;
    }
  }
}