/*メインコンテンツ部分　-----------------------------*/
.main-contents {
  width: 100%;
}

.main-contents .column-box {
  margin-bottom: 50px;
}

.text-mobile {
  display: none;
}

/* セクション間の重なりを完全に防ぐ */
.group01, .group02, .group03, #news {
  position: relative;
  height: auto !important; /* 高さを内容に合わせる */
  overflow: visible;
  display: block;
  clear: both;
}

/*セクショングループ01部分　-----------------------------*/
/* 事業内容・採用情報 */
.main-contents .group01 .contents01,
.main-contents .group01 .contents02 {
  display: flex;
  flex-wrap: wrap; 
  min-height: 450px;
  width: 100%;
}

.main-contents .group01 .contents01 {background: linear-gradient(-90deg,#FFFFFF,#000000); color: #fff; }
.main-contents .group01 .contents02 { background: linear-gradient(90deg,#FFFFFF,#0000FF); color: #fff; }


/* 事業内容、採用情報の本文のテキストサイズ指定 */
.contents01 .detail,
.contents02 .detail {
    font-size: 2.1rem; /* お好みのサイズに調整 */
}
.main-contents .group01 .detail {
  flex: 1;
  min-width: 320px;
  padding: 4rem 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-contents .group01 .detail h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.main-contents .group01 .detail p {
  font-size: 1.7rem;
  line-height: 1.8;
}

.main-contents .group01 figure {
  flex: 1;
  min-width: 320px;
}

.main-contents .group01 figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 事業内容・採用情報の見出し（リンク）の見た目調整 */
.main-contents .group01 .detail h2 a {
    text-decoration: underline; /* 常に下線を表示してリンクであることを示す */
    text-underline-offset: 8px; /* 文字と線の間隔を少し空けてスッキリさせる */
    transition: opacity 0.3s;    /* 変化を滑らかに */
}

/* マウスを乗せた時だけ少し透明にする（「押せる」合図） */
.main-contents .group01 .detail h2 a:hover {
    opacity: 0.7;
    text-decoration: none; /* ホバー時に線を消す、あるいは色を変える */
}

/* リンク文字にマウスを置いた時、カーソルを指の形にする（念のため） */
.main-contents .group01 .detail h2 a {
    cursor: pointer;
}

/*セクショングループ02部分　-----------------------------*/
.main-contents .group02 {
  color: #fff;
  background-color: #808080;
  padding: 5rem 0;
  margin-top: 0;
}

.main-contents .group02 h2 {
  text-align: center; /* タイトル中央揃え */
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/*セクショングループ03部分　-----------------------------*/
.main-contents .group03 {
  width: 100%;
  padding: 5rem 0 0;
}

.news-title {
  text-align: center; /* タイトル中央揃え */
  margin-bottom: 1rem;
}

.news-title h2 {
  font-size: 2.5rem;
}

/* レスポンシブ対応　------------------------------*/
@media screen and (max-width: 768px) {
  .text-pc {
    display: none;
  }
  .text-mobile {
    display: inline;
  }
  
  .main-contents .group01 .contents01,
  .main-contents .group01 .contents02 {
    display: flex;
    flex-wrap: nowrap;
    min-height: auto;
    height: auto;
    align-items: stretch;
  }
  
  .main-contents .group01 figure {
    flex: none;
    width: 50%;
    min-width: auto;
    height: 100%;
    margin: 0;
    line-height: 0;
    display: flex;
  }
  
  .main-contents .group01 .contents01 figure img,
  .main-contents .group01 .contents02 figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .main-contents .group01 .detail {
    flex: none;
    width: 50%;
    min-width: auto;
    padding: 0;
    min-width: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  
  .main-contents .group01 .detail h2 {
    font-size: 4vw;
    text-align: center;
  }
  
  .main-contents .group01 .detail p {
    font-size: 2vw;
    text-align: center;
  }
}