/* ==========================================================================
   調剤予約(booking) — /booking/index.php 専用
   ========================================================================== */

/* --- FV --- */
.booking-fv {
  padding-block: 64px 56px;
  text-align: center;
}

.booking-fv__catch {
  margin: 0 0 20px;
  color: var(--color-booking-catch);
  font-size: 2.75rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.booking-fv__sub {
  margin: 0 auto;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.9;
}

.booking-fv__illust {
  margin: 40px auto 32px;
  max-width: 777px;
}

.booking-fv__illust img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- 予約ボタン(EPARK誘導。両セクション共通) --- */
.booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px 13px 52px;
  border-radius: 50px;
  background-color: var(--color-epark);
  border: 2px solid var(--color-epark);
  color: var(--color-bg);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  width: 200px;
  height: 52px;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.booking-btn:hover {
  background-color: var(--color-bg);
  color: var(--color-epark);
}

.booking-btn__arrow {
  flex-shrink: 0;
}

/* --- 待ち時間短縮セクション --- */
.booking-flow {
  position: relative;
  padding-block: 64px 72px;
  overflow: hidden;
  text-align: center;
}

.booking-flow .l-container {
  position: relative;
}

.booking-flow__clock {
  position: absolute;
}

/* 白パネルの外(黄色背景側)に単独配置 */
.booking-flow__clock--left {
  top: 240px;
  left: -40px;
}

/* 白パネルの角に半分乗り上げる形で重ねる */
.booking-flow__clock--tr {
  top: 18px;
  right: -47px;
}

.booking-flow__clock--br {
  bottom: -30px;
  right: -30px;
}

/* --- 白パネル(見出し〜ボタンまでを内包) --- */
.booking-flow__panel {
  position: relative;
  max-width: var(--width-content);
  margin-inline: auto;
  padding: 48px 56px 56px;
  background-color: var(--color-bg);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.booking-flow__heading {
  margin: 0 0 24px;
  color: var(--color-primary);
  font-size: 2.125rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

.booking-flow__lead {
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.9;
}

.booking-flow__lead strong {
  font-size: 1.25rem;
}

.booking-flow__flow-label {
  margin: 0 0 40px;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
}

/* --- Flow カード(内側の水色枠) --- */
.booking-flow__card {
  position: relative;
  margin: 0 0 40px;
  padding: 56px 40px 40px;
  background-color: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
  border: 2px solid var(--color-primary);
  border-radius: 16px;
}

/* 枠の上辺に半分乗り上げる吹き出しバッジ */
.booking-flow__steps-badge {
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 28px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50px;
  font-size: 1.9375rem;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  top: -22px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.booking-flow__steps-badge::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-primary);
}

.booking-flow__steps-num {
  font-size: 2.6875rem;
  line-height: 1;
}

.booking-steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.booking-steps__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 40px;
}

/* Step アイコン間のコネクタ(実線・青) */
.booking-steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 100px;
  left: 47px;
  width: 0;
  height: calc(100% - 96px);
  border-left: 2px solid var(--color-primary);
}

.booking-steps__item picture {
  display: block;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.booking-steps__icon {
  display: block;
  width: 96px;
  height: 96px;
}

.booking-steps__title {
  margin: 0px 0 4px;
  color: var(--color-primary);
  font-size: 1.5625rem;
  font-weight: var(--font-weight-medium);
}

.booking-steps__text {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ==========================================================================
   SP(max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .booking-fv {
    padding-block: 40px 40px;
  }

  .booking-fv__catch {
    font-size: 1.4375rem;
  }

  .booking-fv__sub {
    font-size: 1rem;
    padding-inline: 16px;
  }

  .booking-fv__illust {
    padding-inline: 24px;
  }

  .booking-flow {
    padding: 54px 0 0 0;
    /* SP: 見出し〜リード文の背景に敷く斜めストライプ */
    background-image: repeating-linear-gradient(
      -45deg,
      var(--color-accent) 0 10px,
      var(--color-booking-stripe) 10px 20px
    );
  }

  .booking-flow__clock {
    width: 72px;
    height: auto;
  }

  .booking-flow__clock--tr {
    top: -20px;
    right: 12px;
  }

  .booking-flow__clock--left {
    top: 330px;
    left: 11px;
  }

  /* SP は装飾を絞り、右上・左下のみ表示 */
  .booking-flow__clock--br {
    display: none;
  }

  /* panel自体は透明な配置用ラッパー(クロック用の position:relative のみ維持) */
  .booking-flow__panel {
    margin-inline: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  /* 見出し＋リード文の白背景 */
  .booking-flow__intro {
    padding: 48px 24px;
    background-color: var(--color-bg);
    border-radius: 16px;
    margin-bottom: 54px;
  }

  .booking-flow__heading {
    font-size: 1.25rem;
  }

  .booking-flow__lead {
    font-size: 1rem;
  }

  .booking-flow__lead strong {
    font-size: 1.125rem;
  }

  /* Flow〜step一覧+次の予約ボタンまで: 枠線・角丸なし、塗りを画面幅いっぱいに広げる
     (ボタンも同じ帯の上に乗るよう、box ではなく lower 側で塗り・フルブリードを持つ) */
  .booking-flow__lower {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 28px 20px 75px;
    background-color: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
  }

  .booking-flow__box {
    margin-bottom: 32px;
  }

  .booking-flow__flow-label {
    margin: 0 0 20px;
  }

  .booking-flow__card {
    position: static;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
  }

  .booking-flow__steps-badge {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 0 28px;
    font-size: 1.125rem;
    padding: 8px 20px;
  }

  .booking-flow__steps-num {
  font-size: 1.375rem;
}

  .booking-steps__item {
    align-items: flex-start;
    gap: 16px;
  }

  .booking-steps__item picture,
  .booking-steps__icon {
    width: 50px;
    height: 50px;
  }

  .booking-steps__item:not(:last-child)::before {
    top: 50px;
    left: 25px;
    height: calc(100% - 50px);
  }

  .booking-steps__title {
    font-size: 1.0625rem;
  }

  .booking-steps__text {
    font-size: 0.875rem;
  }

  .booking-btn {
    font-size: 0.9375rem;
  }
}
