.sports-tiles-wrap {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 8px 0;
}

.sports-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* モバイル～タブレットは3列 */
  gap: 12px;
}

.sport-tile {
  display: block;
  text-decoration: none;
  color: #222;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;

  /* ▼ 高さを全ブレイクポイントで統一 */
  height: 90px;           /* お好みで 80〜96px などに調整可能 */
  padding: 8px;           /* 内側余白も共通に */
}

.sport-tile:hover {
  transform: translateY(-3px) scale(1.02);   /* 少し大きく＆浮かせる */
  box-shadow: 0 6px 18px rgba(0,0,0,.12);   /* 影を強める */
  border-color: #0073aa;                    /* ブランドカラーで際立たせる */
  background: #f9fcff;                      /* 背景もわずかに変化 */

}

/* hover時に中身も少し演出 */
.sport-tile:hover .tile-emoji {
  transform: scale(1.1) rotate(-2deg);       /* アイコンを軽くポップ */
  transition: transform .15s ease;
}

.sport-tile:hover .tile-sport {
  color: #0073aa;                            /* テキストカラーも強調 */
}

.sport-tile.is-active {
  box-shadow: inset 0 0 0 2px #0073aa;
  background: #f0f8ff;
}

.tile-inner {
  height: 100%;
  display: flex;                 /* 中央寄せを明示 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;                      /* 全ブレイクポイント共通 */
}

.tile-emoji { font-size: 28px; line-height: 1; }   /* 全ブレイクポイント共通サイズ */
.tile-text  { text-align: center; line-height: 1.2; }

.tile-sport {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-count {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 0;
}

/* 狭小端末の微調整（任意） */
@media (max-width: 380px) {
  .tile-emoji { font-size: 26px; }
  .tile-sport { font-size: 11px; }
  .tile-count { font-size: 10px; }
}

/* ==== デスクトップ（>=1024px）は列数だけ変更。高さはそのまま ==== */
@media (min-width: 1024px) {
  .sports-tiles-grid {
    grid-template-columns: repeat(5, 1fr);  /* 5列に */
    gap: 8px;                                /* 少しだけ詰める */
    justify-content: center;
 }

  /* 高さやpadding、フォントは変更しないのでジャンプしない */
  /* もしさらに密にしたいならここで font-size を微調整 */
  /* .tile-emoji { font-size: 26px; } */
}
