/* ==================================================
   手順のタイムライン（旧 lp-parts から分割・2026/11 にトークンへ移行）
   使うところ: LP、受講までの流れ（カードの部分だけ）、お支払い方法、本文で部品を使う投稿・固定ページ
   中身: .timeline / .step-item / .step-num（番号の丸）/ .step-content（カード）/ .step-title / .step-desc
   出力位置: 親テーマの style.css の直後（early）
   ================================================== */

.page-frame {
  .timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-md) 0;
  }
  /* 縦線。番号の丸（48px）の中心を通す */
  .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--space-md);
    border-left: var(--border-strong);
  }
  .step-item {
    position: relative;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-2xl);
  }
  .step-item:last-child { margin-bottom: 0; }
  .step-num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-raised);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-brand);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: 1;
    color: var(--color-ink-on-brand);
  }
  .step-content {
    padding: var(--space-md);
    border: var(--border-hairline);
    border-radius: var(--radius-sharp);
    background: var(--color-surface-base);
  }
  .step-title {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    margin: 0 0 var(--space-2xs);
    padding-bottom: var(--space-2xs);
    border-bottom: var(--border-hairline);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-ink-primary);
  }
  .step-desc {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    color: var(--color-ink-secondary);
  }

  @media (max-width: 768px) {
    /* 丸を 32px にして、縦線をその中心（16px）に合わせる */
    .timeline::before { left: var(--space-sm); }
    .step-item { padding-left: var(--space-xl); }
    .step-num {
      width: 32px;
      height: 32px;
      font-size: var(--text-base);
    }
    .step-content { padding: var(--space-sm); }
  }
}
