/* =========================================================================
   service.css
   サービスページ共通CSS。leftbrain.css の後に enqueue され、各サービスページ
   でスタイル上書き／追加する場所。
   現状は /marketing-consulting/ 用ルール（.lp-template スコープ）のみ。
   他サービスページを追加する際は、それぞれのページクラスで
   セレクタを区切って追記してください。
   ========================================================================= */

/* ---------------------------------------------------------
   セクション間 上下マージン/パディング/縦gap フルリセット
   --------------------------------------------------------- */
.lp-template,
.lp-template *,
.lp-template *::before,
.lp-template *::after {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  row-gap: 0 !important;
}
body.page-template-page-marketing-consulting .page-main,
body.page-template-page-marketing-consulting .page-main__inner,
body.page-marketing-consulting .page-main,
body.page-marketing-consulting .page-main__inner,
body.page-template-page-leftbrain .page-main,
body.page-template-page-leftbrain .page-main__inner,
body.page-leftbrain .page-main,
body.page-leftbrain .page-main__inner,
body.page-template-page-contact .page-main,
body.page-template-page-contact .page-main__inner,
body.page-contact .page-main,
body.page-contact .page-main__inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ---------------------------------------------------------
   明示的な余白指定（リセット後の再付与）
   --------------------------------------------------------- */
.lp-template .breadcrumb {
  margin-top: 20px !important;
}
.lp-template .leftbrain-hero .page-header__title {
  margin-top: 60px !important;
}
.lp-template .leftbrain-hero-meta {
  margin-top: 20px !important;
  gap: 18px 12px !important;
}
.lp-template .content-block {
  margin-top: 160px !important;
}

/* FV (page-header) のデフォルト border-bottom を削除 */
.lp-template .page-header {
  border-bottom: 0 !important;
}

/* 背景枠のあるセクション（PROBLEMS / CASE / FAQ）の枠内 padding 40 */
.lp-template #problems.content-block,
.lp-template #before-after.content-block,
.lp-template #faq.content-block {
  padding: 40px !important;
}

/* CTA・FLOW・FORM セクションにも上下 padding 40 */
.lp-template .content-block.service-cta,
.lp-template #flow.content-block,
.lp-template #contact-form.content-block {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* カード間の余白は grid の row-gap で出す（margin ではなく gap） */
.lp-template .leftbrain-card-grid,
.lp-template .process-grid,
.lp-template .leftbrain-pricing-grid,
.lp-template .leftbrain-stack {
  row-gap: 20px !important;
}

/* h2 (各セクション見出し) 下マージン 40 */
.lp-template .content-block__label {
  margin-bottom: 40px !important;
}

/* 全カード（support / process / case-block__col）上下左右 padding 24 */
.lp-template .support-card,
.lp-template .process-card,
.lp-template .case-block__col {
  padding: 24px !important;
}

/* BEFORE / AFTER カラム間の gap で間隔を出す（個別 margin はなし） */
.lp-template .case-block__cols {
  gap: 0 !important;
}

/* case-block の h3 タイトル下に 20 */
.lp-template .case-block__title {
  margin-bottom: 20px !important;
}

/* 大手 process-card 内の脚注の上マージン 20 */
.lp-template #results .process-card .card-body {
  margin-top: 20px !important;
}

/* プラン内のリスト項目を太字に */
.lp-template #pricing .leftbrain-plain-list li {
  font-weight: 700;
}

/* プラン番号 (PLAN 01 / PLAN 02 / CUSTOM) の下マージン10 */
.lp-template #pricing .card_num {
  margin-bottom: 10px !important;
}

/* card_title フォントサイズ 24 / 下マージン 20 */
.lp-template .card_title {
  font-size: 24px;
  margin-bottom: 20px !important;
}

/* page-header__lead 行間 0.8倍（leftbrain.css の 1.85 → 1.48） */
.lp-template .page-header__lead {
  line-height: 1.48;
}

/* hero_marker (旧 leftbrain-hero__title-mark) — H1 内の白マーカー装飾 */
.lp-template .hero_marker {
  display: inline;
  padding: 0.02em 0.055em 0.035em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: rgba(255, 255, 255, 0.96);
  color: #223252;
  line-height: 1.8;
}

/* case-block__col-text の上マージン 10 (BEFORE/AFTER ラベル下) */
.lp-template .case-block__col-text {
  margin-top: 10px !important;
}

/* yellow-tag: 明るい黄色グラデ（左→右、右が少し濃い）+ 紺文字。FVとCASE内タグ共通 */
.lp-template .yellow-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 20px !important;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff5b0 0%, #ffd84a 100%);
  color: #223252;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* white-tag: 白背景 + 紺文字。希少性訴求などで yellow-tag と差別化 */
.lp-template .white-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 20px !important;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #223252;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* 実績の中小・大手ラベルを本文ゴシック＋紺に */
.lp-template #results .card_num {
  font-family: "Yu Gothic", "Yu Gothic Medium", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  color: #223252 !important;
}

/* 実績 ul の上マージン 20 */
.lp-template #results .leftbrain-plain-list {
  margin-top: 20px !important;
}

/* CTA ボタン (services-link) の上マージン 40 */
.lp-template .service-cta .services-link {
  margin-top: 40px !important;
}

/* AFTER下の罫線（case-block の border-top）: 上40(row-gap 40)、下20(case-block padding-top 20) */
.lp-template .case-block {
  padding-top: 20px !important;
}

/* CASE: H2直下の最初の case-block の上罫線を削除（罫線消し） */
.lp-template #before-after .case-block:first-child {
  border-top: 0 !important;
}


/* ---------------------------------------------------------
   パンくず（FV内、H1直上）
   --------------------------------------------------------- */
.lp-template .breadcrumb {
  margin-bottom: 16px !important;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}
.lp-template .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lp-template .breadcrumb li {
  display: flex;
  align-items: center;
}
.lp-template .breadcrumb li + li::before {
  content: ">";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.4);
}
.lp-template .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.lp-template .breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.lp-template .breadcrumb [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

/* ---------------------------------------------------------
   ガラス背景セクション (PROBLEMS / CASE / FAQ)
   --------------------------------------------------------- */
.lp-template #problems.content-block,
.lp-template #before-after.content-block,
.lp-template #faq.content-block {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lp-template #problems .content-block__eyebrow,
.lp-template #problems .content-block__label,
.lp-template #before-after .content-block__eyebrow,
.lp-template #before-after .content-block__label,
.lp-template #faq .content-block__eyebrow,
.lp-template #faq .content-block__label {
  color: #fff;
}

/* ---------------------------------------------------------
   PROBLEMS 内の card 装飾（マーカー風強調・透明枠）
   --------------------------------------------------------- */
.lp-template #problems .leftbrain-checklist,
.lp-template #problems .leftbrain-plain-list {
  gap: 32px;
  padding-left: 0;
}
.lp-template #problems .leftbrain-checklist {
  margin-bottom: 28px;
}
.lp-template #problems .process-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.lp-template #problems .process-card__title {
  margin-bottom: 24px;
}
.lp-template #problems .leftbrain-checklist li,
.lp-template #problems .leftbrain-plain-list li {
  padding-left: 0;
  margin-left: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.03em;
}
.lp-template #problems .problem-marker {
  display: inline;
  padding-top: 0.24em !important;    /* 高さ1.2倍 (元 0.2em → 0.24em) */
  padding-bottom: 0.288em !important; /* 高さ1.2倍 (元 0.24em → 0.288em) */
  padding-left: 0.36em;
  padding-right: 0.36em;
  background: #223252;
  color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.lp-template #problems .leftbrain-checklist li,
.lp-template #problems .leftbrain-plain-list li {
  line-height: 1.024; /* 行間 0.8倍（元 1.28 → 1.024） */
}
/* PROBLEMS 用の card_title 個別マージン指定は撤回（共通 .card_title { mb: 20 } に統一） */
.lp-template #problems .leftbrain-checklist li::before,
.lp-template #problems .leftbrain-plain-list li::before {
  content: none;
}

/* card-body / case-title 親h3 / AFTER下罫線削除 */
.lp-template .card-body {
  margin-top: 10px !important;
}
.lp-template .case-block__title {
  margin-top: 10px !important;
}
.lp-template #before-after .case-block {
  border-top: 0 !important;
}

/* price（旧 leftbrain-price）: 既存leftbrain-priceのフォント装飾を流用 + 上下マージン 20 */
.lp-template .price {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* pricing-badge: キャンペーン / 50%OFF の2行レイアウト */
.lp-template #pricing .leftbrain-pricing-badge {
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
}

.lp-template .leftbrain-pricing-badge__campaign {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-template .leftbrain-pricing-badge__off {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* LIGHTプラン用 白バッジ variant（ボーダーなし） */
.lp-template .leftbrain-pricing-badge--white {
  background: #fff !important;
  background-image: none !important;
  color: #223252 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

/* キャンペーンバナー (FV下 & 各CTAセクション内) — 左揃え、2グラデを2秒で交互ループ */
.lp-template .campaign-banner {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 60px 0 !important;
  padding: 20px !important;
  background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
  border-radius: 5px;
  border: 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  color: #fff;
  text-align: left;
}

.lp-template .campaign-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1e3a8a 0%, #14b8a6 100%);
  opacity: 0;
  animation: campaign-banner-bg 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.lp-template .campaign-banner > * {
  position: relative;
  z-index: 1;
}

@keyframes campaign-banner-bg {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-template .campaign-banner::after {
    animation: none;
  }
}

.lp-template .campaign-banner__label {
  margin: 0 0 10px !important;
  padding: 5px 18px !important;
  border-radius: 999px;
  background: #fff;
  color: #223252 !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.lp-template .campaign-banner__offer {
  margin: 0 !important;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #fff !important;
}

.lp-template .campaign-banner--cta {
  margin: 24px 0 !important;
}

@media (max-width: 600px) {
  .lp-template .campaign-banner__offer {
    font-size: 24px !important;
  }
}

/* price-original: .price 内の元値（割引前）を打ち消し表示。inline span として置く */
.lp-template .price-original {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.3;
  color: rgba(34, 50, 82, 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: normal;
}

/* price-note: 「内容に合わせて」など .price の補足。price-original と同サイズ・打ち消しなし */
.lp-template .price-note {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.3;
  color: rgba(34, 50, 82, 0.7);
  font-weight: normal;
}

/* ---------------------------------------------------------
   CASE (#before-after) BEFORE 紺 / AFTER ライトグレー
   --------------------------------------------------------- */
.lp-template #before-after .case-block__title,
.lp-template #before-after .case-title {
  color: #fff;
}
.lp-template #before-after .case-block__col {
  padding: 24px;
  border-radius: 16px;
}
/* BEFORE 下側角丸削除 / AFTER 上側角丸削除（連続させる） */
.lp-template #before-after .case-block__col:nth-child(1) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.lp-template #before-after .case-block__col:nth-child(2) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.lp-template #before-after .case-block__col:nth-child(1) {
  position: relative;
  background: #223252;
}
.lp-template #before-after .case-block__col:nth-child(1)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 22px solid #223252;
  pointer-events: none;
}
.lp-template #before-after .case-block__col:nth-child(1) .case-block__col-label,
.lp-template #before-after .case-block__col:nth-child(1) .case-block__col-text,
.lp-template #before-after .case-block__col:nth-child(1) .case-block__col-text-marker {
  color: #fff;
  background: transparent;
}
.lp-template #before-after .case-block__col:nth-child(2) {
  background: rgba(255, 255, 255, 0.8);
}
.lp-template #before-after .case-block__col:nth-child(2) .case-block__col-label,
.lp-template #before-after .case-block__col:nth-child(2) .case-block__col-text {
  color: #223252;
}
.lp-template #before-after .case-block {
  border-top: 1px solid #fff;
}
.lp-template #before-after .case-block__col:nth-child(2) .case-block__col-label {
  border-bottom-color: #223252;
}

/* ---------------------------------------------------------
   RESULTS: セクションは透明、カードはライトグレー2カラム
   --------------------------------------------------------- */
.lp-template #results .process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lp-template #results .process-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(34, 50, 82, 0.08);
  box-shadow: 0 12px 28px rgba(7, 29, 41, 0.08);
}
.lp-template #results .card_num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #129fac;
  margin-bottom: 12px;
}
.lp-template #results .leftbrain-plain-list li {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding-top: 4px;
  padding-bottom: 4px;
}
.lp-template #results .process-card .card-body {
  color: #223252;
}

/* ---------------------------------------------------------
   STRENGTHS: 背景なし、3カラム、カードはライトグレー紺文字
   --------------------------------------------------------- */
.lp-template #strengths .leftbrain-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lp-template #strengths .support-card {
  background: rgba(255, 255, 255, 0.8);
}
.lp-template #strengths .support-card,
.lp-template #strengths .support-card .card_num,
.lp-template #strengths .support-card .card_title,
.lp-template #strengths .support-card .card-body {
  color: #223252;
}

/* ---------------------------------------------------------
   PRICING: リスト上揃え（CUSTOMで隙間ができないように）
   --------------------------------------------------------- */
.lp-template #pricing .leftbrain-plain-list {
  min-height: 0;
  align-content: start;
}

/* ---------------------------------------------------------
   FLOW: 各STEPカードを左右2カラム（左: STEP+タイトル / 右: 説明文 上下中央）
   --------------------------------------------------------- */
.lp-template #flow .process-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 6px;
  align-items: center;
}
.lp-template #flow .process-card .process-card__num {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  align-self: start;
}
.lp-template #flow .process-card .process-card__title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  align-self: start;
}
.lp-template #flow .process-card .process-body {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
}
@media (max-width: 768px) {
  .lp-template #flow .process-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .lp-template #flow .process-card .process-card__num,
  .lp-template #flow .process-card .process-card__title,
  .lp-template #flow .process-card .process-body {
    grid-column: 1;
  }
  .lp-template #flow .process-card .process-card__num { grid-row: 1; }
  .lp-template #flow .process-card .process-card__title { grid-row: 2; }
  .lp-template #flow .process-card .process-body { grid-row: 3; }
}

/* ---------------------------------------------------------
   MESSAGE: 行間（前回の80%）+ p の上マージン40
   --------------------------------------------------------- */
.lp-template #message p {
  line-height: 2.72;
  margin-top: 40px !important;
}

/* ---------------------------------------------------------
   FORM: 項目名と入力欄を横並び
   --------------------------------------------------------- */
.lp-template #contact-form .contact-form__row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px !important;
}
.lp-template #contact-form .contact-form__label {
  flex: 0 0 160px;
  margin: 0;
  text-align: right;
}
.lp-template #contact-form .contact-form__input {
  flex: 1;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(14, 31, 56, 0.14);
  padding: 12px 16px !important;
  color: #10151d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-template #contact-form .contact-form__input::placeholder {
  color: rgba(16, 21, 29, 0.42);
}

.lp-template #contact-form .contact-form__input:focus {
  border-color: rgba(18, 159, 172, 0.68);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 159, 172, 0.12);
  outline: none;
}

.lp-template #contact-form .contact-form__check {
  margin-bottom: 20px !important;
  padding-left: 176px; /* label幅160 + gap16 = 入力欄左端と揃える */
}

@media (max-width: 768px) {
  .lp-template #contact-form .contact-form__check {
    padding-left: 0;
  }
}

/* contact-panel の背景・装飾削除 + 上マージン40 */
.lp-template #contact-form .contact-panel {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin-top: 40px !important;
}
/* バリデーションエラー表示 */
.lp-template #contact-form .contact-form__error {
  margin: 0 0 16px !important;
  padding: 12px 16px !important;
  border-radius: 8px;
  background: #ffe3e3;
  color: #8b0000;
  font-weight: 700;
  text-align: center;
}
.lp-template #contact-form .contact-form__row:has(.contact-form__textarea) {
  align-items: flex-start;
}
.lp-template #contact-form .contact-form__radio-group {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.lp-template #contact-form .contact-form__row--submit {
  justify-content: center;
}
@media (max-width: 768px) {
  .lp-template #contact-form .contact-form__row {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-template #contact-form .contact-form__label {
    flex: none;
  }
}

/* FORM submit ボタンを CTA ボタンと完全に同じスタイルに（style.css の .service-cta .services-link__button と同等） */
.lp-template #contact-form .services-link {
  display: flex;
  justify-content: center;
}
.lp-template #contact-form .services-link__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 360px !important;
  max-width: 100%;
  min-height: 62px !important;
  height: 62px !important;
  padding: 0 28px !important;
  border: 0;
  border-radius: 999px;
  background: var(--aurora-gradient);
  color: #fff;
  margin: 0 auto;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* ---------------------------------------------------------
   セクション間視覚余白を再設計する場合はここに追記
   （現在は上下リセットのみで、margin/padding=0 の状態）
   --------------------------------------------------------- */

/* ===========================================================
   実績下の補足テキスト
   =========================================================== */
.lp-template .results-note {
  margin-top: 40px !important;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.lp-template .results-note p {
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
}

/* 白マーカー 紺文字（hero_marker と同パターン） */
.lp-template .results-marker {
  display: inline;
  padding: 0.5em 0.4em !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: rgba(255, 255, 255, 0.96);
  color: #223252;
  line-height: 2.5;
}

/* ===========================================================
   ⑤ COMPARISON TABLE — 他社との違い（ライトグレー背景 + 紺文字）
   =========================================================== */
.lp-template #comparison {
  padding: 40px !important;
  background: rgba(245, 248, 253, 0.95);
  border: 1px solid rgba(34, 50, 82, 0.08);
  border-radius: 16px;
  color: #223252;
}

.lp-template #comparison .content-block__eyebrow,
.lp-template #comparison .content-block__label {
  color: #223252;
}

.lp-template .comparison-table-wrap {
  margin-top: 30px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-template .comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.55;
  color: #223252;
  min-width: 880px;
}

.lp-template .comparison-table th,
.lp-template .comparison-table td {
  padding: 16px 12px !important;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(34, 50, 82, 0.12);
  font-weight: 600;
  color: #223252;
  word-break: auto-phrase;
}

.lp-template .comparison-table thead th {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 16px !important;
  color: #223252;
  border-bottom: 1px solid rgba(34, 50, 82, 0.25);
}

.lp-template .comparison-table tbody th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #223252;
  width: 18%;
  padding-left: 8px !important;
}

.lp-template .comparison-table tbody tr:last-child th,
.lp-template .comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.lp-template .comparison-table .comparison-table__corner {
  background: transparent;
  border-bottom: 1px solid rgba(34, 50, 82, 0.25);
}

/* ORORA 列を強調（左端） */
.lp-template .comparison-table thead th.comparison-table__highlight {
  background: linear-gradient(180deg, #129fac, #0e7b86);
  color: #fff;
  border-radius: 10px 10px 0 0;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.lp-template .comparison-table tbody td.comparison-table__highlight {
  background: rgba(18, 159, 172, 0.14);
  color: #0e7b86;
  font-size: 14px;
  border-bottom-color: rgba(18, 159, 172, 0.25);
}

.lp-template .comparison-table tbody td.comparison-table__highlight strong {
  color: #0e7b86;
  font-weight: 800;
}

.lp-template .comparison-table__strike {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(34, 50, 82, 0.5);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-bottom: 2px;
}

.lp-template .comparison-table tbody tr:last-child td.comparison-table__highlight {
  border-radius: 0 0 10px 10px;
}

.lp-template .comparison-table__note {
  margin-top: 16px !important;
  font-size: 12px;
  color: rgba(34, 50, 82, 0.6);
  text-align: right;
}

/* SP は横スクロールヒント */
@media (max-width: 600px) {
  .lp-template #comparison {
    padding: 24px 16px !important;
  }
  .lp-template .comparison-table {
    font-size: 11px;
    min-width: 760px;
  }
  .lp-template .comparison-table th,
  .lp-template .comparison-table td {
    padding: 12px 8px !important;
  }

  /* 全テキスト 11px に統一（thead/tbody/th/td/highlight/strike/strong/note） */
  .lp-template .comparison-table thead th,
  .lp-template .comparison-table thead th.comparison-table__highlight,
  .lp-template .comparison-table tbody th,
  .lp-template .comparison-table tbody td,
  .lp-template .comparison-table tbody td.comparison-table__highlight,
  .lp-template .comparison-table tbody td.comparison-table__highlight strong,
  .lp-template .comparison-table__strike,
  .lp-template .comparison-table__note {
    font-size: 11px !important;
  }

  /* 項目名 列を狭く — corner cell に固定px幅を付与（fixed layout で確実に効かせる） */
  .lp-template .comparison-table .comparison-table__corner {
    width: 90px !important;
  }
  .lp-template .comparison-table tbody th {
    width: 90px !important;
    padding: 12px 2px 12px 4px !important;
  }
}

/* ===========================================================
   SP（〜600px）— Form, cta-quota, contact-panel
   =========================================================== */
@media (max-width: 600px) {
  /* cta-quota テキスト左揃え */
  .lp-template .cta-quota {
    text-align: left;
    justify-content: flex-start;
  }

  /* フォーム項目名 左揃え + 入力欄との間隔 10 */
  .lp-template #contact-form .contact-form__label {
    text-align: left !important;
  }
  .lp-template #contact-form .contact-form__row {
    gap: 10px !important;
  }

  /* contact-panel パディング 0 */
  .lp-template #contact-form .contact-panel {
    padding: 0 !important;
  }

  /* お問い合わせ内容(textarea) 横幅を他inputと統一 */
  .lp-template #contact-form .contact-form__textarea {
    width: 100%;
    box-sizing: border-box;
    display: block;
  }

  /* site-footer 上マージン 0 */
  body.page-template-page-marketing-consulting .site-footer,
  body.page-marketing-consulting .site-footer {
    margin-top: 0 !important;
  }

  /* FAQ アコーディオン名残掃除：アイコン非表示・パネル常時表示・ボタン化解除 */
  .lp-template #faq .faq-card__icon {
    display: none !important;
  }
  .lp-template #faq .faq-card__panel,
  .lp-template #faq .faq-card__panel[hidden] {
    display: block !important;
  }
  .lp-template #faq .faq-card__toggle {
    cursor: default;
    pointer-events: none;
  }

  /* faq-card 子要素の padding 全削除 */
  .lp-template #faq .faq-card > *,
  .lp-template #faq .faq-card__toggle,
  .lp-template #faq .faq-card__panel {
    padding: 0 !important;
  }
}

/* ===========================================================
   ⑥ 緊急性 — 各CTA上の枠数バッジ（yellow-tag スタイル）
   =========================================================== */
.lp-template .cta-quota {
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  margin: 0 0 20px !important;
  padding: 14px 24px !important;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff5b0 0%, #ffd84a 100%);
  color: #223252 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-align: left;
}

/* ===========================================================
   SP（〜600px）専用調整
   =========================================================== */
@media (max-width: 600px) {
  .lp-template .leftbrain-hero .page-header__title {
    font-size: 36px !important;
  }

  /* yellow-tag SP */
  .lp-template .yellow-tag,
  .lp-template .white-tag {
    font-size: 16px !important;
  }

  /* campaign-banner SP: 親に対して 100% 幅 + 中央揃え */
  .lp-template .campaign-banner {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* CTA内 cta-quota も同様に揃える */
  .lp-template .cta-quota {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  /* セクション上マージン: 160 → 100 */
  .lp-template .content-block {
    margin-top: 100px !important;
  }

  /* FVタグ row 16 / col 10 — 折り返し時の上下余白確保 */
  .lp-template .leftbrain-hero-meta {
    gap: 16px 10px !important;
  }

  /* RESULTS: 2カラム → 1カラム */
  .lp-template #results .process-grid {
    grid-template-columns: 1fr !important;
  }

  /* STRENGTHS: 3カラム → 1カラム */
  .lp-template #strengths .leftbrain-card-grid {
    grid-template-columns: 1fr !important;
  }

  /* case-title 28px */
  .lp-template .case-title,
  .lp-template .case-block__title {
    font-size: 28px !important;
  }

  /* results-note 24px → 18px */
  .lp-template .results-note p {
    font-size: 18px;
  }

  /* CTAセクションの p テキスト 14px */
  .lp-template .content-block.service-cta p {
    font-size: 14px;
  }

  /* FVタグ padding 20 → 10 */
  .lp-template .yellow-tag,
  .lp-template .white-tag {
    padding: 10px !important;
  }

  /* バナー上下マージン 60/24 → 20 */
  .lp-template .campaign-banner {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }

  /* セクション padding 40 → 20 */
  .lp-template #problems.content-block,
  .lp-template #before-after.content-block,
  .lp-template #faq.content-block,
  .lp-template #comparison {
    padding: 20px !important;
  }
  .lp-template .content-block.service-cta,
  .lp-template #flow.content-block,
  .lp-template #contact-form.content-block {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  /* 背景なしセクションにも padding 20 */
  .lp-template #results.content-block,
  .lp-template #strengths.content-block,
  .lp-template #message.content-block,
  .lp-template #pricing.content-block {
    padding: 20px !important;
  }

  /* #comparison 角丸削除（SPのみ） */
  .lp-template #comparison {
    border-radius: 0 !important;
  }

  /* cta-quota 角丸 999 → 5 + font 13 */
  .lp-template .cta-quota {
    border-radius: 5px !important;
    font-size: 13px !important;
  }

  /* MESSAGE セクションのみ h2 32px */
  .lp-template #message .content-block__label {
    font-size: 32px !important;
  }

  /* MESSAGE p line-height 2 */
  .lp-template #message p {
    line-height: 2;
  }
}

/* ===========================================================
   SP用 スティッキーCTA — 画面下に常時表示
   ※ MC ページ: .mc-sticky-cta / LB ページ: .lb-sticky-cta
   =========================================================== */
.mc-sticky-cta,
.lb-sticky-cta {
  display: none;
}

@media (max-width: 600px) {
  .mc-sticky-cta,
  .lb-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease;
  }

  .mc-sticky-cta__button,
  .lb-sticky-cta__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 47px;
    border-radius: 999px;
    background: var(--aurora-gradient);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 11px 22px rgba(0, 0, 0, 0.3);
    position: relative;
  }

  .mc-sticky-cta__label,
  .lb-sticky-cta__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .mc-sticky-cta__arrow,
  .lb-sticky-cta__arrow {
    position: absolute;
    right: 16px;
    font-size: 16px;
    line-height: 1;
  }

  /* contact-form セクション付近では非表示（重複防止） */
  body.sticky-cta-hidden .mc-sticky-cta,
  body.sticky-cta-hidden .lb-sticky-cta {
    transform: translateY(120%);
    pointer-events: none;
  }

  /* ページ下部の余白で footer/ form が隠れないように */
  body.page-marketing-consulting .site-footer,
  body.page-leftbrain .site-footer {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}
