/* 02の右画像を強制的に右側に配置 */
.home-contents .content-block {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  /* border-top: 1px solid #f1f5f9; */
  background: #fff;
}

/* .home-contents .content-block:last-of-type {
  border-bottom: 1px solid #f1f5f9;
} */

/* 画像側（枠・影なしで白に馴染ませる） */
.home-contents .content-img {
  flex: 0 0 42%;
}

.home-contents .content-img img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 520px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* テキスト側 */
.home-contents .content-text {
  flex: 1;
  min-width: 0;
}

/* 番号見出し */
.home-contents .content-block .num {
  font-size: 3rem;
  font-weight: 800;
  color: #ef6c3c;
  line-height: 1;
  margin-bottom: .5rem;
}

/* 交互配置 - 01/03 左画像、02 右画像を確実に設定 */
.home-contents .content-block:nth-child(1) {
  flex-direction: row !important; /* 左側の画像 */
}

.home-contents .content-block:nth-child(2) {
  flex-direction: row-reverse !important; /* 右側の画像 */
}

.home-contents .content-block:nth-child(3) {
  flex-direction: row !important; /* 左側の画像 */
}

/* =====================================================
   背景画像付きセクション（例：子どもの活動セクション）
   ===================================================== */
/* .bg-activity {
  background-image: url('/assets/img/top_1_3.png')  !important; /* ← 背景画像のパス */
  /* background-repeat: no-repeat !important;        繰り返さない */
  /* background-size: cover !important;              セクション全体にフィット */
  /* background-position: center left !important;  中央寄せ */
  /* background-attachment: scroll !important;       スクロールと一緒に動く（固定したいなら fixed） */

  
/* } */ 

/* .bg-activity > * {
  position: relative;
  z-index: 1;
} */
/* 01 背景画像 */
.bg-activity-1 {
  background-image: url('/assets/img/top_1_3.png') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center left !important;
  background-attachment: scroll !important;
}

/* 02 背景画像 */
.bg-activity-2 {
  background-image: url('/assets/img/top_2_3.png') !important; /* 適切な画像パスに変更 */
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center right !important;
  background-attachment: scroll !important;
}

/* 03 背景画像 */
.bg-activity-3 {
  background-image: url('/assets/img/top_3_3.png') !important; /* 適切な画像パスに変更 */
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center left !important;
  background-attachment: scroll !important;
}

/* 必要に応じて、画像の上に配置されるコンテンツの位置調整 */
.bg-activity-1 > *,
.bg-activity-2 > *,
.bg-activity-3 > * {
  position: relative;
  z-index: 1;
}


/* デフォルトでは画像を非表示にする */
.mobile-img {
  display: none !important;
}


/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
/* すべてのcontent-blockに対して縦積みの設定を強制（モバイル表示） */
@media (max-width: 640px) {



  main {
  /* background-color: #fff !important; 背景色を強制的に適用 */
  background-color: rgba(255, 255, 255, 0.0) !important;  /*完全透明*/
  /* background-color: #dff5ed !important; */
  /* background-image:none !important; */


  }
  .bg-activity-1 {
  background-image: none !important;
  /* background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center left !important;
  background-attachment: scroll !important; */
}

/* 02 背景画像 */
.bg-activity-2 {
  background-image: none !important; /* 適切な画像パスに変更 */
  /* background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center right !important;
  background-attachment: scroll !important; */
}

/* 03 背景画像 */
.bg-activity-3 {
  background-image: none !important; /* 適切な画像パスに変更 */
  /* background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center left !important;
  background-attachment: scroll !important; */
}
  .mobile-img {
    display: block !important; /* 画像を表示 */
    width: 100% !important;    /* 必要に応じてサイズ調整 */
    height: auto !important;   /* 高さは自動調整 */
  }


  /* 1番目のcontent-block（文字が上、画像が下） */
  .home-contents .content-block:nth-of-type(1) {
    /* background-image: url('/assets/img/top_1.png') !important; */
    display: flex !important;
    /* flex-direction: column !important; 縦並びに変更 */
    flex-direction: column-reverse !important; 
    gap: 20px; /* 画像とテキストの間隔 */
    order: 1; /* 文字を上に、画像を下に */
  }

  /* 2番目のcontent-block（文字が上、画像が下） */
  .home-contents .content-block:nth-of-type(2) {
    /* background-image: url('/assets/img/top_2.png') !important; */
    display: flex !important;
    flex-direction: column !important;  /*縦並びに変更 */
    /* flex-direction: column-reverse !important; 画像が上に来るように変更 */
    gap: 20px; /* 画像とテキストの間隔 */
    order: 2; /* 文字を上に、画像を下に */
  }

  /* 3番目のcontent-block（文字が上、画像が下） */
  .home-contents .content-block:nth-of-type(3) {
    /* background-image: url('/assets/img/top_3.png') !important; */
    display: flex !important;
    /* flex-direction: column !important; 縦並びに変更 */
    flex-direction: column-reverse !important; 
    gap: 20px; /* 画像とテキストの間隔 */
    order: 3; /* 文字を上に、画像を下に */
  }

  /* 画像のサイズ調整（モバイル向け） */
  .home-contents .content-img {
    flex: 0 0 auto;
  }

  .home-contents .content-img img {
    max-width: 100%;  /* モバイルで画像が画面幅に合わせて調整 */
    object-fit: cover;
  }

  /* テキスト側のスタイル調整 */
  .home-contents .content-text {
    font-size: 1rem; /* モバイル向けのフォントサイズ調整 */
    padding: 10px;
  }
}

