* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #eef1f5; }
body { font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
.lp { max-width: 680px; margin: 0 auto; background: #fff; box-shadow: 0 0 40px rgba(20,30,50,.10); }
.lp img { display: block; width: 100%; height: auto; vertical-align: bottom; }

/* ===== 締切カウントダウン（4期LP踏襲・大型警告ブロック） ===== */
.cd-alert { width: 100%; background: #fff; font-feature-settings: "tnum"; -webkit-font-feature-settings: "tnum"; }

/* 黒warningボックス */
.cd-warnbox {
  position: relative; overflow: hidden;
  background: #000; color: #fff; text-align: center;
  padding: 26px 16px 30px;
}
.cd-warnbox > .cd-badge,
.cd-warnbox > .cd-lead,
.cd-warnbox > .cd-bigwrap { position: relative; z-index: 1; }
.cd-badge {
  display: inline-block; background: #e30613; color: #fff;
  font-size: clamp(15px, 4.6vw, 20px); font-weight: 800; letter-spacing: .28em;
  padding: 5px 16px 5px 22px; border-radius: 4px; margin-bottom: 16px;
}
.cd-lead {
  font-size: clamp(20px, 6.2vw, 30px); font-weight: 800; line-height: 1.5;
  margin-bottom: 6px;
}
.cd-bigwrap { position: relative; display: block; margin-top: 4px; }
.cd-tri {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  width: clamp(140px, 40vw, 200px); height: auto; opacity: .5; z-index: 0;
  pointer-events: none;
}
.cd-big {
  position: relative; z-index: 1;
  font-size: clamp(34px, 10.5vw, 64px); font-weight: 900; line-height: 1.1;
  letter-spacing: .02em;
}

/* 黄色ストリップ */
.cd-strip {
  background: #fff100; color: #1a1a1a; text-align: center;
  font-size: clamp(13px, 3.9vw, 18px); font-weight: 800; line-height: 1.4;
  padding: 12px 14px;
}

/* 青緑ボックスタイマー */
.cd-timer {
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 3vw, 16px);
  padding: 22px 12px 26px; background: #fff;
}
.cd-cell { display: flex; flex-direction: column; align-items: center; }
.cd-box {
  background: #58bfca; color: #fff;
  min-width: clamp(58px, 17vw, 84px); padding: 10px 6px;
  border-radius: 10px; box-shadow: 0 3px 0 rgba(0,0,0,.12);
  font-size: clamp(28px, 8.4vw, 42px); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; text-align: center;
}
.cd-cap { margin-top: 8px; font-size: clamp(13px, 3.6vw, 16px); font-weight: 700; color: #333; letter-spacing: .12em; }

/* 締切後：募集終了画面（LP全体を差し替え） */
.cd-closed {
  min-height: 78vh; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px 60px;
}
.cd-closed-logo { width: min(78%, 440px); height: auto; margin-bottom: 40px; }
.cd-closed-text {
  font-size: clamp(16px, 4.6vw, 21px); font-weight: 700; line-height: 2; color: #1a1a1a;
}
.cd-closed-link { color: #1a6bd6; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cd-closed-link:hover { opacity: .8; }

/* 静的スライス（画像をぴったり連結） */
.slice { display: block; width: 100%; }

/* 決済ボタン（画像クリックで決済ページへ） */
a.cta { display: block; width: 100%; transition: opacity .15s, transform .15s; }
a.cta:hover { opacity: .9; transform: translateY(-1px); }

/* フッター特商法ホットスポット */
.footer-wrap { position: relative; display: block; width: 100%; }
.footer-wrap a.tokushoho {
  position: absolute; left: 38%; top: 20%; width: 24%; height: 34%;
  display: block; cursor: pointer;
}

/* カラムボタン（1枚画像内の複数ボタンをクリック領域化） */
.hotspot-wrap { position: relative; display: block; width: 100%; line-height: 0; }
.hotspot-wrap a.spot {
  position: absolute; display: block; cursor: pointer; border-radius: 6px;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.hotspot-wrap a.spot:hover {
  background: rgba(255,255,255,.18);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transform: translateY(-2px);
}

/* 動画埋め込み（個別添削=Loom / グループ添削=YouTube） */
.video-block { width: 100%; background: #fff; padding: 4px 6% 22px; }
.video-frame {
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 音声をオンにするボタン */
.unmute-btn {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(17,17,17,.78); color: #fff; font: 700 13px/1 inherit;
  font-family: inherit; box-shadow: 0 3px 10px rgba(0,0,0,.3);
  transition: background .15s, transform .15s;
}
.unmute-btn svg { display: block; }
.unmute-btn:hover { background: rgba(17,17,17,.92); transform: translateY(-1px); }
.video-frame.sound-on .unmute-btn { display: none; }
@media (max-width: 640px) { .unmute-btn { padding: 7px 11px; font-size: 12px; } }

/* ===== カルーセル ===== */
.carousel { position: relative; width: 100%; background: #fff; }
/* 画像/動画が流れる窓（ここだけ overflow:hidden。高さはJSで設定） */
.carousel .viewport { position: relative; width: 100%; overflow: hidden; }
.carousel .track { display: flex; transition: transform .5s ease; will-change: transform; }
.carousel .slide { flex: 0 0 100%; width: 100%; }
.carousel .slide img { width: 100%; display: block; }
/* 動画カルーセル（BEFORE→AFTER） */
.carousel[data-mode="video"] .track,
.carousel[data-mode="video"] .slide { height: 100%; }
.carousel .slide video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

/* 矢印（窓の中央・画像の上に重ねる） */
.carousel .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.4); color: #fff; font-size: 22px; line-height: 44px;
  cursor: pointer; z-index: 3; transition: background .2s; user-select: none;
}
.carousel .arrow:hover { background: rgba(0,0,0,.65); }
.carousel .arrow.prev { left: 12px; }
.carousel .arrow.next { right: 12px; }

/* ドット（画像の下の独立した帯。デザインに被らない） */
.carousel .dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 14px 0 6px; background: #fff;
}
.carousel .dots .dot {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.25); cursor: pointer; padding: 0; transition: background .2s, transform .2s;
}
.carousel .dots .dot.active { background: rgba(0,0,0,.7); transform: scale(1.2); }

@media (max-width: 640px) {
  .carousel .arrow { width: 34px; height: 34px; font-size: 17px; line-height: 34px; }
  .carousel .arrow.prev { left: 6px; }
  .carousel .arrow.next { right: 6px; }
}

/* 動画カルーセル: タップで一時停止／▶オーバーレイ */
.carousel[data-mode="video"] .slide video { cursor: pointer; }
.carousel .vid-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.30); color: #fff;
}
.carousel .slide.paused .vid-overlay { display: flex; }
.carousel .vid-overlay svg { width: 56px; height: 56px; opacity: .96; filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }

/* スライド右上の拡大（ストレッチ）ボタン */
.carousel .slide { position: relative; }
.carousel .zoom-btn {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; cursor: pointer; padding: 0;
  background: rgba(17,17,17,.55); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: background .15s, transform .15s; -webkit-tap-highlight-color: transparent;
}
.carousel .zoom-btn:hover { background: rgba(17,17,17,.82); transform: translateY(-1px); }
.carousel .zoom-btn svg { display: block; }
@media (max-width: 640px) { .carousel .zoom-btn { width: 34px; height: 34px; top: 8px; right: 8px; } }

/* ===== 拡大ポップアップ（ライトボックス）===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox .lb-stage {
  max-width: 96vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-stage img,
.lightbox .lb-stage video {
  max-width: 96vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); display: block;
}
.lightbox .lb-close {
  position: absolute; top: 16px; right: 18px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff;
  font-size: 20px; line-height: 44px; cursor: pointer; z-index: 2;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 52px;
  cursor: pointer; z-index: 2;
}
.lightbox .lb-arrow:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-prev { left: 14px; }
.lightbox .lb-next { right: 14px; }
.lightbox .lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font: 600 14px/1 inherit; background: rgba(0,0,0,.45);
  padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 640px) {
  .lightbox { padding: 10px; }
  .lightbox .lb-arrow { width: 42px; height: 42px; font-size: 22px; line-height: 42px; }
  .lightbox .lb-prev { left: 6px; }
  .lightbox .lb-next { right: 6px; }
  .lightbox .lb-close { top: 10px; right: 10px; }
}
