
/* CSS Document */

@media screen and (max-width:750px) {
#subcontentswrap01 {
    width: 100%;
    padding: 3rem 0 3rem;
  }
.clinic-flow {
    counter-reset: step;
    max-width: 860px;
    margin: 0 auto;
}
    
.clinic-step {
              flex-direction: row;
        margin-bottom: 30px;
        gap: 15px;
        position: relative;
        display: flex;
  }
.clinic-step:last-child {
        margin-bottom: 0;
    }
  /* 左側：番号＋縦線 */
  .clinic-step-left {
      width: 50px; /* バッジ分の幅 */
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      margin-bottom: 8px;
  }

  /* 番号バッジ */
  .clinic-step-num::before {
      counter-increment: step;
      content: counter(step, decimal-leading-zero);
      display: flex;
      justify-content: center;
      align-items: center;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: #433a28;
      color: #fff;
      font-weight: 600;
      font-size: 2rem;
      flex-shrink: 0;
      z-index: 2; /* 縦線より前に */
  }

  /* 縦線 */
  .clinic-step-line {
      position: absolute;
      top: 50px; /* バッジの下から開始 */
      left: 50%;  /* バッジ中央 */
      transform: translateX(-50%);
      width: 1px;
      height: calc(100% - 50px); /* バッジ分を引く */
      background-color: #433a28;
      z-index: 1;
  }

  .clinic-step-main {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-left: 0;
  }

  .clinic-step-main h4 {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 1.8rem;
      margin-bottom: 4px;
  }

  .clinic-step-img {
      width: 100%;
      max-width: 200px;
      height: auto;
      border-radius: 6px;
  }

  .clinic-step-text p {
      font-size: 1.4rem;
      line-height: 1.5;
      margin-left: 0;
  }

  /* 最後のステップは縦線を消す */
  .clinic-step:last-child .clinic-step-line {
      display: none;
  }    
}
/*sp*/



@media screen and (min-width:751px) {
#subcontentswrap01 {
  width: 100%;
}
    
    
    
    
.clinic-flow {
    counter-reset: step;
    max-width: 860px;
    margin: 0 auto;
}

.clinic-step {
    display: flex;
    position: relative;
    margin-bottom: 40px;
        gap: 30px;
}
    .clinic-step:last-child{
        margin-bottom: 0;
    }
/* 左側：番号＋縦線 */
.clinic-step-left {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 番号バッジ */
.clinic-step-num::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #433a28;
    color: #fff;
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* 縦線 */
.clinic-step-line {
    flex-grow: 1;
    width: 1px;
    background-color: #433a28;
}

/* メイン部分（写真＋タイトル＋テキスト） */
.clinic-step-main {
    display: flex;
    flex-direction: row;
        gap: 60px;
}

/* タイトル＋写真の横並び */
.clinic-step-main h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* 写真 */
.clinic-step-img {
    width: 300px;
    height: auto;
    object-fit: cover;
}

/* テキスト */
.clinic-step-text p {
    line-height: 1.6;
}
}
/*pc*/