/* =========================
   AI LP (PC)
   ========================= */

body {
  position: relative;
}

:root {
  /* --ai-bg0: #070a0f;
  --ai-bg1: #0b1017; */

  /* Box */
  --ai-box-bg: rgba(61, 61, 61, 0.9); /* 銀色+透明度90% */
  --ai-box-text: rgba(10, 14, 20, 0.9);

  /* Neon */
  --ai-neon-a: rgba(140, 220, 255, 0.75);
  --ai-neon-b: rgba(210, 255, 235, 0.8);
  --ai-neon-line: rgba(255, 255, 255, 0.6);
}

.ai-page {
  min-height: 100vh;
  background: radial-gradient(
      1100px 800px at 20% 10%,
      rgba(140, 220, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 85% 25%,
      rgba(210, 255, 235, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, var(--ai-bg0), var(--ai-bg1));
  padding: 28px 0 60px;
}

.ai-container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.ai-section {
  padding: 28px 0;
}

.ai-stack {
  display: grid;
  gap: 20px;
}

/* ====== Neon Silver Box ====== */
.ai-box {
  position: relative;
  border-radius: 22px;
  background: var(--ai-box-bg);
  color: var(--ai-box-text);

  /* “ネオンっぽい”縁取り */
  border: 3px solid rgba(255, 255, 255, 0.7);

  /* 外側の光 */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36) inset,
    0 0 22px rgba(140, 220, 255, 0.44), 0 0 40px rgba(210, 255, 235, 0.24),
    0 20px 70px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* ネオンのグラデ枠（疑似要素） */
.ai-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--ai-neon-a),
    rgba(255, 255, 255, 0.35),
    var(--ai-neon-b)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(140, 220, 255, 0.28))
    drop-shadow(0 0 16px rgba(210, 255, 235, 0.18));
}

/* うっすら回路っぽいハイライト */
.ai-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 220px at 20% 0%,
      rgba(255, 255, 255, 0.45),
      transparent 55%
    ),
    radial-gradient(
      520px 220px at 85% 20%,
      rgba(140, 220, 255, 0.18),
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.06) 0 1px,
      transparent 1px 20px
    );
  opacity: 0.22;
  pointer-events: none;
}

/* 中身：基本センター揃え */
.ai-box__content {
  position: relative;
  z-index: 1;
  padding: 42px 28px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  gap: 14px;
}

/* 枠の中に画像入れた時に崩れにくく */
.ai-box__content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 既存フォーム周りを枠と馴染ませたい場合（任意） */
.form0 {
  margin-top: 6px;
}

.ai-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden; /* 背景がはみ出してもOKなら */
}

.ai-bgFixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* “AIっぽい”上乗せ（不要なら消してOK） */
  filter: saturate(1.05) contrast(1.05);
}

.ai-page > *:not(.ai-bgFixed) {
  position: relative;
  z-index: 1;
}

.ai-bgFixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1100px 800px at 20% 10%,
      rgba(140, 220, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 85% 25%,
      rgba(210, 255, 235, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 10, 15, 0.7), rgba(11, 16, 23, 0.82));
}

.ai-page .form0_op {
  /* フォーム自体も「銀枠」デザインに寄せる */
  position: relative;
  max-width: 840px;
  margin: 0 auto;

  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 22px rgba(140, 220, 255, 0.2), 0 0 40px rgba(210, 255, 235, 0.12),
    0 18px 70px rgba(0, 0, 0, 0.4);

  overflow: hidden;
  backdrop-filter: blur(10px);
  padding: 34px 28px;
}

/* ネオン縁（疑似要素でグラデ枠） */
.ai-page .form0_op::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(140, 220, 255, 0.95),
    rgba(255, 255, 255, 0.35),
    rgba(210, 255, 235, 0.8)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(140, 220, 255, 0.28))
    drop-shadow(0 0 16px rgba(210, 255, 235, 0.18));
}

/* うっすら回路/ハイライト */
.ai-page .form0_op::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      620px 220px at 20% 0%,
      rgba(255, 255, 255, 0.55),
      transparent 55%
    ),
    radial-gradient(
      520px 240px at 85% 15%,
      rgba(140, 220, 255, 0.18),
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.06) 0 1px,
      transparent 1px 22px
    );
  opacity: 0.18;
  pointer-events: none;
}

/* ラベルと入力欄をセンター寄せ気味に */
.ai-page .form0_op > * {
  position: relative;
  z-index: 1;
}

.ai-page .form0_op p.left {
  margin: 0 auto 16px;
  max-width: 560px;
  text-align: center;
}

/* 既存の span b s25 はそのままでもOKだが、色だけ整える */
.ai-page .form0_op p.left span {
  color: rgba(10, 14, 20, 0.92);
  letter-spacing: 0.04em;
}

/* 入力欄 */
.ai-page input.mail {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  padding: 0 14px;

  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(10, 14, 20, 0.92);

  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 30px rgba(0, 0, 0, 0.12);

  transition: box-shadow 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.ai-page input.mail::placeholder {
  color: rgba(10, 14, 20, 0.45);
}

.ai-page input.mail:focus {
  border-color: rgba(140, 220, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(140, 220, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 14px 38px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

/* ボタン */
.ai-page .css-button {
  appearance: none;
  border: 1px solid rgba(140, 220, 255, 0.55);
  background: linear-gradient(
    135deg,
    rgba(9, 117, 156, 0.5),
    rgba(12, 153, 106, 0.5)
  );
  color: rgba(10, 14, 20, 0.92);

  height: 80px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 10px 28px rgba(0, 0, 0, 0.18), 0 0 26px rgba(140, 220, 255, 0.16);

  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ai-page .css-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 14px 34px rgba(0, 0, 0, 0.22), 0 0 34px rgba(140, 220, 255, 0.22);
  filter: brightness(1.03);
}

.ai-page .css-button:active {
  transform: translateY(0px);
}

/* 中央寄せ（既存 .center があればそれを活かす） */
.ai-page .form0_op .center {
  text-align: center;
  margin-top: 6px;
}

/* エラーメッセージも浮かせすぎない */
.ai-page .form0_op .red {
  display: inline-block;
  margin-top: 6px;
  color: rgba(200, 30, 60, 0.92);
  text-shadow: 0 0 14px rgba(255, 60, 120, 0.15);
}

/* ===== ぷかぷかアニメーション ===== */
@keyframes aiFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 常にぷかぷか（hover時に少し強調） */
.ai-page .css-button {
  animation: aiFloat 2.6s ease-in-out infinite;
  will-change: transform;
}

/* ホバー時：ぷかぷか少し大きめ + 光強め */
.ai-page .css-button:hover {
  animation-duration: 1.9s;
  filter: brightness(1.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 14px 34px rgba(0, 0, 0, 0.22), 0 0 34px rgba(140, 220, 255, 0.24);
}

/* 押下時：アニメ止めて押し込む感じ */
.ai-page .css-button:active {
  animation: none;
  transform: translateY(0);
  filter: brightness(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .ai-page .css-button {
    animation: none !important;
  }
}

/* フォーム全体の文字（ベース） */
.ai-page .form0_op {
  color: var(--ai-ink);
}

/* 入力の文字・プレースホルダ */
.ai-page input.mail {
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ai-ink);
}

.ai-page input.mail::placeholder {
  color: rgba(10, 14, 20, 0.42);
  letter-spacing: 0.06em;
}

/* エラーメッセージ */
.ai-page .form0_op .red {
  color: var(--ai-danger);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(255, 60, 120, 0.18);
}

/* ボタン文字 */
.ai-page .css-button {
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgba(10, 14, 20, 0.92);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* ネオン発光の脈動 */
@keyframes aiGlowPulse {
  0% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 10px 28px rgba(0, 0, 0, 0.18), 0 0 22px rgba(140, 220, 255, 0.2),
      0 0 36px rgba(210, 255, 235, 0.12);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset,
      0 14px 36px rgba(0, 0, 0, 0.24), 0 0 36px rgba(140, 220, 255, 0.6),
      0 0 56px rgba(210, 255, 235, 0.26);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 10px 28px rgba(0, 0, 0, 0.18), 0 0 22px rgba(140, 220, 255, 0.2),
      0 0 36px rgba(210, 255, 235, 0.12);
  }
}

/* 既存のぷかぷか（aiFloat）と同時に動かす */
.ai-page .css-button {
  animation: aiFloat 2.6s ease-in-out infinite,
    aiGlowPulse 3.2s ease-in-out infinite;
}

/* hover時：発光を強める＆少し早く */
.ai-page .css-button:hover {
  animation-duration: 1.9s, 2.2s;
  filter: brightness(1.05);
}

/* 押下時：発光停止 */
.ai-page .css-button:active {
  animation: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 18px rgba(0, 0, 0, 0.25);
}

/* 動き軽減設定なら両方停止 */
@media (prefers-reduced-motion: reduce) {
  .ai-page .css-button {
    animation: none !important;
  }
}

.neon-text {
  color: #1aff72; /* ほぼ白 */
  letter-spacing: 0.12em;
  text-shadow: 0 0 4px rgba(140, 255, 178, 0.45),
    0 0 10px rgba(140, 255, 178, 0.45), 0 0 20px rgba(140, 255, 178, 0.45),
    0 0 40px rgba(140, 255, 178, 0.45);
}

.neon-text-strong {
  color: #26ff7d;
  letter-spacing: 0.18em;
  text-shadow: 0 0 6px rgba(180, 255, 194, 0.85),
    0 0 14px rgba(140, 255, 146, 0.65), 0 0 30px rgba(140, 255, 182, 0.45),
    0 0 60px rgba(210, 255, 233, 0.35), 0 0 90px rgba(210, 255, 233, 0.2);
}

button.css-button.neon-text-pulse {
  color: #92ffc1 !important;
  text-shadow: 0 0 6px rgba(140, 255, 171, 0.55),
    0 0 14px rgba(140, 220, 255, 0.4), 0 0 30px rgba(210, 255, 235, 0.25) !important;

  letter-spacing: 0.16em;
}

@keyframes neonTextPulse {
  0% {
    text-shadow: 0 0 6px rgba(140, 255, 197, 0.55),
      0 0 14px rgba(140, 255, 163, 0.4), 0 0 30px rgba(210, 255, 222, 0.25);
  }
  50% {
    text-shadow: 0 0 10px rgba(180, 255, 188, 0.95),
      0 0 22px rgba(163, 255, 140, 0.75), 0 0 50px rgba(210, 255, 232, 0.45),
      0 0 80px rgba(210, 255, 235, 0.3);
  }
  100% {
    text-shadow: 0 0 6px rgba(140, 255, 144, 0.55),
      0 0 14px rgba(140, 255, 182, 0.4), 0 0 30px rgba(210, 255, 230, 0.25);
  }
}

button.css-button.neon-text-pulse {
  /* 既存の色・text-shadowはそのままでOK */
  animation: aiFloat 2.6s ease-in-out infinite,
    aiGlowPulse 3.2s ease-in-out infinite,
    neonTextPulse 3.2s ease-in-out infinite;
}
