/* CTA パーツ — SPEC §7.2 / Slice 5 ( .cta- prefix ) — ダークモード */

/* ---- 追従フッターバー ---- */
.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--color-surface-2, #1b1c20);
  border-top: 1px solid var(--color-border, #2a2b31);
  color: var(--color-text, #f4f5f7);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.cta-sticky__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.cta-sticky__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text-secondary, #a6abb3);
}

.cta-sticky__cta {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--color-accent, #00C805);
  color: var(--color-on-accent, #06140a);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-btn, 10px);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cta-sticky__cta:hover {
  background: var(--color-accent-hover, #1FE329);
  color: var(--color-on-accent, #06140a);
}

.cta-sticky__close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: var(--color-text-tertiary, #6c7077);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
.cta-sticky__close:hover { color: var(--color-text, #f4f5f7); }

/* バー表示時のみ本文下に余白を確保（本文がバーに隠れない） */
body.has-cta-sticky {
  padding-bottom: 64px;
}

@media (max-width: 767px) {
  .cta-sticky__inner {
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
  }
  .cta-sticky__text {
    font-size: 0.82rem;
    text-align: center;
  }
  body.has-cta-sticky {
    padding-bottom: 104px;
  }
}

/* ---- セクション型CTA ---- */
.cta-section {
  margin: 3rem 0 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--color-surface, #141417);
  border: 1px solid var(--color-border, #2a2b31);
  border-radius: var(--radius-card, 16px);
  text-align: center;
}

.cta-section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-head, sans-serif);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text, #f4f5f7);
}

.cta-section__text {
  margin: 0 0 1.25rem;
  color: var(--color-text-secondary, #a6abb3);
  line-height: 1.7;
}

.cta-section__cta {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--color-accent, #00C805);
  color: var(--color-on-accent, #06140a);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-btn, 10px);
  transition: background 0.15s ease;
}

.cta-section__cta:hover {
  background: var(--color-accent-hover, #1FE329);
  color: var(--color-on-accent, #06140a);
}
