@charset "UTF-8";

@media only screen and (min-width: 768px) {
.sp_only{
  display: none!important;
}

.c .main{
  width: 100%;
  padding: 8% 10%;
}
.c .main .head{
}
.c .main .head h1{
  width: 100%;
  border-bottom: 1px solid #232570;
  padding-bottom: 1.4vw;
  font-size: 2.2vw;
  font-weight: 600;
  letter-spacing: 0.2rem;
}
.c .main .head h1 span{
  color: #232570;
  font-size: 1.3vw;
  margin-left: 1.3vw;
  letter-spacing: 0.1rem;
}
#relay .c .main .mv{
  width: 100%;
  margin: 10% auto 4%;
  text-align: center;
}
#relay .c .main .mv img{
  width: 72%;
}
#relay .c .main .mv p{
  color: #231815;
  letter-spacing: 0.2rem;
  font-size: 1.6vw;
  margin-bottom: 6vw;
}
#relay .c .bottom{
  width: 100%;
  padding: 0 0 3vw;
}
#relay .c .bottom .box01{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 2%;
  position: relative;
  margin-bottom: 11%;
}
#relay .c .bottom .box01:before {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  left: 0;
  position: absolute;
  background: #232570;
}
#relay .c .bottom .box01:after {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  right: 0;
  position: absolute;
  background: #c7041b;
}
#relay .c .bottom .box01 .left{
  position: relative;
  background: url(../../img/recruit/group01.webp) no-repeat center center;
  background-size: cover;
  width: 52%;
  padding-bottom: 27%;
  z-index: 9;
}
#relay .c .bottom .box01 .left img {
  display: block;
  position: absolute;
  width: 42%;
  background: #fff;
  padding: 2% 10%;
  left: -4%;
  top: 50%;
  margin-top: -8%;
  box-shadow: 4px 4px 10px 1px #0000004f;
}
#relay .c .bottom .box01 .right{
  width: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 3%;
}
#relay .c .bottom .box01 .right h3{
  width: 100%;
  text-align: left;
  font-size: 1.6vw;
  font-weight: 500;
}
#relay .c .bottom .box01 .right p{
  text-align: justify;
  font-size: 1.1vw;
  line-height: 180%;
  margin-top: 1vw;
  margin-bottom: 2.4vw;
}
#relay .c .bottom .box01 .right a{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1vw;
  text-align: center;
  width: 80%;
  height: 3vw;
  border: 1px solid #00000066;
  transition: all 0.4s cubic-bezier(.19, 1, .22, 1);
}
#relay .c a:hover {
  opacity: 0.5;
}
#relay .c .bottom .box01 .right a img{
  width: 2.6%;
  margin-left: 4%;
}
#relay .c .bottom .box02{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 2%;
  position: relative;
  flex-flow: row-reverse;
  margin-bottom: 11%;
}
#relay .c .bottom .box02:before {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  left: 0;
  position: absolute;
  background: #232570;
}
#relay .c .bottom .box02:after {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  right: 0;
  position: absolute;
  background: #c7041b;
}
#relay .c .bottom .box02 .left{
  position: relative;
  background: url(../../img/recruit/group02.webp) no-repeat center center;
  background-size: cover;
  width: 52%;
  padding-bottom: 27%;
  z-index: 9;
}
#relay .c .bottom .box02 .left img {
  display: block;
  position: absolute;
  width: 44%;
  background: #fff;
  padding: 4% 5%;
  left: -4%;
  top: 50%;
  margin-top: -8%;
  box-shadow: 4px 4px 10px 1px #0000004f;
}

#relay .c .bottom .box02 .right{
  width: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 3%;
}
#relay .c .bottom .box02 .right h3{
  width: 100%;
  text-align: left;
  font-size: 1.6vw;
  font-weight: 500;
}
#relay .c .bottom .box02 .right p{
  text-align: justify;
  font-size: 1.1vw;
  line-height: 180%;
  margin-top: 1vw;
  margin-bottom: 2.4vw;
}
#relay .c .bottom .box02 .right a{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1vw;
  text-align: center;
  width: 80%;
  height: 3vw;
  border: 1px solid #00000066;
  transition: all 0.4s cubic-bezier(.19, 1, .22, 1);
}
#relay .c .bottom .box02 .right a img{
  width: 2.6%;
  margin-left: 4%;
}
#relay .c .bottom .box03{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 2%;
  position: relative;
  margin-bottom: 11%;
}
#relay .c .bottom .box03:before {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  left: 0;
  position: absolute;
  background: #232570;
}
#relay .c .bottom .box03:after {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  right: 0;
  position: absolute;
  background: #c7041b;
}
#relay .c .bottom .box03 .left{
  position: relative;
  background: url(../../img/recruit/group03.webp) no-repeat center center;
  background-size: cover;
  width: 52%;
  padding-bottom: 27%;
  z-index: 9;
}
#relay .c .bottom .box03 .left img {
  display: block;
  position: absolute;
  width: 44%;
  background: #fff;
  padding: 4% 5%;
  left: -4%;
  top: 50%;
  margin-top: -8%;
  box-shadow: 4px 4px 10px 1px #0000004f;
}
#relay .c .bottom .box03 .right{
  width: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 6%;
}
#relay .c .bottom .box03 .right h3{
  width: 100%;
  text-align: left;
  font-size: 1.6vw;
  font-weight: 500;
}
#relay .c .bottom .box03 .right p{
  text-align: justify;
  font-size: 1.1vw;
  line-height: 180%;
  margin-top: 1vw;
  margin-bottom: 2.4vw;
}
#relay .c .bottom .box03 .right a{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1vw;
  text-align: center;
  width: 80%;
  height: 3vw;
  border: 1px solid #00000066;
  transition: all 0.4s cubic-bezier(.19, 1, .22, 1);
}
#relay .c .bottom .box03 .right a:last-child{
  margin-top: 1vw;
}
#relay .c .bottom .box03 .right a img{
  width: 2.6%;
  margin-left: 4%;
}
#relay .c .bottom .box04{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 2%;
  position: relative;
  flex-flow: row-reverse;
  margin-bottom: 11%;
}
#relay .c .bottom .box04:before {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  left: 0;
  position: absolute;
  background: #232570;
}
#relay .c .bottom .box04:after {
  content: "";
  width: 50%;
  height: 1px;
  top: 10%;
  right: 0;
  position: absolute;
  background: #c7041b;
}
#relay .c .bottom .box04 .left{
  position: relative;
  background: url(../../img/recruit/group04.webp) no-repeat center center;
  background-size: cover;
  width: 52%;
  padding-bottom: 27%;
  z-index: 9;
}
#relay .c .bottom .box04 .left img {
  display: block;
  position: absolute;
  width: 44%;
  background: #fff;
  padding: 4% 5%;
  left: -4%;
  top: 50%;
  margin-top: -8%;
  box-shadow: 4px 4px 10px 1px #0000004f;
}
#relay .c .bottom .box04 .right{
  width: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 7%;
}
#relay .c .bottom .box04 .right h3{
  width: 100%;
  text-align: left;
  font-size: 1.6vw;
  font-weight: 500;
}
#relay .c .bottom .box04 .right p{
  text-align: justify;
  font-size: 1.1vw;
  line-height: 180%;
  margin-top: 1vw;
  margin-bottom: 2.4vw;
}
#relay .c .bottom .box04 .right a{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1vw;
  text-align: center;
  width: 80%;
  height: 3vw;
  border: 1px solid #00000066;
  transition: all 0.4s cubic-bezier(.19, 1, .22, 1);
}
#relay .c .bottom .box04 .right a img{
  width: 2.6%;
  margin-left: 4%;
}

#relay footer{
  margin-top: 0;
}
	
	/* 左右を分割するコンテナ */
.recruit-container {
  display: flex;
  max-width: 1000px;
  margin: 100px auto;
  gap: 30px; /* 左右のブロックの隙間 */
}

/* 各企業のブロック */
.company-block {
  flex: 1; /* 左右同じ幅にする */
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* 企業名 */
.company-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaeaea;
}

/* ボタンを囲むグループ */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ボタンのスタイル */
.btn {
  display: block;
  text-decoration: none;
  color: #ffffff;
  background-color: #2c3e50; /* デフォルトのボタン色 */
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ホバー時のアクション */
.btn:hover {
  background-color: #1a252f;
  transform: translateY(-2px);
}

/* 企業ごとのカラーリング設定（必要に応じて変更してください） */
.tokumura .btn {
  background-color: #0056b3; /* 徳村組のテーマカラーを想定した青 */
}
.tokumura .btn:hover {
  background-color: #004494;
}

.handex .btn {
  background-color: #e67e22; /* ハンデックスのテーマカラーを想定したオレンジ */
}
.handex .btn:hover {
  background-color: #d35400;
}
}
@media only screen and (max-width: 768px) {
  .pc_only{
    display: none!important;
  }
  #relay .c .main{
    width: 100vw;
    padding: 24vw 7vw 4vw;
  }
  #relay .c .main .head{
  }
  #relay .c .main .head h1{
    width: 100%;
    border-bottom: 1px solid #232570;
    padding-bottom: 4vw;
    font-size: 5vw;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-align: center;
  }
  #relay .c .main .head h1 span{
    color: #232570;
    font-size: 3vw;
    margin-top: 2%;
    letter-spacing: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #relay .c .main .mv{
    width: 90%;
    margin: 10% auto;
  }
  #relay .c .main .mv p{
    color: #231815;
    letter-spacing: 0.15rem;
    font-size: 4vw;
    margin-bottom: 6vw;
    line-height: 190%;
    text-align: center;
  }  
  #relay .c .bottom{
    background-size: cover;
    padding: 4vw 0 4vw;
  }
  #relay .c .bottom .box01{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    margin-bottom: 11%;
  }
  #relay .c .bottom .box01:before {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    left: 0;
    position: absolute;
    background: #232570;
  }
  #relay .c .bottom .box01:after {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    right: 0;
    position: absolute;
    background: #c7041b;
  }
  #relay .c .bottom .box01 .left{
    position: relative;
    background: url(../../img/recruit/group01.webp) no-repeat center center;
    background-size: cover;
    width: 86%;
    padding-bottom: 41%;
    z-index: 9;
  }
  #relay .c .bottom .box01 .left img {
    content: "";
    display: block;
    position: absolute;
    background: #fff;
    width: 60%;
    padding: 3% 17%;
    left: 50%;
    bottom: -22%;
    margin-left: -30%;
    box-shadow: 4px 4px 10px 1px #0000004f;
  }
  #relay .c .bottom .box01 .right{
    width: 86%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 17vw;
  }
  #relay .c .bottom .box01 .right h3{
    width: 100%;
    text-align: left;
    font-size: 4.6vw;
    font-weight: 500;
  }
  #relay .c .bottom .box01 .right p{
    text-align: justify;
    font-size: 13px;
    line-height: 180%;
    margin-top: 3.3vw;
    margin-bottom: 4.4vw;
  }
  #relay .c .bottom .box01 .right a{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.3vw;
    text-align: center;
    width: 100%;
    height: 12vw;
    border: 1px solid #00000066;
  }
  #relay .c .bottom .box01 .right a img{
    width: 2%;
    margin-left: 4%;
  }
  
  #relay .c .bottom .box02{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    margin-bottom: 11%;
  }
  #relay .c .bottom .box02:before {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    left: 0;
    position: absolute;
    background: #232570;
  }
  #relay .c .bottom .box02:after {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    right: 0;
    position: absolute;
    background: #c7041b;
  }
  #relay .c .bottom .box02 .left{
    position: relative;
    background: url(../../img/recruit/group02.webp) no-repeat center center;
    background-size: cover;
    width: 86%;
    padding-bottom: 41%;
    z-index: 9;
  }
  #relay .c .bottom .box02 .left img {
    content: "";
    display: block;
    position: absolute;
    background: #fff;
    width: 60%;
    padding: 5% 6%;
    left: 50%;
    bottom: -22%;
    margin-left: -30%;
    box-shadow: 4px 4px 10px 1px #0000004f;
  }
  #relay .c .bottom .box02 .right{
    width: 86%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 17vw;
  }
  #relay .c .bottom .box02 .right h3{
    width: 100%;
    text-align: left;
    font-size: 4.6vw;
    font-weight: 500;
  }
  #relay .c .bottom .box02 .right p{
    text-align: justify;
    font-size: 13px;
    line-height: 180%;
    margin-top: 3.3vw;
    margin-bottom: 4.4vw;
  }
  #relay .c .bottom .box02 .right a{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.3vw;
    text-align: center;
    width: 100%;
    height: 12vw;
    border: 1px solid #00000066;
  }
  #relay .c .bottom .box02 .right a img{
    width: 2%;
    margin-left: 4%;
  }
  
  #relay .c .bottom .box03{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    margin-bottom: 11%;
  }
  #relay .c .bottom .box03:before {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    left: 0;
    position: absolute;
    background: #232570;
  }
  #relay .c .bottom .box03:after {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    right: 0;
    position: absolute;
    background: #c7041b;
  }
  #relay .c .bottom .box03 .left{
    position: relative;
    background: url(../../img/recruit/group03.webp) no-repeat center center;
    background-size: cover;
    width: 86%;
    padding-bottom: 41%;
    z-index: 9;
  }
  #relay .c .bottom .box03 .left img {
    content: "";
    display: block;
    position: absolute;
    background: #fff;
    width: 60%;
    padding: 5% 6%;
    left: 50%;
    bottom: -22%;
    margin-left: -30%;
    box-shadow: 4px 4px 10px 1px #0000004f;
  }
  #relay .c .bottom .box03 .right{
    width: 86%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 17vw;
  }
  #relay .c .bottom .box03 .right h3{
    width: 100%;
    text-align: left;
    font-size: 4.6vw;
    font-weight: 500;
  }
  #relay .c .bottom .box03 .right p{
    text-align: justify;
    font-size: 13px;
    line-height: 180%;
    margin-top: 3.3vw;
    margin-bottom: 4.4vw;
  }
  #relay .c .bottom .box03 .right a{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.3vw;
    text-align: center;
    width: 100%;
    height: 12vw;
    border: 1px solid #00000066;
  }
  #relay .c .bottom .box03 .right a:last-child{
    margin-top: 3vw;
  }
  #relay .c .bottom .box03 .right a img{
    width: 2%;
    margin-left: 4%;
  }
  
  #relay .c .bottom .box04{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    margin-bottom: 11%;
  }
  #relay .c .bottom .box04:before {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    left: 0;
    position: absolute;
    background: #232570;
  }
  #relay .c .bottom .box04:after {
    content: "";
    width: 50%;
    height: 1px;
    top: 10%;
    right: 0;
    position: absolute;
    background: #c7041b;
  }
  #relay .c .bottom .box04 .left{
    position: relative;
    background: url(../../img/recruit/group04.webp) no-repeat center center;
    background-size: cover;
    width: 86%;
    padding-bottom: 41%;
    z-index: 9;
  }
  #relay .c .bottom .box04 .left img {
    content: "";
    display: block;
    position: absolute;
    background: #fff;
    width: 60%;
    padding: 5% 6%;
    left: 50%;
    bottom: -22%;
    margin-left: -30%;
    box-shadow: 4px 4px 10px 1px #0000004f;
  }
  #relay .c .bottom .box04 .right{
    width: 86%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 17vw;
  }
  #relay .c .bottom .box04 .right h3{
    width: 100%;
    text-align: left;
    font-size: 4.6vw;
    font-weight: 500;
  }
  #relay .c .bottom .box04 .right p{
    text-align: justify;
    font-size: 13px;
    line-height: 180%;
    margin-top: 3.3vw;
    margin-bottom: 4.4vw;
  }
  #relay .c .bottom .box04 .right a{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.3vw;
    text-align: center;
    width: 100%;
    height: 12vw;
    border: 1px solid #00000066;
  }
  #relay .c .bottom .box04 .right a img{
    width: 2%;
    margin-left: 4%;
  }
  
  #relay footer{
    margin-top: 0;
  }
	
	/* === 採用情報セクション（スマホ版：縦並び） === */
  .recruit-container {
    display: flex;
    flex-direction: column; /* ここで確実に縦並びにします */
    width: 86%; /* 他のbox要素と幅を合わせる */
    margin: 100px auto 11%;
    gap: 6vw; /* 上下のブロックの隙間 */
  }
  .company-block {
    width: 100%;
    background-color: #f9f9f9;
    padding: 8vw 5vw;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  .company-name {
    font-size: 4.6vw;
    font-weight: 600;
    margin-bottom: 6vw;
    padding-bottom: 3vw;
    border-bottom: 2px solid #eaeaea;
  }
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 4vw; /* ボタン同士の隙間 */
  }
  .company-block .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    padding: 4vw;
    border-radius: 6px;
    font-size: 3.5vw;
    font-weight: bold;
  }
  /* 企業ごとのカラー */
  .tokumura .btn { background-color: #232570; }
  .handex .btn { background-color: #e67e22; }
}