@charset "UTF-8";

.hero {
  height: 100vh;
  overflow: hidden;
  margin-bottom: 50px;
}

.mainvisual {
  height: auto;
  margin-bottom: 40px;
  position: relative;
}

.mainvisual .fade-img img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

.mainvisual .fade-img li {
  width: 100%;
  position: absolute;
  right: 0;
  opacity: 0;
  animation: fade 15s infinite;
}

.mainvisual .fade-img li:nth-child(1) {
  animation-delay: 0s;
}

.mainvisual .fade-img li:nth-child(2) {
  animation-delay: 5s;
}

.mainvisual .fade-img li:nth-child(3) {
  animation-delay: 10s;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  45% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.mainvisual .catchphrase {
  text-shadow: 1px 1px 3px #000;
  color: #fff;
  font-family: "Kiwi Maru";
}
.mainvisual .catchphrase .main {
  top: 100px;
  left: 3%;
  position: absolute;
  font-size: 50px;
  font-weight: 500;
}
.mainvisual .catchphrase .sub {
  top: 80px;
  left: 4%;
  position: absolute;
  font-size: 20px;
}
/* notice */
#notice {
  width: 80%; /* 必要に応じて固定幅や最大幅に */
  max-width: 600px; /* 横に広がりすぎるのを防ぐ */
  margin: 0 auto; /* 左右自動で中央寄せ */
  border: 2px solid #ff0000; /* 赤い枠線 */
  padding: 1em; /* 内側の余白 */
  background-color: #fff8f8; /* 薄い赤系背景色 */
  color: #900; /* 警告っぽい文字色 */
  font-weight: bold; /* 太字で目立たせる */
  border-radius: 4px; /* 角を少し丸く */
}
/* news */
#news {
  margin-top: 200px;
  text-align: center;
}

#news .news-items {
  /* ボックスモデル（レイアウト関連） */
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
#news .news-items .items-left {
  width: 300px;
  margin-left: 200px;
}
#news .news-items .items-right {
  width: 300px;
  margin-right: 50px;
}
#news .news-items .items-add1 {
  width: 300px;
  margin-right: 200px;
}
#news .news-items .title-en {
  /* ボックスモデル（レイアウト関連） */
  display: block;
  border-left: 5px solid #000;

  /*サイズ関連*/
  margin: 0;
  padding: 0 0.2rem 0 0.2rem;

  /*テキスト関連*/
  font-family: "Passion One";
  font-size: 40px;
  font-weight: 700;
  text-align: left;
}
#news .news-items .title-ja {
  /* ボックスモデル（レイアウト関連） */
  display: block;
  border-left: 5px solid #000;

  /*サイズ関連*/
  margin-bottom: 20px;
  padding: 0 0.2rem 0 0.2rem;

  /*テキスト関連*/
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}
#news .news-items .content {
  /* ボックスモデル（レイアウト関連） */
  display: block;
  text-align: left;

  /*サイズ関連*/
  margin-bottom: 20px;
}
#news .news-items .date {
  display: block;
  /*テキスト関連*/
  font-family: "Passion One";
  font-size: 20px;
  font-weight: 400;
}

#toggleButton {
  margin-top: 10px;
  display: inline-block;
}

.wave {
  position: relative;
  height: 200px; /*何も表示されない場合は各波の親要素に高さを持たせましょう。*/
}
canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* club */
#club {
  padding: 80px 0;
  background-color: rgba(255, 194, 14, 0.67);
}
#club .slider .slider-item {
  display: block;
  max-width: 400px;
  margin: 0 40px;
  text-align: center;
}
#club .slider .slider-item:nth-child(even) {
  margin-top: 80px;
}
#club .slider .slider-item .img img {
  margin: 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}
#club .slider .slider-item .title-en {
  font-family: "Passion One";
  font-size: 25px;
  font-weight: bold;
  margin: 30px 0 2px;
}
#club .slider .slider-item .title-ja {
  font-size: 12px;
  line-height: 1.8;
}

/* introduction */
#introduction {
  padding-top: 80px;
  margin-bottom: 120px;
}
#introduction .item {
  display: flex;
  margin-bottom: 80px;
}
#introduction .item .img {
  max-width: 640px;
}
#introduction .item .description {
  display: block;
  max-width: 560px;
  padding: 0 6%;
}
#introduction .description .title-en {
  font-family: "Passion One";
}
#introduction .description .title-ja {
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: 700;
}

/*----inview---*/
.fadein {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s;
}

.fadein.inview {
  opacity: 1;
  transform: translateY(0);
}

/*----News欄の開閉----*/
.news-container {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.news-container.collapsed {
  max-height: 200px; /* 表示したい高さに調整 */
}

.news-container.expanded {
  max-height: 1000px; /* 多めに確保する or none にしてJSで対応 */
}

/* レスポンシブ */
@media screen and (max-width: 767px) {
  .mainvisual .catchphrase {
    text-shadow: 1px 1px 3px #000;
  }
  .mainvisual .catchphrase .main {
    top: 45px;
    left: 3%;
    font-size: 30px;
    font-weight: 500;
  }
  .mainvisual .catchphrase .sub {
    top: 30px;
    left: 4%;
    font-size: 14px;
  }
  #news .news-items {
    display: block;
  }
  #news .news-items .items-left {
    margin: 20px 0;
  }

  #club {
    padding: 40px 0;
  }
  #club .slider .slider-item {
    margin: 0 10px;
  }
  #club .slider .slider-item .title-en {
    font-size: 18px;
    margin: 20px 0 10px;
  }
  #club .slider .slider-item .title-ja {
    font-size: 14px;
  }
  #introduction {
    padding-top: 40px;
  }
  #introduction .item.course {
    flex-direction: column;
    margin-bottom: 60px;
  }
  #introduction .item.inclusive {
    flex-direction: column-reverse;
    margin-bottom: 60px;
  }
  #introduction .item .img {
    max-width: 100%;
    margin-bottom: 20px;
  }
  #introduction .item .description {
    max-width: 100%;
    padding: 0;
  }
  #introduction .item .description .title-ja {
    margin-bottom: 20px;
    font-size: 22px;
  }
}
