:root {
  --graybackground: rgba(244, 244, 244, 1);
  --white: rgba(255, 255, 255, 1);
  --vivid-orange: rgba(255, 96, 0, 1);
  --orange: rgba(255, 165, 89, 1);
  --blackheading: rgba(25, 28, 32, 1);
  --graybody: rgba(72, 76, 81, 1);
  --graycaption: rgba(177, 177, 177, 1);
  --grayline: rgba(239, 239, 239, 1);
  --translucent-white: rgba(255, 255, 255, 0.8);
}

.requirements_row_title:before {
  width: 28%;
  left: 8%;
}

.requirements_row_title:after {
  width: 28%;
  right: 8%;
}

@media screen and (max-width: 767px) {
  .requirements_row_title:before,
  .requirements_row_title:after {
    width: 18.84058%;
  }

  .requirements_row_title:before {
    left: 0;
  }

  .requirements_row_title:after {
    right: 0;
  }
}

.requirements_nec {
  width: 1024px;
  font-size: 0;
  margin: 28px auto;
}

.requirements_nec>li {
  display: inline-block;
  width: 25%;
  vertical-align: top;
}

.requirements_nec_inner {
  text-align: center;
  padding: 10px;
}

@media screen and (max-width: 767px) {
  .requirements_nec {
    width: 100%;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 23.2px auto;
  }

  .requirements_nec li {
    display: block;
    margin-top: 15px;
    width: 100%;
  }

  .requirements_nec li:first-child {
    margin-top: 0;
  }
}

.requirements_nec_inner dt div {
  background: #fd6f31;
  border-radius: 80px;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: table;
  position: relative;
}

/* 円の背後の薄い装飾 */
.requirements_nec_inner dt div:before {
  content: '';
  opacity: 0.2;
  background: #fd6f31;
  border-radius: 80px;
  width: 160px;
  height: 160px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: -1;
}

.requirements_nec_inner dt p {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.requirements_nec_inner dd {
  margin-top: 21.3px;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #222;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-feature-settings: "palt" 1;
}

@media screen and (max-width: 767px) {
  .requirements_nec_inner {
    display: table;
  }

  .requirements_nec_inner dt {
    display: table-cell;
    vertical-align: middle;
    width: auto;
  }

  .requirements_nec_inner dt div {
    border-radius: 50px;
    width: 100px;
    height: 100px;
  }

  .requirements_nec_inner dt div:before {
    border-radius: 50px;
    width: 100px;
    height: 100px;
    top: 5px;
    left: 5px;
  }

  .requirements_nec_inner dt p {
    vertical-align: middle;
    font-size: 1.3rem;
  }

  .requirements_nec_inner dd {
    display: table-cell;
    vertical-align: middle;
    text-align: left;
    margin-top: 0;
    padding-left: 16px;
    font-size: 1.5rem;
  }
}

/* =========================================
   3. フィルターエリア (新デザイン)
   ========================================= */
.filter-box-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 30px auto;
    padding: 20px;
    text-align: left;
    box-sizing: border-box;
    border-bottom: 1px solid var(--grayline);
    margin-top: 50px !important;
}

.filter-heading {
    color: var(--vivid-orange);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 40px;
}

.filter-row-new {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
    padding-bottom: 70px;
    margin-bottom: 30px;
}

/* ラベルカラム（左側） */
.filter-label-col {
    width: 110px;
    /* 固定幅 */
    flex-shrink: 0;
    position: relative;
    padding-top: 2px;
    /* チェックボックスとの高さ合わせ */
}

.filter-label-text {
    font-weight: bold;
    font-size: 18px;
    color: #444;
}

/* 縦棒の装飾 */
.filter-label-col::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background-color: #aaa;
    height: 16px;
    /* 文字高に合わせる */
}

/* 選択肢カラム（右側） */
.filter-options-col {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px 30px;
    white-space: nowrap;
    flex-wrap: wrap;
    flex: 1;
    /* 残りの幅をすべて使う */
    min-width: 0;
}

/* カスタムチェックボックスのスタイル */
.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #555;
    user-select: none;
}

/* デフォルトのinputは隠す */
.custom-checkbox-label input {
    display: none;
}

/* チェックボックスアイコン部分 */
.checkbox-icon {
    width: 16px;
    height: 16px;
    border: 1px solid var(--graycaption);
    margin-right: 8px;
    position: relative;
    background-color: var(--translucent-white);
    transition: all 0.2s;
    flex-shrink: 0;
}

/* チェック時のアイコンスタイル（オレンジ背景） */
.custom-checkbox-label input:checked+.checkbox-icon {
    background-color: var(--vivid-orange);
    border-color: var(--vivid-orange);
}

/* チェックマーク（白） */
.custom-checkbox-label input:checked+.checkbox-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

/* 適用ボタンエリア */
.filter-action-area {
    position: absolute;
    right: 0;
    bottom: 0;
    /* 行の右下に固定 */
    margin: 0;
}

.apply-btn {
    background-color: var(--vivid-orange);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 30px;
    width: auto;
    min-width: 180px;
    /* 最低限の幅を確保 */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.apply-btn:hover {
    background-color: #e65c00;
}

/* =========================================
   職種カードエリア
   ========================================= */
body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.department-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--blackheading);
    margin: 50px 0 24px;
    padding-bottom: none;
    /*border-bottom: 1px solid var(--grayline);*/
}

/* is-hiddenクラスがついた要素を非表示にする */
.department-section.is-hidden {
    display: none !important;
}

/* グリッドレイアウト */
.job-list {
    display: grid;
    /* PC (1440px基準) では3列〜4列を想定 */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* --- カードスタイル (Glassmorphism & Colors) --- */
.job-card {
    background-size: cover;
    background-position: center;
    position: relative;
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease;
    overflow: hidden;
    background-color: var(--grayline);
    display: flex;
    flex-direction: column;
}

/* ▼▼▼ 透過ホワイトの適用 ▼▼▼ */
.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--translucent-white);
    /* 指定色: #EFEFEF 80% */
    z-index: 1;
    transition: background-color 0.3s;
}

/* カードの中身 */
.card-content {
    position: relative;
    z-index: 2;
    /* オーバーレイより上 */
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* アイコンとタイトル */
.card-header {
    margin-bottom: 20px;
}

.job-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    /* アイコン背景も少し角丸かスクエアに */
}

.job-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--blackheading);
    line-height: 1.4;
    min-height: 1.4em;
}

/* 説明文 */
.job-description {
    font-size: 14px;
    color: var(--graybody);
    margin: 0 0 30px;
    flex-grow: 1;
    line-height: 1.7;
}

/* 詳細ボタン */
.detail-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    background-color: var(--vivid-orange);
    color: #fff !important;
    text-decoration: none;
    border-radius: 0;
    /* スクエア */
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.occupation_icon_link {
    flex: 0 1 auto;
}

/* --- 募集なしカード --- */
.job-card.no-vacancy {
    pointer-events: none;
}

.job-card.no-vacancy::before {
    background-color: rgba(239, 239, 239, 0.95);
    /* より濃くしてグレーアウト感 */
}

.job-card.no-vacancy h3,
.job-card.no-vacancy p {
    color: var(--graycaption);
}

.job-card.no-vacancy .job-icon {
    opacity: 0.5;
}


/* =========================================
   レスポンシブ設定 (PC・タブレット・スマホ)
   ========================================= */

/* --- 1. PC・中画面共通 (768px以下) --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 28px;
    }

    .job-list-section {
        margin-bottom: 60px;
    }

    /* フィルター部分の基本スマホ対応 */
    .filter-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    /* グリッドを1列に */
    .job-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .job-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    /* レイアウトを縦並びに変更 */
    .filter-row-new {
        display: block; 
        padding-bottom: 80px; /* ボタン用の余白 */
    }

    .filter-label-col {
        width: 100%;
        margin-bottom: 10px;
    }

    .filter-label-col::after {
        display: none; /* 縦棒を消す */
    }

    .filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 15px; /* スマホでは間隔を少し詰める */
    }

    .custom-checkbox-label {
        font-size: 15px; /* 18pxから縮小 */
    }

    /* 適用ボタンを画面下部中央に全幅で配置 */
    .filter-action-area {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        text-align: center;
    }

    .apply-btn {
        padding: 14px 0;
    }
}
