@charset "UTF-8";
.head-text {
  font-size: 15px;
  line-height: 2;
  padding: 0 20px;
  margin-bottom: 80px;
  text-align: center;
}

/*-------------------------------------------
部活動
-------------------------------------------*/
.tab-list {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 40px;
}
.tab-list li {
  width: 100%;
  max-width: 150px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: solid 1px #1f1f1f;
  border-left: solid 1px #1f1f1f;
  border-right: solid 1px #1f1f1f;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
  transition: all 0.3s ease;
}
.tab-list li:last-child {
  margin-right: 0;
}
.tab-list li:hover {
  background-color: #1f1f1f;
  color: #fff;
}
.tab-list li.active {
  background-color: #1f1f1f;
  color: #fff;
}

.club-list {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 120px;
  display: none;
}
.club-list.active {
  display: grid;
}

.club-list li {
  position: relative;
  width: 100%; /* 各グリッドの幅を統一 */
  aspect-ratio: 4 / 3; /* 縦横比を固定 */
  overflow: hidden; /* はみ出る部分を隠す */
  display: flex; /* 画像を中央配置 */
  align-items: center;
  justify-content: center;
}
.club-list li .info {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.6s ease;
}
.club-list li:hover .info {
  opacity: 1;
}
.club-list li .info .name {
  font-size: 18px;
  margin-bottom: 5px;
}
.club-list li .info .price {
  font-size: 14px;
}
.club-list li .modal-open {
  width: 100%;
  height: 100%;
  display: flex; /* 中央寄せ */
  align-items: center;
  justify-content: center;
}
.club-list li .modal-open img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像が枠にピッタリ収まる */
  border-radius: 8px; /* 角丸を追加（任意） */
  min-width: 100%; /* 余白を防ぐ */
  min-height: 100%; /* 余白を防ぐ */
  object-fit: cover; /* 枠にフィット */
}

/* モーダルウィンドウのCSS */
.modal {
  display: none; /* 初期状態では非表示 */
  position: fixed; /* 画面全体を覆うように固定 */
  z-index: 1; /* 他の要素より前面に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* 必要に応じてスクロール可能にする */
  background-color: rgba(0, 0, 0, 0.4); /* 背景を少し暗くする */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 中央に配置 (少し上から表示) */
  padding: 20px;
  border: 1px solid #888;
  width: 50%; /* モーダルウィンドウの幅 */
}

.modal-content .modal-name {
  margin-bottom: 20px;
  text-align: left;
}

.modal-content .modal-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
}

.modal-content .modal-text {
  margin-bottom: 20px;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.all .modal {
  display: none; /* 初期状態では非表示 */
  position: fixed; /* 画面全体を覆うように固定 */
  z-index: 1; /* 他の要素より前面に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* 必要に応じてスクロール可能にする */
  background-color: rgba(0, 0, 0, 0.4); /* 背景を少し暗くする */
}
/*-------------------------------------------
年間行事
-------------------------------------------*/
#annual-events {
  margin: 0 auto;
}

#annual-events .this-year {
  margin: 30px auto;
}

#annual-events .this-year .pdf {
  display: flex;
  justify-content: center;
  font-size: 20px;
  text-decoration: underline;
  margin: 30px;
}

#annual-events .this-year .description {
  font-size: 14px;
  color: #707070;
}

#annual-events .area {
  display: flex;
  justify-content: center;
  margin-top: -50px;
}
.area .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.5s;
}

#annual-events .area .even,
.odd {
  display: block;
  margin: 0 20px 100px;
  padding: 0 10px;
}

#annual-events .area .card {
  width: 400px;
  height: 200px;
  position: relative;

  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.16);
  color: #212121;
  text-decoration: none;
  margin: 100px 0;
  padding: 30px;
}

#annual-events .area .card .card-header {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  position: absolute;
  top: -30px;
  left: -8%;
  z-index: 40;
}

#annual-events .area .apr .card-header {
  background-color: #ffeff7;
  color: #000;
}
#annual-events .area .may .card-header {
  background-color: #e3f6e8;
  color: #000;
}
#annual-events .area .jun .card-header {
  background-color: #d7eafb;
  color: #000;
}
#annual-events .area .jul .card-header {
  background-color: #b3e5fc;
  color: #000;
}
#annual-events .area .aug .card-header {
  background-color: #ffd54f;
  color: #fff;
}
#annual-events .area .sep .card-header {
  background-color: #ffa726;
  color: #fff;
}
#annual-events .area .oct .card-header {
  background-color: #ff7043;
  color: #fff;
}
#annual-events .area .nov .card-header {
  background-color: #d84315;
  color: #fff;
}
#annual-events .area .dec .card-header {
  background-color: #8d6e63;
  color: #fff;
}
#annual-events .area .jan .card-header {
  background-color: #6d4c41;
  color: #fff;
}
#annual-events .area .feb .card-header {
  background-color: #4e342e;
  color: #fff;
}
#annual-events .area .mar .card-header {
  background-color: #3e2723;
  color: #fff;
}

#annual-events .area .card .card-text {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  font-size: 20px;
}
#annual-events .area .card .card-text::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #ffda6e;
  position: absolute;
  top: 10px;
  left: -5%;
}

#curriculum .pdf {
  display: flex;
  justify-content: center; /* 水平方向の中央揃え */
  margin: 0 auto;
}

#curriculum .pdf-first {
  font-size: 20px;
}

#curriculum .pdf-second {
  font-size: 20px;
}

#curriculum .pdf-third {
  font-size: 20px;
}

/*-------------------------------------------
タブレット
-------------------------------------------*/
@media screen and (max-width: 1024px) {
  .club-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*-------------------------------------------
スマートフォン
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .tab-list {
    margin-bottom: 10px;
  }
  .tab-list li {
    font-size: 10px;
    margin-right: 5px;
  }
  .club-list {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 60px;
  }

  #annual-events .area .even,
  .odd {
    width: 50%;
    display: block;
    margin: 0 0 20px;
    padding: 0 10px;
  }
  #annual-events .area .card {
    width: 100%;
    height: 100px;
    margin: 50px 0 50px;
    padding: 20px;
  }
  #annual-events .area .card .card-header {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1.2;
    top: -12px;
    left: -10%;
    z-index: 40;
  }
  #annual-events .area .card .card-text {
    font-size: 10px;
  }
  #annual-events .area .card .card-text::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #ffda6e;
    position: absolute;
    top: 7px;
    left: -10%;
  }
}
