/* /lp の見た目(R37: モック v4 = docs/mock/lp-mobile.dc.html と lp-desktop.dc.html)。/demo はこのファイルを読まない。
   スマホを先に書き、1000px 以上で PC の並びにする。モックは明るい画面だけなので、/lp は暗い設定の端末でも明るいまま。 */

body.lp {
  --accent: #1d4ed8;
  --accent-strong: #1e40af;
  --accent-soft: #e8efff;
  --accent-ink: #ffffff;
  --text: #111827;
  --sub: #374151;
  --muted: #6b7280;
  --soft: #4b5563;
  --line: #e3e8f0;
  --line-2: #d5dbe4;
  --band: #f5f7fa;
  --bg: #ffffff;
  --surface: #ffffff;
  --notice: #f5f7fa;
  --warn: #9a5b10;
  --shadow: none;
  --radius: 14px;
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
body.lp [hidden] { display: none !important; }
body.lp h1, body.lp h2, body.lp h3, body.lp p { margin: 0; }
body.lp a { color: var(--accent); }

.lp-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp-sec { padding: 40px 0; }
.lp-band { background: var(--band); }
.lp-only-desktop { display: none !important; }

/* ---- ヘッダー(PCは上に追従) ---- */
.lp-header { border-bottom: 1px solid #eef0f3; background: rgba(255, 255, 255, 0.96); }
.lp-header-in { display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: 0 auto; padding: 14px 20px; }
.lp-brand { display: flex; align-items: center; gap: 8px; color: var(--text) !important; font-weight: 700; text-decoration: none; }
.lp-brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; }
.lp-nav { display: none; }

/* ---- ボタン ---- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.lp-btn-outline { border: 1.5px solid var(--accent); color: var(--accent) !important; background: #fff; }
.lp-btn-fill { background: var(--accent); color: #fff !important; }
.lp-btn-fill:hover { background: var(--accent-strong); }
.lp-btn:focus-visible, .lp-chip:focus-visible, .lp-tab:focus-visible, .lp-submit:focus-visible, .lp-cbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- スマホ: 下に2つのボタンを追従 ---- */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid #e5e7eb; box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.06);
}
.lp-sticky .lp-btn { flex: 1 1 0; }

/* ---- 1 無料体験 ---- */
.lp-try { padding: 28px 0 32px; background: linear-gradient(#ffffff, #f3f6fc); }
.lp-try-grid { display: flex; flex-direction: column; gap: 16px; }
.lp-try-copy { display: flex; flex-direction: column; gap: 16px; }
.lp-badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
body.lp h1 { font-size: 28px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.lp-try-sub { font-size: 15px; color: var(--soft); }
.lp-try-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lp-try-card form { display: flex; flex-direction: column; gap: 12px; }
.lp-try-card-title { font-size: 15px; font-weight: 700; }
.lp-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lp-samples-label { font-size: 12px; color: var(--muted); }
.lp-chip {
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--sub);
  font: inherit; font-size: 13px; cursor: pointer;
}
.lp-chip[aria-pressed="true"] { border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.lp-input-label { font-size: 12px; color: var(--muted); }
body.lp textarea {
  width: 100%; height: 104px; min-height: 0; padding: 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--text);
  font: inherit; font-size: 15px; line-height: 1.6; resize: vertical;
}
body.lp textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.lp-counter-row { margin-top: -6px !important; text-align: right; }
.lp-counter-row .counter { font-size: 12px; }
.lp-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; border: 0; border-radius: 12px; background: var(--accent); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.lp-submit:hover { background: var(--accent-strong); }
.lp-submit:disabled { opacity: 0.55; cursor: progress; }
.lp-notice { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lp-try-card .status { margin: 0; min-height: 0; font-size: 14px; }
.lp-try-card .status:empty { display: none; }

/* 送ったあとの結果(既存の3つの見本を /lp の色で) */
.lp-result { max-width: 1120px; margin: 24px auto 0; padding: 0 20px; }
.lp-result-lead { margin-bottom: 12px !important; font-size: 12px; color: var(--muted); }
body.lp .panel { border-color: var(--line); box-shadow: none; }
body.lp .preview-head { display: none; }
body.lp .more { box-shadow: none; }

/* ---- 節の見出し ---- */
.lp-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.lp-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
body.lp h2 { font-size: 22px; line-height: 1.4; font-weight: 700; }
.lp-lead { font-size: 14px; color: var(--soft); }
.lp-head-row { flex-direction: row; align-items: baseline; justify-content: space-between; }

/* ---- 2 しくみ ---- */
.lp-tabs-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.lp-tabs-label { font-size: 13px; color: var(--muted); }
.lp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tab {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--sub);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.lp-tab[aria-selected="true"] { border: 1.5px solid var(--accent); background: var(--accent); color: #fff; }
.lp-how-grid { display: flex; flex-direction: column; gap: 18px; }
.lp-how-step { display: flex; flex-direction: column; gap: 14px; }
.lp-step-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.lp-num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; }
.lp-how-arrow { align-self: center; display: flex; color: #c3cad6; }

.lp-phone {
  align-self: center; width: 230px; box-sizing: border-box;
  border-radius: 32px; border: 7px solid #1f2937; background: #dde6f0;
  display: flex; flex-direction: column; overflow: hidden;
}
.lp-phone-in { height: 260px; }
.lp-phone-out { height: 320px; }
.lp-phone-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; font-size: 12px; font-weight: 700; border-bottom: 1px solid #e5e7eb; }
.lp-phone-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; }
.lp-phone-time { align-self: center; font-size: 10px; color: var(--muted); }
.lp-bubble-row { display: flex; gap: 6px; align-items: flex-end; }
.lp-avatar { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #9aa5b5; }
.lp-bubble { padding: 8px 10px; border-radius: 4px 14px 14px 14px; background: #fff; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.lp-phone-notice { flex-direction: row; align-items: flex-start; padding: 12px 10px; }
.lp-phone-notice .lp-bubble { font-size: 11px; white-space: normal; }
.lp-n-draft { white-space: pre-line; }
.lp-avatar-ai { display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; }
.lp-n-title { font-weight: 700; }
.lp-n-line { color: var(--soft); }
.lp-n-draft { margin-top: 6px !important; padding-top: 6px; border-top: 1px dashed var(--line-2); color: var(--sub); }
.lp-phone-actions { margin-top: auto; display: flex; gap: 6px; padding: 10px; background: #fff; border-top: 1px solid #e5e7eb; }
.lp-phone-actions span { flex: 1 1 0; text-align: center; padding: 6px 0; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11px; }
.lp-phone-actions .on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.lp-sheet { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07); }
.lp-sheet-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; font-size: 11px; color: var(--soft); }
.lp-sheet-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.lp-sheet-bar i:nth-child(2) { background: #fbbf24; }
.lp-sheet-bar i:nth-child(3) { background: #34d399; }
.lp-sheet-bar span { margin-left: 6px; }
.lp-sheet-grid { display: grid; grid-template-columns: 20px 42px 60px 46px minmax(0, 1fr) 58px; font-size: 10px; line-height: 1.45; }
.lp-sheet-grid > div { padding: 4px; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; overflow-wrap: anywhere; }
.lp-sheet-grid .h { background: #f1f3f4; color: var(--muted); text-align: center; padding: 4px 2px; }
.lp-sheet-grid .b { font-weight: 700; }
.lp-sheet-grid .o { color: var(--muted); }
.lp-sheet-grid .n { background: #fff4c2; border-color: #f2e2a0; border-bottom: 0; }
.lp-sheet-grid .h:nth-last-child(6) { border-bottom: 0; }
.lp-sheet-grid .s { font-weight: 700; color: #92400e; }

.lp-how-note { display: flex; gap: 10px; margin-top: 18px !important; padding: 14px 16px; border-radius: 12px; background: var(--band); font-size: 14px; color: var(--sub); }
.lp-how-note svg { flex: none; margin-top: 3px; color: var(--accent); }

/* ---- 3 特徴 ---- */
.lp-feature-grid { display: flex; flex-direction: column; gap: 10px; }
.lp-feature { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: #fff; }
.lp-feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.lp-feature p { font-size: 14px; color: var(--soft); }
.lp-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.lp-icon-sm { width: 36px; height: 36px; border-radius: 10px; }
.lp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px !important; }
.lp-tags span { padding: 2px 8px; border-radius: 6px; background: #f3f4f6; font-size: 12px; color: var(--sub); }
.lp-tags .lp-tags-label { padding: 0; background: none; color: var(--muted); }
.lp-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.lp-scope-box { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; border-radius: 16px; background: #fff; }
.lp-scope-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.lp-tag { flex: none; padding: 2px 10px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; }
.lp-tag-std { background: var(--accent); }
.lp-tag-add { background: var(--soft); }
.lp-scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.lp-scope-list li { display: flex; align-items: center; gap: 6px; }
.lp-scope-list svg { flex: none; color: var(--accent); }
.lp-scope-add { color: var(--sub); }
.lp-scope-add svg { color: var(--muted); }

/* ---- 4 導入の流れ ---- */
.lp-flow-badge { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.lp-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lp-step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; }
.lp-step-icon svg { width: 22px; height: 22px; }
.lp-steps strong { font-size: 13px; }
.lp-steps li > span:last-child { font-size: 11px; color: var(--muted); }

/* ---- 5 料金 ---- */
.lp-plans { display: flex; flex-direction: column; gap: 12px; }
.lp-plan { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: #fff; }
.lp-plan-head { display: flex; flex-direction: column; gap: 6px; }
.lp-plan-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.lp-plan-name svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.lp-plan-target { font-size: 14px; color: var(--sub); }
.lp-fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.lp-fees > div { padding: 12px; border-radius: 10px; background: var(--band); }
.lp-fees dt { font-size: 12px; color: var(--muted); }
.lp-fees dd { margin: 0; font-weight: 700; }
.lp-price-num { font-size: 26px; line-height: 1.2; }
.lp-price-unit { font-size: 15px; }
.lp-tax { margin-left: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.lp-plan-extra { padding-top: 10px; border-top: 1px solid #eef0f3; font-size: 13px; color: var(--soft); }
.lp-notes { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 16px; border-radius: 14px; background: #fff; }
.lp-notes > div { display: flex; gap: 8px; }
.lp-notes svg { flex: none; margin-top: 3px; color: var(--accent); }
.lp-notes strong { display: block; font-size: 14px; }
.lp-notes p { font-size: 13px; color: var(--soft); }

/* ---- 6 かんたんプラン診断(diagnosis.js が組み立てる) ---- */
body.lp .diagnosis { padding: 0; margin: 0; border: 0; background: none; box-shadow: none; }
body.lp .diagnosis .section-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
body.lp .dg-lead { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.dg-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dg-progress-track { flex: 1 1 auto; height: 6px; border-radius: 3px; background: #eef0f3; overflow: hidden; }
.dg-progress-bar { display: block; height: 6px; width: 0; background: var(--accent); transition: width 0.2s; }
.dg-progress-count { font-size: 13px; color: var(--muted); }
body.lp .dg-question { padding: 18px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; }
body.lp .dg-question legend { float: left; width: 100%; margin-bottom: 12px; font-size: 15px; }
body.lp .dg-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; clear: both; }
body.lp .dg-option span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff; text-align: center; font-size: 14px; line-height: 1.4;
}
body.lp .dg-option input:checked + span { border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent); }
body.lp .dg-result { border-top: 0; padding: 18px; border-radius: 14px; background: var(--band); }
body.lp .dg-email { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
body.lp .dg-email .primary { border-radius: 12px; height: 48px; padding: 0 28px; }

/* ---- 7 データの扱い ---- */
.lp-data { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-data li { display: flex; align-items: center; gap: 12px; font-size: 15px; }

/* ---- 8 よくある質問 ---- */
.lp-faq-grid { display: flex; flex-direction: column; gap: 8px; }
.lp-faq-grid details { border-radius: 12px; background: #fff; }
.lp-faq-grid summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none;
}
.lp-faq-grid summary::-webkit-details-marker { display: none; }
.lp-faq-grid summary svg { flex: none; color: #9ca3af; transition: transform 0.15s; }
.lp-faq-grid details[open] summary svg { transform: rotate(180deg); }
.lp-faq-grid details p { padding: 0 16px 14px; font-size: 14px; color: var(--soft); }

/* ---- 9 導入のご相談 ---- */
.lp-consult { background: var(--accent); color: #fff; }
.lp-consult-grid { display: flex; flex-direction: column; gap: 14px; }
.lp-consult-grid > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.lp-consult-chips { display: flex; gap: 6px; }
.lp-consult-chips span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 12px; font-weight: 700; }
.lp-consult-actions { display: flex; flex-direction: column; gap: 12px; }
.lp-cbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.lp-cbtn-fill { background: #fff; color: var(--accent) !important; }
.lp-cbtn-outline { border: 1.5px solid #fff; color: #fff !important; }
.lp-cbtn-outline:only-child { background: #fff; color: var(--accent) !important; }

/* ---- フッター ---- */
.lp-footer { padding: 22px 0 96px; font-size: 12px; color: var(--muted); }
.lp-footer-in { display: flex; flex-direction: column; gap: 8px; }
.lp-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lp-legal a { color: var(--muted) !important; text-decoration: none; }
.lp-legal a:hover { color: var(--accent) !important; text-decoration: underline; }
.lp-copyright { margin: 0; }

/* ---- PC(1000px 以上) ---- */
@media (min-width: 1000px) {
  body.lp { font-size: 16px; }
  .lp-only-desktop { display: revert !important; }
  .lp-only-mobile { display: none !important; }
  .lp-in { padding: 0 80px; max-width: 1280px; }
  .lp-sec { padding: 88px 0; }

  .lp-header { position: sticky; top: 0; z-index: 20; }
  .lp-header-in { padding: 16px 80px; }
  .lp-brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .lp-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
  .lp-nav > a:not(.lp-btn) { color: var(--soft) !important; text-decoration: none; }
  .lp-nav .lp-btn { height: 42px; border-radius: 10px; }
  .lp-nav .lp-btn + .lp-btn { margin-left: -16px; }
  .lp-sticky { display: none; }
  body.lp :target { scroll-margin-top: 80px; }

  .lp-try { padding: 80px 0 88px; }
  .lp-try-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
  .lp-try-copy { gap: 22px; }
  .lp-badge { padding: 5px 12px; font-size: 13px; }
  body.lp h1 { font-size: 50px; line-height: 1.28; }
  .lp-try-sub { font-size: 18px; }
  .lp-checks { display: flex !important; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--sub); }
  .lp-checks li { display: flex; align-items: center; gap: 6px; }
  .lp-checks svg { color: var(--accent); }
  .lp-try-card { gap: 14px; padding: 26px; border-radius: 20px; box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08); }
  .lp-chip { height: 34px; padding: 0 14px; }
  body.lp textarea { height: 120px; padding: 14px; border-radius: 12px; }
  .lp-submit { height: 52px; }

  .lp-head { align-items: center; text-align: center; gap: 8px; margin-bottom: 32px; }
  body.lp h2 { font-size: 32px; }
  .lp-lead { font-size: 16px; }
  .lp-head-row { flex-direction: column; align-items: center; }
  .lp-eyebrow { font-size: 13px; }

  .lp-tabs-wrap { align-items: flex-start; width: max-content; margin: 0 auto 32px; }
  .lp-tab { height: 42px; }
  .lp-how-grid { display: grid; grid-template-columns: 1fr 40px 1.35fr 40px 1fr; align-items: start; gap: 0; }
  .lp-how-step { align-items: center; gap: 16px; }
  .lp-how-step-sheet .lp-sheet { margin-top: 40px; }
  .lp-how-arrow { margin-top: 150px; transform: rotate(-90deg); }
  .lp-phone { width: 240px; }
  .lp-phone-in { height: 300px; }
  .lp-phone-out { height: 330px; }
  .lp-sheet-grid { grid-template-columns: 24px 52px 100px 72px minmax(0, 1fr) 84px; font-size: 12px; }
  .lp-how-note { width: max-content; max-width: 100%; margin: 32px auto 0 !important; align-items: center; padding: 14px 20px; font-size: 15px; }
  .lp-how-note svg { margin-top: 0; }

  .lp-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .lp-feature { flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; }
  .lp-feature .lp-icon { width: 52px; height: 52px; border-radius: 14px; }
  .lp-feature h3 { font-size: 19px; margin-bottom: 8px; }
  .lp-feature p { font-size: 15px; }
  .lp-tags span { padding: 3px 10px; font-size: 13px; }
  .lp-scope { display: grid !important; }

  .lp-steps { gap: 16px; }
  .lp-steps li { gap: 10px; }
  .lp-step-icon { width: 64px; height: 64px; }
  .lp-step-icon svg { width: 28px; height: 28px; }
  .lp-steps strong { font-size: 17px; }
  .lp-steps li > span:last-child { font-size: 14px; }
  .lp-flow-badge { font-size: 15px; }

  .lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .lp-plan { padding: 0; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
  .lp-plan-a { border: 1.5px solid var(--accent); }
  .lp-plan-head { gap: 4px; padding: 18px 24px; background: #f3f4f6; }
  .lp-plan-a .lp-plan-head { background: var(--accent-soft); }
  .lp-plan-name { font-size: 18px; }
  .lp-plan-name svg { width: 22px; height: 22px; padding: 0; background: none; }
  .lp-plan-b .lp-plan-name svg { color: var(--sub); }
  .lp-fees { gap: 0; padding: 20px 24px 12px; }
  .lp-fees > div { padding: 0; background: none; }
  .lp-fees > div + div { padding-left: 20px; border-left: 1px solid #eef0f3; }
  .lp-fees dt { font-size: 13px; }
  .lp-price-num { font-size: 40px; }
  .lp-price-unit { font-size: 18px; }
  .lp-tax { font-size: 13.5px; }
  .lp-plan-extra { padding: 0 24px 22px; border-top: 0; font-size: 14px; }
  .lp-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; padding: 22px 26px; border-radius: 16px; }
  .lp-notes strong { font-size: 15px; }
  .lp-notes p { font-size: 14px; }

  .lp-diagnosis .lp-in { max-width: 880px; }
  body.lp .diagnosis .section-title { font-size: 32px; text-align: center; }
  body.lp .dg-lead { font-size: 15px; text-align: center; margin-bottom: 24px; }
  body.lp .dg-question { padding: 28px; border-radius: 16px; }
  body.lp .dg-question legend { font-size: 18px; margin-bottom: 16px; }
  body.lp .dg-options { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  body.lp .dg-option span { min-height: 52px; border-radius: 12px; font-size: 15px; }

  .lp-data-sec, .lp-faq { padding: 72px 0; }
  .lp-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .lp-data li { gap: 14px; font-size: 16px; font-weight: 700; }
  .lp-data .lp-icon-sm { width: 48px; height: 48px; border-radius: 12px; }
  .lp-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .lp-faq-grid summary { padding: 18px 22px; font-size: 15px; }
  .lp-faq-grid details p { padding: 0 22px 18px; font-size: 15px; }

  .lp-consult { padding: 72px 0; }
  .lp-consult-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
  .lp-consult h2 { font-size: 34px; }
  .lp-consult-chips span { padding: 4px 12px; font-size: 13px; }
  .lp-cbtn { height: 56px; font-size: 16px; }

  .lp-footer { padding: 26px 0; font-size: 13px; }
  .lp-footer-in { flex-direction: row; justify-content: space-between; align-items: center; }
  .lp-legal { gap: 20px; }
  .lp-result { padding: 0 80px; max-width: 1280px; margin-top: 48px; }
}

/* ---- プライバシーポリシー・利用規約(/lp/privacy・/lp/terms。body data-page="lp") ---- */
body[data-page="lp"]:not(.lp) { --accent: #1d4ed8; --text: #111827; --muted: #6b7280; --line: #e3e8f0; background: #fff; color: var(--text); color-scheme: light; }
.legal-page { max-width: 760px; }
.legal-back { margin: 0 0 32px; font-size: 14px; }
.legal-back a { color: var(--accent); }
.legal-back a::before { content: "← "; }
.legal-page h1 { margin-bottom: 8px; font-size: clamp(24px, 4vw, 32px); }
.legal-updated { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.legal-page section { margin-top: 40px; }
.legal-page h2 { margin: 0 0 8px; font-size: 18px; }
.legal-page section p { margin: 0 0 8px; }
.legal-page section ul { margin: 0; padding-left: 1.3em; }
.legal-page section li { margin-bottom: 4px; }
.legal-footer { margin-top: 72px; padding: 24px 0 48px; border-top: 1px solid var(--line); }
.legal-footer .lp-legal { gap: 8px 24px; font-size: 14px; }
.legal-footer .lp-copyright { margin-top: 8px; font-size: 13px; color: var(--muted); }
.lp-legal a[aria-current="page"] { color: var(--text) !important; font-weight: 700; }

/* 見出し・プラン名は行の長さをそろえて折り返す(1文字だけ次の行に残らないように) */
body.lp h2, body.lp h3, .lp-plan-name, .lp-step-head, .lp-feature h3 { text-wrap: balance; }

/* かんたんプラン診断: 1問ずつ(前の質問に戻る・最初からやり直す) */
.dg-nav-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.dg-nav { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dg-back::before { content: "← "; }
.dg-nav:hover { text-decoration: underline; }
.dg-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.lp .dg-result { scroll-margin-top: 80px; }

/* /demo の相談: 連絡先を出さず、このページを見た場所への連絡を案内する(ボタンの代わり) */
.lp-consult-how { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); font-size: 15px; line-height: 1.7; }

/* 送った文の結果(3つの画面)。「しくみ」の節と同じ部品。送った文や通知が長くても枠が伸びる */
.lp-result-grid { margin-top: 8px; }
.lp-result-sub { margin-top: -8px !important; font-size: 13px; color: var(--muted); }
.lp-phone-auto { height: auto; min-height: 260px; }
.lp-phone-auto.lp-phone-out { min-height: 320px; }
.lp-phone-auto .lp-bubble { max-width: 100%; overflow-wrap: anywhere; }
.lp-phone-auto .lp-phone-bar > span { min-width: 0; overflow-wrap: anywhere; }
.lp-card { flex: 1 1 auto; min-width: 0; border-radius: 4px 14px 14px 14px; background: #fff; overflow: hidden; }
.lp-card-text { padding: 8px 10px; font-size: 11px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.lp-card-actions { display: flex; gap: 4px; padding: 8px; border-top: 1px solid #e5e7eb; }
.lp-card-actions span { flex: 1 1 0; text-align: center; padding: 5px 0; border-radius: 6px; background: #eef0f3; font-size: 11px; font-weight: 700; }
.lp-card-actions .on { background: #06c755; color: #fff; }
body.lp .lp-result .gmail { margin-top: 12px; align-self: stretch; }
body.lp .lp-result .more { margin-top: 24px; }
@media (min-width: 1000px) {
  .lp-result-grid .lp-phone { width: 260px; }
}

/* 動画の枠(しくみの節の下) */
.lp-video { margin: 32px auto 0; max-width: 880px; }
.lp-video-title { margin: 0 0 12px; font-size: 18px; text-align: center; }
.lp-video-frame { position: relative; }
.lp-video-play { position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; padding: 0 0 0 4px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18); cursor: pointer; }
.lp-video-play:hover { color: var(--accent-strong); }
.lp-video-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.lp-video-play[hidden] { display: none; }
.lp-video video:not([controls]) { cursor: pointer; }
.lp-video video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line, #e2e6ee); background: #0f172a; }
.lp-video figcaption { margin-top: 8px; font-size: 13px; color: var(--sub); text-align: center; }
@media (max-width: 520px) {
  .lp-video-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .lp-video-play svg { width: 26px; height: 26px; }
}
