/* ===========================
   ページコンテナ
   =========================== */
.page-deliv {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   ステップインジケータセクション
   =========================== */
.deliv-steps-section {
  padding: 32px 0 40px;
  border-bottom: 1px solid #E5E5E5;
}

.deliv-steps {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.deliv-steps__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* ステップ間の接続線（右端を除く） */
.deliv-steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: #BEBEBE;
}

.deliv-steps__num {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #BEBEBE;
  color: var(--white);
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deliv-steps__label {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #BEBEBE;
  text-align: center;
  line-height: 1.4;
}

/* アクティブなステップ */
.deliv-steps__item--active .deliv-steps__num {
  background: var(--cyan);
}

.deliv-steps__item--active .deliv-steps__label {
  color: var(--cyan);
  font-weight: 600;
}

/* ===========================
   フォームセクション
   =========================== */
.deliv-form-section {
  padding: 40px 0 80px;
}

.deliv-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  container-type: inline-size;
}

/* ===========================
   アクションボタン群
   =========================== */
.deliv-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}

.deliv-actions__back {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.deliv-actions__back:hover {
  opacity: 0.6;
}

/* 「次へ進む」ボタン（cart.css L271-302 を複製） */
.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cyan);
  border-radius: 400px;
  padding: 4px 60px;
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--cyan);
  background: var(--white);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  min-height: 48px;
}

.cart-checkout-btn:hover {
  background: var(--cyan);
  color: var(--white);
}

.cart-checkout-btn__arrow {
  flex-shrink: 0;
  transition: filter 0.2s;
}

.cart-checkout-btn:hover .cart-checkout-btn__arrow {
  filter: brightness(0) invert(1);
}

/* ===========================
   レスポンシブ: 767px以下
   =========================== */
@media (max-width: 767px) {
  /* ステップインジケータ縮小 */
  .deliv-steps-section {
    padding: 24px 0 28px;
  }

  .deliv-steps__item:not(:last-child)::after {
    top: 14px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
  }

  .deliv-steps__num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .deliv-steps {
    max-width: none;
  }

  .deliv-steps__label {
    font-size: 10px;
  }

  /* アクションボタン群を縦並び（次へ進むが上・戻るが下） */
  .deliv-actions {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: stretch;
    text-align: center;
  }

  .cart-checkout-btn {
    font-size: 16px;
    padding: 4px 40px;
    justify-content: center;
  }

  .deliv-actions__back {
    text-align: center;
  }
}
