/* 記事LP 共通スタイル。スマートフォン（375px）を基準にする。
   文字の大きさ：本文16px以上、注記12px以上、金額カード・FVの金額の注記とPR表示は14px以上 */
:root {
  --lp-text: #232323;
  --lp-muted: #555;
  --lp-bg: #fff;
  --lp-soft: #f5f6f3;
  --lp-line: #e2e4df;
  --lp-accent: #2f6f55;
  --lp-accent-soft: #e8f2ed;
  --lp-cta: #e0601a;
  --lp-cta-dark: #b9470c;
  --lp-em: #c2410c;
  --lp-width: 680px;
}
.lp-theme--sumikae {
  --lp-accent: #2c5d8f;
  --lp-accent-soft: #e7eef6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--lp-text);
  background: var(--lp-bg);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--lp-accent); }

.lp-pr, .lp-header, .lp-body, .lp-end-notes, .lp-footer {
  max-width: var(--lp-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* PR表示（本文より前・テキスト・14px以上） */
.lp-pr { padding-top: 8px; padding-bottom: 8px; background: var(--lp-soft); border-bottom: 1px solid var(--lp-line); }
.lp-pr__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--lp-text); }

.lp-header { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--lp-line); }
.lp-header__name { margin: 0; font-size: 16px; font-weight: 700; color: var(--lp-accent); letter-spacing: 0.04em; }

.lp-body { padding-top: 8px; padding-bottom: 24px; }
.lp-body h1 { font-size: 26px; line-height: 1.45; margin: 16px 0 12px; }
.lp-body h2 { font-size: 22px; line-height: 1.5; margin: 40px 0 14px; padding-left: 12px; border-left: 5px solid var(--lp-accent); }
.lp-body h3 { font-size: 19px; line-height: 1.55; margin: 28px 0 10px; }
.lp-body p { margin: 0 0 1.1em; }
.lp-body ul, .lp-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.lp-em { color: var(--lp-em); font-weight: 700; }
.lp-lead { font-size: 18px; }

/* 注記（12px以上）。金額の注記は14px以上 */
.lp-note { font-size: 12px; line-height: 1.6; color: var(--lp-muted); margin: 6px 0 12px; }
.lp-note--amount { font-size: 14px; color: var(--lp-text); }
.lp-body p.lp-note { margin: 6px 0 12px; }
.lp-source { font-size: 12px; line-height: 1.6; color: var(--lp-muted); margin: 4px 0 14px; }
.lp-body p.lp-source { margin: 4px 0 14px; }
.lp-source__link { color: var(--lp-muted); }

/* FV */
.lp-fv { margin: 8px 0 20px; }
.lp-fv--hook h1 { font-size: 26px; }
.lp-fv--hook .lp-em { font-size: 1.15em; }
.lp-fv__figure { margin: 12px 0 0; }
.lp-fv__notes { margin-top: 8px; }
.lp-fv__notes .lp-note { margin: 4px 0; }
.lp-meta { font-size: 13px; color: var(--lp-muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lp-body p.lp-meta { margin: 0 0 12px; }

/* 画像 */
.lp-figure { margin: 18px 0; }
.lp-figure img { width: 100%; border-radius: 6px; }
.lp-figcaption { display: block; margin-top: 4px; }
.lp-figure__caption { display: block; font-size: 16px; color: var(--lp-text); }
.lp-figcaption .lp-note { display: block; margin: 2px 0 0; }

/* 会話（マンガ風。文字はHTML） */
.lp-talk { margin: 20px 0; }
.lp-line { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; }
.lp-line--right { flex-direction: row-reverse; }
.lp-line__who { flex: 0 0 60px; width: 60px; text-align: center; }
.lp-line__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--lp-soft); }
.lp-line__name { display: block; font-size: 12px; line-height: 1.4; color: var(--lp-muted); margin-top: 2px; }
.lp-line__bubble { flex: 1 1 auto; min-width: 0; position: relative; background: var(--lp-soft); border: 1px solid var(--lp-line); border-radius: 14px; padding: 10px 14px; font-size: 16px; line-height: 1.75; }
.lp-line--right .lp-line__bubble { background: var(--lp-accent-soft); }
.lp-line__bubble p { margin: 0 0 0.4em; }
.lp-line__bubble p:last-child { margin-bottom: 0; }

/* 体験談 */
.lp-story, .lp-story-qa { margin: 20px 0; padding: 16px; border: 1px solid var(--lp-line); border-radius: 8px; background: #fff; }
.lp-story-note { margin: 16px 0 8px; }
.lp-story > :first-child, .lp-story-qa > :first-child { margin-top: 0; }
.lp-qa { margin: 0 0 16px; }
.lp-qa:last-child { margin-bottom: 0; }
.lp-qa__q, .lp-qa__a { display: flex; gap: 10px; align-items: flex-start; }
.lp-body p.lp-qa__q { margin: 0 0 6px; font-weight: 700; }
.lp-qa__mark { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--lp-accent); color: #fff; font-size: 16px; line-height: 28px; text-align: center; font-weight: 700; }
.lp-qa__a .lp-qa__mark { background: var(--lp-cta); }
.lp-qa__body { flex: 1 1 auto; min-width: 0; }
.lp-qa__body p:last-child { margin-bottom: 0; }
.lp-faq { margin: 16px 0; }
.lp-faq .lp-qa { padding: 14px 0; border-bottom: 1px solid var(--lp-line); margin: 0; }

/* 金額カード */
.lp-amount { margin: 20px 0; padding: 16px; border: 2px solid var(--lp-accent); border-radius: 10px; background: var(--lp-accent-soft); }
.lp-body p.lp-amount__title { margin: 0 0 8px; font-weight: 700; font-size: 17px; }
.lp-amount__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-bottom: 1px dashed var(--lp-line); }
.lp-amount__label { font-size: 16px; }
.lp-amount__value { font-size: 22px; font-weight: 700; color: var(--lp-em); }
.lp-amount .lp-note--amount { margin: 10px 0 0; }

/* セルフチェック（入力欄は置かない） */
.lp-check { margin: 20px 0; padding: 16px; background: var(--lp-soft); border-radius: 8px; }
.lp-body .lp-check__list { list-style: none; padding: 0; margin: 0 0 10px; }
.lp-check__item { position: relative; padding-left: 30px; margin: 0 0 8px; }
.lp-check__item::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border: 2px solid var(--lp-accent); border-radius: 3px; background: #fff; }
.lp-body p.lp-check__result { margin: 0; font-weight: 700; }

/* データ図（HTML/SVG） */
.lp-chart { margin: 20px 0; padding: 14px; border: 1px solid var(--lp-line); border-radius: 8px; }
.lp-chart__title { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.lp-chart__body { font-size: 14px; }
.lp-bars { list-style: none; margin: 0; padding: 0; }
.lp-bars li { display: grid; grid-template-columns: 4.5em 1fr auto; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.lp-bars__bar { display: block; height: 14px; background: var(--lp-accent); border-radius: 3px; }
.lp-chart .lp-source { margin: 8px 0 0; }

/* しくみ図 */
.lp-flow { margin: 20px 0; }
.lp-body .lp-flow__list { list-style: none; margin: 0; padding: 0; }
.lp-flow__step { padding: 12px 14px; border: 2px solid var(--lp-accent); border-radius: 8px; background: #fff; }
.lp-flow__title { display: block; font-weight: 700; font-size: 17px; }
.lp-flow__desc { display: block; font-size: 16px; color: var(--lp-muted); }
.lp-flow__arrow { height: 22px; position: relative; }
.lp-flow__arrow::before { content: ""; position: absolute; left: 50%; top: 4px; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--lp-accent); }

/* 入力の流れ */
.lp-steps { margin: 20px 0; }
.lp-body .lp-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-steps__item { padding: 12px; border: 1px solid var(--lp-line); border-radius: 8px; background: #fff; }
.lp-steps__num { display: inline-block; font-size: 16px; font-weight: 700; color: #fff; background: var(--lp-accent); border-radius: 4px; padding: 0 8px; margin-bottom: 6px; }
.lp-steps__img { width: 100%; max-width: 320px; margin: 0 auto 6px; border-radius: 6px; }
.lp-body p.lp-steps__text { margin: 0; font-weight: 700; }

/* CTA（同じタブで開く。ボタン＋小さなテキストリンク） */
.lp-cta { margin: 24px 0; text-align: center; }
.lp-cta__btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--lp-cta);
  box-shadow: 0 4px 0 var(--lp-cta-dark);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.lp-cta__btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lp-cta-dark); }
.lp-cta__btn:focus-visible, .lp-cta__link:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
.lp-body p.lp-cta__sub { margin: 10px 0 0; font-size: 16px; font-weight: 700; }
.lp-cta__note { text-align: left; }
.lp-body p.lp-cta__textlink { margin: 6px 0 0; font-size: 16px; }
.lp-cta--text { text-align: left; }
.lp-body p.lp-cta--text { margin: 16px 0; }
.lp-cta__link { font-size: 16px; font-weight: 700; }

/* 末尾の注記・フッター */
.lp-end { height: 1px; }
.lp-end-notes { padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--lp-line); }
.lp-end-notes__list { list-style: none; margin: 0; padding: 0; }
.lp-end-notes__list .lp-note { margin: 0 0 6px; }
.lp-end-notes__head { font-weight: 700; margin: 12px 0 4px; }
.lp-footer { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--lp-line); font-size: 13px; line-height: 1.6; color: var(--lp-muted); }
.lp-footer p { margin: 0 0 6px; }
.lp-footer a { color: var(--lp-muted); }

/* 簡易トップ・プライバシーポリシー・404 */
.lp--index .lp-body h1, .lp--privacy .lp-body h1, .lp--404 .lp-body h1 { font-size: 24px; }
.lp-operator { font-size: 12px; color: var(--lp-muted); margin-top: 32px; }

/* 確認用モード（?lpdebug=1 のときだけ表示） */
.lp-debug { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; max-height: 38vh; overflow: auto; background: rgba(20, 20, 20, 0.92); color: #fff; font: 12px/1.5 ui-monospace, Menlo, monospace; padding: 8px 12px; }
.lp-debug--closed { max-height: 4.6em; overflow: hidden; }
html[data-lpdebug] body { padding-bottom: 40vh; }
.lp-debug p { margin: 0 0 4px; }
.lp-debug__toggle { font-size: 12px; margin: 0 0 4px; }
.lp-debug__list { margin: 0; padding-left: 1.4em; }
.lp-debug summary { cursor: pointer; }

@media (min-width: 640px) {
  .lp-body .lp-steps__list { grid-template-columns: repeat(3, 1fr); }
  .lp-body h1, .lp-fv--hook h1 { font-size: 30px; }
}
