#club-modal {
  position: fixed;
  z-index: 999;
  width: 85vw;
  height: 70vh;
  /* height: 70dvh; */
  max-width: 1100px;
  max-height: 700px;
  /* 画面中央配置のための設定 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 以下は元のスタイルを維持 */
  background-color: var(--color-background-light);
  border-radius: 20px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1), 3px 3px 12px rgba(0, 0, 0, 0.01);
  display: none;
  padding: 35px 40px;
  box-sizing: border-box;
}

.club-modal-wrapper {
  display: flex;
  gap: 30px;
  height: 100%;
}

#club-modal-mainContent {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding-right: 2px;
  overflow-y: auto;
}

.club-modal-wrapper div {
  width: 100%;
  text-align: left;
}

@media (max-width: 767px) {
  #club-modal {
    width: 95vw;
    padding: 10px 25px;
    height: 80vh;
  }
  .club-modal-wrapper {
    /* モーダルのpaddingを抜いた分、こっちで上に空白をいれる ←辞める */
    /* margin-top: 20px; */
    flex-direction: column;
    justify-content: flex-start; /* 変更ここ */
    align-items: center;
    overflow-y: scroll;
    /* height: calc(100% - 4px); */
    width: 100%;
    /* height: 70vh; */
    /* padding-right: 6px !important; */
    /* 無理やり消している */
    overflow-x: hidden;
    /* 何故か左側に入らなくなる */
    padding-left: 2px;
    gap: 0;
  }
  #club-modal h2 {
    margin: 0;
  }
  #club-modal-mainContent {
    overflow-y: visible;
  }
  #club-modal-table-container {
  }
}

#club-modal-records-content ul {
  padding-left: 30px;
}
#club-modal-records-content li {
  margin: 0.2rem 0;
}

#club-modal h2 {
  /* font-size: 2.5rem; */
  /* https://modern-fluid-typography.vercel.app?rootFontSize=16&minSize=30&fluidSize=1&relativeSize=1.5&maxSize=38 */
  font-size: clamp(2rem, 1vw + 1.5rem, 2.75rem);
  position: relative;
  width: 100%;
  margin: 0;
  margin-left: 10px;
  margin-bottom: 20px;
  font-weight: normal;
  font-family: "Maven Pro", "Zen Maru Gothic", sans-serif;
}

#club-modal-catchPhrase::before {
  content: "";
  display: inline-block;
  width: 2ch;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  /* middleにしても多少ズレるのでmarginで調節 */
  margin-bottom: 5px;
  margin-right: 4px;
}

#club-modal-catchPhrase {
  font-size: 1.3rem;
  transform: skewX(-15deg);
  font-family: "Maven Pro", "Zen Maru Gothic", sans-serif;
  margin-bottom: 35px;
}

#club-modal h2::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: -8px;
  width: 95%;
  /* width: calc(100% + 20px); */
  height: 6px;
  background: -webkit-repeating-linear-gradient(
    -45deg,
    #6ad1c8,
    #6ad1c8 2px,
    #fff 2px,
    #fff 4px
  );
  background: repeating-linear-gradient(
    -45deg,
    #6ad1c8,
    #6ad1c8 2px,
    #fff 2px,
    #fff 4px
  );
}

#club-modal img {
  display: block; /* 余白除去（インライン要素として扱われないよう） */
  width: 95%; /* 親要素の幅いっぱいに表示 */
  aspect-ratio: 16/9; /* 16:9のアスペクト比を直接指定 */
  object-fit: cover; /* 画像を箱いっぱいに拡大（トリミングあり） */
  border-radius: 12px;
}

#club-modal-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 998;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1px);
  display: none;
}

.fade-in {
  animation: fadeIn 0.1s forwards;
}
.fade-out {
  animation: fadeOut 0.1s forwards
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.club-modal-section {
  /* margin: 1rem 0; */
}

#club-modal-table-container {
  width: 99%;
  text-align: center;
  /* 謎の隙間はこれで消す(NOT margin) */
  border-collapse: collapse;
  margin-bottom: 1rem;
}

#club-modal-table-container th,
td {
  border: solid 1px black;
}

#club-modal-table-container tr:nth-child(3) td {
  font-size: 1.3rem;
  padding: 10px 0;
}

/* 土曜日（列6,7）の背景色 */
col.sat {
  background-color: #e6f7ff; /* 淡い青 */
}
/* 日曜日（列8,9）の背景色 */
col.sun {
  background-color: #ffe6e6; /* 淡い赤 */
}
/* AM/PMの区切り線（列6,8の右側） */
#club-modal-table-container tr > :nth-child(6),
#club-modal-table-container tr > :nth-child(8),
#club-modal-table-container tr:nth-child(2) th:nth-child(1),
#club-modal-table-container tr:nth-child(2) th:nth-child(3) {
  border-right: 1px dotted #000;
}

.club-modal-section p {
  line-height: 1.4rem;
}
