:root {
  --bg: #0b0b14;
  --surface: #15151f;
  --surface-2: #1d1d2b;
  --border: #2a2a3a;
  --primary: #54d98c;
  --primary-dim: #54d98c33;
  --accent: #40a6ff;
  --warning: #ffa633;
  --text: #ffffff;
  --body: #c9c9d6;
  --muted: #8c8ca6;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 日本語の自然な改行 (英単語は途中で切らない、語頭・語末禁止) */
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-spacing-trim: trim-start;
}

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

/* ───────────────────────────────────── */
/* Header                                  */
/* ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 20, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), #2bb46b);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #0b0b14;
  font-weight: 900;
}
.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-header .inner { padding: 12px 16px; }
}

/* ───────────────────────────────────── */
/* Hero                                    */
/* ───────────────────────────────────── */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(84, 217, 140, 0.18), transparent 60%),
    radial-gradient(600px 300px at 80% 30%, rgba(64, 166, 255, 0.10), transparent 70%);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 24px;
}
.hero-grid .hero-copy { text-align: left; }
.hero-grid .hero-copy .cta-row { justify-content: flex-start; }
.hero-grid .hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-grid .phone-frame { max-width: 280px; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--primary-dim);
  border-radius: 999px;
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(28px, 5.5vw, 52px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 .accent-text {
  background: linear-gradient(120deg, var(--primary), #66e7a1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(14px, 1.9vw, 17px);
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.85;
}
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn-primary {
  background: var(--primary);
  color: #0b0b14;
}
.btn-primary:hover {
  background: #66e7a1;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }

.hero-meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Mobile hero — stack & compact */
@media (max-width: 880px) {
  .hero {
    padding: 40px 0 44px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }
  .hero-grid .hero-copy {
    text-align: center;
    order: 1;
  }
  .hero-grid .hero-visual {
    order: 2;
  }
  .hero-grid .hero-copy .cta-row { justify-content: center; }
  .hero-grid .phone-frame { max-width: 200px; }
  .hero h1 { font-size: clamp(24px, 6.5vw, 32px); line-height: 1.4; }
  .hero .lead { font-size: 14px; line-height: 1.85; margin: 0 auto 24px; }
}

/* ───────────────────────────────────── */
/* Phone frame                             */
/* ───────────────────────────────────── */
.phone-frame {
  display: inline-block;
  background: linear-gradient(180deg, #1f1f2e, #15151f);
  padding: 7px;
  border-radius: 32px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* ───────────────────────────────────── */
/* Section base                            */
/* ───────────────────────────────────── */
.section {
  padding: 72px 24px;
}
.section-narrow { padding: 56px 24px; }
.section .inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.4;
}
.section-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .section { padding: 56px 20px; }
  .section-narrow { padding: 44px 20px; }
  .section-head { margin-bottom: 32px; }
}

/* ───────────────────────────────────── */
/* Features grid                           */
/* ───────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.feature:hover {
  border-color: var(--primary-dim);
  transform: translateY(-2px);
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(84, 217, 140, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--primary);
  flex-shrink: 0;
}
.feature h3 {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.5;
}
.feature p {
  color: var(--body);
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 880px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* モバイルでは横並び (アイコン左・テキスト右) のリスト風に */
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  .feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: 18px 16px;
  }
  .feature:last-child {
    border-bottom: none;
  }
  .feature:hover {
    transform: none;
    background: var(--surface-2);
  }
  .feature .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 0;
  }
  .feature .icon svg {
    width: 18px;
    height: 18px;
  }
  .feature h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .feature p {
    font-size: 12px;
    line-height: 1.65;
  }
  .feature-text-wrap {
    flex: 1;
    min-width: 0;
  }
}

/* ───────────────────────────────────── */
/* Feature rows with paired screenshots    */
/* ───────────────────────────────────── */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.feature-row.reverse > .feature-text { order: 2; }
.feature-row.reverse > .feature-visual { order: 1; }
.feature-row .feature-text h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.feature-row .feature-text .feature-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.feature-row .feature-text p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.85;
}
.feature-row .feature-visual {
  display: flex;
  justify-content: center;
}
.feature-row .feature-visual .phone-frame {
  max-width: 260px;
}
@media (max-width: 880px) {
  .feature-rows { gap: 56px; }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  /* mobile では常に画像が上、テキストが下 */
  .feature-row > .feature-text { order: 2; }
  .feature-row > .feature-visual { order: 1; }
  .feature-row.reverse > .feature-text { order: 2; }
  .feature-row.reverse > .feature-visual { order: 1; }
  .feature-row .feature-text h3 { font-size: 20px; }
  .feature-row .feature-visual .phone-frame { max-width: 200px; }
}

/* ───────────────────────────────────── */
/* Steps (how-it-works)                    */
/* ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 20px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #0b0b14;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.step h3 {
  font-size: 15px;
  margin: 8px 0 6px;
  font-weight: 700;
}
.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ───────────────────────────────────── */
/* Privacy callout                         */
/* ───────────────────────────────────── */
.privacy-callout {
  background:
    linear-gradient(180deg, rgba(84, 217, 140, 0.06), rgba(84, 217, 140, 0.02));
  border: 1px solid var(--primary-dim);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: center;
}
.privacy-callout .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(84, 217, 140, 0.12);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.privacy-callout h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.privacy-callout p {
  color: var(--body);
  font-size: 13px;
  line-height: 1.75;
}
@media (max-width: 560px) {
  .privacy-callout { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .privacy-callout .icon { margin: 0 auto; }
}

/* ───────────────────────────────────── */
/* Final CTA                               */
/* ───────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 72px 24px 88px;
  background:
    radial-gradient(700px 350px at 50% 50%, rgba(84, 217, 140, 0.15), transparent 60%);
}
.final-cta h2 {
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.5;
}
.final-cta p {
  color: var(--body);
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.7;
}
.final-cta .cta-row {
  justify-content: center;
}
@media (max-width: 560px) {
  .final-cta { padding: 56px 20px 64px; }
}

/* ───────────────────────────────────── */
/* Footer                                  */
/* ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px 48px;
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.copy {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }
}

/* ───────────────────────────────────── */
/* Legal page (privacy/terms)              */
/* ───────────────────────────────────── */
.legal {
  padding: 56px 24px 80px;
}
.legal .inner {
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 6px;
  line-height: 1.4;
}
.legal .meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 36px;
}
.legal section {
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.legal p, .legal li {
  color: var(--body);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-line;
}
.legal ul { padding-left: 20px; }
.legal a { word-break: break-all; }
@media (max-width: 560px) {
  .legal { padding: 40px 20px 60px; }
}

/* ───────────────────────────────────── */
/* Support cards                           */
/* ───────────────────────────────────── */
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
@media (max-width: 560px) {
  .support-cards { grid-template-columns: 1fr; }
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
}
.support-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.support-card p {
  color: var(--body);
  font-size: 13px;
  line-height: 1.75;
}
.support-card .email-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}
