/* ==========================================================================
   sections/02-cta-bandwagon.css
   C-10 Green CTA Band (株式分割で買いやすく)
   テキストコーディング版
 
   構造:
   - 全幅黒帯（上下zigzag）
   - テキストでコーディング（シリンダーグラフとマスコットのみ画像）
   ========================================================================== */
 
 
.s-cta {
  position: relative;
  width: 100%;
  padding-block: 64px 80px;
  margin-top: var(--space-64);
  isolation: isolate;
  background-color: var(--c-green-primary);
  background-image: url('../../img/bg/s-cta_back.png');  /* 追加 */
  background-repeat: repeat;                              /* 敷き詰め */
  background-size: auto;                                  /* 原寸大 */
  background-position: 0 0;                               /* 左上から */
}
 
 
/* 内側コンテナ */
.s-cta__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--container-max) + var(--container-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
 
 
/* =================================================================
   上部ヘッダー「2026年1月1日に株式を15分割」
   ================================================================= */
.s-cta__header {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--space-24);
  letter-spacing: 0.05em;
}
 
.s-cta__header-slash {
  display: inline-block;
  margin: 0 var(--space-8);
  font-size: 24px;
  opacity: 0.8;
}
 
 
/* =================================================================
   メインタイトル「これまでよりも 買いやすく なりました!!」
   ================================================================= */
.s-cta__title {
  text-align: center;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .1em;
  color: var(--c-white);
  margin-bottom: var(--space-32);
}
 
.s-cta__title-highlight {
  color: var(--c-yellow-accent);
  position: relative;
  display: inline-block;
}

.s-cta__title-exclaim {
  color: var(--c-white);
}
 
 
/* =================================================================
   説明文バー（白背景）
   ================================================================= */
.s-cta__example {
  display: flex;  /* inline-flex → flex に変更 */
  align-items: center;
  gap: var(--space-8);
  background-color: var(--c-white);
  color: var(--c-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding: var(--space-12) var(--space-24);
  border-radius: 50px;
  margin: 0 auto var(--space-48);
  max-width: fit-content;
  text-align: center;
}
 
.s-cta__example-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--c-green-primary);
  color: var(--c-white);
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}
 
.s-cta__example strong {
  font-weight: 700;
  color: var(--c-text-strong);
}
 
 
/* =================================================================
   コンテンツエリア（シリンダー画像 + 右側テキスト）
   ================================================================= */
.s-cta__content {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 560fr);
  gap: var(--space-48);
  align-items: center;
  margin-bottom: var(--space-64);
}
 
 
/* シリンダー比較画像 */
.s-cta__cylinders {
  width: 100%;
  max-width: 560px;
}
 
.s-cta__cylinders img {
  display: block;
  width: 100%;
  height: auto;
}
 
 
/* 右側テキスト */
.s-cta__result {
  text-align: center;
}
 
.s-cta__result-text {
  font-size: 50px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.6;
  margin-bottom: var(--space-24);
}
 
.s-cta__result-note {
  font-size: 28px;
  font-weight: 400;
}
 
 
/* 1/15 + マスコット */
.s-cta__fraction-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
}
 
.s-cta__fraction {
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  position: relative;
  display: inline-block;
  font-family: var(--ff-number, 'Barlow', 'Noto Sans JP', sans-serif);
  letter-spacing: .1em;
}
 
/* 「1/15」の下に黄色アンダーライン */
.s-cta__fraction::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.0em;
  height: 0.12em;
  background-color: var(--c-yellow-accent);
  border-radius: 2px;
  opacity: .8;
}
 
.s-cta__mascot {
  width: auto;
  height: clamp(80px, 12vw, 120px);
  animation: float-mascot 1.5s ease-in-out infinite;
}

@keyframes float-mascot {
  0%, 100% {
    transform: translateY(0);      /* 元の位置 */
  }
  50% {
    transform: translateY(12px);  /* 上に12px移動 */
  }
}
 
 
/* =================================================================
   リンク
   ================================================================= */
.s-cta__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}
 
.s-cta__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing:.1em;
  transition: opacity var(--t-fast);
  background: #222;
  border-radius: 10px;
  line-height: 1;
  padding: 10px 30px;
}
 
.s-cta__link::after {
  content: '›';
  font-size: 30px;
  position: relative;
  bottom: 2px;
  color: #fff;
  font-weight: 700;
  margin-left: 5px;
}
 
.s-cta__link:hover {
  opacity: 0.7;
}
 
.s-cta__link:focus-visible {
  outline: 3px solid var(--c-yellow-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
 
 
/* ===== SP ===== */
@media (max-width: 767px) {
  .s-cta {
    padding-block: 40px 56px;
    margin-top: var(--space-48);
  }
 
  .s-cta::before,
  .s-cta::after {
    height: 12px;
    -webkit-mask:
      linear-gradient(135deg, transparent 50%, #000 50.5%) 0 0 / 12px 12px repeat-x,
      linear-gradient(45deg,  transparent 50%, #000 50.5%) 6px 0 / 12px 12px repeat-x;
            mask:
      linear-gradient(135deg, transparent 50%, #000 50.5%) 0 0 / 12px 12px repeat-x,
      linear-gradient(45deg,  transparent 50%, #000 50.5%) 6px 0 / 12px 12px repeat-x;
  }
 
  .s-cta__header {
    font-size: 14px;
    margin-bottom: var(--space-16);
  }
 
  .s-cta__header-slash {
    font-size: 16px;
    margin: 0 var(--space-4);
  }
 
  .s-cta__title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: var(--space-24);
  }
 
  .s-cta__example {
    font-size: 13px;
    padding: var(--space-8) var(--space-16);
    margin-bottom: var(--space-32);
  }
 
  .s-cta__example-check {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
 
  .s-cta__content {
    grid-template-columns: 1fr;
    gap: var(--space-32);
    margin-bottom: var(--space-48);
  }
 
  .s-cta__cylinders {
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
  }
 
  .s-cta__result-text {
    font-size: 18px;
    margin-bottom: var(--space-16);
  }

  .s-cta__result-text br{
    display:none;
  }

  .s-cta__result-note {
    font-size: 14px;
  }
 
  .s-cta__fraction-wrapper {
    gap: var(--space-16);
  }
 
  .s-cta__fraction {
    font-size: clamp(70px, 15vw, 100px);
  }
 
  .s-cta__mascot {
    height: clamp(60px, 15vw, 100px);
  }
 
  .s-cta__link {
    font-size: 14px;
  }
}
 