
/*===============================================
●共通
===============================================*/



/*===============================================
●画面の横幅が813px以上(タブレット・PC)
===============================================*/
@media screen and (min-width: 813px) {

  .sub-page-main-img {
    background: url(../images/careers/kv.jpg) center center no-repeat;
    background-size: cover;
  }

  .sub-page-main-img > h1 {
    width: 90%;
    max-width: 758px;
  }

  /* 事業内容 */
  .box-message {
    padding-top: 120px;
  }

  .box-message > p:nth-of-type(1) {
    margin: 0 auto;
    font-size: 24px;
    font-weight: 700;
  }

  .box-message > p:nth-of-type(2) {
    margin: 50px auto 0;
    line-height: 2;
  }

  .box-message > .careers-slider {
    margin: 100px auto 0;
  }

  /* 長谷川電気土木で働くメリット */
  .box-merit {
    margin: 140px auto 0;
    padding: 120px 0 80px 0;
    background-color: #E2E2D9;
  }

  .box-merit > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 95%;
    max-width: 880px;
    margin: 100px auto 0;
  }

  .box-merit > div > div {
    position: relative;
    width: 48%;
    max-width: 400px;
    margin-bottom: 55px;
    padding-bottom: 70px;
  }

  .box-merit > div > div > p:nth-of-type(1) {
    font-size: 24px;
    text-align: left;
    letter-spacing: 0.02em;
  }

  .box-merit > div > div > img {
    margin-top: 20px;
  }

  .box-merit > div > div > p:nth-of-type(2) {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
  }

  .box-merit > div > div > p:nth-of-type(3) {
    margin-top: 10px;
    min-height: 75px;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0em;
    text-align: left;
  }

  .box-merit > div > div > a {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: block;
    width: 200px;
    height: 48px;
    padding-top: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.1em;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 100vh;
    cursor: pointer;
  }

  .box-merit > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
  }

  .box-merit > ul > li {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    width: 32%;
    max-width: 440px;
    height: 128px;
    margin-bottom: 40px;
    background-color: #fff;
  }

  .box-merit > ul > li > div:nth-of-type(1) {
    width: 100px;
    height: 65px;
  }

  .box-merit > ul > li > div:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 18px;
    font-weight: 700;
    color: #CEBC36;
    line-height: 1;
    letter-spacing: 0;
  }

  .box-merit > ul > li > div:nth-of-type(1) > img {
    width: auto;
    height: 35px;
    margin: 8px auto 0;
  }

  .box-merit > ul > li > div:nth-of-type(2) {
    flex: 1;
    padding-left: 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0;
  }

  .popup {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: calc(100vw - 100px);
    height: calc(100vh - 100px);
    max-width: 1000px;
    max-height: 880px;
    background: #fff;
    padding: 60px 40px 180px 40px;
    text-align: left;
    z-index: 999999;
  }

  .popup > div.inner{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-height: 70vh;
    padding-left: 2rem;
    padding-right: 2rem;
    overflow-y: auto;
  }

  .popup > div.inner > div {
    width: 48%;
    max-width: 400px;
    text-align: left;
  }

  .popup > div.inner > div:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 24px;
    letter-spacing: 0.02em;
  }

  .popup > div.inner > div:nth-of-type(1) > img {
    width: 100%;
    margin-top: 20px;
  }

  .popup > div.inner > div:nth-of-type(1) > p:nth-of-type(2) {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
  }

  .popup > div.inner > div:nth-of-type(1) > p:nth-of-type(3) {
    margin-top: 10px;
  }

  .popup > div.inner > div:nth-of-type(2) > p.txt01 {
    position: relative;
    margin-top: 20px;
    padding-left: 30px;
    font-size: 16px;
    font-weight: 700;
  }

  .popup > div.inner > div:nth-of-type(2) > p.txt01 > span {
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
    background-color: #CEBC36;
  }

  .popup > div.inner > div:nth-of-type(2) > p.txt02 {
    margin-top: 10px;
    font-size: 14px;
    line-height: 2;
  }

  .popup > div.btn{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    height: 100px;
    background-color: #fff;
  }

  .popup > div.btn > div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 204px;
    margin: 0 auto;
    padding-top: 30px;
  }

  .popup > div.btn > div > img {
    display: block;
    width: 82px;
    cursor: pointer;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
  }

  .close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    cursor: pointer;

  }

  body.no-scroll {
    overflow: hidden !important;
  }


  /* 募集職種一覧 */
  .box-job {
    margin: 0 auto;
    padding-top: 120px;
  }

  .box-job > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    margin: 120px auto 0;
  }

  .box-job > ul > li {
    position: relative;
    width: 32%;
    max-width: 440px;
    margin-bottom: 40px;
    padding: 40px 40px 120px 40px;
    background-color: #E3E3DA;
  }

  .box-job > ul > li > img {
    width: 140px;
    margin: 0 auto;
  }

  .box-job > ul > li > p:nth-of-type(1) {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
  }

  .box-job > ul > li > p:nth-of-type(2) {
    margin-top: 20px;
    line-height: 2;
    text-align: left;
  }

  .box-job > ul > li > a {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: block;
    width: 90%;
    max-width: 360px;
    height: 58px;
    padding: 18px;
    font-size: 18px;
    line-height: 1;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 100vh;
  }

  .box-job > ul > li > a::before {
    position: absolute;
    bottom: 24px;
    right: 20px;
    content: '';
    width: 20px;
    height: 9px;
    background: url(../images/common/arrow04.png) top center no-repeat;
    background-size: 20px;
  }

}

/*===============================================
●画面の横幅が812px以下(スマホのみ)
===============================================*/
@media screen and (max-width: 812px) {

  .sub-page-main-img {
    background: url(../images/careers/kv_sp.jpg) center center no-repeat;
    background-size: cover;
  }

  .sub-page-main-img > h1 {
    width: 61%;
  }

  /* 事業内容 */
  .box-message {
    margin: 0 auto;
    padding-top: 60px;
  }

  .box-message > p:nth-of-type(1) {
    width: 90%;
    margin: 0 auto;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
  }

  .box-message > p:nth-of-type(2) {
    width: 90%;
    margin: 30px auto 0;
    line-height: 2;
    text-align: left;
  }

  .box-message > .careers-slider {
    margin: 50px auto 0;
  }

  /* 長谷川電気土木で働くメリット */
  .box-merit {
    margin: 120px auto 0;
    padding: 60px 0 80px 0;
    background-color: #E2E2D9;
  }

  .box-merit > div {
    width: 90%;
    margin: 0 auto;
  }

  .box-merit > div > div {
    position: relative;
    margin: 60px auto 0;
  }

  .box-merit > div > div > p:nth-of-type(1) {
    font-size: 18px;
    text-align: left;
    letter-spacing: 0.02em;
  }

  .box-merit > div > div > img {
    margin-top: 20px;
  }

  .box-merit > div > div > p:nth-of-type(2) {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
  }

  .box-merit > div > div > p:nth-of-type(3) {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0em;
    text-align: left;
  }

  .box-merit > div > div > a {
    margin: 20px auto 0;
    display: block;
    width: 200px;
    height: 48px;
    padding-top: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.1em;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 100vh;
    cursor: pointer;
  }

  .box-merit > ul {
    width: 90%;
    margin: 80px auto 0;
  }

  .box-merit > ul > li {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 20px;
    background-color: #fff;
  }

  .box-merit > ul > li > div:nth-of-type(1) {
    width: 75px;
  }

  .box-merit > ul > li > div:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 14px;
    font-weight: 700;
    color: #CEBC36;
    line-height: 1;
    letter-spacing: 0;
  }

  .box-merit > ul > li > div:nth-of-type(1) > img {
    width: auto;
    height: 28px;
    margin: 8px auto 0;
  }

  .box-merit > ul > li > div:nth-of-type(2) {
    flex: 1;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0;
  }


  /* ポップアップ */
  .popup {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: calc(100vw - 30px);
    height: calc(100vh - 30px);
    max-height: 600px;
    background: #fff;
    padding: 25px 10px 100px 10px;
    text-align: left;
    z-index: 999999;
  }

  .popup > div.inner{
    max-height: 70vh;
    padding-left: 10px;
    padding-right: 10px;
    overflow-y: auto;
  }

  .popup > div.inner > div {
    padding-bottom: 60px;
    text-align: left;
  }

  .popup > div.inner > div:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 18px;
    letter-spacing: 0.02em;
  }

  .popup > div.inner > div:nth-of-type(1) > img {
    width: 100%;
    margin-top: 20px;
  }

  .popup > div.inner > div:nth-of-type(1) > p:nth-of-type(2) {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 700;
  }

  .popup > div.inner > div:nth-of-type(1) > p:nth-of-type(3) {
    margin-top: 10px;
    font-size: 12px;
  }

  .popup > div.inner > div:nth-of-type(2) > p.txt01 {
    position: relative;
    margin-top: 20px;
    padding-left: 30px;
    font-size: 16px;
    font-weight: 700;
  }

  .popup > div.inner > div:nth-of-type(2) > p.txt01 > span {
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
    background-color: #CEBC36;
  }

  .popup > div.inner > div:nth-of-type(2) > p.txt02 {
    margin-top: 10px;
    font-size: 14px;
    line-height: 2;
  }

  .popup > div.btn{
    position: absolute;
    z-index: 9;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    height: 100px;
    background-color: #fff;
  }

  .popup > div.btn > div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 204px;
    margin: 0 auto;
    padding-top: 30px;
  }

  .popup > div.btn > div > img {
    display: block;
    width: 82px;
    cursor: pointer;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
  }

  .close-btn {
    position: absolute;
    z-index: 10;
    bottom: 0;
    right: 0;
    width: 40px;
    cursor: pointer;

  }

  body.no-scroll {
    overflow: hidden !important;
  }


  /* 募集職種一覧 */
  .box-job {
    margin: 0 auto;
    padding-top: 80px;
  }

  .box-job > ul {
    width: 90%;
    margin: 60px auto 0;
  }

  .box-job > ul > li {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 20px 35px 20px;
    background-color: #E3E3DA;
  }

  .box-job > ul > li > img {
    width: 100px;
    margin: 0 auto;
  }

  .box-job > ul > li > p:nth-of-type(1) {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
  }

  .box-job > ul > li > p:nth-of-type(2) {
    margin-top: 14px;
    line-height: 2;
    text-align: left;
  }

  .box-job > ul > li > a {
    position: relative;
    margin: 20px auto 0;
    display: block;
    width: 100%;
    max-width: 350px;
    height: 50px;
    padding-top: 14px;
    font-size: 18px;
    line-height: 1;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 100vh;
  }

  .box-job > ul > li > a::before {
    position: absolute;
    bottom: 19px;
    right: 20px;
    content: '';
    width: 20px;
    height: 9px;
    background: url(../images/common/arrow04.png) top center no-repeat;
    background-size: 20px;
  }

}
