/* ===== リセット & ベース ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cyan: #00F5D4;
  --purple: #B388FF;
  --pink: #FF6B9D;
  --bg: #0A0A0F;
  --bg-card: #141420;
  --bg-surface: #1A1A2E;
  --text: #E0E0E0;
  --text-dim: #888;
  --text-dark: #555;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-pink { color: var(--pink); }
.bold { font-weight: 700; }
.dim { color: var(--text-dark); }
.line-through { text-decoration: line-through; color: var(--text-dim); }
.hide-sp { display: none; }
@media (min-width: 640px) { .hide-sp { display: inline; } }

/* ===== ヘッダー ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,245,212,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; color: #fff;
}
.logo-icon { width: 22px; height: 22px; color: var(--cyan); }
.nav-desktop { display: none; gap: 32px; }
.nav-desktop a { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.nav-desktop a:hover { color: var(--cyan); }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}
.menu-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); width: 28px; height: 28px;
}
.menu-btn svg { width: 100%; height: 100%; }
.nav-mobile {
  display: none; flex-direction: column; gap: 16px;
  padding: 16px 20px 20px; border-top: 1px solid rgba(0,245,212,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 14px; color: var(--text-dim); }
.nav-mobile a:hover { color: var(--cyan); }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 120px 0 80px; overflow: hidden; text-align: center;
}
@media (min-width: 640px) { .hero { padding: 160px 0 120px; } }
.hero-glow-1 {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: rgba(0,245,212,0.04);
  border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: 0; right: 20%;
  width: 400px; height: 400px; background: rgba(179,136,255,0.04);
  border-radius: 50%; filter: blur(100px); pointer-events: none;
}
.hero-content { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(0,245,212,0.2); background: rgba(0,245,212,0.05);
  font-size: 13px; color: var(--cyan); font-weight: 500; margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
.hero h1 {
  font-size: 36px; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 20px;
}
@media (min-width: 640px) { .hero h1 { font-size: 56px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 72px; } }
.neon-text {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,245,212,0.5), 0 0 40px rgba(0,245,212,0.2);
}
.hero-sub {
  font-size: 16px; color: var(--text-dim); max-width: 600px;
  margin: 0 auto 32px; line-height: 1.8;
}
@media (min-width: 640px) { .hero-sub { font-size: 18px; } }
.hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; justify-content: center; } }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--cyan); color: var(--bg);
  font-weight: 700; font-size: 15px; border-radius: 12px;
  transition: box-shadow .3s;
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(0,245,212,0.3); }
.hero-free {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-dark);
}

/* Quest Card */
.quest-card { max-width: 400px; margin: 48px auto 0; }
.quest-card-inner {
  background: var(--bg-card); border-radius: 16px; padding: 24px;
  border: 1px solid rgba(0,245,212,0.12);
  position: relative;
}
.quest-card-inner::before {
  content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.quest-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quest-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,245,212,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 18px;
}
.quest-label { font-size: 11px; color: var(--cyan); font-weight: 600; letter-spacing: 2px; }
.quest-title { font-size: 15px; font-weight: 700; color: #fff; }
.steps { display: flex; flex-direction: column; gap: 10px; margin-left: 8px; }
.step { display: flex; align-items: center; gap: 12px; }
.step-circle {
  width: 24px; height: 24px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 10px;
  flex-shrink: 0; font-weight: 700;
}
.step-circle.done { background: rgba(0,245,212,0.15); color: var(--cyan); }
.step-circle.active {
  background: var(--cyan); color: var(--bg);
  animation: pulse 3s ease-in-out infinite;
}
.step-circle.pending { border: 1px solid #333; color: #555; }
.step-text { font-size: 13px; }
.step-now {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0,245,212,0.1); color: var(--cyan); font-weight: 600;
}
.progress-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.04); }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--text-dim); }
.progress-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: 999px; }

/* ===== セクション共通 ===== */
.section { padding: 80px 0; }
@media (min-width: 640px) { .section { padding: 120px 0; } }
.section-alt { background: rgba(26,26,46,0.3); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { font-size: 13px; font-weight: 600; letter-spacing: 3px; display: block; margin-bottom: 10px; }
.section-header h2 { font-size: 28px; font-weight: 900; color: #fff; }
@media (min-width: 640px) { .section-header h2 { font-size: 36px; } }
.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 15px; }

/* Features */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  border-radius: 16px; padding: 24px;
  transition: transform .2s;
}
.feature-card:hover { transform: scale(1.02); }
.feature-card.cyan { background: rgba(0,245,212,0.05); border: 1px solid rgba(0,245,212,0.12); }
.feature-card.purple { background: rgba(179,136,255,0.05); border: 1px solid rgba(179,136,255,0.12); }
.feature-card.pink { background: rgba(255,107,157,0.05); border: 1px solid rgba(255,107,157,0.12); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* Themes */
.themes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .themes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .themes-grid { grid-template-columns: repeat(5, 1fr); } }
.theme-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; padding: 20px; text-align: center;
  transition: border-color .2s;
}
.theme-card:hover { border-color: rgba(255,255,255,0.1); }
.theme-swatch {
  width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 12px;
  transition: transform .2s;
}
.theme-card:hover .theme-swatch { transform: scale(1.1); }
.theme-name { font-size: 13px; font-weight: 700; color: #fff; }
.theme-desc { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* Target Users */
.target-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 800px; margin: 0 auto; }
@media (min-width: 640px) { .target-grid { grid-template-columns: repeat(2, 1fr); } }
.target-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(20,20,32,0.5); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #ccc;
}
.check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,245,212,0.1); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; margin-top: 2px;
}

/* CTA */
.cta-section { position: relative; overflow: hidden; text-align: center; }
.cta-glow {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,245,212,0.04) 50%, transparent 100%);
  pointer-events: none;
}
.cta-content { position: relative; }
.cta-icon { font-size: 40px; margin-bottom: 20px; }
.cta-section h2 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 12px; line-height: 1.4; }
@media (min-width: 640px) { .cta-section h2 { font-size: 36px; } }
.cta-section p { color: var(--text-dim); margin-bottom: 24px; }
.cta-badge {
  display: inline-block; padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  font-size: 14px; color: var(--text-dim);
}

/* ===== Footer ===== */
.footer { border-top: 1px solid rgba(0,245,212,0.08); padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-tagline { font-size: 13px; color: var(--text-dark); }
.footer h4 { font-size: 13px; font-weight: 600; color: #ccc; margin-bottom: 12px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { font-size: 13px; color: var(--text-dark); transition: color .2s; }
.footer a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: #444; }

/* ===== 法務・サポートページ共通 ===== */
.page-main { padding: 100px 0 80px; }
.page-header { text-align: center; margin-bottom: 40px; }
.page-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.page-icon.cyan { background: rgba(0,245,212,0.1); }
.page-icon.purple { background: rgba(179,136,255,0.1); }
.page-header h1 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 8px; }
@media (min-width: 640px) { .page-header h1 { font-size: 36px; } }
.page-date { font-size: 13px; color: var(--text-dark); }
.page-body { max-width: 720px; margin: 0 auto; }
.page-body section { margin-bottom: 32px; }
.page-body h2 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.page-body p { font-size: 14px; color: #ccc; margin-bottom: 10px; line-height: 1.8; }
.page-body ul { margin: 8px 0 8px 24px; list-style: disc; }
.page-body li { font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }
.page-body a { color: var(--cyan); }
.page-body a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; padding: 20px;
  transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.08); }
.faq-inner { display: flex; align-items: flex-start; gap: 12px; }
.faq-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0,245,212,0.1); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 16px; margin-top: 2px;
}
.faq-q { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.faq-a { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* Contact Box */
.contact-box {
  max-width: 720px; margin: 48px auto 0;
  background: var(--bg-card); border-radius: 16px; padding: 40px 24px;
  text-align: center; position: relative;
}
.contact-box::before {
  content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.contact-icon { font-size: 36px; margin-bottom: 12px; }
.contact-box h2 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.contact-box p { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.7; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: rgba(179,136,255,0.1);
  color: var(--purple); font-weight: 600; font-size: 14px;
  border-radius: 12px; border: 1px solid rgba(179,136,255,0.2);
  transition: background .2s;
}
.contact-btn:hover { background: rgba(179,136,255,0.2); }
.contact-note { font-size: 11px; color: #555; margin-top: 12px; }

/* グリッド背景 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,245,212,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,212,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
