/* =========================================================
   グローバル：ヘッダー調整（サイト共通に適用）
   ※ このブロックは .lp スコープ外（ヘッダーのみ対象）
   ========================================================= */
.site-header {
  background-color: #000000 !important;
}

/* =========================================================
   LP内限定：Gutenbergカラムの縦中央揃え（テーマに非干渉）
   ※ ヘッダーや他ページに影響しないよう .lp 配下に限定
   ========================================================= */
.lp .wp-block-columns.is-layout-flow,
.lp .wp-block-column.is-layout-flow {
  display: flex;
  align-items: center;
}

/* =========================================================
   sm-custom.css
   追加CSSの集約ファイル（テーマは編集しない）
   対象：LP「マーケティング＆デザイン伴走支援」（.lp 配下）
   ========================================================= */
/* ------------------------------
   共通：カラー変数・ベース
-------------------------------- */
.lp {
  --card: #fff;
  --ink: #3a2f27;
  --muted: #6b625b;
  --brand: #b88924;
  --brand-weak: #e7d2a1;
  --line: #efe7df;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(0, 0, 0, .06);
  --chip: #fffaf0;
  --accent: #f6ecd6;
}

.lp .lp-wrap {
  padding: 28px 0 64px;
}

/* 共通：カード */
.lp .lp-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 18px 0 28px;
  border: 1px solid var(--brand-weak);
  color: var(--ink);
}

/* 見出し・本文 */
.lp .lp-h2 {
  line-height: 1.4;
  margin: 0 0 .6em;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
}

.lp .lp-h3 {
  line-height: 1.4;
  margin: 0 0 .6em;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ink);
}

.lp .lp-p {
  margin: .6em 0;
}

/* 汎用グリッド */
.lp .lp-grid {
  display: grid;
  gap: 20px;
}

.lp .lp-2 {
  grid-template-columns: 1.1fr .9fr;
}

@media (max-width: 860px) {
  .lp .lp-2 {
    grid-template-columns: 1fr;
  }
}

/* 汎用画像 */
.lp .lp-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.lp-p {
  color: var(--muted);
}

.lp .note {
  color: var(--muted);
}

.note-small {
  font-size: .95rem;
  color: var(--muted);
}

/* ------------------------------
   FV：ファーストビュー
-------------------------------- */
.lp .lp-hero {
  margin: 0 0 28px;
}

.lp .lp-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ------------------------------
   セクション：あなたにこんな悩みはありませんか？
-------------------------------- */
#trouble .chk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

#trouble .chk-item {
  position: relative;
  padding-left: 54px;
  color: var(--ink);
  font-weight: 700;
}

#trouble .chk-ic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--chip);
  border: 1px solid var(--brand-weak);
}

#trouble .chk-ic img {
  width: 20px;
  height: 20px;
  display: block;
}

/* ------------------------------
   セクション：放っておくとたどり着く未来
   ※ 枠・縦線なし／テキストは画像の上に配置
-------------------------------- */
#future .f3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 860px) {
  #future .f3 {
    grid-template-columns: 1fr;
  }
}

#future .t {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

#future .ph {
  display: flex;
  justify-content: center;
}

#future .ph img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ------------------------------
   セクション：目指す理想的なゴール（PC2列／SP1列）
-------------------------------- */
#goal .goal-wrap {
  display: grid;
  gap: 28px;
}

@media (min-width: 861px) {
  #goal .goal-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

#goal .goal-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

#goal .goal-ic {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

#goal .goal-ic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#goal .goal-txt {
  font-weight: 700;
  color: var(--ink);
}

/* ------------------------------
   セクション：伝わる仕組みの支援メニュー
   ※ 左レール線は背面固定、●は見出し行の中央合わせ
-------------------------------- */
#menu .line-box {
  --rail: 72px;
  position: relative;
}

#menu .line-box::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(var(--rail) / 2);
  width: 2px;
  background: var(--brand-weak);
  transform: translateX(-1px);
  z-index: 0;
}

#menu .l-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

#menu .l-item {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: start;
  position: relative;
  z-index: 1;
}

#menu .l-dot {
  grid-column: 1;
  grid-row: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  justify-self: center;
  align-self: center;
  position: relative;
  z-index: 1;
}

#menu .l-h {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
  font-size: 1.5rem;
  align-self: center;
  position: relative;
  z-index: 1;
}

#menu .l-sub {
  grid-column: 2;
  grid-row: 2;
  margin: .2em 0 0;
  position: relative;
  z-index: 1;
}

/* ------------------------------
   セクション：支援後の変化（4カード）
-------------------------------- */
#change .chg-grid {
  display: grid;
  gap: 32px;
}

#change .chg-item {
  background: var(--accent);
  border: 1px solid var(--brand-weak);
  border-radius: 12px;
  padding: 16px;
}

#change .chg-item .sep {
  height: 1px;
  background: var(--brand-weak);
  margin: 8px 0 12px;
}

#change .label {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--brand-weak);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  margin-right: 8px;
}

/* ------------------------------
   セクション：制作事例 & お客様の声
-------------------------------- */
#works .qt {
  border: 1px solid var(--brand-weak);
  border-radius: 12px;
  margin-bottom: 32px;
}

#works .qt .in {
  padding: 16px;
}

#works .work-title {
  color: var(--ink);
  font-weight: 700;
}

#works .qt .sep {
  height: 1px;
  background: var(--line);
  margin: 8px 0 12px;
}

/* ------------------------------
   私たちが選ばれ続ける理由
カード - PC は 3 列、SP/タブレットは 1 列
-------------------------------- */
/* 1) 私たちが選ばれ続ける理由（カード3・丸バッジ） */
#reason .reason-3 {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;               /* SP/タブレット：1列 */
}

@media (min-width: 1200px) {                 /* PC 3列 */
  #reason .reason-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

#reason .reason-card {
  position: relative;
  background: var(--accent);
  border: 1px solid var(--brand-weak);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 22px 22px;
  color: var(--ink);
  min-width: 0;                               /* 長文での崩れ防止 */
}

/* 丸バッジ（センターに重ねる） */
#reason .reason-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  border: 2px solid #f6ecd6;                  /* 淡い外周リング */
  z-index: 1;
}

#reason .reason-badge img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* カード内テキスト */
#reason .reason-txt {
  margin: 6px 0 8px;
  font-weight: 700;
  line-height: 1.65;
  font-size: clamp(15px, 1.8vw, 18px);
}

/* 上文 → カード群：食い込み回避（バッジ分の余白） */
#reason .lp-p + .reason-3 {
  margin-top: 38px;
}

/* カード群 → 下の一文（1行分の余白） */
#reason .reason-3 + .note {
  margin-top: 1em;
}

/* 「違い」見出しへのブロック内余白（表の前） */
#reason .note + .lp-h2 {
  margin-top: 28px;
}

/* 「違い」導入文と表の間の微調整 */
#reason .lp-h2 + .lp-p {
  margin-top: .4em;
  margin-bottom: .4em;
}

/* ------------------------------
   成果を左右する制作の進め方の違い（比較表）
   - 左列(TH)：淡ベージュ背景・太字
   - 右列(TD)：白背景・通常ウェイト
   - 角丸ボックス＋薄いボーダー／行の区切り線
   - 文字は中央揃え
   ※ #reason 内に限定し、他の表へは影響させない
-------------------------------- */
/* #diff 比較表（統合版） */
#diff .lp-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line, rgba(90, 69, 15, .18));
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

#diff .lp-table th,
#diff .lp-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line, rgba(90, 69, 15, .12));
  text-align: center;
  font-size: 1rem; /* 基本文字サイズを統一 */
}

/* 左列（見出し列） */
#diff .lp-table th {
  background: var(--accent, #f7edd7);
  color: var(--ink, #3a2b14);
  font-weight: 700;
}

/* 先頭行だけ少し大きく */
#diff .lp-table tr:first-child th,
#diff .lp-table tr:first-child td {
  font-size: 1.15rem;
  font-weight: 700;
}

/* 見出し「違い」と導入文の間／導入文と表の間（微調整） */
#reason .note + .lp-h2 {
  margin-top: 28px;
}
#reason .lp-h2 + .lp-p {
  margin-top: .4em;
  margin-bottom: .4em;
}

/* ------------------------------
   セクション：成果を左右する制作の進め方の違い（表）
-------------------------------- */
#diff .lp-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

#diff .lp-table th {
  width: 50%;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff8e9;
  font-weight: 700;
  color: #5e460f;
}

#diff .lp-table td {
  width: 50%;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

#diff .lp-table tr:last-child th {
  border-bottom: none;
}

#diff .lp-table tr:last-child td {
  border-bottom: none;
}

/* ------------------------------
   セクション：提供プラン（PC2列／SP1列）
-------------------------------- */
#plan .plans {
  display: grid;
  row-gap: 61px;
  column-gap: 24px;
  padding-top: 24px;
  margin-top: 0;
}

@media (min-width: 901px) {
  #plan .plans {
    grid-template-columns: 1fr 1fr;
  }
}

#plan .plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--brand-weak);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px;
}

/* プラン：上部ライン＆バッジ */
#plan .plan-topline {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 6px;
  background: var(--brand);
  border-radius: 4px;
}

#plan .plan-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  border: 2px solid #f6ecd6;
  z-index: 1;
}

#plan .plan-badge img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

#plan .plan-title {
  margin: 0 0 .3em;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

/* プラン：見出し下の間隔（アイコンと見出しの密着防止） */
#plan .plan-title::before {
  content: "";
  display: block;
  height: 0.3em;
}

#plan .plan-title + .lp-p {
  margin-top: 0 !important;
}

/* ------------------------------
   セクション：申し込みまでの流れ（矢じりタイル）
-------------------------------- */
#flow .flow {
  display: grid;
  gap: 20px;
}

#flow .step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: stretch;
}

/* タイル本体（基本） */
#flow .tile-v {
  position: relative;
  display: grid;
  place-items: center;
  background: #f6ecd6;
  border: 1px solid #e7d2a1;
  border-radius: 10px;
  padding: 16px 14px 22px; /* ▽表示用に下側ゆとり */
  min-height: 92px;
}

/* ▽（下向き矢じり）は「一番下以外」に表示 */
#flow .step:not(:last-of-type) .tile-v::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -16px;
  border-width: 16px 20px 0;
  border-style: solid;
  border-color: #e7d2a1 transparent transparent;
}
#flow .step:not(:last-of-type) .tile-v::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  border-width: 15px 19px 0;
  border-style: solid;
  border-color: #f6ecd6 transparent transparent;
}

/* 「一番下以外」は四角枠の下側の線を消す（元の見え方を維持） */
#flow .step:not(:last-of-type) .tile-v {
  border-bottom: none;
}

/* 「一番下」だけは ▽ を出さず、下枠線を表示（アイコンの下に線が見える） */
#flow .step:last-of-type .tile-v::before,
#flow .step:last-of-type .tile-v::after {
  display: none;
}
#flow .step:last-of-type .tile-v {
  border-bottom: 1px solid #e7d2a1; /* 下側の線を表示 */
  padding-bottom: 16px;             /* ▽が無い分 少し詰める（任意） */
}

/* フロー：アイコンサイズ */
#flow .flow-ic {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

/* フロー：上段タイトル（h3/h4相当） */
#flow .step-title {
  font-weight: 700;
  line-height: 1.35;
  font-size: clamp(18px, 2.4vw, 18px);
  margin: .15em 0 .2em;
}

/* ------------------------------
   CTA（フロー内の最下部ボタン）
-------------------------------- */
.lp .btn-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 18px; /* 追加：ボタン下の余白 */
}

.lp .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, #b88924 0%, #c79a2b 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
}

.lp .btn:hover {
  filter: brightness(1.06);
}

/* =========================================================
   追記スペース：他ページのスタイルはこの下に追加
   ========================================================= */

/* カード群やセクション全体（ブロック）の下に1行分の余白を作る */
.card-section {
  margin-bottom: 1em;
}

/* 任意の要素の下に1行分の余白を作る */
.mb-1em {
  margin-bottom: 1em;
}

/* 任意の要素の下に2行分の余白を作る */
.mb-2em {
  margin-bottom: 2em !important;
  display: block; /* 親のflex/gridの影響を減らす */
}

/* 任意の要素の上に1行分の余白を作る */
.mt-1em {
  margin-top: 1em;
}

/* 任意の要素の上に2行分の余白を作る */
.mt-2em {
  margin-top: 2em;
}

/* テキスト中央揃え（CTA直前の文章、ボタン上の説明文など） */
.text-center { text-align: center; }

/* 上に18pxの余白（ボタンやCTA前の段落に1行強の余白） */
.mt-18px { margin-top: 18px; }