.section-intro{
  max-width: 750px;      /* ここで幅を調整（お好みで 750〜900px 程度に変更可） */
  margin: 2rem auto;     /* 上下に余白を取りつつ中央寄せ */
  padding: 0 1rem;       /* スマホで左右が詰まらないよう適度にパディング */
}
.section-intro p{
  line-height: 1.8;      /* 読みやすい行間 */
}

.training-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  margin-top: 1rem;
  border: none;
}

/* 全体共通：下線あり、左寄せ */
.training-table th,
.training-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.8em 1em;
  text-align: left;
  background-color: transparent;
}

/* 見出し（列タイトル行） */
.training-table th {
  background-color: var(--color-bg-soft);
  font-weight: bold;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}

/* タイトル行（研修名の行）：背景と文字色を強調 */
.training-table .title-row td {
  background-color: var(--color-title-bg);
  color: var(--color-title-text);
  font-weight: bold;
  font-size: 1.05rem;
  border-bottom: none;
}

/* 詳細行：落ち着いた背景と文字色 */
.training-table .detail-row td {
  background-color: var(--color-detail-bg);
  color: var(--color-detail-text);
  border-top: none;
}

/* 日付列のみ：自然な折り返しで2行内に収める */
.training-table .detail-row td[data-label="日付"] {
  white-space: normal;
  word-break: keep-all;
  min-width: 10em;
}

/* リンク色 */
.training-table td a {
  color: var(--color-link);
  text-decoration: underline;
}

/* 行にホバーしたときの背景 */
.training-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* th 行には hover 効果を適用しない */
.training-table thead tr:hover {
  background-color: transparent;
}

/* 主催列の幅を広げる（35%） */
.training-table th:nth-child(2),
.training-table td:nth-child(2) {
  width: 35%;
}

/* 講師列の幅を狭める（50%） */
.training-table th:nth-child(3),
.training-table td:nth-child(3) {
  width: 50%;
}

.service-links-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 2em 0;
}

/* ライトテーマ時 */
:root {
  --color-title-bg: #dfece7;
  --color-title-text: #222222;
  --color-detail-bg: #ffffff;
  --color-detail-text: #333333;
}

/* ダークテーマ時 */
[data-theme="dark"] {
  --color-title-bg: #355145;
  --color-title-text: #ffffff;
  --color-detail-bg: #1a1a1a;
  --color-detail-text: #dddddd;
}

/* モバイル表示 */
@media (max-width: 600px) {
  .training-table {
    display: block;
  }

  .training-table thead {
    display: none;
  }

  .training-table tbody,
  .training-table tr,
  .training-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .training-table .title-row td {
    background-color: var(--color-title-bg);
    color: var(--color-title-text);
    font-weight: bold;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
  }

  .training-table .detail-row td {
    background-color: var(--color-detail-bg);
    color: var(--color-detail-text);
    padding: 0.2rem 1rem;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
  }

  .training-table .detail-row td::before {
    content: attr(data-label) "：";
    font-weight: bold;
    display: inline-block;
    width: 4em;
    flex-shrink: 0;
  }

  /* PC向けの列幅指定を無効化 */
  .training-table td:nth-child(2),
  .training-table td:nth-child(3) {
    width: auto !important;
  }
}
