@charset "utf-8";
/* CSS Document */

#contents {
  margin-top: 140px;
}

.wrap {
  width: 60%;
}

#recruit .wrap,
#humanities .wrap {
  width: 75%;
}

#topimg {
  position: relative;
  width: 100%;
  height: 150px;
}

#recruit #topimg {
  position: relative;
  background-size: 100% auto;
  height: auto;
}

#recruit #topimg .bg {
  position: relative;
  width: 100%;
  height: 0;
  background: url(../img/recruit/top.jpg);
  /* (画像の高さ / 画像の横幅) × 100 */
  padding-top: 60%;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
}


/*#recruit #topimg{background:url(../img/recruit/top.jpg) 10% top no-repeat;}*/
#guideline #topimg {
  background: url(../img/guideline/top.jpg) center no-repeat;
}

#ojt #topimg {
  background: url(../img/ojt/top.jpg) center no-repeat;
}

#welfare #topimg {
  background: url(../img/welfare/top.jpg) center no-repeat;
}

#faq #topimg {
  background: url(../img/faq/top_bg.png) center;
}

#humanities #topimg {
  background: url(../img/humanities/top.jpg) no-repeat center;
  background-size: cover;
}

h2.content_title {
  position: absolute;
  text-align: center;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  color: #FFF;
  background: #004e90;
  font-size: 1.6vw;
  padding: 15px 20px;
}

#recruit h2.content_title {
  background: #a33e9c;
}


@media screen and (max-width: 769px) {

  .wrap,
  #recruit .wrap,
  #humanities .wrap {
    width: 80%;
  }


  #recruit #topimg .bg {
    padding-top: 50%;
  }

  h2.content_title {
    font-size: 1.6rem;
    top: -20px;
    padding: 5px 10px;
  }

}

@media screen and (max-width: 480px) {

  .wrap,
  #recruit .wrap,
  #humanities .wrap {
    width: 100%;
  }

  #topimg {
    height: 50px;
  }

  h2.content_title {
    min-width: 220px;
  }

}