/* ===============================
MOTHERSHIP TOP（母艦）: 本文 + ボタン
※母艦ページのみ読み込み（functions.php: page-id 4145）
=============================== */

body.page-id-4145 {
  overflow-x: hidden;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  color: #222;
  background: #fff;
}

body.page-id-4145 a {
  color: #0099cc;
  text-decoration: none;
}

body.page-id-4145 a:hover {
  text-decoration: underline;
}

/* セクション共通 */
body.page-id-4145 .ms-section {
  padding: 96px 24px;
}

body.page-id-4145 .ms-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ===============================
TOP本文（HERO直下）
=============================== */

body.page-id-4145 .ms-section.ms-message {
  padding-bottom: 32px;
}

body.page-id-4145 .ms-section.ms-message .ms-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

body.page-id-4145 .ms-section-title {
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 22px;
}

/* SP専用改行：PCでは無効、SPでだけ有効 */
body.page-id-4145 br.ms-br-sp {
  display: none;
}

body.page-id-4145 .ms-section-text {
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: left;
  line-height: 2;
  font-size: 16px;
  color: #222;
}

/* ===============================
CTAボタン（HERO/本文 共通）
=============================== */

body.page-id-4145 .ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  min-width: 240px; /* 左右でサイズを揃える（PC） */
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #0099cc;
  background: #fff;          /* 白地 */
  color: #0099cc;            /* 青文字 */
  transition: background .25s ease, color .25s ease, opacity .25s ease, box-shadow .25s ease;
}

body.page-id-4145 .ms-btn.is-primary {
  background: #fff;
  color: #0099cc;
}

body.page-id-4145 .ms-btn.is-secondary {
  background: #fff;
  color: #0099cc;
}

body.page-id-4145 .ms-btn:hover {
  opacity: .92;
  text-decoration: none;
  background: #0099cc;
  color: #fff;
}

body.page-id-4145 .ms-btn:focus-visible {
  outline: 3px solid rgba(0, 153, 204, .35);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 153, 204, .12);
}

/* 本文CTA配置 */
body.page-id-4145 .ms-message-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px; /* 本文とCTAの間を少し開ける */
}

/* ページ最下部CTA（意図ブリッジの末尾） */
body.page-id-4145 .ms-bottom-cta {
  margin-top: 40px;
}

/* 2ボタンの横幅を必ず揃える（PC） */
body.page-id-4145 .ms-message-cta .ms-btn,
body.page-id-4145 .ms-hero-actions .ms-btn {
  flex: 0 0 320px;
}

/* ===============================
意図ブリッジ（追加本文）
=============================== */

body.page-id-4145 .ms-section.ms-intent-bridge {
  padding-top: 40px;
}

body.page-id-4145 .ms-intent-bridge .ms-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 意図ブリッジの見出しは ms-section-title を流用（同じ扱い） */
body.page-id-4145 .ms-intent-bridge .ms-section-title {
  margin-top: 0;
}

body.page-id-4145 .ms-intent-text {
  max-width: 640px;
  margin: 0 auto 18px;
  text-align: left;
  line-height: 2;
  font-size: 16px;
  color: #222;
}

/* CTAとフッターの間を詰める（母艦本文セクションの下余白） */
body.page-id-4145 .ms-section.ms-message {
  padding-bottom: 8px;
}

/* ===============================
SP
=============================== */

@media (max-width: 768px) {
  body.page-id-4145 .ms-section {
    padding: 72px 20px;
  }

  body.page-id-4145 .ms-section-title {
    font-size: 22px;
  }

  body.page-id-4145 br.ms-br-sp {
    display: inline;
  }

  body.page-id-4145 .ms-section-text {
    font-size: 15px;
  }

  /* 意図ブリッジ見出し（スマホだけ中央揃え） */
  body.page-id-4145 .ms-intent-bridge .ms-section-title {
    text-align: center;
  }

  body.page-id-4145 .ms-message-cta {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  body.page-id-4145 .ms-message-cta .ms-btn {
    width: 100%;
  }

  body.page-id-4145 .ms-intent-text {
    font-size: 15px;
  }

  /* SPは100%幅で揃う */
  body.page-id-4145 .ms-message-cta .ms-btn,
  body.page-id-4145 .ms-hero-actions .ms-btn {
    flex: unset;
  }
}

