/* 紹介ページ (LP。/introduction_1、templates/landing.html)。
   CSP: style-src 'self' のため、スタイルはこのファイルに置く (インラインのスタイルは使わない)。
   テーマはほかのページと同じ (body.theme-dark。landing.html の先頭のスクリプトが付ける)。
   色はアプリのライト (青のグラデーション・アクセント #1764ff) とダーク (紺・アクセント #22d3ee) に合わせる */

body.ld {
  --ld-bg: #ffffff;
  --ld-bg-alt: #f2f6fd;
  --ld-ink: #10203f;
  --ld-muted: #4f5f7d;
  --ld-line: #d6e0f0;
  --ld-card: #ffffff;
  --ld-accent: #1764ff;
  --ld-accent-hover: #0f52dc;
  --ld-accent-ink: #ffffff;
  --ld-accent-text: #1456dd;
  --ld-chip-bg: #e8effc;
  --ld-chip-ink: #24406f;
  --ld-hero-bg: linear-gradient(160deg, #1552e6 0%, #2c72ff 48%, #6ea6dc 100%);
  --ld-hero-ink: #ffffff;
  --ld-hero-soft: rgba(255, 255, 255, 0.86);
  --ld-hero-line: rgba(255, 255, 255, 0.55);
  --ld-hero-btn-bg: #ffffff;
  --ld-hero-btn-ink: #0c3fbe;
  --ld-hero-btn-hover: #e8f0ff;
  --ld-media-bg: #0f1e3c;
  --ld-shadow: 0 10px 30px rgba(16, 32, 63, 0.12);
  --ld-us-bg: #eaf1ff;

  margin: 0;
  background: var(--ld-bg);
  color: var(--ld-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body.ld.theme-dark {
  --ld-bg: #0b1220;
  --ld-bg-alt: #101a2e;
  --ld-ink: #e2e8f0;
  --ld-muted: #9fb0c8;
  --ld-line: #273b58;
  --ld-card: #131c2e;
  --ld-accent: #22d3ee;
  --ld-accent-hover: #67e3f6;
  --ld-accent-ink: #062a33;
  --ld-accent-text: #5fdff4;
  --ld-chip-bg: #1c2a44;
  --ld-chip-ink: #c5d3e8;
  --ld-hero-bg: linear-gradient(160deg, #0b1220 0%, #14264a 55%, #1e3559 100%);
  --ld-hero-ink: #f1f5f9;
  --ld-hero-soft: rgba(226, 232, 240, 0.82);
  --ld-hero-line: rgba(148, 163, 184, 0.55);
  --ld-hero-btn-bg: #22d3ee;
  --ld-hero-btn-ink: #062a33;
  --ld-hero-btn-hover: #67e3f6;
  --ld-media-bg: #0a1426;
  --ld-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ld-us-bg: #142a44;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 既定の余白を消す。:where で詳細度を 0 にして、下の各部品の指定が勝つようにする */
:where(.ld) :where(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
}

:where(.ld) :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.ld a {
  color: var(--ld-accent-text);
}

.ld a:focus-visible,
.ld summary:focus-visible {
  outline: 2px solid var(--ld-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.ld-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ld-narrow {
  max-width: 820px;
}

.ld-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ld-skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: #ffffff;
  color: #0c3fbe;
  font-weight: 600;
}

.ld-skip:focus {
  top: 0.75rem;
}

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

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ld a.ld-btn-primary {
  background: var(--ld-accent);
  color: var(--ld-accent-ink);
}

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

.ld a.ld-btn-ghost {
  border-color: var(--ld-line);
  background: transparent;
  color: var(--ld-ink);
}

.ld a.ld-btn-ghost:hover {
  border-color: var(--ld-accent);
}

.ld-btn-small {
  min-height: 2.3rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

.ld-btn-block {
  display: flex;
  width: 100%;
}

.ld a.ld-btn:focus-visible {
  outline: 2px solid var(--ld-accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* 最初の画面と最後の帯 (グラデーションの上) のボタン */
.ld-hero a.ld-btn-primary,
.ld-final a.ld-btn-primary,
.ld a.ld-btn-light {
  background: var(--ld-hero-btn-bg);
  color: var(--ld-hero-btn-ink);
}

.ld-hero a.ld-btn-primary:hover,
.ld-final a.ld-btn-primary:hover,
.ld a.ld-btn-light:hover {
  background: var(--ld-hero-btn-hover);
}

.ld-hero a.ld-btn-ghost,
.ld-final a.ld-btn-ghost {
  border-color: var(--ld-hero-line);
  color: var(--ld-hero-ink);
}

.ld-hero a.ld-btn-ghost:hover,
.ld-final a.ld-btn-ghost:hover {
  border-color: var(--ld-hero-ink);
  background: rgba(255, 255, 255, 0.1);
}

.ld-hero a:focus-visible,
.ld-final a:focus-visible,
.ld-header a:focus-visible {
  outline-color: #ffffff;
}

.ld-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ld-cta-center {
  justify-content: center;
}

/* ---------- ヘッダー (最初の画面の上に重ねる) ---------- */

.ld-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.ld-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.ld a.ld-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ld-hero-ink);
  text-decoration: none;
  white-space: nowrap;
}

/* ロゴ (logo.png の絵の部分。背景は透明)。ライト・ダークとも地にそのまま置く (羽根の間の隙間は
   地の色になる。2026-11-14 ユーザー指示で白い丸を外した) */
.ld-brand-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
}

.ld-brand-name {
  font-size: 1.3rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.ld-brand-first {
  font-weight: 800;
}

.ld-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.ld-nav a,
.ld a.ld-header-link {
  color: var(--ld-hero-soft);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
}

.ld-nav a:hover,
.ld a.ld-header-link:hover {
  color: var(--ld-hero-ink);
  text-decoration: underline;
}

.ld-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------- 最初の画面 ---------- */

.ld-hero {
  padding: 7.25rem 0 4rem;
  background: var(--ld-hero-bg);
  color: var(--ld-hero-ink);
}

.ld-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 3rem;
}

.ld-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ld-h1-line {
  display: block;
  text-wrap: balance;
}

/* 2 行目は主の見出しに添える 1 文 */
.ld-h1-line + .ld-h1-line {
  margin-top: 0.7rem;
  color: var(--ld-hero-soft);
  font-size: 0.56em;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ld-hero-sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--ld-hero-soft);
  font-size: 1.15rem;
  line-height: 1.55;
}

.ld-hero .ld-cta-row {
  margin-top: 1.75rem;
}

.ld-hero-note {
  margin-top: 0.85rem;
  color: var(--ld-hero-soft);
  font-size: 0.95rem;
}

.ld-hero-scope {
  margin-top: 1.5rem;
  max-width: 34rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ld-hero-line);
  color: var(--ld-hero-soft);
  font-size: 0.92rem;
}

.ld-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--ld-media-bg);
}

.ld-hero-media .ld-video {
  box-shadow: 0 18px 44px rgba(3, 12, 36, 0.4);
}

.ld-hero-media figcaption,
.ld-split-media figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  text-align: center;
}

.ld-hero-media figcaption {
  color: var(--ld-hero-soft);
}

.ld-split-media figcaption {
  color: var(--ld-muted);
}

/* ---------- 数字の帯 ---------- */

.ld-strip {
  border-bottom: 1px solid var(--ld-line);
  background: var(--ld-bg);
}

.ld-strip-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.ld-strip-list li {
  color: var(--ld-muted);
  font-size: 0.95rem;
  text-align: center;
}

.ld-strip-list strong {
  display: block;
  color: var(--ld-ink);
  font-size: 1.15rem;
  font-weight: 750;
}

/* ---------- 段 ---------- */

.ld-section {
  padding: 4.5rem 0;
  scroll-margin-top: 1rem;
}

.ld-section-alt {
  background: var(--ld-bg-alt);
}

.ld-section h2,
.ld-final h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ld-lead {
  margin-top: 0.8rem;
  max-width: 46rem;
  color: var(--ld-muted);
  font-size: 1.08rem;
}

.ld-note,
.ld-more {
  margin-top: 1.5rem;
  color: var(--ld-muted);
}

.ld-more a {
  font-weight: 600;
}

/* ---------- サンプルのカード ---------- */

.ld-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.ld-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  background: var(--ld-card);
  box-shadow: var(--ld-shadow);
}

.ld-card-video {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

.ld-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
}

.ld-card h3 {
  font-size: 1.3rem;
  font-weight: 720;
}

.ld-card-flow {
  display: grid;
  gap: 0.15rem;
  color: var(--ld-ink);
  font-size: 0.98rem;
}

.ld-card-source {
  color: var(--ld-muted);
}

.ld-arrow {
  color: var(--ld-accent-text);
  font-weight: 700;
}

.ld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ld-chips li {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--ld-chip-bg);
  color: var(--ld-chip-ink);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ld-card-price {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ld-line);
}

.ld-card-price-label,
.ld-card-price-alt {
  color: var(--ld-muted);
  font-size: 0.85rem;
}

.ld-card-price-value {
  font-size: 1.9rem;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- 使い方 ---------- */

.ld-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
  counter-reset: ld-step;
}

.ld-steps li {
  position: relative;
  padding: 1.4rem 1.25rem 1.3rem;
  border: 1px solid var(--ld-line);
  border-radius: 14px;
  background: var(--ld-card);
  counter-increment: ld-step;
}

.ld-steps li::before {
  content: counter(ld-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--ld-accent);
  color: var(--ld-accent-ink);
  font-weight: 750;
}

.ld-steps h3,
.ld-features h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.ld-steps p,
.ld-features p {
  margin-top: 0.35rem;
  color: var(--ld-muted);
}

/* ---------- 表 ---------- */

.ld-table-wrap {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--ld-line);
  border-radius: 14px;
  background: var(--ld-card);
}

.ld-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.ld-table th,
.ld-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ld-line);
  text-align: left;
  vertical-align: top;
}

.ld-table tbody tr:last-child th,
.ld-table tbody tr:last-child td {
  border-bottom: 0;
}

.ld-table thead th {
  background: var(--ld-bg-alt);
  font-size: 0.9rem;
  font-weight: 700;
}

.ld-table thead td {
  background: var(--ld-bg-alt);
}

.ld-table tbody th {
  font-weight: 600;
}

.ld-price-table td,
.ld-price-table thead tr:last-child th,
.ld-price-table thead th[colspan] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ld-price-table thead th[colspan] {
  border-bottom: 0;
  padding-bottom: 0.2rem;
  text-align: center;
}

/* 方式ごとの 2 列の境目 */
.ld-price-table thead th[colspan],
.ld-price-table thead tr:last-child th:nth-child(odd),
.ld-price-table tbody td:nth-child(even) {
  border-left: 1px solid var(--ld-line);
}

.ld-price-table thead tr:last-child th {
  padding-top: 0.2rem;
  color: var(--ld-muted);
  font-weight: 600;
}

.ld-compare-table .ld-compare-us {
  background: var(--ld-us-bg);
  font-weight: 650;
}

.ld-notes {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--ld-muted);
  font-size: 0.95rem;
}

.ld-notes li {
  position: relative;
  padding-left: 1.1rem;
}

.ld-notes li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ld-muted);
}

/* ---------- 得られるもの ---------- */

.ld-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
}

.ld-features li {
  padding-top: 1rem;
  border-top: 3px solid var(--ld-accent);
}

/* ---------- ドローン ---------- */

.ld-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.ld-checks {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.ld-checks li {
  position: relative;
  padding-left: 1.9rem;
}

.ld-checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3em;
  width: 0.5rem;
  height: 0.85rem;
  border: solid var(--ld-accent-text);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.ld-split-media .ld-video {
  box-shadow: var(--ld-shadow);
}

/* ---------- FAQ ---------- */

.ld-faq {
  margin-top: 1.75rem;
  border-top: 1px solid var(--ld-line);
}

.ld-faq details {
  border-bottom: 1px solid var(--ld-line);
}

.ld-faq summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-size: 1.08rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.ld-faq summary::-webkit-details-marker {
  display: none;
}

.ld-faq summary::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.45rem;
  border: solid var(--ld-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.ld-faq details[open] summary::after {
  margin-top: -0.15rem;
  transform: rotate(-135deg);
}

.ld-faq details p {
  padding: 0 2.5rem 1.1rem 0;
  color: var(--ld-muted);
}

/* ---------- 最後の帯 ---------- */

.ld-final {
  padding: 4rem 0;
  background: var(--ld-hero-bg);
  color: var(--ld-hero-ink);
  text-align: center;
}

.ld-final .ld-cta-row {
  margin-top: 1.5rem;
}

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

.ld-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--ld-line);
  background: var(--ld-bg);
  color: var(--ld-muted);
  font-size: 0.9rem;
}

/* 左 = ロゴと名前の 1 行、右 = リンク。高さの中央でそろえる */
.ld-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.ld-footer-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* フッターは白・紺の地なので、ロゴをそのまま置く (隙間は地の色) */
.ld-footer-logo {
  display: block;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
}

.ld-footer-brand {
  color: var(--ld-ink);
  font-weight: 700;
}

.ld-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

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

/* ---------- 狭い画面 ---------- */

@media (max-width: 960px) {
  .ld-nav {
    display: none;
  }

  .ld-header-actions {
    margin-left: auto;
  }

  .ld-hero {
    padding: 6rem 0 3rem;
  }

  .ld-hero-grid,
  .ld-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .ld-hero-media,
  .ld-split-media {
    max-width: 32rem;
    width: 100%;
    margin: 0 auto;
  }

  .ld-cards,
  .ld-steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .ld-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-section {
    padding: 3.25rem 0;
  }
}

@media (max-width: 720px) {
  .ld-strip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-features {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 表は 1 行を 1 枚のカードにする (列の名前は td の data-label) */
  .ld-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .ld-table,
  .ld-table tbody,
  .ld-table tr,
  .ld-table th,
  .ld-table td {
    display: block;
  }

  .ld-table tr {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ld-line);
  }

  .ld-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ld-table th,
  .ld-table td,
  .ld-price-table tbody td:nth-child(even) {
    padding: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .ld-table tbody th {
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
  }

  .ld-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.18rem 0;
    text-align: right;
  }

  .ld-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--ld-muted);
    font-weight: 400;
    text-align: left;
  }

  .ld-compare-table .ld-compare-us {
    margin: 0.2rem -0.5rem 0;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .ld-container {
    padding: 0 1rem;
  }

  .ld a.ld-header-link {
    display: none;
  }

  .ld-brand-name {
    font-size: 1.15rem;
  }

  .ld-hero .ld-cta-row .ld-btn,
  .ld-final .ld-cta-row .ld-btn {
    flex: 1 1 100%;
  }

  .ld-hero-sub {
    font-size: 1.05rem;
  }
}
