.team-card {
    position: relative; /* ラベルを絶対配置するため */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    text-align: center;
    width: 200px;
    min-height: 250px;  /* 全体の高さをある程度固定 */

    text-decoration: none; /* リンク下線を消す */
    color: inherit;        /* テキストカラーを継承 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-card .team-image {
    width: 100%;
    height: 130px;         /* 固定高さ */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    margin-top: 10px;
    overflow: hidden;      /* はみ出し防止 */
}

.team-name-centered {
  font-size: 16px;
  font-weight: 700;
  color: #444;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.team-card .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.team-card .team-image.logo-only img {
    object-fit: contain;   /* ロゴは切り抜かない */
    width: 70%;
    height: auto;
    max-height: 100%; /* 枠からはみ出さない */
}

/* デフォルトロゴ（比率を保持して縮小） */
.team-card .team-image img.default-team-logo {
    width: auto;
    height: 80%;         /* 枠に収まるよう縮小 */
    max-width: 80%;      /* 横幅も調整 */
    object-fit: contain; /* ロゴは切らない */
}

.team-card .team-image.placeholder {
  font-style: italic;
}

/* チーム名とカテゴリーを常に同じ位置に */
.team-card .team-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card .team-name {
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0 4px;
  padding-bottom: 4px;
}

.team-card .team-desc {
  font-size: 13px;
  color: #555;
}

.team-card .team-category {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: none;    /* 背景削除 */
    color: #333;         /* 通常の文字色 */
    font-size: 14px;    
    font-weight: 600;
}


.team-carousel {
  position: relative;
  padding: 0 36px; /* 左右に矢印分の余白を確保 */
}

.team-carousel .swiper-slide {
  width: 200px;   /* 各スライドをカード幅に固定 */
}


/* デフォルトは矢印なし */
.team-carousel .swiper-button-prev,
.team-carousel .swiper-button-next {
  display: none;
}

.team-carousel .swiper-pagination {
  position: relative;   /* カード内部ではなく下に配置 */
  margin-top: 12px;     /* 下方向に余白を追加 */
  text-align: center;   /* 中央揃え */
}

/* PCサイズだけ矢印を表示 */
@media (min-width: 768px) {
  .team-carousel .swiper-button-prev,
  .team-carousel .swiper-button-next {
    display: flex;
  }
}
