/*
 * 募集要項ページ（/recruit/entry/）タブUI用スタイル
 *
 * 本ファイルはSassパイプライン外の追加ファイルである。
 * 理由: assets/sass/ のビルド環境が再現不能なため、既存の style.css / sass は
 * 変更せず、新規CSSファイルとして追加分のみをここに記述している。
 * 配色・余白のトーンは #recruit .entry .cont2 dl / .btn.type2 / .ttl_box3 を踏襲。
 *
 * セレクタは .job-tab-nav / .job-tab-panel 起点、または #recruit 配下にスコープし、
 * .cont2 / .wrapper / dl 等の汎用クラス・要素への裸のセレクタは使用しない
 * （他ページの .cont2 .wrapper dl への波及を避けるため）。
 */

#recruit .job-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
  #recruit .job-tab-nav {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
}

#recruit .job-tab-nav button {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 14px 20px;
  background-color: #fff;
  border: 1px solid #4d4543;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  color: #4d4543;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media screen and (max-width: 768px) {
  #recruit .job-tab-nav button {
    flex: 0 0 calc(50% - 4px);
    box-sizing: border-box;
    min-width: 0;
    white-space: normal;
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.3;
  }
}

#recruit .job-tab-nav button:hover {
  background-color: #f7f5ef;
}

#recruit .job-tab-nav button[aria-selected="true"] {
  background-color: #4d4543;
  color: #fff;
}

#recruit .job-tab-panel[hidden] {
  display: none;
}

#recruit .job-tab-panel + .job-tab-panel {
  margin-top: 0;
}

#recruit .job-tab-panel .btn.type2 {
  margin-top: 50px;
}

@media screen and (max-width: 768px) {
  #recruit .job-tab-panel .btn.type2 {
    margin-top: 25px;
  }
}

/*
 * 募集中の職種が0件（下書き化 or データ投入前）の場合の案内文。
 * タブUI・エントリーボタンの代わりに表示する（Codexレビュー指摘対応）。
 */
#recruit .job-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: #4d4543;
}

@media screen and (max-width: 768px) {
  #recruit .job-empty {
    padding: 24px 10px;
    font-size: 13px;
    line-height: 1.6;
  }
}

#recruit .job-empty a {
  color: #4d4543;
  text-decoration: underline;
}
