/* === Recruit Top Page CSS === */

.section-title--overlay {
  position: relative;
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
  margin: 3rem 0 2rem;
  z-index: 1;
}

.section-title--overlay .bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: rgba(0, 176, 80, 0.1); /* 薄緑色 */
  font-weight: 900;
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

#recruit-top,
.archive-job-post {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ヒーロー */
.hero-bg {
  height: 500px;
  margin-top: 300px;    
  align-items: center;
  justify-content: center;
}

.page-title {
  color: #000;
  font-size: 2.5rem;    
  font-weight: bold;
  text-align: center; 
}

/* 初期状態：PC用を表示、SP用を非表示 */
.hero-img-pc {
  display: block;
  width: 100%;
  height: auto;
}

.hero-img-sp {
  display: none;
  width: 100%;
  height: auto;
}

/* セクション見出し */
.section-title {
  font-size: 2.4rem;
  margin: 4rem 0 4rem;
  text-align: center;
}

/* 求人カード全体 */
#recruit-top .job-cards,
.archive-job-post .job-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.job-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
  text-align: center;
}

.job-card:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.job-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.job-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.job-meta {
  padding: 1.2rem;
  background-color: #fff;
}

.job-area-tag {
  display: inline-block;
  background-color: #00b050;
  color: white;
  font-size: 1.4rem;
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.job-title {
  font-weight: bold;
  font-size: 1.4rem;
  text-align: left;
  margin-bottom: 1rem;
  line-height: 1.6;
  white-space: pre-line;
}

.job-detail-link {
  color: #666;
  font-size: 1.4rem;
  text-decoration: underline;
}

/* ページネーション */
.pagination {
  text-align: center;
  margin: 2rem 0;
}

/* フィルタフォーム 表形式 */
.search-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.search-table th {
  width: 20%;
  background-color: #00b050;
  color: white;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.6rem;    
}

.search-table td {
  background-color: #f8f8f8;
  padding: 1rem;
}

.keyword-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.keyword-wrap input[type="text"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid #00b050;
  border-radius: 4px;
  font-size: 1.6rem;
}

.btn-narrow {
  background-color: #00b050;
  color: white;
  border: none;
  padding: 0.8rem 4rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.6rem;
}

.btn-check-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-check {
  position: relative;
  display: inline-block;
}

.btn-check input[type="checkbox"] {
  display: none;
}

.btn-check span {
  display: inline-block;
  border: 2px solid #00b050;
  color: #00b050;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 1.4rem;    
}

.btn-check input[type="checkbox"]:checked + span {
  background-color: #00b050;
  color: white;
}

/* 検索ボタン */
.search-button-wrap {
  text-align: center;
  margin-top: 6rem !important;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #2ecc71;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn.entry {
  background: #f39c12;
}

.btn.btn-green {
  background-color: #00b050;
}

.btn.full {
  background-color: #2ecc71;
}

.btn.faq-link {
  margin-top: 1rem;
  display: inline-block;
  background-color: #f1f1f1;
  color: #333;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
}

/* 応募の流れ */
.application-flow ol {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.application-flow ol li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.application-flow ol li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  background: #2ecc71;
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  border-radius: 50%;
  line-height: 1.5rem;
}

/* 認定・スタッフ・FAQ */
.certification,
.staff-message {
  text-align: center;
  margin: 2rem 0;
}

.faq {
  background: #f1f1f1;
  padding: 2rem;
}

.faq-list dt {
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
}

.faq-list dd {
  margin-left: 1rem;
  display: none;
}

.faq-list dt.open + dd {
  display: block;
}

/* CTA */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 12rem 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    
  .search-button-wrap {
    margin-top: 4rem !important;
  }
    
    
  .hero-img-pc {
    display: none;
  }

  .hero-img-sp {
    display: block;
  }
    
.hero-bg {
  height: 260px;
  margin-top: 20px;    
}    
    
  /* セクション見出し */
  .section-title {
    font-size: 2.0rem;      
    margin: 4rem 0 4rem;
  } 
    
  .search-table th,
  .search-table td {
    display: block;
    width: 100%;
  }

  .search-table th {
    text-align: left;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0 0;
  }

  .search-table td {
    padding: 2rem 1.6rem;
  }

  .keyword-wrap {
    align-items: stretch;
    border: none;
    gap: 0;
  }

  .keyword-wrap input[type="text"] {
    border: 2px solid #00b050;
    border-radius: 8px 0 0 8px;
    font-size: 1.4rem;
  }

  .btn-narrow {
    border-radius: 0 8px 8px 0;
    width: 30%;
    font-size: 1.5rem;
    padding: 1rem;
    justify-content: center;
    border-left: none;
  }

  .btn-narrow::before {
    font-size: 1.4rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  #recruit-top .job-cards,
  .archive-job-post .job-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
    
  .job-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 1px; /* ← これで空間確保 */
  }    
}