@charset "utf-8";
.common_layout_numberphoto-txt-2row_list li {
  display: flex;
  align-items: center;
}
/* ✅ .numberphoto-flex-wrapper がある li だけ縦並びに */
.common_layout_numberphoto-txt-2row_list li:has(.numberphoto-flex-wrapper) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* 図とテキストを横並びにするラッパー */
.common_layout_numberphoto-txt-2row_list li .numberphoto-flex-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}
/* 導入事例補足エリア */
.common_layout_numberphoto-txt-2row_list li .case-study-supplement {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  padding: 15px 30px;
  margin-top: 30px;
}
.common_layout_numberphoto-txt-2row_list li .case-study-supplement figure {
  flex: 0 0 500px;
  max-width: 500px;
  margin: 0;
}
.common_layout_numberphoto-txt-2row_list li .case-study-supplement figure img {
  width: 100%;
  height: auto;
  display: block;
}
.common_layout_numberphoto-txt-2row_list li .case-study-supplement > div {
  flex: 1 1 auto;
}
.common_layout_numberphoto-txt-2row_list li .case-study-supplement h4 {
  margin-bottom: 16px;
}
/* モバイル対応 */
@media screen and (max-width: 768px) {
  /* .numberphoto-flex-wrapper を持たない li を縦並びに */
  .common_layout_numberphoto-txt-2row_list li:not(:has(.numberphoto-flex-wrapper)) {
    display: flex !important;
    flex-direction: column;
  }

  /* ✅ 02番目（.numberphoto-flex-wrapper）：図が上、テキストが下 */
  .common_layout_numberphoto-txt-2row_list li:nth-child(2) .numberphoto-flex-wrapper {
    flex-direction: column-reverse !important;
  }

  /* ✅ 03番目：逆にしない（既にfigure, textの順序） */
  .common_layout_numberphoto-txt-2row_list li:nth-child(3) .numberphoto-flex-wrapper {
    flex-direction: column !important;
  }

  /* ✅ 04番目：figure を上に */
  .common_layout_numberphoto-txt-2row_list li:nth-child(4) {
    flex-direction: column-reverse !important;
  }

  .common_layout_numberphoto-txt-2row_list li .case-study-supplement {
    display: block;
    gap: 0;
    padding: 20px;
    margin-top: 32px;
  }

  .common_layout_numberphoto-txt-2row_list li .case-study-supplement figure {
    max-width: 100%;
    margin: 0 0 16px 0;
  }

  /* 画像の幅調整 */
  .common_layout_numberphoto-txt-2row_list li figure {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

