@charset "utf-8";

section.page_mv {
  position: relative;
  .mv-img {
    width: 100%;
    min-height: 600px;
    object-fit: cover;
  }
  .page-title-wrapper {
    position: absolute;
    top: 55%;
    left: 50%;
    translate: -50% -50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .logo {
    max-width: 300px;
    margin-bottom: 2rem;
  }
  .page-title {
    font-size: 3.5rem;
  }
}
@media (max-width: 960px) {
  section.page_mv {
    position: relative;
    .mv-img {
      width: 100%;
      min-height: 300px;
      object-fit: cover;
    }
    .page-title-wrapper {
      top: 50%;
      width: 100%;
    }
    .logo {
      width: 55%;
      max-width: 300px;
      margin-bottom: 2rem;
    }
    .page-title {
      font-size: 3rem;
    }
  }
}

main.page-body {
  background: url(../img/subpage-bg.jpg) no-repeat;
  background-size: cover;
}

:root {
  --section-padding: 8rem 0;
}
@media (max-width: 960px) {
  :root {
    --section-padding: 4rem 0;
  }
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 5rem;
  @media (max-width: 960px) {
    font-size: 2.25rem;
    margin-bottom: 3rem;
  }
}

/*=========================
  description
=========================*/
section.recruit_description {
  padding: var(--section-padding);
  word-break: keep-all;
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    @media (max-width: 960px) {
      font-size: 1.75rem;
    }
  }
  .text {
    text-align: center;
    text-wrap: balance;
  }
}

/*=========================
  requirements
=========================*/
section.recruit_requirements {
  padding: var(--section-padding);
  padding-top: 0;
  .inner {
    background-color: #343434;
    padding: 4rem 5%;
  }
  .labels {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    .label {
      background-color: #7e5903;
      padding: 1.5rem 0.75rem;
      text-align: center;
    }
    @media (max-width: 960px) {
      flex-direction: column;
      .label {
        width: min(80%, 280px);
      }
    }
  }
  .table {
    display: grid;
    grid-template-columns: auto 1fr;
    border: #ffffff 1px solid;
    margin-bottom: 4rem;
    .row {
      display: grid;
      grid-template-columns: subgrid;
      grid-column: 1/-1;
      border-bottom: #ffffff 1px solid;
      &:last-of-type {
        border-bottom: none;
      }
      .th {
        padding: 1rem;
        background-color: #7e8082;
        border-right: #ffffff 1px solid;
      }
      .td {
        padding: 1rem;
      }
    }
    @media (max-width: 960px) {
      grid-template-columns: 1fr;
      .row {
        .th {
          border-right: none;
        }
      }
    }
  }
  .text {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 2rem;
  }
  .button {
    margin-inline: auto;
    @media (any-hover: hover) {
      &:hover {
        /* opacity: 0.5; */
        background-color: inherit;
        color: inherit;
        border: 1px solid #ffffff;
      }
      &::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        background-color: #fff;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
      }
      &:hover {
        opacity: 1;
      }
      &:hover::before {
        opacity: 0.25;
      }
    }
  }
}
