main {
  font-family: "Zen Maru Gothic", sans-serif !important;
  overflow: hidden;
}


.main_img{
    width: 10rem;
}
.mainvisual{
  padding: 0rem 2.5rem 0rem 3rem;
}

.leaf_img{
  width: 58rem;
  height: 45rem;
  object-fit: cover;
  position: absolute;
  transform: rotate(45deg) scale(0.8);
  object-position: 33% 50%;
  right: -19rem;
  top: -15rem;
}

.sabutitle{
    font-size: 1.6rem;
    color: #83468b;
    font-weight: bold;
}
.title{
    font-size: 4rem;
    font-family: Zen Maru Gothic;
    margin-top: -1.2rem;
    font-weight: 500;
}
.title_revruit{
  margin-left: -2rem;
}

.recruit-wrap {
  background: #FCF7E7;  /* ベージュ背景 */
  padding: 5rem 0rem 5.1rem 0rem;
  border-radius: 10px;
  max-width: 98rem;
  margin: 2rem auto 15rem;
}

/* ←このすぐ下に追加 */
.recruit-wrap {
  position: relative;
  display: flow-root; /* 浮いた要素 (.leaf_imgなど) を包み込む */
}


/* 全体の背景と余白 */
.mainvisual {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: start;
  justify-items: center;
}


/* 写真の配置指定 */
.main_img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* 各画像の位置 */
.main_img:nth-of-type(1) {
  grid-column: 1; /* 左上 */
  grid-row: 2;
  width: 40.9rem;
  height: 26.5rem;
  transform: translateY(0.8rem); 

}

.main_img:nth-of-type(2) {
  grid-column: 1; /* 左下 */
  grid-row: 3;
  width: 21.2rem;
  height: 24.4rem;
  transform: translate(10rem, 4.5rem);
}

.main_img:nth-of-type(3) {
  grid-column: 2; /* 右側全体（2行分） */
  grid-row: 2 / span 2;
  width: 45.6rem;
  height: 35.9rem;
  transform: translate(1.6rem, 11rem); 
}

/* スマホ対応 */
/* @media (max-width: 768px) {
  .mainvisual {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .main_img:nth-of-type(1),
  .main_img:nth-of-type(2),
  .main_img:nth-of-type(3) {
    grid-column: auto;
    grid-row: auto;
  } */

  .message{
    width: 85rem;
    height: 47rem;
    background-color: white;
    border-radius: 1rem;
    margin: 7.4rem auto 0;
  }
  .massege_title{
    font-weight: bold;
    background-color: #D55167;
    color: white;
    width: 26.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center; 
    font-size: 1.8rem;
    border-radius: 0.5rem;

  }
  .recruit_massege_title{
    padding-top: 5rem;
    padding-left: 4rem;
  }
  .massege_text{
    padding-top: 2rem;
    padding-left: 4rem;
    font-size: 1.6rem;
    font-weight: 500;
  }
  .img_center{
    width: 85rem;
    height: 46.8rem;
    margin: 4rem auto 0;
    border-radius: 1rem;
    display: block;
  }
  .img-wrap{
    position: relative;
    width: 85rem;
    height: 46.8rem;
    margin: auto;
  }
  .center_text{
  font-weight: 500;
   position: absolute;
   width: 46rem;
   height: 9.8rem;
   font-size: 2rem;
   background-color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 1rem;
   top: 35.5rem;
   left: 1.5rem;
   opacity: 0.89;
  }
  .features_gropu,.title_recruitment{
    text-align: center;
    margin-top: 10rem;
  }
  .features_sabutitle,.recruitment_sabutitle{
    color: #83468B;
    font-size: 1.6rem;
    font-weight: bold;
  }
.features_title{
    font-size: 4rem;
    margin-bottom: 1.5rem;
    margin-top: -1.2rem;
    font-weight: 500;
}

.recruitment_title{
    font-size: 4rem;
    margin-bottom: 1rem;
    margin-top: -1.2rem;
    font-weight: 500;
}


.content{
    display: flex;
    justify-content: center;
    gap: 1rem;         
}
.employee_benefits_img,.childcare_img,.system_img{
    width: 22rem;
    height: 13rem;
    display: block;
    margin: 0 auto;
    border-radius: 1rem;
}
.employee_benefits,.childcare,.system{
    width: 28rem;
    height: 34.5rem;
    background-color: white;
    border-radius: 1rem;
}

.employee_benefits_title,.childcare_title,.system_title{
    font-size: 1.6rem;
    margin: 3rem auto 0.5rem;
    text-align: center;
    font-weight: bold;
}
.text_3{
  text-align: center;
}
.employee_benefits_text,.childcare_text,.system_text{
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-left: -1rem;
    display: inline-block;
    text-align: left; 
    line-height: 2rem;
    font-weight: 500;
}

.system_text{
  margin-left: 0rem;
}

.recruitment_text{
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.7;
}
.link_button{
    line-height: 3.6rem;
    display: inline-block;
    color: white;
    height: 3.6rem;
    width: 16.2rem;
    background-color: #D55167;
    font-size: 1.8rem;
    text-align: center;
    border-radius: 0.5rem;
}
.button{
    text-align: center;
    margin-bottom: 4.5rem;
    margin-top: 3.6rem;
}
.form{
    text-align: center;
    background-color: #83468B;
    width: 56.8rem;
    height: 17.4rem;
    display: inline-block;
    color: white;
    border-radius: 1rem;
}
.form_img{
    width: 3.6rem;
    height: 3.6rem;
}
.form_main{
    text-align: center;
}
.form_text{
    font-size: 1.6rem;
    margin-top: 2rem;
    font-weight: 500;
}
.tel_main{
    font-size: 2.5rem;
    margin-left: 1rem;
    font-weight: 500;
}
.tel{
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.tel_support{
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}
.mail{
    font-size: 1.6rem;
    display: inline-block;
    border-bottom: 1px solid #fff;
    font-weight: 500;
}
.sp_only {
  display: none;
}

@media (max-width: 768px) {
.mainvisual {
    display: grid;
    grid-template-columns: 1fr 1fr !important; /* ← 左右を完全に等幅に */
    grid-template-areas:
    "title title"
    "img1 img1"
    "img2 img3";
    gap: 2; /* ← 中央線を正確に合わせる */
    justify-items: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    column-gap: 2rem; /* ← 横の間隔 */
    row-gap: 1.5rem;  /* ← 縦の間隔 */
  }

  .main_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transform: none !important;
    position: static !important;
  }

  .main_img:nth-of-type(1) {
    grid-area: img1;
    width: 31.5rem;
    height: 20rem;
  }


  .main_img:nth-of-type(2) {
    grid-area: img2;
    width: 14.7rem;
    height: 20rem;
  }

  .main_img:nth-of-type(3) {
    grid-area: img3;
    width: 14.7rem;
    height: 20rem;
  }

  .main_img:nth-of-type(2),
  .main_img:nth-of-type(3) {
    transform: none !important;
    width: 100%;
  }


  .leaf_img{
    width: 46rem;
    height: auto;
    top: -9rem !important;
    right: -16rem;
  } 

  .message{
    width: 31.5rem;
    height: auto;
  }
  .mainvisual {
    position: relative;
    height: auto !important;
    overflow: visible !important;

}
.img_center{
  width: 31.5rem;
  height: 21rem;
}

  .content {
    display: flex;
    flex-direction: column; /* ← 縦並びにする */
    align-items: center;    /* ← 真ん中寄せ（任意） */
    gap: 1rem;              /* ← 要素間の余白 */
  }

  /* 子要素（箱）を幅いっぱいにする */
  .employee_benefits,
  .childcare,
  .system {
    width: 90%;       /* ← スマホ幅に合わせて調整 */
    height: 34.5rem;
  }
  .form{
    width: 30rem;
    height: 10.8rem;
  }
.center_text{
  width: 31.5rem;
  height: 6rem;
}
  .title_revruit {
    grid-column: 1 / -1;  /* ← 全カラムをまたぐ */
    width: 100%; 
    margin-top: 6rem;
    margin-left: 0.5rem;
  }
  .title{
    font-size: 3rem;
  }

  .title_revruit h2.title {
    margin-bottom: 1.5rem;
    white-space: nowrap;   /* ← 改行を禁止！ここが重要 */
    margin-top: 0.4rem;
  }
.recruit-wrap{
  padding: 5rem 1rem 6.1rem 1rem;
  margin: 2rem 2rem 14.1rem;
}
.recruit_massege_title{
  display: flex;
  justify-content: center;
  padding-left: 0;
}
.massege_text{
  padding: 2rem 2.5rem 5rem;
  font-size: 1.4rem;
}
.img-wrap{
  width: 100%;
  height: auto !important;
  
} 

.center_text{
  font-size: 1.4rem;
  top: 15rem;
  left: 0rem;
}
.recruitment_text{
  font-size: 1rem;
}
.form_text{
  font-size: 0.7rem;
  margin-top: 1.3rem;
}
.tel_main{
  font-size: 1.6rem;
}
.tel_support{
  font-size: 1.1rem;
}
.mail{
  font-size: 1rem;
  padding-bottom: 0rem;
}
.form_img{
  width: 2.4rem;
  height: auto;
}
.tel{
  margin-top: 0.4rem;
}
.message{
  margin-top: 3rem;
}
.features_sabutitle,.recruitment_sabutitle{
  font-size: 1.2rem;
}
.features_title,.recruitment_title{
  font-size: 2.4rem;
  margin-top: -0.5rem;
}
.link_button{
  font-size: 1.2rem;
  width: 11rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  line-height: 2.4rem;
}
.button{
  margin-bottom: 1.6rem;
  margin-top: 1.2rem;
}
.pc_only {
    display: none;
  }
.sp_only {
    display: block;
  }
  .tel_main{
    margin-left: 0.7rem;
  }
  .mainvisual{
  padding: 0rem 0rem 0rem 0rem;
}
.tel_support{
  margin-top: 0.1rem;
}
}