* {
  box-sizing: border-box;
}

:root {
  --bg: #0f1115;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: #9aa0a6;
  --accent: #5f8cff;
  --accent-soft: rgba(95, 140, 255, 0.14);
  --max: 1120px;
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top, rgba(95, 140, 255, 0.10), transparent 32%),
    linear-gradient(180deg, #0f1115 0%, #0c0e12 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  backdrop-filter: blur(16px);
  background: rgba(15, 17, 21, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(95, 140, 255, 0.30), rgba(95, 140, 255, 0.14));
  border: 1px solid rgba(95, 140, 255, 0.35);
  color: #dfe8ff;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  padding: 60px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #b6c4ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.install-card h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  max-width: 10ch;
}

.hero-lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions.centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: #7098ff;
}

.button-secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.hero-note,
.install-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.mock-window,
.info-card,
.feature-card,
.install-card,
.solution-band {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.mock-window {
  width: 100%;
  max-width: 520px;
  padding: 18px;
  border-radius: 24px;
}

.mock-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mock-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.mock-command {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.mock-command-label {
  color: #cbd5ff;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-command-input {
  color: var(--muted);
}

.mock-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mock-item,
.mock-grid-head,
.mock-grid-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
}

.mock-item strong {
  display: block;
  font-size: 14px;
}

.mock-item small {
  color: var(--muted);
  font-size: 12px;
}

kbd,
.badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #d8def0;
  background: rgba(255,255,255,0.04);
}

.mock-grid {
  margin-top: 14px;
}

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

.mock-grid-head {
  color: #c8cfdd;
  font-weight: 600;
}

.mock-grid-row {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.install-card h2 {
  font-size: clamp(32px, 4.2vw, 52px);
}

.section-heading p,
.install-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.solution-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
}

.solution-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(95, 140, 255, 0.10);
  border: 1px solid rgba(95, 140, 255, 0.22);
  color: #d8e3ff;
  font-weight: 600;
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-card {
  border-radius: 24px;
  padding: 28px;
}

.feature-header {
  margin-bottom: 24px;
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(95, 140, 255, 0.18);
  color: #c8d6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-header h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-list.single {
  grid-template-columns: 1fr;
}

.feature-item {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
}

.feature-item h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.install-card {
  border-radius: 28px;
  padding: 38px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 960px) {
  .hero,
  .problem-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 0;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero-copy,
  .section-heading p,
  .hero-lead,
  .install-card p {
    font-size: 16px;
  }

  .mock-window,
  .feature-card,
  .install-card,
  .info-card {
    border-radius: 20px;
  }

  .install-card,
  .feature-card,
  .info-card {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ============================================================
   Mobile Optimization (スマホ向け最終調整)
   ============================================================ */

@media (max-width: 720px) {
  /* 1. セクション間の余白を詰めて、スクロール疲れを軽減 */
  .section {
    padding: 48px 0;
  }

  /* 2. ヒーローセクション：文字を中央寄せにしてインパクトを出す */
  .hero {
    display: flex; /* gridからflexに変更して中央寄せしやすく */
    flex-direction: column;
    text-align: center;
    padding-top: 24px;
    gap: 32px;
  }

  .hero h1 {
    font-size: 38px; /* スマホで1画面に収まりやすいサイズ */
    line-height: 1.1;
    margin: 0 auto;
  }

  .hero-lead {
    margin: 16px auto 0;
  }

  .hero-actions {
    justify-content: center; /* ボタンを中央に */
    flex-direction: column; /* ボタンを縦に並べてタップしやすく */
    width: 100%;
  }

  .button {
    width: 100%; /* ボタンを横幅いっぱいに（押しやすさ向上） */
    min-height: 54px; /* タップターゲットを大きく */
  }

  /* 3. モックアップUIの調整 */
  .mock-window {
    padding: 12px;
    border-radius: 18px;
    font-size: 13px; /* 中の文字を少し小さくして収まりを良くする */
  }

  /* 4. 特徴カード（Problem/Feature）の視認性アップ */
  .problem-grid, .feature-stack {
    gap: 12px; /* カード同士の間隔を少し詰める */
  }

  .info-card, .feature-card {
    padding: 20px;
    background: var(--panel-strong); /* スマホでは少し背景を濃くして境目をハッキリさせる */
  }

  .feature-header h3 {
    font-size: 24px;
  }

  /* 特徴リストを横並びからスッキリした縦並びへ */
  .feature-list {
    gap: 10px;
  }

  .feature-item {
    padding: 16px;
  }

  .feature-item h4 {
    font-size: 17px;
  }

  /* 5. フッターの調整 */
  .site-footer {
    text-align: center;
    align-items: center;
    gap: 24px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* さらに小さい画面（iPhone SEなど）への配慮 */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 32px;
  }
}
/* スマホでのリズムを整える追加設定 */
@media (max-width: 720px) {
  /* 文章の塊を読みやすく */
  .hero-lead, .section-heading p {
    font-size: 15px; /* スマホでは18pxは少し大きい場合があるため */
    text-align: left; /* リード文は左寄せの方が可読性が高い */
    line-height: 1.7;
  }

  /* セクションごとに背景を交互に変えて「区切り」を出す */
  /* 奇数番目のセクションを少し明るく */
  .section:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.015);
  }

  /* カードのタイトルをもっと際立たせる */
  .info-card h3, .feature-item h4 {
    font-size: 18px;
    color: var(--accent); /* タイトルに色をつけて視線を誘導 */
  }

  /* モックアップ内の表をスマホで隠す（または簡略化） */
  .mock-grid {
    display: none; /* スマホではリスト表示（.mock-list）だけで十分伝わる */
  }
}

