.bg-gray {
  background: #e8e7e7;
}

#sec1,
#sec2,
#sec3 {
  &.bg-white {
    color: #231815;
  }
}

#sec1 {
  padding: 4rem 20px 8rem;

  .text {
    width: 58%;
    @media (max-width: 991.98px) {
      width: 100%;
    }

    .big {
      font-size: 35px;
      font-weight: bold;

      @media (max-width: 991.98px) {
        font-size: 24px;
      }
    }
  }

  .img {
    width: 35%;

    @media (max-width: 991.98px) {
      width: 100%;
    }
  }
}

#sec2,
#sec3 {
  padding: 8rem 0;

  @media (max-width: 767.98px) {
    padding: 4rem 0;
  }
}

.page-child {
  #sec3 {
    padding-bottom: 12rem;

    @media (max-width: 767.98px) {
      padding-bottom: 6rem;
    }
  }
}

#sec2 {
  .headline {
    margin-bottom: 3rem;

    .big {
      font-size: 35px;
      font-weight: bold;
      margin-bottom: 10px;

      @media (max-width: 767.98px) {
        font-size: 24px;
      }
    }
  }

  .recruit-item {
    text-align: center;

    img {
      display: block;
    }

    .bg-wh {
      background: #fff;
      padding: 25px 15px;

      p {
        margin-bottom: 0;

        &.fs25 {
          font-size: 25px;

          @media (max-width: 767.98px) {
            font-size: 16px;
          }
        }
      }
    }

    .link {
      background: #1e1e1e;
      padding: 13px 20px;
      color: #fff;
      position: relative;
      display: block;
      width: 100%;
      z-index: 2;
      border-top: 0.5px solid #1e1e1e;
      letter-spacing: -0.1em;

      span {
        display: inline-block;
        position: relative;
        padding-right: 30px;
        &::before {
          background: url(../../img/top/arrow_w.svg) center center / contain
            no-repeat;
          position: absolute;
          content: "";
          width: 20px;
          height: 20px;
          background-size: contain;
          right: 0;
          top: 50%;
          transform: translateY(-50%);
          z-index: 10;
        }
      }
      &::after {
        content: "";
        position: absolute;
        left: 0;
        width: 0;
        height: 100%;
        background-color: #fff;
        transition: 0.3s;
        top: 0;
        z-index: -1;
      }

      &:hover {
        color: #1e1e1e;
        opacity: 1;
        &::before {
          background: url(../../img/top/arrow_b.svg) center center / contain
            no-repeat;
        }
        &::after {
          width: 100%;
        }
      }
    }
  }
}
.positions {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border: 1px solid #808080;

  .position-item {
    flex: 1 0 25%;
    box-sizing: border-box;
    border-right: 1px solid #808080;
    text-align: center;
    padding: 60px 0 75px;
    position: relative;
    border-top: 7px solid #666;
    @media (max-width: 1199.98px) {
      flex: 0 0 50%;
      padding: 35px 0 40px;
      @media (max-width: 767.98px) {
        flex: 0 0 100%;
        border-top-width: 4px;
        border-right: none;
        padding: 20px 0 35px;
      }
      &:nth-child(2) {
        border-right: none;
      }
    }

    &:nth-child(2) {
      border-color: #838078;
    }
    &:nth-child(3) {
      border-color: #9e917e;
    }
    &:nth-child(4) {
      border-color: #92948e;
    }

    &:last-child {
      border-right: none;
    }
    .position-name {
      font-size: 25px;
      margin-bottom: 24px;
      @media (max-width: 767.98px) {
        font-size: 18px;
        margin-bottom: 10px;
      }
    }

    .link {
      font-size: 15px;
      padding: 10px 15px;
      position: relative;
      display: block;
      width: 75%;
      min-width: 210px;
      border: 0.5px solid #231815;
      margin: 0 auto;

      &[href] {
        background-color: #231815;
        color: #fff;
        cursor: pointer;
        span {
          display: inline-block;
          position: relative;
          padding-right: 30px;
          &::before {
            background: url(../../img/top/arrow_w.svg) center center / contain
              no-repeat;
            position: absolute;
            content: "";
            width: 20px;
            height: 20px;
            background-size: contain;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
          }
        }

        &:hover {
          color: #231815;
        }
      }
      &:not([href]) {
        background-color: transparent;
        color: #231815;
        cursor: default;
        pointer-events: none;
      }
      &::after {
        position: absolute;
        left: 0;
        width: 0;
        height: 100%;
        content: "";
        background-color: #fff;
        transition: 0.3s;
        top: 0;
        z-index: -1;
      }

      &:hover::after {
        width: 100%;
      }
      &:hover::before {
        background: url(../../img/top/arrow_b.svg) center center / contain
          no-repeat;
      }
    }
    &.active {
      background: #666;
      color: #fff;
    }
  }

  &.tab {
    border-right: none;
    border-left: none;
    .position-item {
      padding: 0;
       @media (max-width: 767.98px) {
      border-right: 1px solid #808080;
      &:last-child{
        border-right: none;
      }
       }

      .position-name {
        padding: 22px 0 26px;
        color: #4d4039;
        display: block;
        margin-bottom: 0;
        font-size: 20px;

        @media (max-width: 767.98px) {
          font-size: 14px;
          padding: 15px 0 20px;
        }
        &:hover {
          opacity: 1;
        }
      }

      &.active .position-name {
        color: #fff;
      }
    }

    @media (max-width: 1199.98px) {
      .position-name {
        padding: 12px 0 17px;
        font-size: 16px;
      }
      .position-item {
        flex: 0 0 25%;
        border-top-width: 4px;
        &:nth-child(2) {
          border-right: 1px solid #838078;
        }
      }
      div.container.sp-pd-0 {
        padding: 0;
      }
    }
  }
}

.page-child {
  #breadcrumb,
  #breadcrumb a {
    color: #fff;
  }

  &.post-name-information-construction,
  &.post-name-information-design {
    #breadcrumb,
    #breadcrumb a {
      color: #231815;
    }
  }
  &.post-name-interview-sales {
    .header-ttl {
      display: none;
    }
    #breadcrumb {
      background: #666;
      margin-top: -1px;
    }
    .site-body {
      background: #666;
      margin-top: -1px;
      color: #fff;
      padding-bottom: 0;
    }
  }
  &.post-name-interview-design {
    .header-ttl {
      display: none;
    }
    #breadcrumb {
      background: #838078;
      margin-top: -1px;
    }
    .site-body {
      background: #838078;
      margin-top: -1px;
      color: #fff;
      padding-bottom: 0;
    }
    .positions .position-item.active {
      background: #838078;
    }
  }
  &.post-name-interview-construction {
    .header-ttl {
      display: none;
    }
    #breadcrumb {
      background: #9e917e;
      margin-top: -1px;
    }
    .site-body {
      background: #9e917e;
      margin-top: -1px;
      color: #fff;
      padding-bottom: 0;
    }
    .positions .position-item.active {
      background: #9e917e;
    }
  }
  &.post-name-interview-generalaffairs {
    .header-ttl {
      display: none;
    }
    #breadcrumb {
      background: #92948e;
      margin-top: -1px;
    }
    .site-body {
      background: #92948e;
      margin-top: -1px;
      color: #fff;
      padding-bottom: 0;
    }
    .positions .position-item.active {
      background: #92948e;
    }
  }

  .site-body {
    h2.min {
      font-size: 75px;
      font-weight: 500;
      margin: 80px 0 85px;
      @media (max-width: 767.98px) {
        font-size: 48px;
        margin: 40px 0 30px;
        line-height: 1.5;
      }

      span {
        font-family: "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ",
          Meiryo, sans-serif;
        font-size: 16px;
        font-weight: normal;
        display: inline-block;
        margin-left: 40px;
        @media (max-width: 767.98px) {
          display: block;
          margin-left: 0;
        }
      }
    }
  }
}
.page-child .tab-wrap {
  position: fixed;
            top: 100px;
            width: 100%;
            background: #fff;
            z-index: 100;
}
.admin-bar.page-child .tab-wrap{
  top: 132px;
}
@media(max-width: 991.99px){
.page-child .tab-wrap {
  top: 60px;
}
.admin-bar.page-child .tab-wrap {
            top: 92px;
}
}
.page-child.post-name-interview-sales #breadcrumb,
.page-child.post-name-interview-design #breadcrumb,
.page-child.post-name-interview-construction #breadcrumb,
.page-child.post-name-interview-generalaffairs #breadcrumb{
  margin-top: 186px;
  z-index: 1;
    position: relative;
}
@media(max-width: 991.99px){
.page-child.post-name-interview-sales #breadcrumb,
.page-child.post-name-interview-design #breadcrumb,
.page-child.post-name-interview-construction #breadcrumb,
.page-child.post-name-interview-generalaffairs #breadcrumb{
   margin-top: 122px;
}
}
.page-child.post-name-interview-sales .positions.tab{
  border-bottom: 1px solid #666;
}
.page-child.post-name-interview-design .positions.tab{
  border-bottom: 1px solid #838078;
}
.page-child.post-name-interview-construction .positions.tab{
  border-bottom: 1px solid #9e917e;
}
.page-child.post-name-interview-generalaffairs .positions.tab{
  border-bottom: 1px solid #92948e;
}
.main-img {
  position: relative;

  img {
    @media (max-width: 767.98px) {
      aspect-ratio: 1;
      object-fit: cover;
      object-position: 25%;
      border-left: 1px solid #fff;
      border-right: 1px solid #fff;
    }
  }

  p {
    position: absolute;
    width: 40%;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
    font-size: 35px;

    @media (max-width: 1199.98px) {
      font-size: 24px;
      @media (max-width: 767.98px) {
        position: absolute;
        transform: none;
        font-size: 20px;
        margin-bottom: 6px;
        background: linear-gradient(
          180deg,
          rgba(0, 0, 0, 0),
          rgb(0, 0, 0) 100%
        );
        padding: 40px 15px 15px;
        top: auto;
        width: calc(100% - 2px);
        left: 1px;
        right: 1px;
        bottom: 0;
      }
    }
  }
}

.col-left {
  width: 50%;
  margin-bottom: 4rem;
  @media (max-width: 1199.98px) {
    width: 100%;
  }
  h3 {
    font-size: 22px;
    -webkit-font-smoothing: antialiased;
    text-indent: -1em;
    padding-left: 1em;
    @media (max-width: 767.98px) {
      font-size: 20px;
    }

    &:nth-of-type(2),
    &:nth-of-type(3) {
      margin: 40px 0 30px;
      padding-top: 40px;
      border-top: 0.5px solid #fff;
    }
  }

  p {
    line-height: 2em;
  }
}

.col-right {
  width: 45%;
  background: #fff;
  color: #231815;
  padding: 35px 40px;
  margin-bottom: 6rem;

  @media (max-width: 1199.98px) {
    width: 100%;
    margin-bottom: 4rem;
    @media (max-width: 767.98px) {
      padding: 25px 20px;
    }
  }
  .fs22 {
    font-size: 22px;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
  }

  .oneday {
    position: relative;
    padding: 0;
    margin-bottom: 50px;
    list-style: none;

    &::before {
      content: "";
      position: absolute;
      left: 75px;
      top: 6px;
      bottom: 8px;
      width: 1px;
      background-color: #231815;
    }

    li {
      position: relative;
      margin-bottom: 40px;

      &:last-child {
        margin-bottom: 0;
      }

      &::before {
        content: "";
        position: absolute;
        left: 68px;
        top: 5px;
        width: 17px;
        height: 17px;
        border-radius: 50vh;
        background-color: #231815;
      }
    }

    .oneday-time {
      position: absolute;
      left: 0;
      width: 45px;
      margin: 0;
      text-align: right;
    }

    .oneday-content {
      margin-left: 105px;

      p {
        margin: 0;
      }
      span {
        display: block;
      }
    }
  }
}
.page-child:not(.post-name-interview-sales) .col-right .oneday {
  margin-bottom: 160px;
  @media (max-width: 1199.98px) {
    margin-bottom: 40px;
  }
}

.job-details {
  border: 0.5px solid #bcbcbc;
  margin-bottom: 6rem;

  th,
  td {
    border: 0.5px solid #bcbcbc;
    padding: 1rem;
  }

  th {
    background: #efefef;
    width: 20%;
    text-align: left;
  }

  @media screen and (max-width: 767.98px) {
    margin-bottom: 4rem;
    th,
    td {
      display: block;
      border-bottom: none;
      width: 100%;
    }
  }
}
.job-header {
  margin-top: 4rem;

  h2.job-department {
    margin-bottom: 0;
    font-size: 2rem;

    span {
      font-weight: normal;
      font-size: 65%;
      display: inline-block;
      margin-left: 20px;
    }
  }

  @media (max-width: 767.98px) {
    .job-department {
      font-size: 1.75rem;
    }
    .job-title {
      font-size: 1.25rem;
    }
  }
}
.apply-btn {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 767.98px) {
  div.container.sp-pd-0 {
    padding: 0;
  }
}
/* .positions {
  & .position-item {
    @media (max-width: 767.98px) {
      border-right: 1px solid #838078;
    }
  }
} */
