/* 獣医の1日スケジュールセクション */
.schedule {
  background: #ffd04d;
  position: relative;
}

.schedule__vector {
  position: absolute;
  top: 280px;
  left: -200px;
  height: 743px;
  width: 1463px;
  min-width: 1300px;
}

/* スケジュール部分 */
.schedule__content {
  background: #ffffff;
  border-radius: 300px 0 0 0;
  position: relative;
}

.schedule__container {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 20px;
  position: relative;
}

.schedule__title {
  font-weight: 800;
  font-size: 32px;
  line-height: 52px;

  text-align: center;
  margin: 0 0 40px 0;
}

.schedule__items {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 50px;
}

/* スケジュール項目 */
.schedule__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 280px;
  height: 340px;
  flex-shrink: 0;
}

/* 時刻とアクティビティのヘッダー部分 */
.schedule__item-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.schedule__time {
  background: #ffd04d;
  border-radius: 8px;
  padding: 0 24px;
  width: 80px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 16px;

  line-height: 40px;
  flex-shrink: 0;
}

.schedule__activity {
  font-weight: bold;
  font-size: 20px;
  line-height: 1.5;

  margin: 0;
  white-space: nowrap;
}

.schedule__image-placeholder {
  background: #e4e4e4;
  border-radius: 16px;
  width: 280px;
  height: 174px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.schedule__details {
  font-weight: bold;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

/* CTA部分 */
.schedule__cta {
  background: #ffd04d;
  padding: 67px 100px 0px;

  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 63px;
}

.schedule__character {
  width: 284px;
  height: 364px;
  position: relative;
  flex-shrink: 0;
}

.schedule__character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.schedule__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  text-align: center;
}

.schedule__cta-text {
  font-weight: bold;
  font-size: 24px;
  line-height: 1.5;

  margin: 0;
  padding-top: 33px;
  white-space: nowrap;
}

.schedule__cta-text span {
  display: block;
}

/* 1200px以上でのスケジュール項目の並び順調整 */
@media (min-width: 1201px) {
  /* 全ての要素にorder値を明示的に指定 */
  .schedule__item:nth-child(1) {
    order: 1;
  } /* 8:30 出勤・開院準備 */
  .schedule__item:nth-child(2) {
    order: 2;
  } /* 9:00 午前診療スタート */
  .schedule__item:nth-child(3) {
    order: 3;
  } /* 12:00 午前診療終了 */
  .schedule__item:nth-child(4) {
    order: 6;
  } /* 13:00 昼休憩 → 2列目右端 */
  .schedule__item:nth-child(5) {
    order: 5;
  } /* 14:00 午後の手術・処置 → 2列目左 */
  .schedule__item:nth-child(6) {
    order: 4;
  } /* 16:00 午後診療スタート → 2列目中央 */
  .schedule__item:nth-child(7) {
    order: 7;
  } /* 19:00 診療終了・片付け */
  .schedule__item:nth-child(8) {
    order: 8;
  } /* 20:00 退勤 */
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .schedule__vector {
    display: none;
  }

  .schedule__container {
    padding: 80px 50px 0;
  }

  .schedule__items {
    max-width: 800px;
    gap: 25px 25px;
  }

  .schedule__cta {
    padding: 80px 24px;
    gap: 24px;
    overflow: hidden;
  }

  .schedule__cta-text {
    font-size: 20px;
    white-space: wrap;
  }

  .schedule__cta-content {
    flex-shrink: 1;
  }

  .schedule__character {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .schedule__content {
    border-radius: 100px 0 0 0;
    min-height: auto;
  }

  .schedule__container {
    padding: 40px 24px 40px;
  }

  .schedule__title {
    font-size: 24px;
    line-height: 39px;
    margin-bottom: 40px;
  }

  .schedule__timeline {
    height: auto;
    min-height: auto;
  }

  .schedule__timeline-line {
    display: none;
  }

  .schedule__items {
    flex-direction: column;
    align-items: center;
    gap: 0px;
    max-width: 310px;
  }

  .schedule__item {
    width: 100%;
    max-width: 310px;
    margin-bottom: 0;
  }

  /* 768px以下での高さ調整 */
  .schedule__item:nth-child(3),
  .schedule__item:nth-child(5) {
    height: 322px;
  }

  .schedule__item:nth-child(4),
  .schedule__item:nth-child(6),
  .schedule__item:nth-child(8) {
    height: 304px;
  }

  .schedule__item-header {
    gap: 16px;
  }

  .schedule__time {
    width: 80px;
    height: 40px;
  }

  .schedule__image-placeholder {
    width: 100%;
    height: 174px;
  }

  .schedule__image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .schedule__details {
    width: 100%;
    font-size: 12px;
  }

  .schedule__activity {
    font-size: 20px;
    white-space: normal;
  }

  .schedule__cta {
    padding: 60px 24px;
    flex-direction: column;
    gap: 16px;
    position: relative;
    align-items: center;
  }

  .schedule__cta-content {
    position: relative;
    z-index: 2;
    gap: 16px;
  }

  .schedule__character {
    width: 94px;
    height: 120px;
    position: absolute;
    top: 60px;
    z-index: 1;
  }

  .schedule__character:first-child {
    left: -18px;
  }

  .schedule__character:last-child {
    right: -18px;
  }

  .schedule__cta-text {
    font-size: 16px;
    white-space: normal;
    max-width: 224px;
    padding-top: 0px;
  }

  /* CTAボタンのレスポンシブスタイルはcta-button.cssに移行しました */
}
