/* =============================================
   Reset & CSS Variables
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:            #050d1a;
  --bg-mid:        #08122a;
  --cyan:          #00c8ff;
  --blue:          #0057ff;
  --green:         #00e676;
  --white:         #ffffff;
  --text-muted:    rgba(255, 255, 255, 0.78);
  --btn-gradient:  linear-gradient(135deg, #0057ff 0%, #00aaff 45%, #00e676 100%);
  --max-w:         480px;
  --font:          'Noto Sans JP', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN',
                   'メイリオ', Meiryo, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* SEO 用非表示 h1 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   Canvas 背景（fixed 固定）
   ============================================= */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* =============================================
   レイアウト共通
   ============================================= */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* セクション間に3pxの隙間を作り Canvas が見えるようにする */
  gap: 3px;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
}

/* =============================================
   画像セクション
   ============================================= */
.img-section {
  position: relative;
  line-height: 0; /* 画像下の隙間を除去 */
}

.section-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

/* デスクトップ表示時：左右に Canvas が見えるよう側面に薄いボーダー */
@media (min-width: 481px) {
  .img-section .container {
    outline: 1px solid rgba(0, 200, 255, 0.06);
  }
}

/* =============================================
   CTA セクション
   ============================================= */
.cta-section {
  position: relative;
  overflow: hidden;
  padding-block: 60px 68px;
  /* Canvas が透けて見えるよう半透明化（大幅に下げる） */
  background: linear-gradient(
    180deg,
    rgba(5, 13, 26, 0.68)  0%,
    rgba(8, 18, 42, 0.74)  50%,
    rgba(5, 13, 26, 0.68)  100%
  );
}

/* =============================================
   流れる光のライン（データフロー演出）
   ============================================= */
.cta-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-lines::before,
.cta-lines::after {
  content: '';
  position: absolute;
  left: -150%;
  width: 400%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent                    0%,
    rgba(0, 200, 255, 0)          15%,
    rgba(0, 200, 255, 0.55)       45%,
    rgba(0, 87,  255, 0.35)       60%,
    rgba(0, 200, 255, 0)          80%,
    transparent                   100%
  );
}

.cta-lines::before {
  top: 30%;
  animation: line-sweep 6s linear infinite;
}

.cta-lines::after {
  top: 70%;
  animation: line-sweep 6s linear infinite 3s;
}

@keyframes line-sweep {
  0%   { transform: translateX(0%);     opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { transform: translateX(37.5%);  opacity: 0; }
}

/* =============================================
   CTA コンテンツ
   ============================================= */
.cta-section .container {
  position: relative;
  z-index: 2;
  padding-inline: 24px;
  text-align: center;
}

.cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 14px;
  text-transform: uppercase;
  opacity: 0.9;
}

.cta-heading {
  font-size: clamp(21px, 5.6vw, 26px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  /* グラデーションテキスト */
  background: linear-gradient(
    135deg,
    #ffffff  0%,
    #b8eeff  35%,
    #00c8ff  65%,
    #00e676  100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 38px;
}

.cta-sub li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* =============================================
   CTA ボタン配置
   ============================================= */
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   ボタン共通
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-width: 144px;
  white-space: nowrap;
  border: none;
  outline: none;
}

/* プライマリボタン（グラデーション） */
.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow:
    0 4px 22px rgba(0, 87, 255, 0.45),
    0 0  40px rgba(0, 200, 255, 0.12);
}

.btn-primary:hover {
  filter: brightness(0.88);
  box-shadow:
    0 4px 16px rgba(0, 87, 255, 0.3),
    0 0  24px rgba(0, 200, 255, 0.08);
}

/* アウトラインボタン */
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.1);
}

.btn-outline:hover {
  background: rgba(0, 200, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

/* =============================================
   シェイクアニメーション
   3秒周期の最後にシェイク発動
   ============================================= */
@keyframes btn-shake {
  0%,  76%, 100% { transform: translateX(0) rotate(0deg); }
  78%  { transform: translateX(-6px) rotate(-0.6deg); }
  80%  { transform: translateX( 6px) rotate( 0.6deg); }
  82%  { transform: translateX(-5px) rotate(-0.4deg); }
  84%  { transform: translateX( 5px) rotate( 0.4deg); }
  86%  { transform: translateX(-3px); }
  88%  { transform: translateX( 3px); }
  90%  { transform: translateX(-1px); }
  92%  { transform: translateX( 1px); }
  94%  { transform: translateX(0); }
}

.btn-shake {
  animation: btn-shake 3s ease-in-out infinite;
}

/* 右ボタンは少しずらして波のように見せる */
.btn-shake-delay {
  animation: btn-shake 3s ease-in-out infinite 0.35s;
}

/* =============================================
   最終 CTA（モダン グラスモーフィズム）
   ============================================= */
.cta-final {
  padding-block: 60px 80px;
  /* Canvas を最大限に見せるため背景を薄くする */
  background: rgba(4, 10, 28, 0.45);
}

/* 中央スポットライト */
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 100, 255, 0.18) 0%,
    rgba(0, 200, 255, 0.08) 45%,
    transparent             70%
  );
  pointer-events: none;
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.45); opacity: 1;   }
}

/* グラスモーフィズムカード */
.cta-glass {
  position: relative;
  z-index: 2;
  background: rgba(8, 20, 52, 0.52);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 48px 24px 40px;
  text-align: center;
  overflow: hidden;
}

/* カード上端グロー */
.cta-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 200, 255, 0.95),
    rgba(0, 87,  255, 0.6),
    transparent
  );
}

/* キッカー */
.cta-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(0, 200, 255, 0.75);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ヒーローナンバー */
.cta-hero-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-label {
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.02em;
  align-self: flex-end;
  padding-bottom: 10px;
}

.hero-figure {
  display: inline-block;
  font-size: clamp(90px, 25vw, 132px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  background: linear-gradient(
    160deg,
    #ffffff  0%,
    #c4eeff  22%,
    #3dccff  50%,
    #0060ff  88%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 36px rgba(0, 180, 255, 0.75));
}

.hero-pct {
  font-size: 0.48em;
  letter-spacing: -0.02em;
}

/* タグライン */
.cta-tagline {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

/* スタット行 */
.cta-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 8px;
  margin-bottom: 28px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-val {
  font-size: clamp(15px, 4.5vw, 19px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-key {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* CTAボタン */
.btn-final {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #0040d0 0%, #0090ff 52%, #00c8a0 100%);
  box-shadow:
    0  8px 32px rgba(0, 80, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: btn-shake 3s ease-in-out infinite, btn-pulse-glow 2.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* シマーエフェクト */
.btn-final::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  animation: btn-shimmer 3s ease-in-out infinite 1.2s;
  pointer-events: none;
}

@keyframes btn-shimmer {
  0%        { left: -60%; }
  40%, 100% { left: 120%; }
}

.btn-final-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-final-arrow {
  margin-left: auto;
  font-size: 17px;
  opacity: 0.7;
}

.btn-final:hover {
  filter: brightness(0.9);
}

/* btn-pulse-glow はモーダルでも使用するため保持 */
@keyframes btn-pulse-glow {
  0%, 100% {
    box-shadow:
      0  6px 32px rgba(0, 87, 255, 0.5),
      0  0  60px rgba(0, 200, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow:
      0  8px 48px rgba(0, 87, 255, 0.75),
      0  0  90px rgba(0, 200, 255, 0.30),
      0  0  20px rgba(0, 230, 118, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* 注記 */
.cta-note {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* =============================================
   フッター
   ============================================= */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(3, 7, 18, 0.99);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 28px 24px;
}

.site-footer .container {
  padding-inline: 24px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 11px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 380px) {
  .cta-section {
    padding-block: 48px 56px;
  }

  .btn {
    padding: 13px 20px;
    font-size: 13px;
    min-width: 126px;
  }

  .cta-sub li {
    font-size: 13px;
  }
}

/* デスクトップ：サイドに Canvas が見える余白 */
@media (min-width: 481px) {
  body {
    /* Canvas 背景が両端で見えるよう中央寄せを強調 */
  }

  .cta-section {
    /* 背景は横幅 100% を維持しコンテンツだけ max-w: 480px に制限 */
  }
}

/* =============================================
   モーダル CTA
   ============================================= */

/* オーバーレイ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル本体（CTA と同じグラスカード） */
.modal-box {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  background: rgba(8, 20, 52, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(0, 200, 255, 0.5);
  border-radius: 28px 28px 0 0;
  padding: 44px 24px 48px;
  text-align: center;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.is-visible .modal-box {
  transform: translateY(0);
}

/* カード上端グロー */
.modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 200, 255, 0.95),
    rgba(0, 87,  255, 0.6),
    transparent
  );
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ヒーローナンバーはモーダル内でやや小さく */
.modal-hero-figure {
  font-size: clamp(68px, 19vw, 96px) !important;
}

/* デスクトップ：中央に表示 */
@media (min-width: 481px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-box {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(0, 200, 255, 0.5);
    margin-inline: 16px;
    transform: translateY(40px) scale(0.96);
  }

  .modal-overlay.is-visible .modal-box {
    transform: translateY(0) scale(1);
  }
}
