/* =========================================================
   証明書コピー — 紹介サイト共通スタイル
   アプリと同系統: インディゴ #4F5BD5 / 角丸 / 広い余白
   ライト・ダーク両対応 (prefers-color-scheme)
   ========================================================= */

:root {
  --brand: #4f5bd5;
  --brand-2: #6a4fd5;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef0f7;
  --text: #1a1c22;
  --text-muted: #5b5f6b;
  --border: #e2e5ee;
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 40px rgba(20, 24, 60, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --surface: #1c1e26;
    --surface-2: #242733;
    --text: #f2f3f7;
    --text-muted: #a9adba;
    --border: #2c2f3a;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 端末モックの中にスクショ */
.phone {
  margin: 0 auto;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 610;
  background: var(--surface);
  border: 10px solid #0d0f15;
  border-radius: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- セクション共通 ---------- */
section {
  padding: 56px 0;
}
.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* 機能カード */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* スクショギャラリー */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.shot span {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 実寸の説明バンド */
.band {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.band h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}
.band p {
  margin: 0 auto;
  max-width: 640px;
  opacity: 0.95;
}

/* ステップ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 800;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

/* 最終CTA */
.cta {
  text-align: center;
}
.cta .card {
  padding: 48px 28px;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
}

/* ---------- 文書ページ (privacy/terms) ---------- */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0;
}
.doc h1 {
  font-size: 2rem;
  margin: 0 0 6px;
}
.doc .updated {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 0.9rem;
}
.doc h2 {
  font-size: 1.25rem;
  margin: 34px 0 10px;
  padding-top: 8px;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc ul {
  padding-left: 22px;
}
.doc a {
  word-break: break-all;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 2.1rem; }
  .features,
  .gallery {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
