@charset "utf-8";
/* *****************************
common（共通設定）
***************************** */
:root {
  /* 色 */
  --primary-font: #545454;
  --primary-creamYellow: #fffaf0;
  --primary-lightPink: #f8cdc9;
  --primary-darkPink: #d97f77;
  --primary-brown: #bf7c40;
  --primary-lightGray: #d8d8d8;
  --primary-gray: #9e9e9e;
}

.section {
  margin: 120px 5.3% 0;
}

/* 教室名 */
h2 {
  text-align: center;
  font-size: clamp(18px, 6.4vw, 36px);
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  h2 {
    font-size: clamp(18px, 1.94vw, 36px);
    line-height: 1;
  }
  h3 {
    font-size: clamp(16px, 1.39vw, 24px);
    line-height: 1.8;
  }
  /* 上部の余白を変更 */
  .main__header {
    margin-top: 90px;
  }
  .main__header {
    margin-top: 36px;
  }
}

/* pc 840 */

/* ==============================
 /* カルチャーセンター：メイン
 ============================== */
.content--culturecenter__header {
  margin-top: 60px;
}
/* *****************************
   splide
  ***************************** */
.splide {
  text-align: center;
}

/* 画像がスライドの枠に収まるように設定*/
.splide__slide img {
  width: 89.3%;
  height: 100%;
  object-fit: cover;
}

/* メインスライダー */
#main-carousel {
  width: 89.3%;
  /* 中央寄せ */
  margin-left: auto;
  margin-right: auto;
}

/* メインスライダーが現れるアニメーション */
/* キーフレームの定義 */
@keyframes fadeInAnimation {
  /* アニメーション開始時（0%）は透明で縮小した状態からスタート */
  from {
    opacity: 0;
    transform: scale(0.98); /* わずかに縮小させて奥行き感を出す */
  }
  /* アニメーション終了時（100%）は通常の状態（完全に不透明） */
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 要素へのアニメーション適用 */
#main-carousel {
  animation-name: fadeInAnimation;

  /* 継続時間 */
  animation-duration: 2.5s;

  /* 実行タイミング: ページ読み込み後すぐに開始 */
  animation-delay: 0s;

  /* 繰り返し回数: 1回のみ */
  animation-iteration-count: 1;

  /* 終了時の状態: 最終フレームの状態を保持する */
  animation-fill-mode: forwards;

  /* その他の調整: イージング (緩やかな動き) */
  animation-timing-function: ease-out;
}

/* サブサムネイル */
/* 選択されていないサムネイルの透過度を下げる*/
.splide__slide {
  opacity: 0.6;
}
/* 選択されたら透過を戻す */
.splide__slide.is-active {
  opacity: 1;
}

/*サムネイルの黒枠の削除 */
#thumbnail-carousel .splide__slide.is-active {
  border: none !important;
}

.splide__thumbnail {
  margin: 30px auto 0;
  width: 332px;
  width: 100%; /* 親要素に合わせて幅を調整 */
}

/*
 * サムネイルカルーセルの矢印を外側に出すCSS */
#culturecenter__header {
  /*矢印を含めた全体の幅を確保*/
  /* width: 375px; */ /* 矢印を含めた合計幅 */
  margin-left: auto;
  margin-right: auto; /* 中央寄せ */
  /*矢印がはみ出しても表示されるようにする */
  overflow: visible;
}

/* サムネイルカルーセル本体 (#thumbnail-carousel) */
#thumbnail-carousel {
  position: relative;
  width: 88.53%;
  margin: 30px auto; /* 中央寄せ */
}

/* 矢印コンテナ全体の位置調整 */
#thumbnail-carousel .splide__arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  /* 矢印コンテナの幅を100%にして、サムネイル本体の幅に合わせる */
  width: 100%;

  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10;
}

/* 個別の矢印ボタンの位置調整 */
#thumbnail-carousel .splide__arrow--prev {
  left: -15px;
  opacity: 1;
}

#thumbnail-carousel .splide__arrow--next {
  right: -21px;
  opacity: 1;
}

/* 矢印のクリック範囲など */
.button {
  background-color: transparent; /* ボタンの背景を透明にする */
  height: 50px;
  transition: 0.2s;
  width: 15px;
}
/* 矢印共通のスタイル */
.button::before {
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  content: "";
  height: 18px;
  left: 0;
  margin: auto;
  position: absolute;
  top: 0;
  width: 11px;
}
/* 前の矢印 */
.prev::before {
  background-image: url(../images/5_culturecenter/arrow.svg);
}
/* 次の矢印 */
.next::before {
  background-image: url(../images/5_culturecenter/arrow_next.svg);
}

/* スライドのサイズ調整 */
.splide__slide img {
  height: auto;
  width: 100%;
}

/* メイン：about */
.culturecenter__header--about {
  text-align: center;
  margin-top: 30px;
  position: relative;
}

/*  メイン：about 疑似要素：線 */
.culturecenter__header--about::after {
  content: "";
  position: absolute;
  background-color: var(--primary-gray);
  display: block;
  width: 89.3%;
  height: 1px;
  top: 124px;
  left: 50%; /* 親要素の左端から50%の位置に移動 */
  transform: translateX(-50%);
  /* 要素の幅の半分だけ左に戻し、完全に中央に配置 */
}

/* 説明文 */
.culturecenter__header--txt.small {
  font-size: clamp(12px, 3.2vw, 14px);
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .content--culturecenter__header {
    margin-top: 30px;
  }

  #thumbnail-carousel .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .splide__slide img {
    height: auto;
    width: 52.36vw;
  }
  #thumbnail-carousel {
    max-width: none;
    width: 52.36vw;
    margin-left: auto;
    margin-right: auto;
  }

  /* 矢印の大きさ */
  .button::before {
    height: 40px;
    width: 25px;
  }
  /* 矢印の位置 */
  #thumbnail-carousel .splide__arrow--prev {
    left: -35px;
  }

  /*  メイン：about 疑似要素：線 */
  .culturecenter__header--about::after {
    width: 80.58%;
    bottom: clamp(-95px, -8vh, -40px);
  }

  /* 説明文 */
  .culturecenter__header--txt.small {
    font-size: clamp(12px, 0.97vw, 14px);
  }
}
/* pc  */
/* ***************************** */

/* =================================
 /*  各教室
 =================================== */
.rakunan-class__title {
  text-transform: uppercase;
}

/* 各教室の上のの余白 */
.class__list {
  margin-top: 131px;
}

/* 疑似要素：教室名の下の装飾 */
.class__title {
  position: relative;
}
.class__title::after {
  content: "";
  position: absolute;
  background-image: url(../images/5_culturecenter/title__line__sp.webp);
  display: block;
  width: 70.1vw;
  height: 8.27vw;
  background-size: contain;
  top: 90px;
  left: 50%; /* 親要素の左端から50%の位置に移動 */
  transform: translateX(-50%);
  /* 要素の幅の半分だけ左に戻し、完全に中央に配置 */
}

/* 教室名の2段目のフォント */
.class__name {
  display: block;
  font-size: clamp(14px, 5.333333vw, 30px);
}

/* リストの最初のアイテムの見出しに40pxを設定 */
.class__list > .class__item:first-child .class__item--heading {
  margin-top: 20px;
}

/* 2つ目以降のアイテムの見出しに60pxを設定 */
.class__item + .class__item .class__item--heading {
  margin-top: 60px;
}

/* グリッド内では中央寄せにする */
.class__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; /* 画像をGridアイテム内で垂直中央寄せ (必要に応じて) */
}

/* 可能区分 */
.class__item--available {
  margin-top: 4px;
}
.class__item--available {
  display: inline-block;
  padding: 0px 5px;
  border-radius: 5px;
}
/* 見学可能 */
.class__item--available--visit.sub_txt {
  background-color: var(--primary-lightPink);
  margin-right: 10px;
}
/* 体験可能 */
.class__item--available--experience.sub_txt {
  background-color: var(--primary-brown);
  color: var(--primary-creamYellow);
}
/* 教室情報詳細 */
.class__item--details {
  margin-top: 15px;
}
.class__item--text-group {
  display: flex;
  flex-direction: column;
}
.class__item--date-group {
  display: flex;
  align-items: start;
}
.icon-calendar {
  margin-top: 8px;
}

/* 申込みボタン */
.application {
  margin-top: 20px;
  text-align: center;
}

/* くずは教室 */
.class__item--heading--age {
  display: block;
  font-weight: 400;
}
/* 教室イメージ */
.class__item--image {
  display: none;
}
/* 疑似要素：線 */
.section--kuzuha-class,
.section--rakunan-class {
  position: relative;
}
.section--kuzuha-class::after,
.section--rakunan-class::after {
  content: "";
  position: absolute;
  background-color: var(--primary-gray);
  display: block;
  width: 100%;
  height: 1px;
  bottom: clamp(-95px, -8vh, -40px);
  left: 50%; /* 親要素の左端から50%の位置に移動 */
  transform: translateX(-50%);
  /* 要素の幅の半分だけ左に戻し、完全に中央に配置 */
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .section__class {
    width: 53.64vw;
    margin-right: auto;
    margin-left: auto;
  }

  .class__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px 135px;
    margin-top: 8.33vw;
  }

  /* 各教室の詳細情報を左寄せ */
  .class__item,
  .application {
    text-align: left;
  }

  /* タイトル上の余白を削除 */
  .class__item:first-child .class__item--heading,
  .class__item + .class__item .class__item--heading,
  .class__list > .class__item:first-child .class__item--heading {
    margin-top: 0;
  }
  /* タイトル下の装飾 */
  .class__title::after {
    background-image: url(../images/5_culturecenter/title__line__pc.webp);
    width: 44.1vw;
    height: 2.2vw;
    top: clamp(60px, 6.25vw, 120px);
    left: 50%; /* 親要素の左端から50%の位置に移動 */
    transform: translateX(-50%);
    /* 要素の幅の半分だけ左に戻し、完全に中央に配置 */
  }

  /* 教室名の2段目のフォント */
  .class__name {
    margin-top: 20px;
    font-size: clamp(16px, 1.67vw, 32px);
  }

  /* くずは教室：PC時に教室数が奇数なら写真を表示 */
  .class__item--image {
    display: block;
    text-align: center;
    height: 100%;
    display: none;
  }
  .class__item--image img {
    border-radius: 20px;
    height: 21.36vw;
    min-height: 270px;
    max-height: 376px;
  }

  /* 疑似要素：線 */
  .section--rakunan-class::after {
    display: none;
  }
  .section--kuzuha-class::after {
    width: 80.6vw;
    bottom: clamp(-80px, -4.17vw, -40px);
  }

  /* 洛南教室の上は120pxに */
  .section__class.section--rakunan-class {
    margin-top: 120px;
  }

  /* 洛南教室の一つ目のボタン位置をさげる */
  .class__item--rakunan {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* pc 840 */

/*  ===============================
    footer
    =============================== */
.footer {
  margin-top: 220px;
}
/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .footer {
    margin-top: 160px;
  }
}

/* pc 840 */
