/*
 * lp.css — 公開TOP専用のレイアウト。
 * 色・文字・角丸・影・部品(appbar / btn / card / chip / kv / report / evidence / table)は
 * /app と同じ styles.css を共有し、ここでは配置と余白だけを定義する。
 * トークン(:root)の再定義、グラデーション、飾り図形、動きは置かない(DESIGN.md §3 / §4)。
 * 例外は DESIGN.md §3.1 で合意した背面メディアアート(/lp-art.js)で、ここではその
 * レイヤー配置、透過面、見出しの太さだけを持つ。
 */

/* ---------- surface ---------- */
/* 背面メディアアート(DESIGN.md §3.1)。通常フローの内容より背面、body 背景より前面。操作は奪わない。 */
#lp-art-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

body.lp-surface {
  height: auto;
  min-height: 100%;
  font-size: 16px;
  line-height: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.lp-surface a:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- header ---------- */
.lp-surface .appbar {
  top: 0;
}

.lp-surface .appbar .product {
  align-items: center;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.lp-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

.lp-header-cta {
  white-space: nowrap;
}

/* ---------- section rhythm ---------- */
.lp-section {
  padding: 64px 0;
}

.lp-section + .lp-section {
  border-top: 1px solid var(--border-light);
}

.lp-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.lp-section-heading h2 {
  margin: 0 0 8px;
}

.lp-section-heading p {
  margin: 0;
  color: var(--text-2);
}

/* ---------- typography ---------- */
.lp-surface h1 {
  margin: 0;
  font-size: 36px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.lp-surface h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.lp-surface h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.lp-lead {
  margin: 16px 0 0;
  color: var(--text-2);
}

.lp-lead + .lp-lead {
  margin-top: 8px;
}

.lp-sample-note {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 20px;
}

.lp-note {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 20px;
}

.lp-kicker {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ---------- hero ---------- */
.lp-hero {
  background: color-mix(in srgb, var(--card) 75%, transparent);
  border-bottom: 1px solid var(--border);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.lp-hero-actions {
  margin-top: 24px;
}

.lp-result-mini {
  margin: 0;
  padding: 24px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 20px;
}

.lp-result-mini-head,
.lp-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lp-result-mini .card-title {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
}

.lp-result-mini .report-summary {
  margin: 16px 0 0;
  padding: 16px;
}

.lp-result-mini .report-summary .plan-text {
  font-size: 15px;
  line-height: 24px;
}

.lp-result-mini .report-kicker .chip,
.lp-result-main .report-section h3 .chip {
  margin-left: 4px;
  vertical-align: middle;
}

/* ---------- result sample ---------- */
.lp-result-card {
  margin: 0;
  padding: 24px;
}

.lp-result-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.lp-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
}

.lp-result-main > .report-section + .report-site-assessment {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.lp-result-main .kv .v.small {
  line-height: 20px;
}

.lp-evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-evidence-list .evidence-body p {
  margin: 0;
}

/* ---------- use cases ---------- */
.lp-card-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}

.lp-use-grid .card {
  margin: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-card-index {
  align-self: flex-start;
}

.lp-use-grid .card-title {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 28px;
}

.lp-use-grid .card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}

.lp-use-grid:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.lp-feature-grid .card {
  display: flex;
  flex-direction: column;
}

.lp-feature-grid .lp-card-illustration {
  margin-bottom: 16px;
}

/* ---------- how to start ---------- */
.lp-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.lp-start-copy {
  margin-bottom: 0;
}

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}

.lp-steps li:last-child {
  border-bottom: 1px solid var(--border-light);
}

.lp-step-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 500;
}

.lp-steps h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  line-height: 24px;
}

.lp-steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}

.lp-steps .guide-example {
  margin-top: 8px;
}

/* ---------- explicit placeholder sections ---------- */
.lp-placeholder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.lp-placeholder-badge {
  margin: 0;
}

.lp-placeholder-note {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 20px;
}

.lp-pricing .table-wrap {
  margin: 0;
}

.lp-pricing table {
  min-width: 0;
  font-size: 14px;
}

.lp-pricing thead th {
  color: var(--text);
  font-size: 14px;
  white-space: normal;
}

.lp-pricing thead th .chip {
  margin-left: 4px;
}

.lp-pricing tbody th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
  vertical-align: middle;
}

.lp-pricing tr:last-child th {
  border-bottom: none;
}

/* ---------- faq ---------- */
.lp-faq-list {
  margin: 0;
  max-width: 800px;
}

.lp-faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
}

.lp-faq-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.lp-faq-item dt {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.lp-faq-item dd {
  margin: 8px 0 0;
  color: var(--text-2);
}

.lp-faq-item.lp-placeholder-inline {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- final cta ---------- */
.lp-cta {
  background: color-mix(in srgb, var(--card) 75%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.lp-cta .lp-container {
  max-width: 720px;
}

.lp-cta .lp-lead {
  margin-top: 8px;
}

.lp-cta .btn {
  margin-top: 24px;
}

/* ---------- footer ---------- */
.lp-footer {
  padding: 48px 0;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
}

.lp-footer-brand {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.lp-footer-brand b {
  color: var(--blue);
  font-weight: 500;
}

.lp-footer p {
  margin: 8px 0 0;
  max-width: 400px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}

.lp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 32px;
}

.lp-footer li {
  font-size: 14px;
  line-height: 24px;
}

.lp-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.lp-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.lp-footer-copy {
  margin-top: 32px;
  max-width: none;
  font-size: 13px;
  line-height: 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lp-hero-grid,
  .lp-result-grid,
  .lp-start-grid,
  .lp-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-hero-grid {
    gap: 32px;
  }
}

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

  .lp-header-cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  .lp-section {
    padding: 48px 0;
  }

  .lp-container {
    padding: 0 16px;
  }

  .lp-surface h1 {
    font-size: 28px;
    line-height: 40px;
  }

  .lp-surface h2 {
    font-size: 22px;
    line-height: 32px;
  }

  .lp-result-mini,
  .lp-result-card,
  .lp-use-grid .card {
    padding: 16px;
  }

  /* 狭い画面では6枚を横スクロールのレールにする(scriptなし、自動では動かない) */
  .lp-use-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 320px);
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
  }

  .lp-use-grid .card {
    scroll-snap-align: start;
  }

  .lp-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .lp-footer ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lp-form-example {
  padding: 24px;
  margin: 0;
}

.lp-form-example-field {
  border: 2px solid var(--error);
  border-radius: 4px;
  padding: 12px;
  overflow-wrap: anywhere;
}

.lp-form-example-error {
  color: var(--error);
}

@media (max-width: 360px) {
  .lp-header-cta {
    padding: 8px 10px;
  }
}
