.content-subtitle {
  text-align: center !important;
}

.page-title img {
  /* 部活種類タイトルとずれが目立たないように例外的に余白消す */
  margin-right: 0 !important;
}

.content-club-list {
  display: grid;
  /* 修正ポイント: auto-fill + clamp で列幅を固定し、中央寄せ */
  grid-template-columns: repeat(auto-fill, clamp(150px, 24vw, 250px));
  justify-content: center;
  column-gap: 45px;
  row-gap: 50px;
  justify-items: center;
}

.content-club-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  aspect-ratio: 16/13; /* 正方形に固定 */
  padding: 10px;
  gap: 8px; /* 画像とテキストの間にも隙間を */
  color: #333;
  font-family: "Zen Maru Gothic", sans-serif;
  text-decoration: none;
  background: #f6f2ed;
  border: #999 0.5px solid;
  border-radius: 10px;
  border-bottom: solid clamp(2.5px, 0.5vw, 3px) #999;
  transition: transform 0.15s ease-in-out;
  font-weight: 500;
  overflow: hidden;
}

.content-club-button-img-wrapper {
  width: 100%;
  /* 1:1（正方形）から16:9に変更 */
  aspect-ratio: 16/11;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.content-club-button-img {
  /* コンテナ内でトリミング＋はみ出し防止 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  display: block;
  transform: translateZ(0);
}

.content-club-button-icontitle {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
}

.content-club-button-icontitle span {
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ホバーエフェクト */
.content-club-list a::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(128, 128, 128, 0);
  border-radius: inherit;
  pointer-events: none;
  transition: background-color 0.15s ease-in-out;
  z-index: 1;
}
.content-club-list a:hover {
  transform: translateY(clamp(1.5px, 0.3vw, 2.5px));
  border-bottom-width: 1px;
}
.content-club-list a:hover::after {
  background-color: rgba(128, 128, 128, 0.1);
}

/* スマホ微調整 */
@media (max-width: 480px) {
  .content-club-list {
    column-gap: 30px;
    row-gap: 16px;
  }
  .content-club-list a {
    /* gap: 6px; */
    width: 99%;
  }
  .content-club-button-icontitle span {
    font-size: 14px;
  }
}
