.daily-category-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 10px 20px;
}

.section-header {
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.section-header p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* =========================
   グリッド
========================= */

.category-grid {
  display: grid;
  gap: 6px;
}

.category-grid-main {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
}

.category-grid-sub {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================
   カード
========================= */

.category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: #cfcfcf;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* =========================
   画像
========================= */

.category-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8f8f8;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   本文
========================= */

.category-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 16px;
}

.category-content h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.category-content p {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 16px;
  flex-grow: 1;
}

.category-link {
  font-size: 13px;
  font-weight: 600;
  color: #005bac;
}

/* =========================
   その他カテゴリ
========================= */

.sub-category-wrap {
  margin-top: 8px;
}

.sub-category-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
}

.sub-card {
  justify-content: center;
  align-items: center;
  min-height: 84px;
  padding: 16px;
  text-align: center;
}

.sub-card h3 {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  font-weight: 700;
}

/* =========================
   タブレット
========================= */

@media (max-width: 768px) {

  .daily-category-section {
    padding: 24px 10px 48px;
  }

  .category-grid-main,
  .category-grid-sub {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 24px;
  }

}

/* =========================
   スマホ
========================= */

@media (max-width: 480px) {

  .category-grid-main,
  .category-grid-sub {
    gap: 6px;
  }

  .category-content {
    padding: 12px;
  }

  .category-content h3 {
    font-size: 15px;
  }

  .category-content p {
    font-size: 12px;
    line-height: 1.6;
  }

  .sub-card {
    min-height: 72px;
  }

  .sub-card h3 {
    font-size: 13px;
  }

}