@charset "UTF-8";

/* ============================================================
   【JCB】USJチケットプレゼントキャンペーンLP 専用スタイル
   ============================================================ */

.cp-main {
  --cp-blue: #092987;
  --cp-pink: #e5004c;
  --cp-text: #333333;
  --cp-caption: #595959;
  --cp-border: #e1e3e9;
  --cp-line: #595959;
  --cp-white: #ffffff;
  --cp-pale: #f5f7ff;
  --cp-thead: #e5ecff;
  --cp-gray: #f4f4f4;
  --cp-gray-2: #f5f5f5;

  --cp-font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --cp-panel: 1264px;
  --cp-inner: 1118px;
}

/* 追従バッジからエントリーへの移動をなめらかにする（動きを減らす設定の環境では無効） */
@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.cp-lp {
  overflow-x: hidden;
  font-family: var(--cp-font-base);
  color: var(--cp-text);
  background: var(--cp-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

/* リセットは :where() で詳細度0にし、各コンポーネント側の指定を優先させる */
:where(.cp-lp img) {
  max-width: 100%;
  border: none;
  vertical-align: bottom;
}

:where(.cp-lp p, .cp-lp dl, .cp-lp dd) {
  margin: 0;
}

:where(.cp-lp ul, .cp-lp ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* PCではコンテンツの下限をseeds共通フッターの min-width（1028px）に合わせる。
   同じ 769px 境界で切り替えるため、フッターとコンテンツが常に同じ幅になり、
   横スクロールが発生する場合も両者がずれずに一緒にスクロールする */
@media screen and (min-width: 769px) {
  .cp-lp {
    min-width: 1028px;
  }
}

/* ===== レイアウト ===== */
.cp-section {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
}

.cp-section--white {
  background: var(--cp-white);
}

.cp-section--gray {
  background: var(--cp-gray);
}

.cp-section--gray2 {
  background: var(--cp-gray-2);
}

/* ===== 背景装飾 =====
   Figmaの1600px基準で配置。拡大縮小はせず原寸で置き、
   左右端のものは画面端に固定、中央付近のものは中央基準で配置する。 */
.cp-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cp-deco__img {
  position: absolute;
  display: block;
}

/* SP用の装飾はPC幅では出さない */
.cp-deco--sp {
  display: none;
}

/* エントリーはこちら（Figma基準の高さ 749px） */
.cp-deco--e1 { top: 57px; left: 54px; width: 110px; }
.cp-deco--e2 { top: 201px; right: -10px; width: 110px; }
.cp-deco--e3 { top: 35px; left: calc(50% - 220px); width: 440px; }
.cp-deco--e4 { top: 84px; left: calc(50% - 203px); width: 411px; }
.cp-deco--e5 { bottom: 36px; right: 20px; width: 504px; }
.cp-deco--e6 { top: 0; right: 1px; width: 327px; }
.cp-deco--e7 { bottom: 0; left: 0; width: 229px; }
.cp-deco--e8 { bottom: 87px; left: 10px; width: 111px; }
.cp-deco--e9 { top: 100px; right: 0; width: 106px; }
.cp-deco--e10 { top: 38px; right: 306px; width: 34px; }
.cp-deco--e11 { top: 263px; right: -10px; width: 29px; }
.cp-deco--e12 { bottom: 40px; left: 199px; width: 36px; }

/* キャンペーン概要（Figma基準の高さ 2208px） */
.cp-deco--g1 { top: 34px; left: calc(50% - 260px); width: 440px; }
.cp-deco--g2 { top: 383px; right: 52px; width: 68px; }
.cp-deco--g3 { top: 96px; left: 48px; width: 81px; }
.cp-deco--g4 { top: 583px; left: 48px; width: 81px; }
.cp-deco--g5 { bottom: 567px; left: 57px; width: 81px; }
.cp-deco--g6 { bottom: 100px; left: 57px; width: 81px; }
.cp-deco--g7 { top: 993px; right: -5px; width: 57px; }
.cp-deco--g8 { bottom: 312px; right: -5px; width: 57px; }
.cp-deco--g9 { top: 767px; left: 0; width: 430px; }
.cp-deco--g10 { top: 0; right: 0; width: 192px; }
.cp-deco--g11 { bottom: 0; right: 6px; width: 266px; }
.cp-deco--g12 { bottom: -25px; right: 111px; width: 95px; }
.cp-deco--g13 { bottom: 939px; left: 94px; width: 95px; }
.cp-deco--g14 { top: 218px; right: 0; width: 95px; }
.cp-deco--g15 { top: 74px; right: 71px; width: 34px; }
.cp-deco--g16 { top: 1027px; left: 67px; width: 34px; }
.cp-deco--g17 { bottom: 109px; right: 86px; width: 34px; }

/* SBI証券でクレカ積立をするメリット */
/* Figma基準の高さ 611px */
.cp-deco--m1 { top: 81px; right: 129px; width: 504px; }
.cp-deco--m2 { bottom: 16px; right: 78px; width: 504px; }
.cp-deco--m3 { bottom: 77px; left: 52px; width: 81px; }
.cp-deco--m4 { top: 60px; right: 46px; width: 57px; }
.cp-deco--m5 { top: 0; left: 0; width: 366px; }
.cp-deco--m6 { bottom: 0; right: 0; width: 601px; }
.cp-deco--m7 { top: 131px; left: 55px; width: 95px; }
.cp-deco--m8 { top: 52px; left: 41px; width: 30px; }
.cp-deco--m9 { bottom: 37px; right: 92px; width: 34px; }

/* よくあるご質問 */
/* Figma基準の高さ 1057px */
.cp-deco--f1 { top: 194px; left: 34px; width: 81px; }
.cp-deco--f2 { bottom: 176px; left: 34px; width: 81px; }
.cp-deco--f3 { top: 99px; right: 8px; width: 57px; }
.cp-deco--f4 { bottom: 226px; right: 8px; width: 57px; }
.cp-deco--f5 { top: 124px; right: 21px; width: 504px; }
.cp-deco--f6 { bottom: 371px; right: 21px; width: 504px; }
.cp-deco--f7 { bottom: 0; right: 0; width: 333px; }
.cp-deco--f8 { top: 0; left: 0; width: 201px; }
.cp-deco--f9 { bottom: 125px; right: -7px; width: 31px; }
.cp-deco--f10 { top: 155px; left: 75px; width: 31px; }

/* パネルの見た目はMVのコンテンツ枠と共通
   Figmaは fill: white / fill-opacity: 0.1。背後の装飾を透かしてぼかす */
.cp-panel,
.cp-hero__panel {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  /* 内側にごく淡い影を落として、ぼかしの縁を締める */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.cp-panel {
  position: relative;
  z-index: 1;
  width: var(--cp-panel);
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 40px 24px 56px;
  box-sizing: border-box;
}


.cp-inner {
  width: var(--cp-inner);
  max-width: 100%;
  margin: 0 auto;
}

/* ===== 共通テキスト ===== */
.cp-note {
  font-size: 12px;
  line-height: 1.35;
  color: var(--cp-caption);
}

.cp-note--center {
  text-align: center;
}

.cp-em-pink {
  color: var(--cp-pink);
}

.cp-list > li {
  padding-left: 1em;
  text-indent: -1em;
}

.cp-list > li::before {
  content: "・";
}

/* PC／SPで改行位置を切り替える */
.cp-br-sp {
  display: none;
}

.cp-link {
  color: var(--cp-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== セクションタイトル ===== */
.cp-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* Figma実測: タイトル下40px（エントリー・概要・メリットで共通） */
  margin: 0 0 40px;
}

.cp-title__spark {
  flex: none;
  width: 50px;
  height: 48px;
}

.cp-title__spark--right {
  transform: scaleX(-1);
}

.cp-title__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-title__label {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-blue);
  text-align: center;
}

.cp-title__bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #0b3ea8 0%,
    #2c9fd0 22%,
    #35b57a 44%,
    #f5c518 66%,
    #f2762b 86%,
    #e5004c 100%
  );
}

/* ===== メインビジュアル =====
   Figma実測: MV全体 1600x752 / 中央のコンテンツ（白い角丸カード）1377x652。
   背景だけを画面幅に追従させ、コンテンツは原寸を上限にして拡大させない。 */
.cp-hero {
  position: relative;
  background: var(--cp-white);
}

.cp-hero__bg {
  display: block;
  width: 100%;
  height: auto;
  /* 原寸より高くしない。広い画面では上下に潰して四隅の装飾を残す */
  max-height: 752px;
  object-fit: fill;
}

.cp-hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* パネル 1377x652 */
.cp-hero__panel {
  /* 1377 / 1600。狭い画面では背景と同じ比率で縮む */
  width: 86.0625%;
  /* 原寸。これ以上は拡大しない */
  max-width: 1377px;
}

/* コンテンツ画像はパネルと同寸(1377x652 @2x)で書き出しており、
   内側の余白も画像に含まれる。Figma更新で内容の外形が変わっても
   CSSの余白計算をやり直さずに済む */
.cp-hero__content {
  display: block;
  width: 100%;
  height: auto;
}

.cp-hero__visual {
  display: block;
  width: 100%;
  height: auto;
}

/* SP版はレイアウトが異なるため画像を差し替える */
.cp-hero__visual--sp {
  display: none;
}

/* ===== キャンペーン期間帯 ===== */
.cp-period {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--cp-blue);
  color: var(--cp-white);
  text-align: center;
}

.cp-period__label {
  flex: none;
  padding: 8px;
  border: 1px solid var(--cp-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.cp-period__date {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.cp-period__num {
  font-size: 24px;
}

/* 申込み選択へ行く（画面右下に追従する丸バッジ。押すとエントリーへスクロール） */
.cp-entry-badge {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 100;
  display: block;
  width: 180px;
  height: 180px;
}

.cp-entry-badge__bg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 表示切り替えの判定用。エントリーセクションの下端に置くだけでレイアウトには影響しない */
.cp-entry-sentinel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* JSが動いた場合のみ .is-toggled が付く。
   エントリーセクションを通過するまでは隠し、通過後に .is-visible で出す。
   JSが無効な環境では両方付かないため、常時表示のまま動作する */
.cp-entry-badge.is-toggled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cp-entry-badge.is-toggled.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== エントリーはこちら ===== */
/* タイトル直下のリード文（Figma実測: 16px / 行送り22px / 中央寄せ）。
   seeds共通CSSが p に line-height:1.5 を当てているため明示する */
.cp-entry__lead {
  margin-bottom: 40px;
  line-height: 1.375;
  text-align: center;
}

.cp-entry {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.cp-entry__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cp-entry__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: var(--cp-thead);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-blue);
  text-align: center;
}

.cp-entry__tab::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 12px solid var(--cp-thead);
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  transform: translateX(-50%);
}

.cp-entry__card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 24px 16px;
  box-sizing: border-box;
  background: var(--cp-white);
  border: 1px solid var(--cp-blue);
  border-radius: 16px;
  text-align: center;
}

.cp-entry__card--pale {
  background: var(--cp-pale);
}

.cp-entry__heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-blue);
}

.cp-entry__img {
  width: 200px;
  height: 81px;
  object-fit: contain;
}

.cp-entry__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: auto;
}

.cp-entry__slash {
  position: relative;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-text);
}

.cp-entry__slash::before,
.cp-entry__slash::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 14px;
  background: var(--cp-text);
}

.cp-entry__slash::before {
  left: 4px;
  transform: translateY(-50%) rotate(-15deg);
}

.cp-entry__slash::after {
  right: 4px;
  transform: translateY(-50%) rotate(15deg);
}

/* ===== ボタン ===== */
.cp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  background: var(--cp-white);
  border: 1px solid var(--cp-blue);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-blue);
  text-decoration: none;
}

.cp-btn > i {
  flex: none;
  font-size: 16px;
  line-height: 1;
}

.cp-btn--fill {
  background: var(--cp-blue);
  border: 2px solid var(--cp-blue);
  color: var(--cp-white);
}

/* ホバーできる環境（PC）だけ透過させる。
   タッチ端末に width で出し分けるとタップ後にホバー状態が残るため hover 判定を使う */
@media screen and (hover: hover) {
  .cp-btn {
    transition: opacity 0.2s ease;
  }

  .cp-btn:hover {
    opacity: 0.7;
  }

  /* バッジは切り抜き画像のため、透過すると背後の装飾が透けて浮いて見える。
     代わりに拡大と影で反応させる */
  /* 表示切り替え（opacity/visibility）の指定を上書きしないよう、まとめて書く */
  .cp-entry-badge,
  .cp-entry-badge.is-toggled {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease,
      filter 0.2s ease;
  }

  .cp-entry-badge:hover {
    transform: scale(1.06);
    /* box-shadow だと矩形の影になるため、円形の切り抜きに沿う drop-shadow を使う */
    filter: drop-shadow(0 4px 12px rgba(9, 41, 135, 0.35));
  }
}

/* ===== 参加方法はたったの3ステップ ===== */
.cp-step-card {
  border: 1px solid var(--cp-blue);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cp-white);
}

.cp-step-card__body {
  padding: 32px 60px 24px;
}

/* 見出し要素はseeds共通CSSがfont-sizeを!importantで指定しているため上書きする */
.cp-step-card__title {
  margin: 0 0 24px;
  font-size: 32px !important;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-text);
  text-align: center;
}

.cp-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
}

.cp-steps__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

/* バッジ・見出し・注記のまとまり。余白を吸収してイラストを下端に押し下げるため、
   「※」注記の有無で高さが違ってもイラストの位置が揃う（Figmaの Frame 1000005751 相当） */
.cp-steps__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Figma実測: 矢印は各ステップの垂直中央に置く */
.cp-steps__arrow {
  flex: none;
  align-self: center;
  font-size: 32px;
  line-height: 1;
  color: var(--cp-blue);
}

.cp-steps__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--cp-blue);
  border-radius: 999px;
  color: var(--cp-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.cp-steps__badge-num {
  font-size: 20px;
}

/* 余白はFigma実測（PC・SP共通）: バッジ→見出し8px／見出し→注記12px／注記→イラスト16px */
.cp-steps__title {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-blue);
}

.cp-steps__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--cp-text);
}

.cp-steps__img {
  margin-top: 16px;
  height: 80px;
  object-fit: contain;
}

/* STEP03はSPで別のイラストが用意されているため差し替える */
.cp-steps__img--sp {
  display: none;
}

.cp-attention {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 16px;
  border: 2px solid var(--cp-pink);
  font-size: 16px;
  line-height: 1.35;
  color: var(--cp-pink);
  text-align: center;
}

.cp-about {
  margin-top: 24px;
}

.cp-about__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-text);
}

.cp-about__icon {
  flex: none;
  /* アイコン枠24pxと見出し行ボックス21.6pxの差分を詰めて、テキストと光学的に中心を揃える */
  margin-top: -1px;
  font-size: 24px;
  line-height: 1;
  color: var(--cp-text);
}

.cp-about__text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--cp-text);
}

.cp-step-card__period {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--cp-blue);
  color: var(--cp-white);
  text-align: center;
}

/* ===== プレゼント（Figmaから1枚画像で書き出し）===== */
.cp-present {
  margin-top: 40px;
}

.cp-present__img {
  display: block;
  width: 100%;
  height: auto;
}

/* SP版は縦積みの別レイアウトのため画像を差し替える */
.cp-present__img--sp {
  display: none;
}
/* ===== キャンペーン詳細 ===== */
.cp-detail-card {
  margin-top: 40px;
  padding: 32px 60px 40px;
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: 16px;
}

.cp-detail-card__title {
  margin: 0 0 24px;
  font-size: 32px !important;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-text);
  text-align: center;
}

.cp-detail__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.cp-detail__row + .cp-detail__row {
  margin-top: 24px;
}

.cp-detail__label {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 16px;
  width: 196px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-blue);
}

.cp-detail__label::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  /* 1行目の行ボックス中央に合わせる */
  margin-top: calc((1.35em - 16px) / 2);
  background: var(--cp-blue);
  border-radius: 50%;
}

.cp-detail__body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cp-text);
}

.cp-detail__body .cp-note {
  margin-top: 8px;
}

/* 景品付与時期の表 */
.cp-award-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cp-text);
}

.cp-award-table th,
.cp-award-table td {
  padding: 12px;
  border-top: 1px solid var(--cp-line);
  border-left: 1px solid var(--cp-line);
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
}

.cp-award-table tr:last-child th,
.cp-award-table tr:last-child td {
  border-bottom: 1px solid var(--cp-line);
}

.cp-award-table th:last-child,
.cp-award-table td:last-child {
  border-right: 1px solid var(--cp-line);
}

.cp-award-table thead th,
.cp-award-table tbody th {
  background: var(--cp-thead);
  font-weight: 700;
}

.cp-award-table tbody td {
  background: var(--cp-white);
}

.cp-award-table thead td {
  background: var(--cp-thead);
}

.cp-award-table thead > tr > *:first-child {
  border-top-left-radius: 8px;
}

.cp-award-table thead > tr > *:last-child {
  border-top-right-radius: 8px;
}

.cp-award-table tbody > tr:last-child > *:first-child {
  border-bottom-left-radius: 8px;
}

.cp-award-table tbody > tr:last-child > *:last-child {
  border-bottom-right-radius: 8px;
}

/* ===== SBI証券でクレカ積立をするメリット ===== */
.cp-merit-card {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  background: var(--cp-white);
  border: 1px solid var(--cp-blue);
  border-radius: 16px;
}

.cp-merit {
  display: flex;
  align-items: stretch;
}

.cp-merit__item {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 16px;
  text-align: center;
}

.cp-merit__item + .cp-merit__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-left: 1px dashed var(--cp-border);
}

.cp-merit__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-blue);
}

.cp-merit__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cp-text);
}

.cp-merit__icon {
  width: 80px;
  height: 80px;
  margin-top: auto;
  object-fit: contain;
}

/* ===== よくあるご質問 ===== */
.cp-faq-card {
  padding: 32px 60px 40px;
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: 16px;
}

.cp-faq__item + .cp-faq__item {
  margin-top: 24px;
}

.cp-faq__q,
.cp-faq__a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cp-text);
}

.cp-faq__a {
  margin-top: 8px;
}

/* Figma実測: 回答本文と注釈の間は4px */
.cp-faq__a .cp-note {
  margin-top: 4px;
}

.cp-faq__q {
  font-weight: 700;
}

.cp-faq__mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  /* キャップハイトの中心を円の中心に合わせる（欧字スタックのハーフレディング0.5px分を補正） */
  padding-top: 1px;
  border-radius: 50%;
  /* Figma指定はInter Bold。和文スタックだとアセントが大きくQ/Aが下寄りになるため欧字スタックを指定 */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.cp-faq__mark--q {
  background: var(--cp-blue);
  color: var(--cp-white);
}

.cp-faq__mark--a {
  border: 1px solid var(--cp-blue);
  background: var(--cp-white);
  color: var(--cp-blue);
}

.cp-faq__schedule {
  /* 回答テキストの開始位置（Qマーク24px + gap8px）に揃える */
  margin-top: 16px;
  margin-left: 32px;
  padding: 16px;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
}

.cp-faq__schedule-img {
  width: 100%;
}

/* SP版は縦のタイムライン（別レイアウト）のため画像を差し替える */
.cp-faq__schedule-img--sp {
  display: none;
}

/* ===== ディスクレ ===== */
.cp-disclaimer {
  padding: 40px 0;
  background: var(--cp-white);
}

/* ============================================================
   SP（ブレイクポイント 768px／docs/style/パーツ使用ルール.md 準拠）
   ============================================================ */
@media screen and (max-width: 768px) {
  .cp-deco--pc,
  .cp-entry-badge {
    display: none;
  }

  /* 1カラムに切り替える */
  .cp-entry,
  .cp-steps {
    flex-wrap: wrap;
  }

  .cp-entry__col,
  .cp-steps__item {
    flex-basis: 100%;
  }

  .cp-steps__arrow {
    transform: rotate(90deg);
  }

  .cp-detail__row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cp-detail__label {
    width: 100%;
  }

  .cp-section {
    padding: 32px 0;
  }

  /* Figma実測: パネル343px / 内側319px（左右パディング12px） */
  .cp-panel {
    padding: 24px 12px 32px;
    border-radius: 16px;
  }

  /* Figma実測: SPはタイトル下24px */
  .cp-title {
    margin-bottom: 24px;
  }

  .cp-title__label {
    font-size: 24px;
  }

  /* Figma実測: SPは14px・下24px・左寄せ。改行はテキストの流れに任せる */
  .cp-entry__lead {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .cp-title__spark {
    width: 32px;
    height: 31px;
  }

  .cp-period,
  .cp-step-card__period {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  /* SPは背景とコンテンツが一体の1枚に差し替える */
  .cp-hero__bg,
  .cp-hero__body {
    display: none;
  }

  .cp-hero__visual--sp {
    display: block;
  }

  .cp-steps__img--pc {
    display: none;
  }

  .cp-steps__img--sp {
    display: block;
  }

  /* 狭い端末（320px前後）で3ステップカード内の帯がはみ出すため折り返しを許可する。
     375px以上では1行に収まるので見た目は変わらない */
  .cp-period__date {
    white-space: normal;
  }

  /* SPの枠はコンテンツ幅いっぱい（Figma実測 343px） */
  .cp-period__label {
    align-self: stretch;
    padding: 8px 4px;
    font-size: 14px;
    line-height: 1;
  }

  /* SPは日付を1行に収める（Figma準拠） */
  .cp-period__date {
    font-size: 11px;
  }

  .cp-period__num {
    font-size: 16px;
  }

  .cp-entry__tab,
  .cp-steps__title,
  .cp-entry__heading {
    font-size: 18px;
  }

  .cp-step-card__title,
  .cp-detail-card__title {
    font-size: 24px !important;
  }

  .cp-step-card__body {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* Figma実測: カード319px / 内容287px（左右16px・上下24px） */
  .cp-detail-card {
    padding: 24px 16px;
  }

  /* メリットは1列。区切りは横方向の破線に変える */
  .cp-merit {
    flex-direction: column;
    gap: 24px;
  }

  .cp-merit__item {
    flex-basis: auto;
    padding: 0;
  }

  /* 区切り線はカード内側から左右16pxインセット（Figma実測） */
  .cp-merit-card {
    padding: 24px 16px;
  }

  /* 破線14px・空白10px（Figma実測）。border:dashed では点が細かすぎるため描画で再現 */
  .cp-merit__item + .cp-merit__item::before {
    top: -12px;
    left: 0;
    width: 100%;
    height: 1px;
    border: 0;
    background-image: repeating-linear-gradient(
      to right,
      var(--cp-border),
      var(--cp-border) 14px,
      transparent 14px,
      transparent 24px
    );
  }

  .cp-merit__icon {
    margin-top: 12px;
  }

  /* ===== SP用の背景装飾（Figma 375px基準）=====
     左右端のものは画面端に固定。上半分はtop、下半分はbottom基準。 */
  .cp-deco--sp {
    display: block;
  }

  /* エントリーはこちら（Figma基準の高さ 1309px） */
  .cp-deco--se1 { top: 24px; left: 0; width: 20px; }
  .cp-deco--se2 { top: 11px; right: 0; width: 23px; }
  .cp-deco--se3 { top: 0; right: 0; width: 122px; }
  .cp-deco--se4 { bottom: 0; left: 0; width: 118px; }

  /* キャンペーン概要（Figma基準の高さ 3488px） */
  .cp-deco--sg1 { top: 114px; left: 0; width: 20px; }
  .cp-deco--sg2 { top: 100px; right: 0; width: 19px; }
  .cp-deco--sg3 { top: 0; right: 0; width: 86px; }
  .cp-deco--sg4 { top: 366px; left: 0; width: 80px; }
  .cp-deco--sg5 { top: 760px; right: 0; width: 102px; }
  .cp-deco--sg6 { top: 1476px; left: 0; width: 122px; }
  .cp-deco--sg7 { bottom: 1237px; right: 0; width: 122px; }
  .cp-deco--sg8 { bottom: 793px; left: 0; width: 94px; }
  .cp-deco--sg9 { bottom: 410px; right: 0; width: 103px; }
  .cp-deco--sg10 { bottom: 16px; left: 0; width: 94px; }

  /* SBI証券でクレカ積立をするメリット（Figma基準の高さ 1162px） */
  .cp-deco--sm1 { bottom: 0; left: 103px; width: 272px; }
  .cp-deco--sm2 { top: 0; left: 0; width: 110px; }
  .cp-deco--sm3 { bottom: 140px; left: 0; width: 70px; }
  .cp-deco--sm4 { top: 403px; right: 0; width: 140px; }

  /* よくあるご質問（Figma基準の高さ 1473px） */
  .cp-deco--sf1 { top: 0; left: 0; width: 62px; }
  .cp-deco--sf2 { top: 392px; right: 0; width: 142px; }
  .cp-deco--sf3 { top: 732px; left: 0; width: 128px; }
  .cp-deco--sf4 { bottom: 415px; right: 0; width: 112px; }

  .cp-br-sp {
    display: inline;
  }

  .cp-br-pc {
    display: none;
  }

  /* STEPバッジはFigma実測 約63×24px */
  .cp-steps__badge {
    padding: 5px 10px;
    font-size: 11px;
  }

  .cp-steps__badge-num {
    font-size: 14px;
  }

  /* 注意文はSPでは左揃え・12px（Figma準拠） */
  .cp-attention {
    padding: 12px;
    font-size: 12px;
    text-align: left;
  }

  /* Figma実測: カード319px / 内容255px（上下左右32px） */
  .cp-faq-card {
    padding: 32px;
  }

  .cp-faq__schedule {
    margin-left: 0;
    padding: 12px;
    overflow-x: auto;
  }

  .cp-faq__schedule-img--pc {
    display: none;
  }

  .cp-faq__schedule-img--sp {
    display: block;
    width: 425px;
    max-width: none;
  }

  .cp-present__img--pc {
    display: none;
  }

  .cp-present__img--sp {
    display: block;
  }

  /* 景品付与時期の表はSPでは月ごとの縦積みカセットに切り替える（Figma準拠） */
  .cp-award-table,
  .cp-award-table tbody,
  .cp-award-table tr,
  .cp-award-table th,
  .cp-award-table td {
    display: block;
  }

  .cp-award-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
  }

  .cp-award-table thead {
    display: none;
  }

  /* PC用の罫線・角丸を打ち消す（詳細度を合わせる） */
  .cp-award-table th,
  .cp-award-table td,
  .cp-award-table tr:last-child th,
  .cp-award-table tr:last-child td,
  .cp-award-table th:last-child,
  .cp-award-table td:last-child,
  .cp-award-table thead > tr > *,
  .cp-award-table tbody > tr:last-child > *,
  .cp-award-table thead > tr > *:first-child,
  .cp-award-table thead > tr > *:last-child,
  .cp-award-table tbody > tr:last-child > *:first-child,
  .cp-award-table tbody > tr:last-child > *:last-child {
    border: 0;
    border-radius: 0;
    white-space: normal;
  }

  .cp-award-table tbody > tr + tr {
    border-top: 1px solid var(--cp-line);
  }

  .cp-award-table tbody > tr > th {
    padding: 8px 12px;
    background: var(--cp-thead);
    text-align: center;
  }

  .cp-award-table tbody > tr > td {
    display: flex;
    gap: 12px;
    padding: 2px 12px;
    background: var(--cp-white);
    text-align: left;
  }

  .cp-award-table tbody > tr > td::before {
    content: attr(data-label);
    flex: none;
    width: 5em;
    font-weight: 700;
  }

  .cp-award-table tbody > tr > td:first-of-type {
    padding-top: 12px;
  }

  .cp-award-table tbody > tr > td:last-child {
    padding-bottom: 12px;
  }

  /* 表はSPでカセット型に組み替わり横幅に収まるため、
     overflow-x は指定しない（指定すると和文の行末括弧の分だけ
     不要な横スクロールバーが出る） */
}
