.jobs {
  padding-left: 7.5px;
  padding-right: 7.5px;
}

.jobs-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, min(96vw, 360px));
  gap: 16px;
  margin-bottom: 80px;
  justify-content: center;
}

.job-type {
  width: min(96vw, 360px);
  background-color: #fff;
  border: 1px solid var(--mint-green);
  border-radius: 8px;
  padding: 15.5px 0;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
  color: #000;
}

.job-type.active {
  background-color: var(--mint-green);
  color: #fff;
}

.job-type:hover {
  background-color: var(--mint-green);
  color: #fff;
}

.job-details__image.sp {
  display: block;
  width: min(450px, 85.33vw);
  aspect-ratio: 1;
  margin: 0 auto;
  margin-bottom: 20px;
}

.job-details__title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
}

.job-details__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.job-details__info-item {
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 500;
}

.message {
  margin-top: 40px;
}

.message__video {
  width: 100%;
  aspect-ratio: 360 / 203;
  background-color: #707070;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}

.message .link {
  margin-top: 40px;
}

@media (min-width: 768px) {
  .jobs {
    padding-top: 100px;
  }

  .jobs .text_type_title {
    margin-bottom: 100px;
  }

  .job-details {
    max-width: 900px;
    margin: 0 auto;
  }

  @media (max-width: 1199px) {
    .job-details__image.pc {
      display: none;
    }
  }

  @media (min-width: 1200px) {
    .jobs {
      padding-left: 0;
    }

    .jobs-types {
      width: 100%;
      max-width: 1144px;
      margin: 0 auto 100px;
    }

    .job-details {
      display: flex;
      max-width: 1564px;
      gap: 64px;
      padding-right: 30px;
      margin: 0;
    }

    .job-details__image.sp {
      display: none;
    }

    .job-details__image.pc {
      width: min(756px, 40vw);
      object-fit: cover;
      aspect-ratio: 1;
      height: fit-content;
    }
    .job-details__content {
      width: 744px;
    }
  }

  .jobs .text_type_hero {
    margin-bottom: 32px;
    letter-spacing: 0.1em;
  }

  .job-details__title {
    font-size: 2.4rem;
    line-height: 1.46;
  }

  .job-details__info {
    margin-bottom: 32px;
  }

  .jobs .text_type_body {
    font-size: 2rem;
    line-height: 2;
    padding-right: 40px;
  }

  .message {
    margin-top: 100px;
  }

  .jobs .text_type_hero {
    margin-bottom: 64px;
  }

  .message__video {
    aspect-ratio: 936 / 527;
    max-width: 936px;
  }

  .message .link {
    margin-top: 64px;
  }
}
