.service-list {
  background-color: #f7f7f7;
  position: relative;
  /* overflow: hidden; */
}
.service-list-content {
padding-top: 7.5rem;
position: relative;
}
.service-list-wrapper {
display: flex;
align-items: flex-start;
gap: 8.38rem;
position: relative;
min-height: 200vh;
}

.image-column {
/* flex: 1; */
position: absolute;
align-self: flex-start; 
top: 0;
left: 0;
height: 75vh;
width: calc(50vw - 8.38rem);
overflow: hidden;
z-index: 10;
transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.image-column.fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 75vh;
  width: calc(50vw - 8.38rem);
  z-index: 10;
}
.image-column.stop-fixed,
.image-column.start-fixed {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
}

.image-column img {
position: absolute;
top: 0;
left: 0;
width: 700px;
height: 100%;
opacity: 0;
transition: all 2s ease;
z-index: 0;
object-fit: cover;
object-position: center;
}

.image-column img.active {
opacity: 1;
z-index: 1;
}

.content-sections {
margin-left: 50%;
margin: 3.5rem 0 7rem;
width: 815px;
margin-left: auto;
position: relative;
z-index: 5;
display: flex;
flex-direction: column;
align-items: flex-end;
}

.content-section {
  transition: opacity var(--transition-medium);
  padding: 5rem 9.37rem 5rem 0;
}
.content-section[data-section="2"],
.content-section[data-section="3"], 
.content-section[data-section="4"] {
  padding: 10.5rem 9.37rem 5rem 0;
}


.content-section.active {
  opacity: 1;
}

#service .section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--font-size-ttl-jp);
  font-weight: 700;
  color: var(--color-black-navy);
  margin-bottom: 24px;
}
#service .section-title:nth-child(1) {
  font-family: var(--font-family-en);
}

.section-title::before {
  position: absolute;
  top: 60%;
  left: -3rem;
  transform: translateY(-50%);
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-lightblue) 100%);
}

#service .description {
  font-size: var(--font-size-text);
  font-weight: 400;
  line-height: 2.35rem; /* 190.909% */
  margin-top: 1.5rem;
}
#service .tags {
  margin-bottom: 0;
  white-space: nowrap;
}
#service .c-link {
  margin-top: 5.8rem;
}

.section-image {
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.5s ease;

}
.section-image.active {
  opacity: 1;
  z-index: 10;
}
#service .content-wrapper.tb-sp-only {
  padding: 0;
}

/* 1920px以上の画面でのみ大きなサイズに */
@media screen and (min-width: 1920px) {
  .image-column img {
    width: 55rem; /* 1920px以上の画面でのみ大きなサイズ */
  }
  .image-column {
    /* flex: 1; */
    position: absolute;
    align-self: flex-start; 
    top: 0;
    left: 0;
    height: 75vh;
    width: calc(60vw - 8.38rem);
    overflow: hidden;
    z-index: 10;
    }
    .image-column.fixed {
      position: fixed;
      bottom: 0;
      left: 0;
      height: 75vh;
      width: calc(60vw - 8.38rem);
      z-index: 10;
    }
}
@media screen and (max-width: 1600px) {
  .service-list-wrapper {
      gap: 3.5rem;
      position: relative;
      min-height: 200vh;
      }
  }

/* 1500px以下の画面で画像サイズを調整 */
@media screen and (max-width: 1500px) {
  .image-column img {
    width: 35rem; /* 1500px以下の画面で画像を小さく */
  }
  
  .service-list-wrapper {
    gap: 4rem; /* 画像と文字の間隔を縮小 */
    justify-content: center; /* 全体を中央寄せ */
  }
  
  .content-sections {
    width: 50%; /* 文字部分の幅を広げてテキストが切れないように */
    margin-left: auto; /* 左マージンをリセット */
  }
  #service .description {
    line-height: 2rem; /* 190.909% */
    width: 90%;
  }

  /* 2〜4個目のセクションのパディングトップを調整 */
.content-section {
  padding: 5.5rem 3.37rem 5rem 0;
}
.content-section[data-section="2"],
.content-section[data-section="3"], 
.content-section[data-section="4"] {
  padding: 10.5rem 3.37rem 5rem 0;
}
}
@media screen and (max-width: 1400px)  {
    .service-list-wrapper {
      display: block;
    }
    #service .description {
      width: 85%;
}
.image-column {
  top: -50px;
}
}

.image-column-inner img {
  position: absolute;
}
/* タブレット・スマホ用の画像スタイル */
@media screen and (max-width: 1200px) {
  .service-list-wrapper {
    gap: 0;
    padding: 0 7rem;
  }
  .service-list-content {
    padding-top: 0rem;
  }
  
  .image-column {
    display: none; /* PC用の固定画像を非表示 */
  }
  
  .content-sections {
    margin: 0;
    width: 100%;
  }
  
  .content-section {
    padding: 5rem 0rem 5rem 0rem;
  }
  /* 2〜4個目のセクションのパディングトップを調整 */
.content-section[data-section="2"],
.content-section[data-section="3"],
.content-section[data-section="4"] {
  padding: 1rem 0rem 5rem 0rem;
}

#service .content-wrapper.tb-sp-only {
  position: initial;
}

#service .content-wrapper {
  display: flex !important;
  justify-content: center;
}
  
  #service .service-image.tb-sp-only {
    position: initial;
    width: 100%;
    left: 0;
    transform: translate(0%);
    margin-left: 0;
    padding-left: 0;
    height: auto;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding-right: 0;
  }
  
  #service .service-image.tb-sp-only img {

    height: auto;
    object-fit: cover;
    object-position: center;
    position: relative;
    max-width: 100%;
    aspect-ratio: 4 / 2.4;
    margin: 0 auto 0 0;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
    overflow: hidden;
  }

  /* 4枚目の画像をもう少し下を表示 */
  .content-section[data-section="4"] .service-image.tb-sp-only img {
    object-position: 100% 30% !important; /* 下側をより多く表示 */
  }

  #service .description {
    font-size: var(--font-size-text);
    font-weight: 400;
    line-height: 1.75rem; /* 190.909% */
    margin-top: 1.65rem;
    padding-right: 1.87rem;
  }
  #service .tags {
    margin-top: 1.5rem;
    gap: 0.5rem;
  }

  #service .c-link {
    margin-top: 2.5rem;
  }
  #service .section-title {
    margin-top: 1.5rem;
    margin-bottom: 0 ;
    font-size: var(--font-size-ttl-jp);
    font-weight: 600;
    letter-spacing: -0.02rem;
  }
  .section-title::before {
    left: -2rem;
    width: 1rem;
    height: 0.375rem;
  }

  .content-section {
    width: 100%;
    position: relative;
  }
}
@media screen and (max-width: 768px) {
  .content-section {
    padding: 6.25rem 0 7.5rem;
  }
    /* 2〜4個目のセクションのパディングトップを調整 */
.content-section[data-section="2"],
.content-section[data-section="3"],
.content-section[data-section="4"] {
  padding: 0 0 7.5rem;
}
.content-section[data-section="4"] {
  padding: 0 0 5.44rem;
}
/* Content sections */
#service .service-content {
  padding: 0 1.87rem 0 3.74rem;
}
  /* .service-list-content {
    padding: 0 1.87rem 0 3.74rem;
  } */
  #service .service-image.tb-sp-only {
    padding: 0;
    max-width: none;
    width: 100vw; 
    margin-left: calc(50% - 50vw);
  }
  #service .c-link {
    margin-top: 2.65rem;
  }
  #service .tags {
    margin-top: 2.5rem;
  }
  #service .section-title {
    font-size: var(--font-size-ttl-jp);
    font-weight: 600;
    letter-spacing: -0.02rem;
    margin-top: 2.5rem;
  }
  .section-title::before {
    left: -1.5rem;
  }
  #service .service-image.tb-sp-only img {
    aspect-ratio: 1 / 1;
  }

  .service-list-wrapper {
    padding: 0;
  }

  #service .description {
    margin-top: 1.1rem;
    line-height: 1.5625rem;
  }
}
.image-column-inner {
  width: 500px;
  right: 0;
}