/* ==========================================================================
   下部CTA（動画背景・白半透明マスク）
   背景動画: assets/videos/nayami-hero.mp4
   マスク:   前面テキストの可読性を確保する白半透明レイヤー
   利用箇所: 記事詳細（interview / tip）・体験談詳細・ランキング末尾 など
   テンプレ: template-parts/article/bottom-cta.php

   レイアウト変数は .article-detail 配下に依存しないよう、ここで自己完結させる
   （記事詳細での見た目は従来どおり：gutter / max は article-detail.css と同値）。
   ========================================================================== */
.article-bottom-cta {
  --bottom-cta-gutter: clamp(var(--space-4), 4vw, var(--space-10));
  --bottom-cta-max: 860px;
  position: relative;
  margin: var(--space-12) auto 0;
  padding-block: clamp(var(--space-10), 8vw, var(--space-16));
  padding-inline: var(--bottom-cta-gutter);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-radius: 0;
}

.article-bottom-cta__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.article-bottom-cta__mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.92) 100%
  );
  pointer-events: none;
}

.article-bottom-cta__inner {
  position: relative;
  z-index: 2;
  max-width: var(--bottom-cta-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.article-bottom-cta__title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.article-bottom-cta__title-accent {
  color: var(--color-main);
  font-weight: 900;
}

.article-bottom-cta__lead {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.article-bottom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.article-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.article-bottom-cta__btn:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
}

.article-bottom-cta__btn--primary {
  background: var(--color-main);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-main);
  box-shadow: 0 4px 12px rgba(21, 204, 182, 0.25);
}

.article-bottom-cta__btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .article-bottom-cta {
    padding-block: var(--space-10);
  }

  .article-bottom-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .article-bottom-cta__br {
    display: none;
  }
}
