/* ============================================
   s-content-001 — 記事・コラム・販売品 本文コンテンツ
   デザイン: A=左ボーダー見出し / B=カードフレーム
   ============================================ */

.s-content-001 {
  line-height: var(--line-height-loose);
  color: var(--color-text);
}

/* ────────────────────────────────
   見出し h2 — デザインA: 左ボーダー（デフォルト）
   ──────────────────────────────── */
.s-content-001 h2:not(:is([class^="c-"], [class*=" c-"])):not(:is([class^="s-"], [class*=" s-"])) {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-2-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: var(--space-5-xl) 0 var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-sub);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: var(--line-height-tight);
}

.s-content-001 h2:first-child:not(:is([class^="c-"], [class*=" c-"])):not(:is([class^="s-"], [class*=" s-"])) {
  margin-top: 0;
}

/* h2 アイコン: なし */

/* ────────────────────────────────
   デザインB: カードフレーム（特徴 / おすすめ のみ）
   h2ヘッダー + 直後コンテンツで1つのカード
   ──────────────────────────────── */
.s-content-001 h2:nth-of-type(2),
.s-content-001 h2:nth-of-type(3) {
  background: var(--color-primary);
  color: var(--color-white);
  border-left: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
}

/* カードフレーム内テキスト白 */

.s-content-001 h2:nth-of-type(2) + ul,
.s-content-001 h2:nth-of-type(2) + ol,
.s-content-001 h2:nth-of-type(3) + ul,
.s-content-001 h2:nth-of-type(3) + ol {
  border: 2px solid var(--color-primary);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  margin-top: 0;
  background: var(--color-white);
}

/* ────────────────────────────────
   見出し h3
   ──────────────────────────────── */
.s-content-001 h3:not(:is([class^="c-"], [class*=" c-"])):not(:is([class^="s-"], [class*=" s-"])) {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: var(--space-3-xl) 0 var(--space-lg);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary-light, #F5E0E1);
  line-height: var(--line-height-tight);
}

/* ────────────────────────────────
   段落
   ──────────────────────────────── */
.s-content-001 p {
  margin: 0 0 var(--space-xl);
  font-size: var(--font-size-md);
}

/* ────────────────────────────────
   リスト
   ──────────────────────────────── */
.s-content-001 ul,
.s-content-001 ol {
  margin: 0 0 var(--space-xl);
  padding: 0;
  list-style: none;
}

.s-content-001 li {
  position: relative;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-2-xl);
  font-size: var(--font-size-md);
  line-height: var(--line-height-loose);
}

.s-content-001 li:last-child {
  margin-bottom: 0;
}

.s-content-001 ul li::before {
  content: 'check_circle';
  font-family: 'Material Icons Outlined';
  font-weight: normal;
  font-style: normal;
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 1.1em;
  color: var(--color-primary);
}

.s-content-001 ol {
  counter-reset: ol-counter;
}

.s-content-001 ol li::before {
  counter-increment: ol-counter;
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.6em;
  height: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

/* ────────────────────────────────
   テーブル
   ──────────────────────────────── */
.s-content-001 figure.wp-block-table {
  margin: 0 0 var(--space-xl);
}

.s-content-001 table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-md);
  border: none;
}

.s-content-001 th,
.s-content-001 td {
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.s-content-001 th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.s-content-001 tbody tr:nth-child(even) {
  background: var(--color-bg-sub);
}

.s-content-001 td:last-child {
  text-align: right;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  white-space: nowrap;
}

.s-content-001 figure + p {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

/* ────────────────────────────────
   その他
   ──────────────────────────────── */
.s-content-001 img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.s-content-001 figure {
  margin: 0 0 var(--space-xl);
}

.s-content-001 hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-3-xl) 0;
}

/* ────────────────────────────────
   レスポンシブ
   ──────────────────────────────── */
@container (max-width: 599px) {
  .s-content-001 h2:not(:is([class^="c-"], [class*=" c-"])):not(:is([class^="s-"], [class*=" s-"])) {
    font-size: var(--font-size-xl);
    padding: var(--space-sm) var(--space-md);
  }

  .s-content-001 h3:not(:is([class^="c-"], [class*=" c-"])):not(:is([class^="s-"], [class*=" s-"])) {
    font-size: var(--font-size-lg);
  }

  .s-content-001 h2:nth-of-type(2) + ul,
  .s-content-001 h2:nth-of-type(2) + ol,
  .s-content-001 h2:nth-of-type(3) + ul,
  .s-content-001 h2:nth-of-type(3) + ol {
    padding: var(--space-lg) var(--space-md);
  }

  .s-content-001 table {
    font-size: var(--font-size-sm);
  }

  .s-content-001 th,
  .s-content-001 td {
    padding: var(--space-xs) var(--space-sm);
  }
}
