/* lp.css — 製品紹介LP専用（index.htmlのみが読む。privacy/supportはstyles.cssのまま） */

:root {
  --accent-2: #7c5cff;
  --lp-max: 1040px;
  --shadow: 0 12px 40px rgba(23, 26, 36, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-2: #8f7bff;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

/* ---- styles.cssの文書レイアウトを解除 ---- */

body.lp header,
body.lp main,
body.lp footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.lp main {
  background: transparent;
  border: none;
  border-radius: 0;
}

body.lp .wrap {
  width: min(calc(100% - 48px), var(--lp-max));
  margin-inline: auto;
}

body.lp .narrow {
  width: min(calc(100% - 48px), 720px);
}

/* ---- ヘッダー ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(23, 26, 36, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

/* ---- ボタン ---- */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #10141d;
  }
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 18px 56px;
  font-size: 1.1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

/* ---- セクション共通 ---- */

.sec {
  padding-block: 88px;
}

.sec-tight {
  padding-block: 56px;
}

.sec-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.sec h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: 0.01em;
}

.sec-lead {
  margin-bottom: 40px;
}

.center {
  text-align: center;
}

.micro {
  color: var(--muted);
  font-size: 0.85rem;
}

.cta {
  margin: 28px 0 12px;
}

/* ---- ヒーロー ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 72px 96px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero .lead {
  font-size: 1.05rem;
}

.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
  pointer-events: none;
}

.blob-a {
  top: -120px;
  right: -80px;
  background: var(--accent);
  animation: drift 14s ease-in-out infinite alternate;
}

.blob-b {
  bottom: -160px;
  left: -120px;
  background: var(--accent-2);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 28px); }
}

/* ---- iPhoneフレーム ---- */

.phone {
  width: min(100%, 300px);
  margin-inline: auto;
  aspect-ratio: 750 / 1630;
  border: 1px solid var(--line);
  border-radius: 40px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- 実物デモ ---- */

.demo-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.clip-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.clip-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
}

.clip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.clip-body {
  margin: 0;
  padding: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---- カード共通 ---- */

.cards {
  display: grid;
  gap: 20px;
  margin-block: 32px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.sec-alt .card {
  background: var(--bg);
}

/* ---- 3ステップ ---- */

.step {
  text-align: center;
}

/* スクショは見せたい帯だけを事前にトリミング済み（750×562） */
.step .shot {
  margin: -24px -24px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.step .shot img {
  display: block;
  width: 100%;
  height: auto;
}

.step-num {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.step h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
}

.step .step-num {
  margin-top: 4px;
}

/* ---- ユースケース ---- */

.usecase p {
  margin: 0;
}

/* ---- 機能グリッド ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  padding: 14px 18px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  position: relative;
}

.feature-grid li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  color: var(--accent);
  font-weight: 700;
}

/* ---- ない機能 ---- */

.none-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.none-list li {
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--muted);
}

.none-list li::before {
  content: "—";
  position: absolute;
  left: 4px;
  color: var(--muted);
}

/* ---- プライバシーバッジ ---- */

.badge-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--accent);
}

.badge p:last-child {
  margin: 0;
  font-size: 0.9rem;
}

/* ---- 最終CTA ---- */

.sec-cta {
  padding-block: 104px;
}

/* ---- フッター ---- */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 36px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
}

/* ---- スクロール出現 ---- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- スマホ幅 ---- */

@media (max-width: 820px) {
  .hero-grid,
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards-3,
  .cards-2,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .sec {
    padding-block: 64px;
  }

  .hero {
    padding-block: 48px 64px;
  }

  body.lp .wrap {
    width: min(calc(100% - 32px), var(--lp-max));
  }

  body.lp .narrow {
    width: min(calc(100% - 32px), 720px);
  }
}

/* ---- reduced-motion: 全部止めて即表示 ---- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .blob-a,
  .blob-b {
    animation: none;
  }
}
