/* ============================================
   LP Validation Template — 法令準拠・メール収集特化
   ============================================ */

/* フォントは各HTMLの<link>タグで読み込み（@importよりFCP改善） */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-subtle: #1a1a2e;
  --text: #e0e0f0;
  --text-muted: #8888a8;
  --text-heading: #ffffff;
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-glow: rgba(108, 92, 231, 0.3);
  --accent: #00cec9;
  --border: rgba(255, 255, 255, 0.06);
  --success: #00b894;
  --radius: 12px;
  --max-w: 640px;
  --font: 'Noto Sans JP', sans-serif;
  --cta-text: #fff;
}

/* =============================================
   Theme Overrides — ペルソナ別カラー
   ============================================= */

/* #1 invoice-sim — ダークネイビー + ゴールド */
[data-theme="invoice"] {
  --bg: #0b0e1a;
  --bg-card: #131728;
  --bg-subtle: #1a1f35;
  --text: #d4d8e8;
  --text-muted: #8890a8;
  --text-heading: #ffffff;
  --primary: #c6952a;
  --primary-light: #e8b94a;
  --primary-glow: rgba(198, 149, 42, 0.25);
  --accent: #e8b94a;
  --border: rgba(255, 255, 255, 0.08);
}

/* #2 bank-csv — ライトテーマ + ブルー */
[data-theme="bankcsv"] {
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --bg-subtle: #e8ecf2;
  --text: #333b4a;
  --text-muted: #6b7280;
  --text-heading: #1a2030;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.12);
  --accent: #2563eb;
  --border: rgba(0, 0, 0, 0.1);
  --success: #059669;
  --cta-text: #fff;
}

/* #3 ai-agent-test — ダーク + ネオングリーン */
[data-theme="agentprobe"] {
  --bg: #0a0c0a;
  --bg-card: #111612;
  --bg-subtle: #1a2418;
  --text: #c0d8c0;
  --text-muted: #6a8a6a;
  --text-heading: #e8ffe8;
  --primary: #22c55e;
  --primary-light: #4ade80;
  --primary-glow: rgba(34, 197, 94, 0.2);
  --accent: #22c55e;
  --border: rgba(34, 197, 94, 0.1);
  --font: 'Inter', 'JetBrains Mono', sans-serif;
}

/* #4 ai-search-tracker — ダークブルー + シアン */
[data-theme="aisearch"] {
  --bg: #060d18;
  --bg-card: #0d1a2d;
  --bg-subtle: #142640;
  --text: #b0c8e8;
  --text-muted: #6888a8;
  --text-heading: #f0f8ff;
  --primary: #0891b2;
  --primary-light: #22d3ee;
  --primary-glow: rgba(8, 145, 178, 0.25);
  --accent: #22d3ee;
  --border: rgba(34, 211, 238, 0.08);
}

/* #5 shopify-invoice — ライト + Shopifyグリーン */
[data-theme="shopify"] {
  --bg: #f6f6f1;
  --bg-card: #ffffff;
  --bg-subtle: #e8f5e9;
  --text: #333b2a;
  --text-muted: #6b7265;
  --text-heading: #1a2010;
  --primary: #008060;
  --primary-light: #007a5e;
  --primary-glow: rgba(0, 128, 96, 0.12);
  --accent: #008060;
  --border: rgba(0, 0, 0, 0.1);
  --success: #008060;
  --cta-text: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased
}

a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px
}

a:hover {
  text-decoration: underline;
  opacity: .85
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none
}

@keyframes pulse {

  0%,
  100% {
    opacity: .3;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(1.1)
  }
}

.hero-content {
  position: relative;
  z-index: 1
}

.badge {
  display: inline-block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: .04em
}

h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -.02em
}

h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto
}

/* --- Form --- */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .3s
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-muted)
}

.signup-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow)
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0
}

.consent-row a {
  color: var(--primary-light)
}

.cta-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--cta-text);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 0 30px var(--primary-glow);
  font-family: var(--font);
  text-align: center
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--primary-glow)
}

.cta-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none
}

.form-note {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px
}

/* --- Pain --- */
.pain-section {
  padding: 60px 0
}

.pain-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
  text-align: center
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: .92rem
}

.pain-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  margin-top: 2px
}

/* --- Bottom CTA --- */
.bottom-cta {
  padding: 60px 0 80px;
  text-align: center
}

.bottom-cta p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 20px
}

/* --- Thank You --- */
.thank-you {
  display: none;
  text-align: center;
  padding: 30px 0
}

.thank-you.show {
  display: block
}

.thank-you h3 {
  font-size: 1.3rem;
  color: var(--success);
  margin-bottom: 8px
}

.thank-you p {
  color: var(--text-muted);
  font-size: .9rem
}

/* --- Footer --- */
footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border)
}

footer nav {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap
}

footer nav a {
  color: var(--text-muted);
  font-size: .8rem
}

footer nav a:hover {
  color: var(--primary-light)
}

footer small {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.8
}

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 9999;
  font-size: .8rem;
  color: var(--text-muted)
}

.cookie-banner.show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap
}

.cookie-banner p {
  max-width: 500px;
  line-height: 1.5
}

.cookie-banner button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .8rem;
  font-family: var(--font);
  white-space: nowrap
}

/* --- Privacy Page --- */
.privacy-page {
  padding: 80px 0 60px
}

.privacy-page h1 {
  font-size: 1.5rem;
  margin-bottom: 32px
}

.privacy-page h2 {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin: 28px 0 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px
}

.privacy-page p,
.privacy-page li {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.8
}

.privacy-page ul {
  padding-left: 20px;
  margin: 8px 0
}

/* --- Responsive --- */
@media(max-width:600px) {
  .hero {
    padding: 80px 0 40px;
    min-height: auto
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important
  }
}

/* --- Fade (disabled — 全要素即表示) --- */
.fade-in {
  opacity: 1;
  transform: none
}