/* =====================================
MOTHERSHIP HERO（母艦）
※母艦ページのみ読み込み（functions.php: page-id 4145）
===================================== */

body.page-id-4145 .ms-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

/* 背景（動画/画像） */
body.page-id-4145 .ms-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.page-id-4145 .ms-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-id-4145 .ms-hero-image {
  display: none;
  position: absolute;
  inset: 0;
  background-image: url("https://syuzaidouga.com/wp/wp-content/uploads/2023/10/20231027TOP_SP.jpg");
  background-size: cover;
  background-position: 50% 20%;
  background-repeat: no-repeat;
}

/* 紗（暗いオーバーレイ） */
body.page-id-4145 .ms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

/* コンテンツ */
body.page-id-4145 .ms-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: left;
}

body.page-id-4145 .ms-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 28px;
}

body.page-id-4145 .ms-hero-title-line {
  display: block;
  white-space: nowrap; /* PCで3行化しない（2行固定） */
}

body.page-id-4145 .ms-hero-lead {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 36px;
}

body.page-id-4145 .ms-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA：左右で見た目とサイズを揃える */
body.page-id-4145 .ms-hero-actions .ms-btn {
  min-width: 240px;
}

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

@media (max-width: 767px) {
  /* スマホ：HEROコピーをもう少し上へ（上の空き詰め） */
  body.page-id-4145 .ms-hero {
    align-items: flex-start;
  }

  body.page-id-4145 .ms-hero-video {
    display: none;
  }

  body.page-id-4145 .ms-hero-image {
    display: block;
  }

  body.page-id-4145 .ms-hero-content {
    /* タイトルは上、CTAは下、リードは中間寄り */
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 64px 20px 56px;
  }

  body.page-id-4145 .ms-hero-title {
    font-size: clamp(22px, 6.2vw, 26px); /* 3行に収めるため少し縮小 */
    line-height: 1.32; /* 行間に余裕（上が空いて見える問題の見た目改善） */
    margin-bottom: 22px;
  }

  /* SP：3行にする（br.ms-br-sp + 2つの行ブロック） */
  body.page-id-4145 .ms-hero-title-line {
    white-space: normal;
  }

  /* 3行目が折り返して4行目にならないように */
  body.page-id-4145 .ms-hero-title-line2 {
    white-space: nowrap;
    font-size: 0.92em;
  }

  body.page-id-4145 .ms-hero-lead {
    font-size: 15px;
    line-height: 2.05;
    /* タイトル直下から少し下げて“中央寄り”に */
    margin-top: clamp(14px, 12vh, 110px);
    margin-bottom: 0;
  }

  body.page-id-4145 .ms-hero-actions {
    /* CTAを画像の下の方へ */
    margin-top: auto;
    flex-direction: column;
    gap: 12px;
  }

  body.page-id-4145 .ms-hero-actions .ms-btn {
    width: 100%;
  }
}

