/* css/member_steps.css
   会員になるまでの手順（① Anibornで加入 → ② このサイトで登録 → ③ 運営が確認）の表示。
   mbr/register.html と mbr/pc.html の両方で使う。style10.css より後に読み込む。
   【設置場所】css/ */

/* ── 手順の要約（横並び） ── */
.ms-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  max-width: 560px; /* PCで横に伸びすぎないように */
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* 項目は文字の幅だけ取り、残りの幅を横棒が埋める（PCで横棒が短く余白だけ広がるのを防ぐ） */
.ms-flow__item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.35;
}

.ms-flow__sep {
  flex: 1 1 12px;
  min-width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #d6dbe1;
}

.ms-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.ms-num--1 { background: #e08a1e; }
.ms-num--2 { background: var(--color-primary); }
.ms-num--3 { background: #9aa1ab; }

/* ── 手順のカード（縦に点線でつなぐ） ── */
.ms-steps {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 24px;
  width: 2px;
  background: repeating-linear-gradient(#cfd6de 0 4px, transparent 4px 8px);
}

.ms-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ms-dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--color-surface);
}

.ms-box {
  min-width: 0;
  border-radius: 14px;
  padding: 16px;
}

.ms-box--1 {
  background: #fff7ec;
  border: 1.5px solid #f2c27a;
}

.ms-box--2 {
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary);
}

.ms-box--3 {
  padding: 8px 0 0;
}

.ms-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ms-kicker--1 { color: #b8680e; }
.ms-kicker--2 { color: var(--color-primary-dark); }

.ms-box h2,
.ms-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.ms-box p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.ms-box p:last-child {
  margin-bottom: 0;
}

.ms-box--3 p {
  color: var(--color-text-muted);
}

.ms-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.ms-btn--1 {
  background: #e08a1e;
  color: #fff;
}

.ms-btn--1:hover {
  opacity: 0.9;
}

.ms-btn--2 {
  background: var(--color-primary);
  color: #fff;
}

.ms-btn--2:hover {
  background: var(--color-primary-dark);
}

/* 「加入が終わったら、このタブに戻ってSTEP 2へ」 */
.ms-return {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #e0a24a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.6;
  color: #7a4a0a;
}

.ms-return__icon {
  flex-shrink: 0;
  font-weight: 800;
}

/* スマホ幅では、番号の下に文字を置く（横並びだと文字が途中で折り返して読みにくいため）。
   横棒は番号の高さにそろえる */
@media (max-width: 480px) {
  .ms-flow {
    align-items: flex-start;
    font-size: 0.72rem;
  }

  .ms-flow__item {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    white-space: nowrap;
  }

  .ms-flow__sep {
    margin-top: 10px;
  }
}

@media (max-width: 400px) {

  .ms-box {
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-btn {
    transition: none;
  }
}

/* 手順の前の一文（mbr/pc.html） */
.ms-lead {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* 会員案内ページ（mbr/pc.html）の最後のボタンは、PCで横に伸びすぎないようにする */
.pc-cta-card .ms-btn {
  max-width: 360px;
  margin: 0 auto;
}

.pc-cta-card .pc-cta-note a {
  color: var(--color-primary-dark);
}
