/**
 * lp.css  ─  LP専用スタイル（swell-child/assets/css/lp.css）
 * body.lp-page クラスでスコープ限定。SWELLのデフォルトスタイルは壊さない。
 * ブロックエディターで記事を編集してもデザインが崩れないよう設計。
 */

/* ============================================================
   SWELL デフォルト要素を LP ページでのみ非表示
   SWELL バージョン差異を吸収するため多数のセレクタを列挙
============================================================ */

/* ヘッダー・フッター・サイドバー */
body.lp-page .l-header,
body.page-template-page-template-lp-php .l-header,
body.lp-page #header,
body.page-template-page-template-lp-php #header,
body.lp-page .p-header,
body.page-template-page-template-lp-php .p-header,
body.lp-page #fixedHeader,
body.page-template-page-template-lp-php #fixedHeader,
body.lp-page .p-fixedHeader,
body.page-template-page-template-lp-php .p-fixedHeader,
body.lp-page .p-fixedNav,
body.page-template-page-template-lp-php .p-fixedNav,
body.lp-page .l-fixHeader,
body.page-template-page-template-lp-php .l-fixHeader,
body.lp-page .l-footer,
body.page-template-page-template-lp-php .l-footer,
body.lp-page #footer,
body.page-template-page-template-lp-php #footer,
body.lp-page .l-sidebar,
body.page-template-page-template-lp-php .l-sidebar,
body.lp-page .p-entryNav,
body.page-template-page-template-lp-php .p-entryNav,
body.lp-page .p-share,
body.page-template-page-template-lp-php .p-share,
body.lp-page .p-relatedPosts,
body.page-template-page-template-lp-php .p-relatedPosts,
body.lp-page .p-authorBox,
body.page-template-page-template-lp-php .p-authorBox {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* メインビジュアル・スライダー非表示 */
body.lp-page .p-mainVisual,
body.page-template-page-template-lp-php .p-mainVisual,
body.lp-page .p-mainVisual__inner,
body.page-template-page-template-lp-php .p-mainVisual__inner,
body.lp-page .p-mainVisual__slide,
body.page-template-page-template-lp-php .p-mainVisual__slide,
body.lp-page .p-mainVisual__slider,
body.page-template-page-template-lp-php .p-mainVisual__slider,
body.lp-page .swiper,
body.page-template-page-template-lp-php .swiper,
body.lp-page .swiper-container,
body.page-template-page-template-lp-php .swiper-container,
body.lp-page .slick-slider,
body.page-template-page-template-lp-php .slick-slider,
body.lp-page .top-slider,
body.page-template-page-template-lp-php .top-slider,
body.lp-page .main-slider,
body.page-template-page-template-lp-php .main-slider,
body.lp-page .mv-slider,
body.page-template-page-template-lp-php .mv-slider {
  display: none !important;
}

/* タイトルエリア（SWELL バージョンにより異なる） */
body.lp-page .l-header__title,
body.page-template-page-template-lp-php .l-header__title,
body.lp-page .p-pageTitle,
body.page-template-page-template-lp-php .p-pageTitle,
body.lp-page .c-pageTitle,
body.page-template-page-template-lp-php .c-pageTitle,
body.lp-page .l-pageTitle,
body.page-template-page-template-lp-php .l-pageTitle,
body.lp-page .p-entryTitle,
body.page-template-page-template-lp-php .p-entryTitle,
body.lp-page .p-entryTitle__title,
body.page-template-page-template-lp-php .p-entryTitle__title,
body.lp-page .p-entryTitle__meta,
body.page-template-page-template-lp-php .p-entryTitle__meta,
body.lp-page .entry-title,
body.page-template-page-template-lp-php .entry-title {
  display: none !important;
}

/* パンくず非表示 */
body.lp-page .p-breadcrumb,
body.page-template-page-template-lp-php .p-breadcrumb,
body.lp-page .c-breadcrumb,
body.page-template-page-template-lp-php .c-breadcrumb,
body.lp-page .breadcrumb,
body.page-template-page-template-lp-php .breadcrumb,
body.lp-page .p-topicPath,
body.page-template-page-template-lp-php .p-topicPath,
body.lp-page .c-topicPath,
body.page-template-page-template-lp-php .c-topicPath,
body.lp-page [class*="breadcrumb"],
body.page-template-page-template-lp-php [class*="breadcrumb"] {
  display: none !important;
}

/* 記事内の back-to-top ボタン（SWELL の c-fixBtn と重複）を非表示 */
body.lp-page #back-to-top,
body.page-template-page-template-lp-php #back-to-top {
  display: none !important;
}

/* ============================================================
   LP レイアウトリセット
============================================================ */
body.lp-page .l-main,
body.page-template-page-template-lp-php .l-main,
body.lp-page .l-container,
body.page-template-page-template-lp-php .l-container,
body.lp-page #content,
body.page-template-page-template-lp-php #content,
body.lp-page .l-contents,
body.page-template-page-template-lp-php .l-contents,
body.lp-page .l-article,
body.page-template-page-template-lp-php .l-article,
body.lp-page .l-main__contents,
body.page-template-page-template-lp-php .l-main__contents {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.lp-page .l-main,
body.page-template-page-template-lp-php .l-main {
  display: block !important;
}

/* ============================================================
   LP ページ基本
============================================================ */
body.lp-page,
body.page-template-page-template-lp-php {
  background: #f8fafc;
}

#lp-wrap {
  width: 100%;
  font-family: "Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
  font-size: 17px;
  line-height: 2.0;
  color: #1e293b;
  overflow-x: clip; /* hidden → clip に変更: sticky のスクロールコンテナ化を防ぐ */
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ============================================================
   上部エリアラッパー（タイトル・ヒーロー・PR・メタを一括制御）
   lp-body-wrap と同じ max-width + padding で左右端を完全に揃える
============================================================ */
.lp-top-wrap {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* ============================================================
   ヒーロー画像
============================================================ */
body.lp-page .lp-hero {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

body.lp-page .lp-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body.lp-page .lp-hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f3460, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2em;
}

/* ============================================================
   H1 タイトル
============================================================ */
/* H1タイトル基本リセット */
.lp-title {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  text-shadow: none;
  background: transparent;
}

.lp-title::before,
.lp-title::after {
  display: none;
}

/* ① 信頼感重視（王道メディア風）タイトルデザイン */
.review-title-main {
  background: #ffffff;
  color: #0f2342;
  border: 1px solid #d6dbe3;
  border-left: 8px solid #0b2f63;
  border-radius: 2px;
  padding: 24px 28px;
  font-size: 2rem;        /* ~32px */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  word-break: keep-all;
  overflow-wrap: break-word;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.review-title-main::before,
.review-title-main::after {
  display: none;
}

@media (max-width: 768px) {
  .review-title-main {
    font-size: 1.5rem;    /* ~24px */
    padding: 20px 20px 20px 18px;
    border-left-width: 6px;
  }
}

@media (max-width: 480px) {
  .review-title-main {
    font-size: 1.25rem;
    padding: 16px 14px 16px 14px;
    border-left-width: 5px;
  }
}

/* ============================================================
   PR 表記
============================================================ */
.lp-pr {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  font-size: 0.78em;
  color: #64748b;
  line-height: 1.6;
}

/* ============================================================
   メタ情報（投稿日・更新日）
============================================================ */
.lp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  background: #fff;
  font-size: 0.8em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

/* ============================================================
   本文エリア（メイン + サイドバー）
============================================================ */
.lp-body-wrap {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 16px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-sizing: border-box;
}

/* テーブル等の幅広コンテンツによるレイアウト膨張を防ぐ */
.lp-main { flex: 1; min-width: 0; max-width: 100%; overflow-x: hidden; }

.lp-sidebar {
  width: 288px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 40px;
  will-change: position, top, right;
}

/* WordPress 管理バー表示時（ログイン中）はバーの高さ分ずらす */
.admin-bar .lp-sidebar {
  top: 72px;
}

/* ============================================================
   リード文
============================================================ */
.lp-lead {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 1.02em;
  line-height: 2.1;
  color: #1e3a5f;
}

.lp-lead p:last-child { margin-bottom: 0; }

/* ============================================================
   目次
============================================================ */
.lp-toc {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.lp-toc-title {
  font-size: 0.95em;
  font-weight: 700;
  color: #2563eb;
  margin: 0 0 14px;
}

.lp-toc ol { margin: 0; padding-left: 20px; list-style: decimal; }
.lp-toc li { margin-bottom: 8px; font-size: 0.88em; }
.lp-toc a  { color: #2563eb; text-decoration: none; }
.lp-toc a:hover { text-decoration: underline; }

/* ============================================================
   記事本文（.lp-content）
   WordPress ブロックエディターで編集しても崩れないよう設計
============================================================ */
.lp-content {
  margin-bottom: 36px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ---- 見出し ---- */
.lp-content h2,
.lp-content .wp-block-heading[data-level="2"],
.lp-content h2.wp-block-heading {
  font-size: 1.35em;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  padding: 13px 18px;
  border-radius: 8px;
  margin: 44px 0 18px;
}

.lp-content h3,
.lp-content h3.wp-block-heading {
  font-size: 1.15em;
  font-weight: 700;
  color: #1e3a5f;
  border-left: 4px solid #3b82f6;
  padding: 3px 0 3px 13px;
  margin: 32px 0 14px;
  line-height: 1.5;
}

.lp-content h4,
.lp-content h4.wp-block-heading {
  font-size: 1.02em;
  font-weight: 700;
  color: #334155;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 5px;
  margin: 24px 0 10px;
}

.lp-content h5, .lp-content h6 {
  font-size: 0.95em;
  font-weight: 700;
  color: #475569;
  margin: 20px 0 8px;
}

/* ---- 段落 ---- */
.lp-content p { margin-bottom: 1.5em; line-height: 2.1; }
.lp-content p:empty { display: none; }

/* ---- リスト ---- */
.lp-content ul,
.lp-content .wp-block-list { padding-left: 1.5em; margin-bottom: 1.1em; }
.lp-content ol,
.lp-content ol.wp-block-list { padding-left: 1.6em; margin-bottom: 1.1em; }
.lp-content li { margin-bottom: 0.65em; line-height: 1.95; }

/* チェックリスト */
.lp-content ul.lp-check-list { list-style: none; padding-left: 0; }
.lp-content ul.lp-check-list li::before { content: "✅ "; }

/* ---- 画像 ---- */
.lp-content img,
.lp-content figure img,
.lp-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.lp-content figure { margin: 20px 0; }
.lp-content figcaption,
.lp-content .wp-block-image figcaption {
  font-size: 0.8em;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
}

.lp-content .lp-img-wide img  { border-radius: 0; width: 100%; }
.lp-content .lp-img-rounded img { border-radius: 16px; }

/* ---- 引用 ---- */
.lp-content blockquote,
.lp-content .wp-block-quote {
  border-left: 4px solid #94a3b8;
  margin: 20px 0;
  padding: 12px 20px;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #475569;
  font-size: 0.95em;
}

.lp-content .wp-block-quote p { margin-bottom: 0; }

.lp-content blockquote cite {
  display: block;
  font-size: 0.82em;
  color: #94a3b8;
  margin-top: 8px;
}

/* ---- 表（スマホ横スクロール対応） ---- */
.lp-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  margin: 20px 0;
}

.lp-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.lp-content table th {
  background: #2563eb;
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.lp-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  vertical-align: top;
}

.lp-content table tr:last-child td { border-bottom: 1px solid #e2e8f0; }
.lp-content table tr:nth-child(even) td { background: #f8fafc; }

/* ---- p タグ内の単独リンク（インラインスタイル付き <a> ボタン）をセンター ---- */
/* 記事生成で <p><a style="display:inline-block">ボタン</a></p> 形式になった場合に対応 */
/* !important でインラインスタイルの display:inline-block を上書き */
.lp-content p > a:only-child {
  display: block !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

/* ---- ボタン（WordPress ボタンブロック対応） ---- */
.lp-content .wp-block-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px;
  margin: 24px 0;
}

/* 単独ボタン（wp-block-buttons ラッパーなし） */
.lp-content .wp-block-button {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.lp-content .wp-block-button__link,
.lp-content a.lp-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1em;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lp-content .wp-block-button__link:hover,
.lp-content a.lp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
  color: #fff !important;
}

/* ---- カラムブロック ---- */
.lp-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.lp-content .wp-block-column { flex: 1 1 200px; min-width: 0; }

/* ---- セパレーター ---- */
.lp-content hr,
.lp-content .wp-block-separator {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 32px 0;
}

/* ---- コード ---- */
.lp-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  word-break: break-all;
}

/* ============================================================
   カスタムクラス（ブロックの追加CSSクラスとして使用）
============================================================ */
.lp-content .lp-lead-box, .lp-lead-box {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 16px 0;
  color: #1e3a5f;
  line-height: 2.1;
}

.lp-content .lp-point-box, .lp-point-box {
  background: #fefce8;
  border: 2px solid #fde047;
  border-left: 6px solid #eab308;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 16px 0;
}

.lp-point-box::before {
  content: "💡 ポイント";
  display: block;
  font-weight: 700;
  color: #854d0e;
  margin-bottom: 8px;
  font-size: 0.9em;
}

/* ── 注意ボックス（赤・強い警告） ── */
.lp-content .lp-caution-box, .lp-caution-box {
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  margin: 28px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.10);
  padding: 0;
}

.lp-caution-box::before {
  content: "⚠️ 注意";
  display: block;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 0.88em;
  padding: 8px 16px;
  letter-spacing: 0.05em;
  margin: 0;
}

.lp-caution-box > *:not(:first-child),
.lp-caution-box p,
.lp-caution-box ul,
.lp-caution-box ol {
  padding: 14px 18px;
  margin: 0;
  color: #7f1d1d;
  font-size: 0.93em;
  line-height: 1.8;
}

/* ── 注意喚起ボックス（黄・ソフト警告） ── */
.lp-content .lp-warning, .lp-warning {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 10px;
  margin: 32px auto;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.10);
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

/* wp:html ラッパー（.wp-block-html）ごと幅を制限 */
.lp-content .wp-block-html {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .lp-content .lp-warning, .lp-warning {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ::before は lp-warning-title が存在しない旧構造の後方互換のみ */
.lp-warning:not(:has(.lp-warning-title))::before {
  content: "⚠️ 注意喚起";
  display: block;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: 0.88em;
  padding: 8px 16px;
  letter-spacing: 0.05em;
  margin: 0;
}

/* 新ヘッダー構造（lp-warning-title / lp-warning-subtitle） */
.lp-warning-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: 0.06em;
  padding: 10px 18px 8px;
  margin: 0;
}

.lp-warning-subtitle {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82em;
  font-weight: 600;
  padding: 6px 18px;
  border-bottom: 1px solid #fcd34d;
  margin: 0;
}

/* 旧構造後方互換（lp-warning-body なし） */
.lp-warning > p,
.lp-warning > ul,
.lp-warning > ol {
  padding: 14px 18px;
  margin: 0;
  color: #78350f;
  font-size: 0.93em;
  line-height: 1.8;
}

/* 新構造（lp-warning-body あり） */
.lp-warning-body {
  padding: 16px 20px;
  color: #78350f;
  font-size: 0.93em;
  line-height: 1.8;
  box-sizing: border-box;
}

.lp-warning-body p,
.lp-warning-body ul,
.lp-warning-body ol {
  margin: 0 0 8px;
  padding: 0;
}

.lp-warning-body > *:last-child { margin-bottom: 0; }

/* 水色マーカー下線 ─ 本文系要素（p / li / td / blockquote）内のみ対象 */
/* summary-box・lp-warning・h1〜h6 内は除外 */
.lp-main p strong,
.lp-main p b,
.lp-main li strong,
.lp-main li b,
.lp-main td strong,
.lp-main td b,
.lp-main th strong,
.lp-main th b,
.lp-main blockquote strong,
.lp-main blockquote b {
  font-weight: 700;
  background: linear-gradient(transparent 65%, #bdefff 65%);
  padding: 0 2px;
}

/* 除外1: h1〜h6 内（手順見出し・FAQ見出し含む） */
.lp-main h1 strong, .lp-main h1 b,
.lp-main h2 strong, .lp-main h2 b,
.lp-main h3 strong, .lp-main h3 b,
.lp-main h4 strong, .lp-main h4 b,
.lp-main h5 strong, .lp-main h5 b,
.lp-main h6 strong, .lp-main h6 b {
  font-weight: 700;
  background: none;
  padding: 0;
}

/* 除外2: summary-box 内（「結論：」等のラベル強調）*/
/* 特異性 0,2,1 > .lp-main p strong 0,1,2 なので確実に上書き */
.lp-main .summary-box strong,
.lp-main .summary-box b,
.summary-box strong,
.summary-box b {
  font-weight: 700;
  background: none;
  padding: 0;
}

/* 除外3: lp-warning 内（注意喚起タイトル・ボディ） */
.lp-warning-title strong, .lp-warning-title b,
.lp-warning-subtitle strong, .lp-warning-subtitle b,
.lp-warning-body strong, .lp-warning-body b {
  font-weight: 700;
  background: none;
  padding: 0;
}

/* 口コミ・お客様の声の囲みケイ */
/* 口コミ・お客様の声 ── 吹き出しスタイル */
.lp-content .lp-review, .lp-review {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 18px 20px 16px;
  margin: 20px 0 42px;   /* 下余白は吹き出し尻尾の分を確保 */
  position: relative;
}

/* 吹き出し尻尾 外側（ボーダー色） */
.lp-review::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 24px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 11px 0 11px;
  border-color: #bfdbfe transparent transparent transparent;
}

/* 吹き出し尻尾 内側（背景色） */
.lp-review::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 25px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 10px 0 10px;
  border-color: #eff6ff transparent transparent transparent;
}

.lp-review p {
  font-style: normal;
  color: #1e3a5f;
  line-height: 1.85;
  margin: 0 0 6px;
}

.lp-review cite {
  display: block;
  text-align: right;
  font-size: 0.8em;
  color: #64748b;
  font-style: normal;
  margin-top: 10px;
}

.lp-content .lp-note, .lp-note {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0ea5e9;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.9em;
  color: #0c4a6e;
}

.lp-content .lp-check-list { list-style: none; padding-left: 0; }
.lp-content .lp-check-list li::before { content: "✅ "; }

/* ============================================================
   CTAボックス（template-parts/cta.php）
============================================================ */
.lp-cta {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 3px solid #f59e0b;
  border-radius: 16px;
  padding: 28px 24px;
  margin: 36px 0;
  text-align: center;
  box-shadow: 0 4px 14px rgba(245,158,11,0.15);
}

.lp-cta-sub {
  font-size: 0.88em;
  color: #b45309;
  margin: 0 0 16px;
  font-weight: 600;
}

.lp-cta-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff !important;
  text-decoration: none !important;
  padding: 17px 44px;
  border-radius: 999px;
  font-size: 1.15em;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(245,158,11,0.38);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.lp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(245,158,11,0.48);
  color: #fff !important;
}

.lp-cta-note { font-size: 0.78em; color: #92400e; margin: 12px 0 0; }

.lp-sidebar .lp-cta { padding: 18px 14px; margin: 0 0 20px; }
.lp-sidebar .lp-cta-btn { font-size: 0.95em; padding: 13px 20px; }

/* ============================================================
   Gravatar プロフィールカード（template-parts/profile.php）
============================================================ */
.lp-gravatar-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin: 36px 0;
}

/* ヘッダー背景（Gravatar カバー風） */
.lp-gravatar-header {
  height: 80px;
  background: linear-gradient(135deg, #b8cce4 0%, #d4a8b0 50%, #c4b4d4 100%);
}

.lp-gravatar-body {
  padding: 0 20px 22px;
  text-align: center;
}

/* アバター（ヘッダーから半分はみ出す） */
.lp-gravatar-avatar-wrap {
  margin-top: -44px;
  margin-bottom: 12px;
}

.lp-gravatar-avatar {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0 auto;
}

.lp-gravatar-avatar--placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  margin: 0 auto;
}

.lp-gravatar-name {
  font-size: 1.25em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.3;
}

.lp-gravatar-role {
  font-size: 0.78em;
  color: #64748b;
  margin: 0 0 10px;
}

.lp-gravatar-bio {
  font-size: 0.84em;
  color: #475569;
  line-height: 1.75;
  text-align: left;
  margin: 0 0 14px;
}

.lp-gravatar-link {
  display: inline-block;
  font-size: 0.8em;
  color: #2563eb;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  padding: 6px 16px;
  border-radius: 999px;
  transition: background 0.2s;
}

.lp-gravatar-link:hover {
  background: #f1f5f9;
  text-decoration: none;
}

/* サイドバー内 */
.lp-sidebar .lp-gravatar-card { margin: 0 0 20px; }

/* モバイル用（本文下のプロフィール） */
.lp-mobile-profile .lp-gravatar-card { margin: 36px 0; }

/* ============================================================
   FAQ（template-parts/faq.php）
============================================================ */
.lp-faq { margin: 36px 0; }

.lp-faq-title {
  font-size: 1.35em;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  padding: 13px 18px;
  border-radius: 8px;
  margin: 0 0 16px;
}

.lp-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}

.lp-faq-q {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1e3a5f;
  user-select: none;
  transition: background 0.2s;
  line-height: 1.5;
}

.lp-faq-q:hover { background: #f8fafc; }
.lp-faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.lp-faq-q-text { flex: 1; }
.lp-faq-q-arrow {
  font-size: 0.72em;
  color: #94a3b8;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-top: 4px;
}

.lp-faq-item.open .lp-faq-q-arrow { transform: rotate(-180deg); }

.lp-faq-a {
  display: none;
  padding: 0 18px 16px 54px;
  font-size: 0.9em;
  color: #475569;
  line-height: 1.8;
  border-top: 1px solid #f1f5f9;
}

.lp-faq-item.open .lp-faq-a { display: block; }

/* ============================================================
   まとめ
============================================================ */
.lp-summary {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 2px solid #bfdbfe;
  border-radius: 16px;
  padding: 28px 24px;
  margin: 36px 0;
}

.lp-summary-title {
  font-size: 1.1em;
  font-weight: 800;
  color: #1e3a5f;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-summary-title::before { content: "✅"; }
.lp-summary-content { font-size: 0.94em; color: #334155; line-height: 1.85; }
.lp-summary-content p:last-child { margin-bottom: 0; }

/* ============================================================
   広告バナー（プロフィール下）
============================================================ */
.lp-ad-banner {
  text-align: center;
  margin: 20px 0 8px;
}
.lp-ad-banner img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* ============================================================
   免責・注記
============================================================ */
.lp-disclaimer {
  font-size: 0.76em;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
  margin-top: 36px;
  line-height: 1.7;
}

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 767px) {
  .lp-body-wrap {
    flex-direction: column;
    padding: 0 10px;
    margin-top: 16px;
    gap: 0;
  }

  /* モバイルではサイドバー全体を非表示（プロフィールは .lp-mobile-profile に表示） */
  .lp-sidebar { display: none !important; }

  .lp-content .wp-block-columns { flex-direction: column; }
  .lp-content .wp-block-column  { width: 100% !important; flex: none !important; }

  .lp-content table,
  .lp-content .wp-block-table { overflow-x: auto; display: block; }

  .lp-cta-btn { font-size: 1em; padding: 15px 24px; }

  .lp-content h2 { font-size: 1.15em; }
  .lp-content h3 { font-size: 1.05em; }

  .lp-profile-inner { flex-direction: column; align-items: center; text-align: center; }
  .lp-faq-a { padding-left: 18px; }
}

@media (min-width: 768px) {
  .lp-mobile-profile { display: none !important; }
  .lp-content .wp-block-columns { flex-wrap: nowrap; }
}

/* ============================================================
   結論BOX（v1.4 summary-box）
   記事冒頭の「自分向きか？」を即判断させる結論エリア
============================================================ */
.lp-content .summary-box,
.summary-box {
  background: #eff6ff;
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 0 0 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.summary-box p {
  margin-bottom: 12px;
  line-height: 1.85;
}

.summary-box p:last-child { margin-bottom: 0; }

.summary-box strong {
  font-size: 1.08em;
  background: none; /* 除外3と合わせて多重定義（特異性の保険） */
  padding: 0;
}

.summary-box ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.summary-box li {
  position: relative;
  padding-left: 1.6em;
  margin: 8px 0;
  line-height: 1.75;
  color: #1e3a5f;
}

.summary-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}

@media (max-width: 768px) {
  .summary-box {
    padding: 18px;
    margin-bottom: 28px;
  }
}
