:root {
  --fg: #1a1a2e;
  --fg-secondary: #4a4a68;
  --muted: #6b7280;
  --light: #f8f9fc;
  --line: #e2e5ed;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-glow: rgba(37, 99, 235, .08);
  --card: #fff;
  --green: #059669;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--fg);
  background: #fff;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- ヘッダー ---- */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.site-brand img { height: 28px; width: auto; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
  font-size: 14px;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.btn-header {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-header:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }

/* ---- ヒーロー ---- */
.hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #1a4b7a 70%, #1e5c3a 100%);
  padding: 100px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(5,150,105,.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.hero .hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,.35); }
.btn-primary .btn-icon { font-size: 12px; }
.btn-large { padding: 18px 44px; font-size: 17px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ---- セクション共通 ---- */
.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-alt { background: var(--light); }
.section-wide { max-width: 960px; }
.section-heading {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--fg);
  letter-spacing: -.01em;
}
.section-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.9;
}
.section p { margin-bottom: 12px; }
.section ul {
  margin: 8px 0 16px;
  padding-left: 1.5em;
}
.section li {
  margin-bottom: 4px;
  line-height: 1.8;
}

/* ---- 3つの特徴 ---- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 16px;
}
.value-icon svg { width: 26px; height: 26px; }
.value-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.value-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- 機能カード ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ---- プライバシーセクション ---- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.privacy-item {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s;
}
.privacy-item:hover { transform: translateY(-2px); }
.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(5,150,105,.1);
  color: var(--green);
  margin-bottom: 12px;
}
.privacy-icon svg { width: 20px; height: 20px; }
.privacy-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--green);
}
.privacy-item p {
  font-size: 13px;
  color: var(--fg);
  margin: 0;
  line-height: 1.7;
}

/* ---- 使い方ステップ ---- */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 32px;
}
.step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37,99,235,.2);
}
.step h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  margin: 0;
  line-height: 1.75;
}
.step-arrow {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
}
.step-arrow svg { width: 24px; height: 24px; }
.howto-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---- 注意事項 ---- */
.notice-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 20px;
}
.notice-box h3 {
  margin-top: 0;
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
}
.notice-box ul {
  font-size: 14px;
  color: #78350f;
}
.notice-box p {
  font-size: 14px;
  color: #78350f;
  margin-bottom: 0;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}
.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}
.faq-a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 24px;
}

/* ---- CTA ---- */
.cta {
  text-align: center;
  padding: 88px 24px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #1a4b7a 70%, #1e5c3a 100%);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(37,99,235,.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
}
.cta p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.9;
  position: relative;
}
.cta .btn-primary { position: relative; }
.cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
  position: relative;
}

/* ---- フッター ---- */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 44px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  color: #d1d5db;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-analytics {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.7;
  border-top: 1px solid #1f2937;
  padding-top: 16px;
  margin-top: 8px;
}
.footer-copy {
  font-size: 12px;
  color: #6b7280;
  margin-top: 16px;
}

/* ---- 利用規約ページ ---- */
.terms-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.terms-body h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.terms-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.terms-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
  color: var(--fg);
}
.terms-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--fg);
}
.terms-body p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.9;
}
.terms-body ul, .terms-body ol {
  margin: 8px 0 16px;
  padding-left: 1.5em;
  font-size: 14px;
}
.terms-body li {
  margin-bottom: 4px;
  line-height: 1.8;
}
.terms-body hr {
  border: none;
  border-top: 2px solid var(--line);
  margin: 48px 0;
}
.terms-part-title {
  font-size: 20px;
  font-weight: 800;
  margin: 48px 0 16px;
  color: var(--accent);
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 26px; }
  .hero-badges { flex-wrap: wrap; }
  .section { padding: 56px 20px; }
  .section-heading { font-size: 22px; }
  .value-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 16px; }
  .step-arrow { transform: rotate(90deg); }
  .site-nav a:not(.btn-header) { display: none; }
  .site-nav { gap: 0; }
  .btn-header { font-size: 12px; padding: 7px 14px; white-space: nowrap; }
  .site-brand { font-size: 14px; white-space: nowrap; }
  .site-header .inner { padding: 10px 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .footer-links { flex-direction: column; gap: 10px; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: 11px; padding: 4px 12px; }
}
