/* ============================================
   OE Categories Grid
   ============================================ */

/* --- ラッパー（PC: 上80px） --- */
.oe-cat-wrap {
  padding-top: 80px;
}
@media (max-width: 600px) {
  .oe-cat-wrap { padding-top: 40px; }
}

/* --- セクションヘッダー --- */
.oe-cat-header {
  text-align: center;
  margin-bottom: 40px;
}
.oe-cat-header__title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  line-height: 1.3;
}
.oe-cat-header__desc {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  line-height: 1.7;
}

/* --- グリッドレイアウト --- */
.oe-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .oe-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .oe-cat-grid { grid-template-columns: 1fr; }
}

/* --- カード本体 --- */
.oe-cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.oe-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
}

/* アクセントカラーバー（カード上部） */
.oe-cat-card::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--oe-cat-accent, rgba(17, 24, 39, .12));
  margin-bottom: 4px;
}

/* --- カード上部：アイコン ＋ タイトル --- */
.oe-cat-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* アイコン（画像あり：JPG / PNG 等） */
.oe-cat-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

/* アイコン（SVG）: contain で余白を保ちつつ全体表示 */
.oe-cat-icon--svg {
  object-fit: contain;
  padding: 4px;
  background: rgba(0, 0, 0, .04);
}

/* アイコン（画像なし フォールバック） */
.oe-cat-icon--fallback {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--oe-cat-accent, rgba(17, 24, 39, .08));
  flex-shrink: 0;
}

/* タイトル＋件数のラッパー */
.oe-cat-titlewrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* カテゴリ名 */
.oe-cat-name {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* イベント件数 */
.oe-cat-meta {
  font-size: 13px;
  color: #6b7280;
}

/* --- 説明文 --- */
.oe-cat-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- カード下部：CTA --- */
.oe-cat-card__bottom {
  margin-top: auto;
  padding-top: 8px;
}

.oe-cat-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--oe-cat-accent, #4b5563);
}

/* --- 空表示 --- */
.oe-cat-empty {
  color: #6b7280;
  font-size: 14px;
}