/* =========================
  全体リセット（最低限）
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* =========================
  このページをフル幅にする（WPテーマの中央寄せ制約を突破）
========================= */
.generative-ai-page {
  width: 100vw;
  min-height: 100vh;
  background: #0a0a0a;
  color: #fff;
  font-family: 'Orbitron', sans-serif;

  /* WPテーマの「中央寄せコンテンツ幅」を突破する */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;

  overflow-x: hidden;
  padding-bottom: 80px;
}

/* =========================
  HEROセクション（フル画面）
========================= */
.generative-ai-page .hero {
  position: relative;
  height: 100vh;
  min-height: 100svh; /* モバイルのアドレスバー対策 */
  background: linear-gradient(to bottom, #0a0a0a 0%, #111 100%);
  overflow: hidden;
}

/* particles.js を完全フィット */
.generative-ai-page #particles-js {
  position: absolute;
  inset: 0; /* top:0 left:0 right:0 bottom:0 */
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* HEROの中央コンテンツ */
.generative-ai-page .hero-content {
  position: relative;
  z-index: 2;

  text-align: center;

  /* 完全中央寄せ */
  height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 0 18px;

  pointer-events: none;
}

/* タイトル */
.generative-ai-page .hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 18px;
  color: #00ff99;
  animation: glitch 1s infinite;
}

/* サブテキスト */
.generative-ai-page .hero-content p {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  margin-bottom: 26px;
  opacity: 0.95;
}

/* CTAボタン */
.generative-ai-page .cta-btn {
  padding: 15px 30px;
  background: transparent;
  border: 2px solid #00ff99;
  color: #00ff99;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  border-radius: 999px;
  pointer-events: auto;
}

.generative-ai-page .cta-btn:hover {
  background: #00ff99;
  color: #0a0a0a;
}

/* =========================
  Appsセクション
========================= */
.generative-ai-page .apps {
  padding: 80px 20px;
  background: #111;
  text-align: center;
}

.generative-ai-page .apps h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
}

/* カードのグリッド */
.generative-ai-page .app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;

  max-width: 1200px;
  margin: 0 auto;
}

/* カード */
.generative-ai-page .app-card {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 153, 0.15);
}

.generative-ai-page .app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.55);
  border-color: rgba(0, 255, 153, 0.35);
}

/* カード内テキスト */
.generative-ai-page .app-card h3 {
  margin-bottom: 10px;
  color: #00ff99;
  font-size: 1.1rem;
  line-height: 1.4;
}

.generative-ai-page .app-card p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Tryボタン */
.generative-ai-page .try-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border: 1px solid #00ff99;
  color: #00ff99;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  border-radius: 999px;
}

.generative-ai-page .try-btn:hover {
  background: #00ff99;
  color: #0a0a0a;
}

/* =========================
  モーダル
========================= */
.generative-ai-page .modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.generative-ai-page .modal-content {
  background: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(0, 255, 153, 0.15);
}

.generative-ai-page .close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* =========================
  グリッチアニメーション
========================= */
@keyframes glitch {
  0% { text-shadow: 2px 2px 0 #00ff99; }
  20% { text-shadow: -2px -2px 0 #ff0066; }
  40% { text-shadow: 2px -2px 0 #00ff99; }
  60% { text-shadow: -2px 2px 0 #ff0066; }
  80% { text-shadow: 2px 2px 0 #00ff99; }
  100% { text-shadow: -2px -2px 0 #ff0066; }
}

/* =========================
  WordPressテーマ側の余白が残る場合の最終手段（このページ限定）
  ※外側のmainがpadding持ってるケースに効く
========================= */
.generative-ai-page :where(section, div) {
  max-width: none;
}
