/* 共通スタイルは外に書く */
.main__image {
  width: 100%;
  height: 100%;
}
.main__titleBox {
  padding: 6%;
}
.main__title {
  position: relative;
  padding-bottom: 30px;
  font-family: "IMFellGreatPrimer-Regular";
}
.main__title::after {
  position: absolute;
  bottom: 0;
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ccc;
}
.message__box {
  background-image: url(../../image/Rectangle.png);
  background-position: center;
  background-size: cover;
  text-align: center;
  padding: 10px 0;
}
.recruit__inner {
  padding: 7%;
}
.contentsTitle {
  text-align: center;
  color: #00315c;
}
.recruit__descriptionBox {
  margin-top: 30px;
}
.jobType__inner {
  padding: 0 5%;
}
.jobType__contents {
  border: 1px solid ;
  padding: 5%;
}
.jobType__contents:not(:first-child) {
  margin-top: 10%;
}
.jobType__skill {
  text-align: center;
  font-size: 20px;
  font-family: "IMFellGreatPrimer-Regular";
}
.jobType__link {
  display: block;
  margin: 10px 0 0 auto;
  width: 40%;
  border: 1px solid;
  padding: 5%;
  text-decoration: none;
  color: #000;
  text-align: center;
}
.jobType__link:hover {
  background-color: #E4007F;
  color: #fff;
}
.skillText-hidden {
  display: none;
}

@media screen and (min-width: 796px) { /* pc用スタイル */
  .p-header__nav {
    filter: invert(1);
  }
  .main__imageBox {
    height: 350px;
  }
  .main__titleRuby {
    font-size: min(1.5vw, 20px);
  }
  .main__title {
    font-size: min(4vw, 50px);
  }
  .message__inner {
    padding: 0 12%;
  }
  .message__box {
    font-size: min(1.5vw,20px);
  }
  .contentsTitle {
    font-size: 24px;
  }
  .recruit__description {
    display: flex;
    padding: 2% 7%;
    border-bottom: 1px solid #ccc;
  }
  .recruit__title {
    margin-right: 7%;
    width:100px;
  }
  .jobType__inner {
    margin-top: 7%;
  }
  .jobType__container {
    display: flex;
    padding: 3% 0;
    justify-content: space-between;
    align-items: center;
  }
  .jobType__container::before {
    content: "";
    display: block;
    z-index: -50;
    position: absolute;
    left: 50%;
    height: 27%;
    border-right: 1px solid #000;
  }
  .jobType__branch {
    width: 40%;
  }
  .jobType__link {
    font-size: max(1vw,10px);
    position: relative;
  }
  .line::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    right: -32px;
  }
  .jobType__skillText {
    font-size: max(1vw,10px);
  }
}

@media screen and (max-width: 795px) { /* sp用スタイル */
  .main__imageBox {
    height: 200px;
  }
  .main__titleRuby {
    font-size: max(1.5vw, 10px);
  }
  .main__title {
    font-size: max(2vw, 30px);
  }
  .message__inner {
    padding: 0 10%;
  }
  .message__box {
    font-size: max(1.5vw,11px)
  }
  .recruit__description {
    padding: 2% 5%;
    border-bottom: 1px solid #ccc;
  }
  .recruit__title {
    font-weight: bold;
  }
  .jobType__inner {
    margin-top: 7%;
    padding-bottom: 30px;
  }
  .jobType__branch {
    margin-top: 30px;
  }
  .jobType__link {
    font-size: max(1vw,10px);
  }
  .jobType__skillText {
    font-size: 2vw;
    text-align: center;
  }
  .skillText-hidden {
    display: block;
  }
  .line {
    display: none;
  }
}
@media screen and (max-width: 500px) {
  .recruit__title {
    font-size: 14px;
  }
  .recruit__text {
    font-size: max(2.5vw,10px);
  }
}