@charset "utf-8";

/* PC版 基本設定 */
.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) {
  /* 01番目：column（図が上、テキストが下） */
  .common_layout_numberphoto-txt-2row_list li:nth-child(1) .numberphoto-flex-wrapper {
    flex-direction: column !important;
  }
  /* 02番目：column-reverse */
  .common_layout_numberphoto-txt-2row_list li:nth-child(2) .numberphoto-flex-wrapper {
    flex-direction: column-reverse !important;
  }

  /* 03番目：column */
  .common_layout_numberphoto-txt-2row_list li:nth-child(3) .numberphoto-flex-wrapper {
    flex-direction: column !important;
  }

  /* 04番目：column-reverse */
  .common_layout_numberphoto-txt-2row_list li:nth-child(4) .numberphoto-flex-wrapper {
    flex-direction: column-reverse !important;
  }

  /* 05番目：column */
  .common_layout_numberphoto-txt-2row_list li:nth-child(5) .numberphoto-flex-wrapper {
    flex-direction: column !important;
  }

  /* 補足をブロック化 */
  .common_layout_numberphoto-txt-2row_list li .case-study-supplement {
    display: block !important;
    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;
  }
}