/* ============================================
   s-card-10 — 特徴カードセクション（ピンク背景・3col）
   c-heading-05 + c-card-15__grid > c-card-15
   ============================================ */

/* --- WP block margin reset --- */
:is(.s-card-10 *) {
  margin: 0;
}

/* --- Section container --- */
.s-card-10.wp-block-group,
.s-card-10 {
  container-type: inline-size;
  padding-top: var(--space-8-xl);
  padding-bottom: var(--space-8-xl);
}

/* --- Section heading spacing --- */
.s-card-10 > .c-heading-05,
.s-card-10 > [class*="c-heading-"] {
  margin-block-end: var(--section-header-mb) !important;
}

/* --- Grid wrapper for c-card-15 cards --- */
.s-card-10__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: var(--space-xl);
}

@container (min-width: 600px) {
  .s-card-10__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: var(--space-2-xl);
  }
}

/* 4枚など偶数枚向け: 2カラム（3col時の余り1枚=孤立を防ぐ） */
@container (min-width: 600px) {
  .s-card-10__grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Responsive ===== */

@container (max-width: 599px) {
  .s-card-10 {
    padding-top: var(--space-6-xl);
    padding-bottom: var(--space-6-xl);
  }
}

/* --- modifier: 2列ワイドカード（組み合わせ施術・関連カード用） --- */
.s-card-10--wide .s-card-10__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(var(--card-xl), 100%), 1fr));
}
