:root {
    --bg: #05060a;
    --bg-alt: #0c0f17;
    --accent: #4f8cff;
    --accent-soft: rgba(79, 140, 255, 0.12);
    --text: #f5f5f7;
    --text-muted: #a0a3b1;
    --card-bg: #11141f;
    --border-soft: #2a2f3f;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
      "Helvetica Neue", Arial, sans-serif;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top, #121627 0, #05060a 46%, #020308 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
  }
  
  .container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  .section {
    padding: 72px 0;
  }
  
  .section-alt {
    padding: 72px 0;
    background: var(--bg-alt);
  }
  
  .section-accent {
    padding: 72px 0;
    background: linear-gradient(135deg, #161f3c, #10152a 60%, #10121c);
  }
  
  /* Header */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.9), rgba(5, 6, 10, 0.6));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
      /* 既存プロパティそのまま ＋ これを追加 */
    text-decoration: none;
    color: inherit;
  }
  
  .logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff, #4f8cff 60%, #0b1020);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #05060a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  }
  
  .brand-text {
    display: flex;
    flex-direction: column;
  }
  
  .brand-name {
    font-weight: 600;
    font-size: 16px;
  }
  
  .brand-tagline {
    font-size: 11px;
    color: var(--text-muted);
  }
  
  .nav {
    display: flex;
    gap: 16px;
    font-size: 14px;
  }
  
  .nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
  }
  
  .nav a:hover {
    color: var(--text);
  }
  
  /* Hero */
  
  .hero {
    padding: 72px 0 64px;
  }
  
  .hero-inner {
    display: grid;
    /* 左右 50:50 にして、右カラムに 2 台ぶんの横幅を確保 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
}

  
  .hero h1 {
    font-size: clamp(28px, 3vw, 34px);
    margin: 0 0 16px;
  }
  
  .hero-lead {
    margin: 0 0 20px;
    color: var(--text-muted);
    line-height: 1.6;
  }
  
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .hero-note {
    font-size: 12px;
    color: var(--text-muted);
  }
  
  /* Buttons */
  
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f8cff, #7d9fff);
    color: #05060a;
    font-weight: 600;
    font-size: 14px;
    border: none;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(79, 140, 255, 0.45);
    transition: transform 0.16s ease, box-shadow 0.16s ease,
      filter 0.16s ease;
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 40px rgba(79, 140, 255, 0.55);
  }
  
  .btn-large {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  /* Hero visual */
  
  .hero-visual {
    text-align: center;
  }

  .hero-mocks {
    display: inline-flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap; /* PC 幅ではまず横並びを優先 */
}


  .hero-mock-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mock-main-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }

  .mock-main-spacer {
    flex: 1;
    margin-bottom: 10px;
  }



  /* ショートカットレイヤーのモック */

  .shortcut-mock {
    display: inline-flex;
  }

  .shortcut-screen {
    width: 210px;
    border-radius: 26px;
    background: #ffffff;
    padding: 10px 12px 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    border: 2px solid #000000;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .shortcut-header {
    margin-bottom: 4px;
  }

  .shortcut-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #111111;
  }

  .shortcut-subtitle {
    font-size: 11px;
    color: #555555;
    line-height: 1.4;
  }

  .shortcut-keys-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .shortcut-row {
    display: flex;
    gap: 6px;
  }

  .shortcut-key {
    flex: 1;
    background: #000000;
    color: #ffffff;
    border-radius: 10px;
    padding: 5px 0;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  
  .iphone-mock {
    display: inline-flex;
    padding: 10px;
    border-radius: 32px;
    background: radial-gradient(circle at top, #283554, #0b0f1b);
    box-shadow: var(--shadow-soft);
    border: 2px solid #000000;
    width: 220px; /* 固定幅 */
    height: 460px; /* 固定高さ */
    justify-content: center;
    align-items: center;
  }
  
  .iphone-mock img {
    width: 100%; /* 親要素にフィット */
    height: 100%; /* 親要素にフィット */
    object-fit: cover; /* 画像を枠内に収める */
    border-radius: 26px; /* 画像の角を丸める */
  }
  
  .iphone-screen {
    width: 210px;
    height: 460px;
    border-radius: 26px;
    background: #ffffff;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);   
  }
  
  /* 上部ステータス行 */
  
  .mock-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #111111;
    margin-bottom: 4px;
  }
  
  .mock-time {
    font-weight: 600;
  }
  
  .mock-status-right {
    width: 40px; /* ダミー領域（バッテリー等の代わり） */
  }
  
  /* F キー */
  
  .mock-fkey-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .mock-fkey {
    flex: 1;
    background: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 5px 0;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
  }
  
  /* トラックパッド領域 */
  
  .mock-main-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .mock-trackpad-large {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: 1px dashed #4a5270;
    background: #0b0f1c;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mock-trackpad-label {
    font-size: 11px;
    color: #a4aecb;
  }
  
  
  /* 下部キー群 */
  
  .mock-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .mock-keys-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .mock-key-row {
    display: flex;
    gap: 6px;
  }
  
  .mock-key {
    flex: 1;
    background: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
  }

  /* Copy / Paste / Delete 行専用 */

.mock-key-row-top {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
  }
  
  .mock-key-group {
    flex: 1;
    display: flex;
    gap: 6px;
  }
  
  .mock-key-delete {
    flex: 1; /* 右半分を丸ごと Delete ボタンに */
  }
  
  
  .mock-space-row {
    display: flex;
    margin-top: 2px;
  }
  
  .mock-space-key {
    flex: 1;
    background: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
  }

  .mock-shortcut-grid {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mock-shortcut-row {
    display: flex;
    gap: 2px;
  }

  .mock-shortcut-key {
    flex: 1;
    background: #000000;
    color: #ffffff;
    border-radius: 6px;  /* ← ここを 6px 固定 */
    padding: 4px 0;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  
  /* 入力バー */
  
  .mock-input-bar {
    margin-top: 4px;
    border-radius: 8px;
    background: #000000;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 10px;
  }
  
  .mock-input-icon {
    width: 22px;
    height: 22px;
    border-radius: 9px;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }
  
  .mock-input-placeholder {
    flex: 1;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
  }
  
  .mock-input-send {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }
  
  
  .hero-caption {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
  }
  
  /* Features */
  
  .section h2 {
    margin: 0 0 24px;
    font-size: 22px;
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }
  
  .feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
  }

  .security-summary {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  
  .feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
  }
  
  .feature-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
  }
  
/* Steps */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.setup-group {
    margin-top: 32px;
}

.setup-group:first-of-type {
    margin-top: 16px;
}

.setup-heading {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

/* 詳しいセットアップガイドへのリンク */
.setup-more {
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.setup-more a {
    color: var(--accent);
    text-decoration: none;
}

.setup-more a:hover {
    text-decoration: underline;
}


  
  .step {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--border-soft);
  }

  .step-list {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
  }
  
  .step-list li + li {
    margin-top: 4px;
  }
  
  
  .step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .step h3 {
    margin: 0 0 8px;
    font-size: 15px;
  }
  
  .step p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
  }
  
  /* Download */
  
  .download-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .download-copy p {
    color: var(--text-muted);
  }
  
  .download-note {
    font-size: 12px;
    color: var(--text-muted);
  }
  
  /* FAQ */
  
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  details {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 10px 14px;
  }
  
  details summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
  }
  
  details[open] summary {
    margin-bottom: 6px;
  }
  
  details p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
  }
  
  /* Footer */
  
  .site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0 28px;
    background: #05060a;
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
  }
  
  .footer-dot {
    margin: 0 4px;
  }
  
  .footer-right a {
    color: var(--text-muted);
    text-decoration: none;
  }
  
  .footer-right a:hover {
    color: var(--text);
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .footer-meta {
    font-size: 11px;
    line-height: 1.4;
  }

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

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

  
  /* Responsive */
  
  @media (max-width: 800px) {
    .hero-inner {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .nav {
      display: none;
    }
  
    .hero {
      padding-top: 52px;
    }

     /* スマホ幅ではモックを縦積みに戻す */
     .hero-mocks {
        justify-content: center;
        flex-wrap: wrap;
      }
  }
  
  /* Setup guide (setup.html) */

.guide-intro {
    margin: 8px 0 0;
    padding-left: 18px;
    list-style: disc;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
  }
  
  .guide-intro li + li {
    margin-top: 3px;
  }
  
  .section-lead {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
  }
  
  /* 2カラムのガイドブロック */
  
  .guide-block {
    margin-top: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 20px 20px 22px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  }
  
  .guide-text h3 {
    margin: 0 0 8px;
    font-size: 16px;
  }
  
  .guide-steps {
    margin: 4px 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
  }
  
  .guide-steps li + li {
    margin-top: 4px;
  }
  
  .guide-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
  }
  
  /* 右側のスクリーンショット枠 */
  
  .guide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .guide-visual img {
    max-width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  
  .guide-placeholder {
    width: 100%;
    min-height: 160px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
  }
  
  /* モバイルレイアウト調整 */
  
  @media (max-width: 768px) {
    .guide-block {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .guide-visual {
      order: -1; /* モバイルでは画像を上に出したい場合は -1、下にしたい場合は削除 */
    }
  }
  
  /* --- 共通のリンク色（本文用） ---------------------- */
a {
  color: #9ec3ff;          /* ダーク背景でも読みやすい淡いブルー */
  text-decoration: none;   /* 下線なし（お好みで変えてOK） */
}

a:hover {
  color: #cfe0ff;          /* ホバー時に少しだけ明るく */
  text-decoration: underline;
}
