/* =========================================
   グローバルナビ（他ページの .search_header の上線と同系統の緑）
   ========================================= */

header.site-header {
  border-bottom: 2px solid #008d61;
}

/* =========================================
   注目の求人 セクション
   ========================================= */

.featured-jobs-section {
  background: #fffbe6;
  padding: 60px 0 70px;
}

.featured-jobs-section .sec-title_journal {
  padding-bottom: 36px;
}

/* 見出しはリンクではないため、style.css の Journal 用 h2 ホバーを無効化 */
.featured-jobs-section .sec-title_journal h2:hover .journal_title-text {
  color: #687076;
  transform: none;
  -webkit-transform: none;
  -ms-transform: none;
}

.featured-jobs-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 0 0 24px;
}

.featured-job-col {
  display: flex;
  width: 100%;
  max-width: none;
  padding: 0;
  margin-bottom: 0;
}

.featured-job-card {
  display: flex;
  width: 100%;
  margin-bottom: 0;
}

.featured-job-card .inner-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.featured-job-card .image img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-jobs-section .news-style-one .lower-content,
.featured-jobs-section .news-style-one .lower-content p,
.featured-jobs-section .news-style-one .lower-content .featured-job-title {
  text-align: left;
}

.featured-job-card .lower-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 20px;
  background: #fff;
  text-align: left;
}

.featured-job-emp {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border-radius: 2px;
}

.featured-job-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin: 0 0 10px;
  min-height: 3em;
}

.featured-job-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 18px;
}

.featured-job-btn {
  margin-top: auto;
  display: block;
  background: #008d61;
  color: #fff;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.featured-job-card .inner-box:hover .featured-job-btn {
  opacity: 0.85;
}

.featured-jobs-section .news-style-one {
  transition: all 0.5s ease 0s;
}

.featured-jobs-section .news-style-one:hover {
  box-shadow: 0 10px 20px 0 rgba(60, 60, 60, 0.2);
  transform: translateY(-8px);
}

/* モバイル固定ヘッダー（約66px）分の余白 */
@media screen and (max-width: 991px) {
  .featured-jobs-section {
    padding-top: 88px;
  }
}

@media screen and (max-width: 767px) {
  .featured-jobs-section {
    padding-bottom: 40px;
  }

  /* タイトルのフォントサイズを縮小・p の固定幅を解除 */
  .featured-jobs-section .sec-title_journal h2 {
    font-size: 20px;
  }
  .featured-jobs-section .sec-title_journal p {
    width: auto;
    max-width: 100%;
  }

  /* 2列でも、別の行を含む4枚すべての高さを揃える */
  .featured-jobs-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin-bottom: 16px;
  }

  /* 2列で狭くなる分、テキスト・ボタンをコンパクトに */
  .featured-job-card .lower-content {
    padding: 10px 10px 14px;
  }
  .featured-job-title {
    font-size: 13px;
    min-height: 4.5em;
  }
  .featured-job-desc {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .featured-job-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* =========================================
   求人検索 タイトルバンド
   ========================================= */

.job-search-title-band {
  background: #d3d3d4;
  padding: 22px 0;
  text-align: center;
}

#new-jobs .sec-title h2,
.job-search-title-band h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.05em;
  text-align: center;
}

/* =========================================
   求人検索 共通
   ========================================= */

/* セクション余白 */
.job-search-area {
  padding: 40px 0 120px !important;
}

/* 中央の白いボックス */
.job-search-box {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 40px 48px 32px;
}

/* 既存クラス名に合わせて中央寄せ */
.search_page_service-search-wrapper {
  max-width: 760px;
  margin: 40px auto 60px;
  border-bottom: none;
}

/* リード文「ご希望の条件を〜」を中央揃え */
.job-search-lead {
  font-size: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.job-search-lead .job-search-required-note {
  display: inline;
  white-space: nowrap;
}

/* 見出し（「求人検索」など、他ページで使用想定） */
.job-search-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* =========================================
   検索フォーム
   （job-search-index.html）
   ========================================= */

#job-search-form {
  margin: 0;
}

/* テーブル枠全体 */
.job-search-table {
  width: 100%;
  border: 1px solid #e4e4e4;
  border-collapse: collapse;
}

/* 1行分（雇用形態 / 職種 / エリア） */
.job-search-row {
  display: flex;
  border-top: 1px solid #e4e4e4;
}

.job-search-row:first-child {
  border-top: none;
}

/* 左側ラベルセル */
.job-search-row-label {
  width: 140px;
  min-width: 110px;
  background: #f8f8f8;
  border-right: 1px solid #e4e4e4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;
}

/* 右側ボタンセル */
.job-search-row-body {
  flex: 1;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* ピルボタンを横並び＆折り返し */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 旧クラス（互換用。今は未使用だが残しておく） */
.job-search-label {
  width: 90px;
  margin-right: 32px;
  font-weight: 600;
  font-size: 14px;
  line-height: 38px;
}

.job-search-options {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ピル型ボタン */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #008060; /* 参考サイトと同系統の緑 */
  background: #ffffff;
  color: #008060;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pill:hover {
  background: #e9f6ef;
}

.pill.is-active {
  background: #008060;
  color: #ffffff;
}

/* 検索ボタンまわり */
.job-search-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 大きい検索ボタン（参考サイトのカラーに合わせた緑） */
.job-search-submit {
  min-width: 220px;
  padding: 12px 40px;
  border-radius: 999px;
  border: 1px solid #008060;
  background: #008060;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.job-search-submit svg {
  color: #ffffff;
  fill: #ffffff;
  stroke: #ffffff;
}

.job-search-submit:hover {
  opacity: 0.9;
}

.job-search-submit .icon,
.job-search-submit .icon i,
.job-search-submit:hover .icon,
.job-search-submit:hover .icon i {
  color: #ffffff;
}

/* 「全ての選択を解除」ボタン（グレー） */
.job-search-clear-btn {
  min-width: 200px;
  padding: 8px 28px;
  border-radius: 999px;
  border: 1px solid #555555;
  background: #555555;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.job-search-clear-btn:hover {
  opacity: 0.9;
}

/* エラーメッセージ */
#job-search-error {
  margin-top: 8px;
  font-size: 13px;
  color: #c00;
  text-align: center;
  display: none; /* JSで表示切り替え */
}

/* 互換用ラッパー（リンク型の解除も念のため対応） */
.job-search-clear-wrap {
  font-size: 13px;
}

.job-search-clear-wrap a,
#job-search-clear {
  text-decoration: none;
}

/* =========================================
   スマホ対応
   ========================================= */

@media screen and (max-width: 767px) {
  .job-search-lead .job-search-required-note {
    display: block;
  }

  .job-search-box {
    padding: 24px 20px;
  }

  .job-search-table {
    border-left: none;
    border-right: none;
  }

  .job-search-row {
    flex-direction: column;
  }

  .job-search-row-label {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid #e4e4e4;
  }

  .job-search-row-body {
    padding: 10px 12px 14px;
  }

  .pill-group {
    gap: 8px;
  }

  .job-search-submit {
    width: 100%;
  }

  .job-search-clear-btn {
    width: 100%;
  }
}

/* =========================================
   インライン検索結果（job-search-index.html）
   ========================================= */

/* 条件・件数と結果テーブルの間（本文およそ2行相当） */
.job-search-results-area .job-search-count {
  margin-bottom: 3rem;
  margin-bottom: 2.5lh;
}

/* =========================================
   検索結果テーブル
   （job-search-results-index.html）
   ========================================= */

.job-results-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

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

.job-results-table thead th {
  background: #E8E8E8;
  border-bottom: 1px solid #dddddd;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
}

.job-results-table tbody td {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  padding: 10px 10px;
  vertical-align: top;
}

/* メッセージ行（0件時など） */
.job-results-table .job-results-message {
  text-align: center;
  padding: 20px 10px;
}

/* 列幅調整：仕事内容を広めに */
.job-results-table .col-emp {
  width: 12%;
}
.job-results-table .col-jobtype {
  width: 18%;
}
.job-results-table .col-area {
  width: 18%;
}
.job-results-table .col-title {
  width: 52%;
}

/* 仕事内容（タイトル）セル内のリンク */
.job-results-table td.job-results-title a {
  color: #333333;
  text-decoration: none;
}
.job-results-table td.job-results-title a:hover {
  text-decoration: underline;
}

/* スマホ時は少し詰める */
@media screen and (max-width: 767px) {
  .job-results-table {
    font-size: 13px;
  }

  .job-results-table thead th,
  .job-results-table tbody td {
    padding: 8px 6px;
  }
}

/* --------------------
   検索結果ページ
-------------------- */

.job-results-count {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: bold;
}

.return-search {
  text-align: center;
  margin-top: 40px;
}

a.return-btn {
  display: inline-block;
  background: #008060;
  color: #fff;
  padding: 10px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

a.return-btn:hover,
a.return-btn:focus {
  background: #629983;
  color: #fff;
  opacity: 0.9;
}

/* 検索結果ページ：戻るボタン配置 */
.search-back-links {
  margin-top: 24px;
  text-align: center;
}
/* 検索結果：仕事内容リンクの強調 */
.job-results-table td.job-results-title a {
  color: #0066c0;
  font-weight: bold;
  text-decoration: none;
}

.job-results-table td.job-results-title a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Common FAQ: one closed disclosure above the search menu. */
.job-common-faq-section {
  padding: 0 0 56px;
  background: #fff;
}
.job-common-faq {
  max-width: 760px;
  margin: 0 auto;
}
.job-common-faq-toggle,
.job-common-faq-question {
  list-style: none;
  cursor: pointer;
}
.job-common-faq-toggle::-webkit-details-marker,
.job-common-faq-question::-webkit-details-marker {
  display: none;
}
.job-common-faq-toggle {
  position: relative;
  display: block;
  min-height: 64px;
  padding: 14px 64px;
  border: 2px solid #bfbfbf;
  background: #fff;
  transition: background-color 0.2s ease;
}
.job-common-faq-toggle h2 {
  margin: 0;
  color: #333;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
}
.job-common-faq-toggle:hover {
  background-color: #f7f7f7;
}
.job-common-faq-toggle:focus-visible,
.job-common-faq-question:focus-visible {
  outline: 2px solid #008d61;
  outline-offset: 3px;
}
.job-common-faq-plus {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
}
.job-common-faq-plus::before,
.job-common-faq-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  content: "";
  background: #008d61;
  transform: translate(-50%, -50%);
}
.job-common-faq-plus::before {
  width: 24px;
  height: 3px;
}
.job-common-faq-plus::after {
  width: 3px;
  height: 24px;
  transition: opacity 0.2s ease;
}
.job-common-faq[open] > .job-common-faq-toggle .job-common-faq-plus::after {
  opacity: 0;
}
.job-common-faq-panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #e5e5e5;
  background: #f7f7f7;
}
.job-common-faq-group + .job-common-faq-group {
  margin-top: 32px;
}
.job-common-faq-group h3 {
  margin: 0 0 18px;
  color: #008d61;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.job-common-faq-item {
  margin-bottom: 16px;
  background: #fff;
}
.job-common-faq-item:last-child {
  margin-bottom: 0;
}
.job-common-faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 14px 18px;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  transition: background-color 0.2s ease;
}
.job-common-faq-question:hover {
  background-color: #fafafa;
}
.job-common-faq-q {
  flex: 0 0 28px;
  color: #96d0ba;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}
.job-common-faq-question > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.job-common-faq-chevron {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin: -5px 3px 0 8px;
  border-right: 2px solid #96d0ba;
  border-bottom: 2px solid #96d0ba;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.job-common-faq-item[open] > .job-common-faq-question .job-common-faq-chevron {
  margin-top: 5px;
  transform: rotate(225deg);
}
.job-common-faq-answer {
  padding: 0 22px 22px 56px;
}
.job-common-faq-answer p {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  overflow-wrap: break-word;
}
@media screen and (max-width: 767px) {
  .job-common-faq-section {
    padding-bottom: 40px;
  }
  .job-common-faq-toggle {
    padding-right: 48px;
    padding-left: 48px;
  }
  .job-common-faq-plus {
    right: 16px;
  }
  .job-common-faq-panel {
    margin-top: 20px;
    padding: 18px 12px;
  }
  .job-common-faq-group h3 {
    font-size: 18px;
  }
  .job-common-faq-question {
    padding: 14px 12px;
  }
  .job-common-faq-answer {
    padding: 0 16px 18px 50px;
  }
}
