/* --- Layout --- */
.l-container {
  width: 102%;
  height: 580px;
  margin: 0 auto;
  display: flex;
  gap: 5rem; 
  color: white;
  position: relative; 
  overflow: hidden;   
  padding: 36px 8.3%;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  align-items: center;

}

.c-recruitHeader__ttl{
  color: white;
}


.l-container::before{
  content: '';
  position: absolute;
  z-index: -1;
  background-color: var(--main-color);
  top: 0;
  bottom: 0;
  width: 100vw; 
  left: 0;
}

/* --- Component: Recruit Header --- */
.c-recruitHeader {
  text-align: left; /* 左揃えに変更 */
  flex-shrink: 0; /* 幅が縮まないように */
  width: 40%; /* 幅を指定 */
  height: 420px;
}




/* --- Component: Scroll Gallery --- */
.c-scrollGallery {
  /* ▼▼▼ ここからが重要な変更点 ▼▼▼ */
  position: relative; /* 子要素を絶対配置するための基準点 */
  max-width: 550px;
  width: 55%; /* 幅を指定 */
  aspect-ratio: 1 / 1.1; /* コンテナの縦横比を固定 */
  overflow: hidden;
  padding: 0; 
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  height: 100%;
}

.c-scrollGallery__grid {
  position: absolute; /* 親要素を基準に絶対配置 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 親要素いっぱいに広がる */
  /* ▲▲▲ ここまでが重要な変更点 ▲▲▲ */

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  transform: rotate(-3deg) scale(1.35); /* 拡大率と回転 */
}

.c-scrollGallery__column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  will-change: transform;
}

.c-scrollGallery__column--up {
  padding-bottom: 50vh;
}

.c-scrollGallery__column--down {
  padding-top: 50vh;
}



.c-scrollGallery__imageWrapper {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1 / 1;
}

.c-scrollGallery__imageWrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #ddd;
}

.c-serviceLowerCont__ttl h4{
  color: white;
  font-weight: var(--regular-weight);
}

  


@media screen and (max-width: 768px) { /* 768px以下の画面幅に適用 */
  .l-container{
    display: block;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    padding: 60px 32px;
    height: auto;

  }
  .c-recruitHeader{
    width: 100%;
    gap: 0;
    height: auto;
  }
  .c-scrollGallery{
    width: 100%;
    margin-top: 24px;
  }



  /* down列の上の余白をPC版(50vh)より減らす */
  .c-scrollGallery__column--down {
    padding-top: 15vh; 
  }

  /* up列もバランスを取るために同じ値に調整するのがおすすめです */
  .c-scrollGallery__column--up {
    padding-bottom: 15vh; 
  }
  .c-hgroup > h3{
    margin-top: 24px;
    margin-bottom: 40px;
    font-weight: var(--bold-weight);
  }


}

.c-btn--white{
  color: var(--main-color);
  background-color: white;
}

.c-toprecruit__btn{
  margin-top: 32px;
}


@media (min-width: 1500px) {
  .l-container{
      gap: 10.6rem; 
  }
}
