/* ----------------------------------------
  採用情報
---------------------------------------- */
.job-section {
  position: relative;
  padding: 5%;
}

.job-container {
  position: relative;
  width: 60%;
  margin: 0 auto;
  margin-top: 50px;
  text-align: center;
}

.job-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.job-header h2::after {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  background: #ffdb38;
  margin: 0 auto;
  margin-top: 10px;
}

.job-header p {
  font-size: 1.1rem;
  color: #555;
}

.job-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.job-details {
  flex: 1;
}

.job-details table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  border: none;
}

.job-details th,
.job-details td {
  border: 1px solid #ddd;
  padding: 15px;
  text-align: left;
}

.job-details th {
  background-color: #e7f3cc;
  color: #666;
  width: 25%;
  text-align: center;
}

.job-details-w-half {
  width: 30%;
}

/* 内部の入れ子テーブル */
.job-details table td table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0;
  padding: 0;
}

.job-details td table th,
.job-details td table td {
  border: none;
  margin: 0;
}

/* PC */
@media screen and (min-width: 769px) {
  .job-image-left {
    position: absolute;
    left: -35vw;
    top: -15px;
    z-index: -1;
  }

  .job-image-left img {
    width: 40vw;
    border-radius: 0 40px 0 0;
    opacity: 0.9;
  }

  .job-image-right {
    position: absolute;
    right: -35vw;
    top: -15px;
    z-index: -1;
  }

  .job-image-right img {
    width: 40vw;
    border-radius: 40px 0 0 0;
    opacity: 0.9;
  }

  .salary-group {
    display: table-row;
  }
  .salary-group td {
    display: table-cell;
    vertical-align: top;
  }
}

/* モバイル */
@media screen and (max-width: 768px) {
  .job-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  .job-content {
    display: block;
  }

  .job-header {
    text-align: center;
    margin-bottom: 20px;
  }

  .job-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .job-header p {
    font-size: 1.1rem;
    color: #555;
  }

  /* 📸 画像を中央配置 */
  .job-image-left {
    margin-bottom: -40px;
    z-index: -1;
  }

  .job-image-left img {
    width: 100%;
  }

  .job-image-right {
    margin-bottom: -40px;
    z-index: -1;
  }

  .job-image-right img {
    width: 100%;
  }

  /* 📊 テーブルを縦並びのリストに */
  .job-details table {
    display: block;
    width: 100%;
  }

  .job-details tr {
    display: flex;
    flex-direction: column;
  }

  .job-details th {
    width: 100%;
    background-color: #e7f3cc;
    text-align: center;
    font-weight: bold;
    color: #333;
    border: none;
    padding: 5px 0;
    font-size: 1.1rem;
  }

  .job-details td {
    width: 100%;
    border: none;
    font-size: 1rem;
    padding: 10px;
  }

  .salary-group {
    display: flex;
    flex-direction: column;
  }

  .salary-regular-label {
    order: 1;
  }
  .salary-regular-content {
    order: 2;
  }
  .salary-nonregular-label {
    order: 3;
  }
  .salary-nonregular-content {
    order: 4;
  }
}
