.page-employment section {
  border-bottom: 1px solid #171717;
  padding: 0px 20px 100px 20px;
  margin-bottom: 80px;
}

.page-employment section:last-child {
  margin-bottom: 136px;
}

.page-employment h3 {
  font-size: 18px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 20px;
}

.info-item.first-item {
  margin-bottom: 55px;
}

.page-employment .info-text span {
  display: block;
}

/* Job Item */
.job-item {
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.job-item:last-child{
  margin-bottom: 0;
}

/* Job Header */
.job-header {
  background: #d6d5d5;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.job-header:hover {
  opacity: 0.7;
}

.job-left-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.job-no {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.job-kind {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.job-right-arrow {
  display: flex;
  align-items: center;
}

.collapse-btn {
  font-size: 16px;
  transition: transform 0.3s ease;
  font-weight: bold;
  user-select: none;
}

/* Job Content */
.job-content {
  padding: 0 20px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.job-content.show {
  max-height: 3000px;
  opacity: 1;
  padding: 40px 20px;
}

.job-content.hide {
  max-height: 0;
  opacity: 0;
  padding: 0 20px;
}

.job-main-info {
  margin-bottom: 20px;
}

.job-category-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #171717;
}

.point-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.point-content {
  font-size: 14px;
}

/* Job Details Table */
.job-details-table {
  margin: 20px 0;
}

.job-details-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.job-details-table th,
.job-details-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #858585;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
}

.job-details-table th {
  background: #E0E0E0;
  font-weight: 500;
  width: 15%;
}

.job-details-table td {
  background: #fff;
  width: 30%;
}

/* Merit Section */
.job-merit-section {
  margin: 0 0 20px;
}

.merit-points {
  display: flex;
  gap: 8px;
	flex-wrap: wrap;
}

.merit-point {
	font-size: 10px;
	padding: 6px 15px;
  border: 1px solid #171717;

}

/* Single Job Page Styles */
.single-job-item {
  background: #fff;
  border: 1px solid #ddd;
  overflow: visible;
}

.job-header-static {
  background: #d6d5d5;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.job-content-static {
  padding: 20px;
  display: block;
  opacity: 1;
  max-height: none;
}

.single-job-table th {
  width: 30%;
}

.single-job-table td {
  width: 70%;
}

/* Job Actions */
.job-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn {
  padding: 12px 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 160px;
}
.btn:hover {
	opacity: 0.8;
}

.btn-apply {
  background: #171717;
  color: #fff;
}

.btn-detail {
  background: #888888;
  color: #fff;
  border: 1px solid #888888;
}

/* No Jobs State */
.no-jobs {
  text-align: center;
  padding: 60px 20px;
}

.no-jobs-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.no-jobs h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.no-jobs p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: #007cba;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #005a87;
}


/*詳細画面CSS*/
.page-employment-detail section {
  padding: 0px 0px 100px 0px;
}

.page-employment-detail .job-header-static,
.page-employment-detail .job-content-static {
  padding: 30px 40px;
}

.page-employment-detail .job-category-title {
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.page-employment-detail .job-details-table {
  margin: 30px 0;
}

.page-employment-detail .single-job-table th {
  width: 20%;
}

.page-employment-detail .job-main-info {
  margin-bottom: 30px;
}

.page-employment-detail .job-actions {
  padding-bottom: 30px;
}

.page-employment-detail .btn-apply {
  max-width: 250px;
  width: 100%;
  padding: 20px 30px;
}

/* Responsive Design */
@media (max-width: 960px) {
    .page-employment section{
      padding: 0 0 60px 0;
      margin-bottom: 50px;
    }

    .page-employment section:last-child {
      margin-bottom: 96px;
    }

    .page-employment .section-subtitle {
      padding-left: 17.39px;
    }

    .page-employment .employment-info .info-item h3 {
      margin-bottom: 5px;
    }

    .info-item.first-item {
      margin-bottom: 30px;
    }

    /*詳細画面CSS*/
    .page-employment-detail .job-header-static,
    .page-employment-detail .job-content-static {
      padding: 15px 20px;
    }

    .page-employment-detail .job-category-title {
      margin-bottom: 20px;
      padding-bottom: 20px;
    }

    .page-employment-detail .job-details-table {
      margin: 20px 0;
    }

    .page-employment-detail .single-job-table th {
      width: 20%;
    }

    .page-employment-detail .job-main-info {
      margin-bottom: 20px;
    }

    .page-employment-detail .job-actions {
      padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
  .current-jobs {
    padding: 40px 20px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .job-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
		gap: 1rem;
  }

  .job-content.show {
    padding: 30px 20px;
  }

  .job-detail-btn,
  .job-apply-btn {
    flex: none;
  }

  /* テーブルレイアウトは維持 */
  .job-details-table table {
    width: 100%;
  }

  .job-details-table th {
    width: 15%;
  }

  .job-details-table td {
    width: 25%;
  }
  /*詳細画面CSS*/
  .page-employment-detail .single-job-table th {
    width: 10%;
  }
}

@media (max-width: 640px) {
  .page-employment .section-subtitle {
      font-size: 14px;
      padding-left: 16.75px;
  }

  /* スマートフォンでは縦並びテーブルに */
  .job-details-table table {
    display: block;
    border: none;
    width: 100%;
    border: 1px solid #858585;
  }

  .job-details-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .job-details-table th,
  .job-details-table td {
    width: 50%;
    display: block;
  }

  .job-details-table th {
    width: 100%;
    background: #E0E0E0;
    border-top: 1px solid #858585;
    border-bottom: 1px solid #858585;
    border-left: none;
    border-right: none;
  }

  .job-details-table tr:first-child th:first-child {
    border-top: none;
  }

  .job-details-table td {
    width: 100%;
    background: #fff;
    border: none;
  }

  /* Single Job Page - スマホサイズ */
  .single-job-table th,
  .single-job-table td {
    width: 100%;
    display: block;
  }

  /*詳細画面CSS*/
  .page-employment-detail .single-job-table th {
    width: 100%;
  }

  .page-employment-detail .job-header-static,
  .page-employment-detail .job-content-static {
    padding: 15px 10px;
  }

  .page-employment-detail .job-details-table th, 
  .page-employment-detail .job-details-table td {
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .page-employment .page-title{
      font-size: 13.7vw;
  }
  .page-employment section {
      padding: 0 0 40px 0;
      margin-bottom: 30px;
  }

  .page-employment section:last-child {
      margin-bottom: 76px;
  }

  .page-employment .section-subtitle {
      font-size: 12px;
      padding-left: 14.82px;
      margin-bottom: 1.5rem;
  }

  .page-employment .recruiting-text p,
  .page-employment .info-text,
  .page-employment .point-content,
  .page-employment .job-details-table th,
  .page-employment .job-details-table td,
  .page-employment .job-main-info > p {
      font-size: 13px;
  }
  
  .job-content {
    padding: 16px;
  }

  .job-header,
  .job-content.show {
    padding: 20px 10px;
  }

  .job-actions a {
    width: 50%;
    min-width: unset;
  }

  .job-title a {
    font-size: 16px;
  }

  .no-jobs {
    padding: 40px 16px;
  }

  .no-jobs-icon {
    font-size: 36px;
  }

  /*詳細画面CSS*/
  .page-employment-detail .job-actions {
    align-items: center;
  }
}

@media (max-width: 330px) {

  .job-actions{
    flex-direction: column;
  }
  
  .job-actions a {
    width: 100%;
    min-width: unset;
  }

}