/* flplab 販売LP。色トークンはアプリ本体(style.css)の値をそのまま引き継ぎ、無彩色+
   アクセント青1色という同じ制約の中でデザインする（LPだけの新しいアクセント色は作らない。
   色の多様性が要る場面＝施設マーカーの色は、アプリ本体が実際に生成する色そのものを見せる
   assets/hero-map.svg に任せる）。

   一点だけアプリ本体と異なる面を導入している: ヒーロー帯に敷く濃紺 --lp-ink。これは
   「地図・測量図」の主題から取った色で、装飾ではなく本文セクションの白地と対にして
   ページ全体の一枚の構図を作るために使う。 */

:root {
  --lp-ink: #10192b;
  --lp-ink-soft: #1b2740;
  --lp-paper: #f7f8fa;
  --lp-surface: #ffffff;
  --lp-line: #d7dbe3;
  --lp-text: #1c1f23;
  --lp-text-dim: #5c636e;
  --lp-text-on-ink: #eef1f6;
  --lp-text-on-ink-dim: #a9b3c6;
  --lp-accent: #2563eb;
  --lp-accent-hover: #1d4ed8;
  --lp-accent-subtle: #eef2fd;

  --radius-sm: 8px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Noto Sans JP", "Segoe UI Variable Text", "Segoe UI", "Yu Gothic UI",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--lp-text);
  background: var(--lp-surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* 数値は桁を揃えて「厳密である」ことを視覚でも裏付ける */
.lp-compare-table,
.lp-model-item dt {
  font-variant-numeric: tabular-nums;
}

/* --- 共通ボタン --- */
.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.lp-button-primary {
  background: var(--lp-accent);
  color: #ffffff;
}

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

.lp-button-ghost {
  background: transparent;
  border: 1px solid var(--lp-text-on-ink-dim);
  color: var(--lp-text-on-ink);
}

.lp-button-ghost:hover {
  border-color: var(--lp-text-on-ink);
}

/* --- トップバー --- */
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-line);
}

.lp-topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--lp-text);
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}

.lp-nav a {
  text-decoration: none;
  color: var(--lp-text-dim);
}

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

.lp-nav-cta {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--lp-accent-subtle);
  color: var(--lp-accent) !important;
}

/* --- ヒーロー --- */
.lp-hero {
  background: linear-gradient(180deg, var(--lp-ink) 0%, var(--lp-ink-soft) 100%);
  color: var(--lp-text-on-ink);
}

.lp-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.lp-hero-text h1 {
  margin: 0 0 20px;
  font-size: 38px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lp-hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--lp-text-on-ink-dim);
  font-size: 16px;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.lp-hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--lp-text-on-ink-dim);
}

.lp-hero-figure {
  margin: 0;
  background: var(--lp-paper);
  border-radius: var(--radius-md);
  padding: 12px;
}

.lp-hero-figure img {
  border-radius: calc(var(--radius-md) - 4px);
}

.lp-hero-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--lp-ink-soft);
  text-align: center;
}

/* --- セクション共通 --- */
.lp-section {
  background: var(--lp-surface);
}

.lp-section-sunken {
  background: var(--lp-paper);
}

.lp-section-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* ライブデモだけは読みやすい行長(880px)より、実際に操作できる広さを優先する。 */
#demo .lp-section-inner {
  max-width: 1200px;
}

.lp-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  max-width: 24em;
}

.lp-section-lead {
  margin: 0 0 32px;
  max-width: 38em;
  color: var(--lp-text-dim);
}

/* --- 比較表 --- */
.lp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.lp-compare-table th,
.lp-compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--lp-line);
  vertical-align: top;
}

.lp-compare-table thead th {
  color: var(--lp-text-dim);
  font-weight: 500;
  font-size: 13px;
}

.lp-compare-table tbody th,
.lp-compare-table tbody td:first-child {
  font-weight: 700;
  width: 18%;
  white-space: nowrap;
}

.lp-compare-table tbody td:last-child {
  color: var(--lp-accent-hover);
}

/* --- 6モデルの一覧 --- */
.lp-model-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--lp-line);
  border: 1px solid var(--lp-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lp-model-item {
  background: var(--lp-surface);
  padding: 20px 18px;
}

.lp-model-item dt {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.lp-model-item dd {
  margin: 0;
  color: var(--lp-text-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* --- 製品版の機能一覧 --- */
.lp-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.lp-feature-list li {
  padding-left: 20px;
  position: relative;
  color: var(--lp-text);
}

.lp-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-accent);
}

/* --- ライブデモ枠 ---
   四隅の角括弧は測量図・製図の位置決め記号を模した唯一の装飾。囲みの罫線や
   影で「カード」にはせず、この枠だけに絞る（過剰な装飾を避ける）。 */
.lp-demo-frame {
  position: relative;
  padding: 20px;
  background: var(--lp-surface);
  border-radius: var(--radius-md);
}

.lp-demo-frame::before,
.lp-demo-frame::after,
.lp-demo-frame > iframe {
  box-sizing: border-box;
}

.lp-demo-frame::before,
.lp-demo-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--lp-accent);
  pointer-events: none;
}

.lp-demo-frame::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
}

.lp-demo-frame::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
}

.lp-demo-frame iframe {
  width: 100%;
  height: 640px;
  border: 1px solid var(--lp-line);
  border-radius: var(--radius-sm);
  background: var(--lp-paper);
}

.lp-demo-fallback {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--lp-text-dim);
}

.lp-demo-fallback a {
  color: var(--lp-accent);
  font-weight: 700;
}

/* --- 価格/CTA --- */
.lp-pricing {
  text-align: left;
}

/* --- フッター --- */
.lp-footer {
  background: var(--lp-ink);
  color: var(--lp-text-on-ink-dim);
}

.lp-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.8;
}

.lp-footer-inner p {
  margin: 0;
  max-width: 46em;
}

.lp-footer-nav {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.lp-footer-nav a {
  text-decoration: none;
  color: var(--lp-text-on-ink);
  font-weight: 500;
}

.lp-footer-nav a:hover {
  color: #ffffff;
}

/* --- レスポンシブ --- */
@media (max-width: 800px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 20px;
  }

  .lp-hero-text h1 {
    font-size: 30px;
  }

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

  .lp-section-inner {
    padding: 48px 20px;
  }

  .lp-compare-table {
    font-size: 13px;
  }

  .lp-demo-frame iframe {
    height: 520px;
  }
}

@media (max-width: 520px) {
  .lp-nav {
    gap: 12px;
  }

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

  .lp-model-grid {
    grid-template-columns: 1fr;
  }

  .lp-compare-table thead {
    display: none;
  }

  .lp-compare-table tbody tr {
    display: block;
    padding: 12px 0;
  }

  .lp-compare-table tbody td {
    display: block;
    border-bottom: none;
    padding: 4px 0;
  }

  .lp-compare-table tbody td:first-child {
    color: var(--lp-text-dim);
    font-weight: 500;
    width: auto;
  }
}
