/*
 * shotcraft ランディングページのスタイル。
 * 色は拡張本体の assets/tokens.css（ダークテーマ）から流用している。
 * 外部リクエストなし: Web フォント／CDN は使わず OS のシステムフォントに依存する
 * （拡張本体の「外部リクエストなし」思想を LP でも踏襲）。
 */

:root {
  color-scheme: dark;

  /* --- 拡張本体 assets/tokens.css から流用したカラートークン --- */
  --bg: #0b0f19; /* 最深部（ページ背景） */
  --surface: #161b26; /* カード・面 */
  --surface-2: #1f2632; /* 面上の面 */
  --surface-hover: #232b39; /* hover 時の面 */
  --border: rgba(255, 255, 255, 0.09); /* 極薄の境界線 */
  --border-strong: rgba(255, 255, 255, 0.14); /* やや明確な境界 */
  --text: #f2f5f9; /* 主文字（--surface 上で 15.8:1） */
  --text-muted: #9aa6b8; /* 補助文字（--surface 上で 7.0:1） */
  --accent: #10b981; /* 主要アクション（emerald） */
  --accent-hover: #34d399; /* 主要アクションの hover */
  --accent-text: #04140d; /* accent 面上の文字（コントラスト比 7.5:1） */
  --ring: #38bdf8; /* フォーカスリング */

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 45%);
  --shadow-lg: 0 20px 50px rgb(0 0 0 / 55%);

  /* UI フォント（システムフォントスタック。同梱・外部フォントは使わない） */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", system-ui, sans-serif;

  --maxw: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景に極薄のグラデーションで奥行きを付ける（promo.png の雰囲気に寄せる） */
body {
  background-image: radial-gradient(
      1200px 600px at 50% -10%,
      rgba(56, 189, 248, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 85% 10%,
      rgba(16, 185, 129, 0.06),
      transparent 55%
    );
  background-repeat: no-repeat;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ring);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --- セクション共通 --- */
.section {
  padding-block: 72px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
}

.section-head p {
  color: var(--text-muted);
  margin: 14px 0 0;
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 12px;
}

/* --- ヒーロー --- */
.hero {
  text-align: center;
  padding-block: 88px 40px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  max-width: 18ch;
  margin-inline: auto;
}

.hero .subcopy {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 42ch;
  margin: 22px auto 0;
}

.hero .brand {
  color: var(--accent-hover);
}

/* --- バッジ列（信頼シグナル） --- */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
  max-width: 640px;
  list-style: none;
  padding: 0;
}

.badges li {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* --- CTA ボタン --- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

/* 公開前の告知バッジ（押せないボタン風）。ストア公開後は本物のリンクに差し替える */
.btn-disabled {
  cursor: default;
  opacity: 0.9;
}

.btn-disabled::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-text);
  opacity: 0.55;
  flex: 0 0 auto;
}

.btn-disabled:active {
  transform: none;
}

.cta-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 14px 0 0;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* --- スクリーンショット --- */
.shot {
  margin-top: 24px;
}

.shot figure {
  margin: 0;
}

.shot-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.shot-frame img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 18px;
}

/* --- 特長 3 カラム --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.card .icon-badge svg {
  width: 24px;
  height: 24px;
  color: var(--accent-hover);
}

.card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card ul li {
  margin-bottom: 6px;
}

.card ul li::marker {
  color: var(--accent);
}

/* --- こんなときに（用途例） --- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  text-align: center;
}

.usecase-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin: 0 auto 16px;
  color: var(--accent-hover);
}

.usecase-icon svg {
  width: 26px;
  height: 26px;
}

.usecase p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* --- プライバシー節 --- */
.privacy {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.privacy-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.privacy-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-item h3 svg {
  width: 20px;
  height: 20px;
  color: var(--accent-hover);
  flex: 0 0 auto;
}

.privacy-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* --- フッター --- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.footer-credit {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* --- レスポンシブ --- */
@media (max-width: 860px) {
  .features-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .container {
    padding-inline: 18px;
  }
  .section {
    padding-block: 56px;
  }
  .hero {
    padding-block: 60px 32px;
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .cta-row {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
