.label {
  width: 120px;
  color: var(--label-text-color);  /* ← 変数を使う！ */
  font-weight: bold;
  padding: 1em 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 4px 4px;
}

/* === 通所支援ステップ見出しスタイル === */
.soudan-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.soudan-steps {
  counter-reset: step-counter;
  border-top: 1px solid var(--color-border);     /* 上の区切り線 */
  border-bottom: 1px solid var(--color-border);  /* 下の区切り線 */
  padding-top: 0rem;
  padding-bottom: 1rem;
}

.soudan-steps h2 {
  counter-increment: step-counter;
  display: flex;                /* 追加 */
  align-items: center;          /* 垂直方向中央揃え */
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  padding-top: 0rem;
  padding-bottom: -2.0rem;
}

.soudan-steps h2::before {
  content: counter(step-counter) ".";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: var(--color-text);
  font-size: 1.2rem;
}

.soudan-steps p {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--color-text);
}

.soudan-steps2 {
  counter-reset: item;
  border-top: 0px solid var(--color-border);
  border-bottom: 0px solid var(--color-border);
  padding: 1rem;
}

.soudan-steps2 ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.soudan-steps2 li {
  counter-increment: item;
  position: relative;
  margin-bottom: 1.5em;
  padding-left: 2em;
  color: var(--color-text);
  line-height: 1.6;
}

.soudan-steps2 li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--color-link);
  font-size: 1rem;
}

.soudan-steps2 {
  counter-reset: item;
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem; /* 上下2rem、左右1.5rem */
  margin-top: 2rem;
  background-color: rgba(255, 255, 255, 0.5);
}


/* === リンク群：右寄せ === */
.service-links-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 2em 0;
}

/* === 縦並び === */
.service-links {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* === 各リンク行 === */
.service-link {
  display: flex;
  align-items: center;
}

/* →アイコン */
.service-link .arrow {
  display: inline-block;
  width: 1.5em;
  text-align: right;
  color: var(--color-link);
  font-weight: bold;
}

/* テキストリンク */
.service-link a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 1rem;
  margin-left: 0.3em;
}

.service-link a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

/* === モバイル対応 === */
@media screen and (max-width: 768px) {
  .section {
    flex-direction: column;
  }

  .label {
    width: 100%;
    border-radius: 4px 4px 0 0;
  }

  .content {
    padding-top: 1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .service-links-wrapper {
    justify-content: center;
  }
}

/* ステップ付き手順のセクション */
.steps-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

/* カウンターと縦棒のコンテナ */
.steps {
  counter-reset: step-counter;
  position: relative;
  padding-left: 3rem; /* ← 丸のwidth + margin に合わせて調整 */
}

/* 縦棒 */
.steps:before {
  content: "";
  background-color: #d59533;
  width: 2px;
  position: absolute;
  top: 1.25rem; /* 丸の半分と合わせる */
  left: 1.25rem; /* 丸の中心に一致させる */
  height: calc(100% - 6.0rem); /* 上のマージン分調整 */
  z-index: 0;
}

/* 各ステップタイトル */
.steps > h2 {
  counter-increment: step-counter;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

/* ステップ番号（丸） */
.steps > h2:before {
  content: counter(step-counter);
  background: #d59533;
  color: white;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 2.5rem;
  text-align: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  position: absolute;
  left: 0.5rem;  /* 丸の左端 → 中心は 1.25remになるように */
  z-index: 1;
}

/* 各ステップの説明 */
.steps > p {
  margin-left: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* === リンク群：右寄せ === */
.service-links-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 2em 0;
}
