/* ============================================================
   AILINE LP - styles.css
   ダーク基調 + アクセント（パープル）。LINEグリーンは控えめ。
   ============================================================ */

:root {
  --bg: #0a0c11;
  --bg-2: #0f1219;
  --bg-3: #161a23;
  --panel: #141826;
  --line: #232a3b;
  --text: #e8ebf2;
  --text-2: #aab2c5;
  --text-3: #7a8398;
  --accent: #7C5CFF;      /* メインアクセント（パープル） */
  --accent-2: #5b8cff;
  --line-green: #06C755;  /* LINEグリーン（控えめに使用） */
  --warn: #ffb454;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --container: 1140px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* グラデーション文字 */
.gradient {
  background: linear-gradient(135deg, #a78bff 0%, #7C5CFF 50%, #06C755 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ============ ヘッダー ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 17, .75);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text);
  font-family: var(--font-en);
}
.logo-text { font-size: 20px; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: .2s;
}

/* ============ ボタン ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #8b6dff, #7C5CFF);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(124, 92, 255, .5); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.18);
}
.btn-outline:hover { background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(124,92,255,.22) 0%, transparent 70%),
    radial-gradient(50% 40% at 80% 30%, rgba(6,199,85,.10) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 90%, rgba(91,140,255,.10) 0%, transparent 70%),
    linear-gradient(180deg, #0a0c11, #0a0c11);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(124,92,255,.12);
  border: 1px solid rgba(124,92,255,.35);
  color: #cbbdff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--line-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(6,199,85,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.hero-title {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.hero-sub strong { color: var(--text); }
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-cta.center { justify-content: center; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
}
.hero-points li::before {
  content: "✓";
  color: var(--line-green);
  margin-right: 6px;
  font-weight: 800;
}

/* チャットデモ */
.chat-demo { max-width: 680px; margin: 0 auto; }
.chat-window {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  overflow: hidden;
}
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.chat-titlebar .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot.red { background: #ff6058; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c941; }
.chat-title { margin-left: auto; font-size: 12px; color: var(--text-3); font-family: var(--font-en); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 85%;
}
.msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #5b8cff, #7C5CFF);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.ai {
  align-self: flex-start;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.ai strong { color: #cbbdff; }

/* ============ セクション共通 ============ */
.section {
  padding: 100px 0;
  position: relative;
}
.section:nth-child(even) { background: var(--bg-2); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 12px;
  text-align: center;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  text-align: center;
}
.section-title.final { font-size: clamp(30px, 5vw, 56px); }
.section-lead {
  text-align: center;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 56px;
  font-size: 16px;
  line-height: 1.9;
}

/* ============ Problem ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.problem-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.4); }
.problem-card .num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  opacity: .9;
  margin-bottom: 12px;
}
.problem-card h3 { font-size: 18px; margin: 0 0 10px; }
.problem-card p { color: var(--text-2); font-size: 14px; line-height: 1.85; margin: 0; }

/* ============ Value ============ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.value-card {
  background: linear-gradient(180deg, rgba(124,92,255,.08), rgba(124,92,255,.02));
  border: 1px solid rgba(124,92,255,.2);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(124,92,255,.25), transparent 70%);
  pointer-events: none;
}
.value-icon {
  width: 56px; height: 56px;
  background: rgba(124,92,255,.15);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c4b3ff;
  margin-bottom: 20px;
}
.value-card h3 {
  font-size: 22px;
  margin: 0 0 14px;
  font-weight: 800;
}
.value-card p { color: var(--text-2); margin: 0; font-size: 15px; line-height: 1.9; }
.value-card strong { color: var(--text); }

/* ============ Demo動画 ============ */
.video-frame {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(124,92,255,.35), transparent 70%),
    linear-gradient(135deg, #1a1d2b, #0a0c11);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.play-button {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--accent);
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(124,92,255,.5);
  transition: transform .2s ease;
}
.play-button:hover { transform: scale(1.06); }
.video-caption { color: var(--text-3); font-size: 14px; margin: 0; }
.video-frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* ============ 比較表 ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  font-size: 14px;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.compare-table thead th {
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}
.compare-table tbody th { color: var(--text); font-weight: 600; }
.compare-table .highlight {
  background: rgba(124,92,255,.10);
  color: #fff;
  font-weight: 700;
}
.compare-table thead .highlight {
  background: linear-gradient(180deg, rgba(124,92,255,.3), rgba(124,92,255,.1));
}
.note {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin-top: 24px;
}

/* ============ 料金 ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.3); }
.price-card.recommended {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(124,92,255,.12), var(--panel));
  box-shadow: 0 16px 40px rgba(124,92,255,.18);
  transform: scale(1.03);
}
.price-card.recommended:hover { transform: scale(1.03) translateY(-4px); }
.ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b6dff, #7C5CFF);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(124,92,255,.4);
}
.price-name { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.price-target { color: var(--text-3); font-size: 13px; margin: 0 0 20px; }
.price-amount {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -.02em;
}
.price-amount .yen { font-size: 24px; margin-right: 2px; opacity: .8; }
.price-amount .unit { font-size: 14px; color: var(--text-3); margin-left: 4px; font-weight: 500; }
.price-amount strong {
  background: linear-gradient(135deg, #a78bff, #7C5CFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.price-features li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-2);
  font-size: 14px;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C5CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ============ パッケージ ============ */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pkg-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.pkg-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.3); }
.pkg-cat {
  display: inline-block;
  background: rgba(124,92,255,.15);
  color: #cbbdff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.pkg-card h3 { font-size: 18px; margin: 0 0 14px; }
.pkg-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.pkg-card ul li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 14px;
  color: var(--text-2);
}
.pkg-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.pkg-price {
  font-family: var(--font-en);
  color: var(--text);
  font-weight: 700;
  margin: 0;
  font-size: 14px;
}
.pkg-enterprise {
  border-color: rgba(124,92,255,.4);
  background: linear-gradient(180deg, rgba(124,92,255,.08), var(--panel));
}

/* ============ ウェイトリスト ============ */
.waitlist-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(124,92,255,.10), var(--panel));
  border: 1px solid rgba(124,92,255,.3);
  border-radius: var(--radius);
  padding: 56px 40px;
  box-shadow: var(--shadow);
}
.form { margin-top: 12px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.form label > span em {
  color: var(--accent);
  font-style: normal;
  font-size: 11px;
  margin-left: 6px;
  font-weight: 700;
}
.form input[type="text"],
.form input[type="email"],
.form select {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,255,.25);
}
.form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab2c5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin: 8px 0 24px;
  font-size: 13px !important;
  color: var(--text-2) !important;
  font-weight: 400 !important;
}
.consent a { color: var(--accent); text-decoration: underline; }
.form-note {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  margin: 14px 0 0;
}
.form-success {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(6,199,85,.12);
  border: 1px solid rgba(6,199,85,.4);
  color: #8ce6b0;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-list details[open] { border-color: rgba(124,92,255,.4); }
.faq-list summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 56px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  font-weight: 300;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.9;
}
.faq-list details p strong { color: var(--text); }

/* ============ Final CTA ============ */
.final-cta { background: var(--bg-2); text-align: center; padding: 120px 0; }

/* ============ フッター ============ */
.site-footer {
  background: #06080c;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-tag { color: var(--text-2); font-size: 14px; margin: 0 0 8px; }
.footer-company { color: var(--text-3); font-size: 13px; margin: 0; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: .04em;
}
.footer-links a {
  display: block;
  color: var(--text-3);
  font-size: 13px;
  padding: 4px 0;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}
.footer-bottom small { color: var(--text-3); font-size: 12px; }

/* ============ レスポンシブ ============ */
.sp-only { display: none; }

@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 20px 24px; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav a:last-child { border-bottom: 0; margin-top: 8px; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .sp-only { display: inline; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 80px; }
  .hero-cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .waitlist-card { padding: 36px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .price-card.recommended { transform: none; }
  .price-card.recommended:hover { transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .badge { font-size: 12px; }
  .msg { max-width: 92%; font-size: 13px; }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* フォーカススタイル */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
