/* ======================
   Recruit List - Card Layout
   ====================== */

.attachment-post-thumbnail{
  width: auto ;
}

.detail_text{
text-align: center;
}

/* メインエリア全幅化（Bootstrap col-md-8 等を上書き） */
.detail.archive .mainarea[class*="col-"],
.detail.recruit-list .mainarea[class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-right: 15px;
  padding-left: 15px;
}

/* サイドバー非表示 */
.detail.archive .sidebar,
.detail.recruit-list .sidebar {
  display: none !important;
}

/* #main は .row クラス付き → Bootstrap の負マージン・flex を上書き */
.detail.archive .row#main {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px;
  margin: 0;
}

/* 各カード（Bootstrap .col-md-12 を上書き） */
.detail.archive .row#main article.list.col-md-12 {
  width: calc(33.333% - 16px) !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  float: none !important;
  margin: 0;
}

/* カードリンク */
.detail.archive #main a.post_links {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.detail.archive #main a.post_links:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* サムネイル */
.detail.archive #main .list-block {
  display: flex;
  flex-direction: column;
}

.detail.archive #main .post_thumb {
  width: 100%;
  padding-top: 66.66%;
  background-size: cover;
  background-position: center;
}

.detail.archive #main .post_thumb span {
  display: none;
}

/* カテゴリ・日付を非表示 */
.detail.archive #main .post_cat,
.detail.archive #main .post_time {
  display: none !important;
}

/* タイトル */
.detail.archive #main .list-text {
  padding: 14px 16px;
}

.detail.archive #main h3.list-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #333;
}

/* レスポンシブ：タブレット 2カラム */
@media (max-width: 991px) {
  .detail.archive .row#main article.list.col-md-12 {
    width: calc(50% - 12px) !important;
  }
}

/* レスポンシブ：スマホ 1カラム */
@media (max-width: 575px) {
  .detail.archive .row#main {
    gap: 16px;
  }
  .detail.archive .row#main article.list.col-md-12 {
    width: 100% !important;
  }
}


/* --- Recruit CTA --- */
                    .recruit-cta {
                        margin: 2.5rem 0 2rem;
                        padding: 2px;
                        background: linear-gradient(135deg, #00a5d4, #00c9a7);
                    }
                    .recruit-cta-inner {
                        background: #fff;
                        padding: 2rem 1.5rem;
                        text-align: center;
                    }
                    .recruit-cta-heading {
                        font-size: 1.3rem;
                        font-weight: bold;
                        color: #333;
                        margin: 0 0 0.5rem;
                    }
                    .recruit-cta-text {
                        font-size: 1rem;
                        color: #666;
                        margin: 0 0 1.5rem;
                        line-height: 1.7;
                    }
                    .recruit-cta-actions {
                        display: flex;
                        gap: 0.8rem;
                        justify-content: center;
                        flex-wrap: wrap;
                    }
                    .recruit-cta-btn {
                        display: inline-flex;
                        align-items: center;
                        gap: 0.5rem;
                        padding: 0.9rem 2rem;
                        font-size: 1rem;
                        font-weight: bold;
                        text-decoration: none;
                        transition: background 0.3s, transform 0.15s;
                        letter-spacing: 0.03em;
                    }
                    .recruit-cta-btn--primary {
                        background: #00a5d4;
                        color: #fff;
                    }
                    .recruit-cta-btn--primary:hover {
                        background: #0090bd;
                        color: #fff;
                        transform: translateY(-1px);
                    }
                    .recruit-cta-btn--line {
                        background: #06C755;
                        color: #fff;
                    }
                    .recruit-cta-btn--line:hover {
                        background: #05b34c;
                        color: #fff;
                        transform: translateY(-1px);
                    }
                    .recruit-cta-note {
                        font-size: 1rem;
                        color: #999;
                        margin: 1rem 0 0;
                    }
                    .recruit-cta-btn{
                      color: #fff!important;
                    }
                    .sp-only { display: none; }
                    @media (max-width: 600px) {
                        .recruit-cta-inner { padding: 1.5rem 1rem; }
                        .recruit-cta-actions { flex-direction: column; }
                        .recruit-cta-btn { justify-content: center; width: 100%; }
                        .sp-only { display: inline; }
                    }

/* ================================================================
   recruit.css 追記分
   2026-05-11 — 職種別比較テーブル対応
   ================================================================ */

/* 職種別比較テーブル共通 */
.recruit-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
}
.recruit-compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.7;
}
.recruit-compare-table th,
.recruit-compare-table td {
  border: 1px solid #d8d8d8;
  padding: 0.65rem 0.85rem;
  vertical-align: top;
}
.recruit-compare-table thead th {
  background: #00a5d4;
  color: #fff;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}
.recruit-compare-table thead th.col-label {
  background: #007fa0;
  min-width: 90px;
  width: 90px;
}
.col-sub {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  margin-top: 2px;
  opacity: 0.9;
}
.recruit-compare-table tbody th {
  background: #edf6fa;
  font-weight: bold;
  white-space: nowrap;
  min-width: 90px;
  width: 90px;
  vertical-align: middle;
}
.recruit-compare-table tbody tr:nth-child(even) td { background: #fafafa; }
.recruit-compare-table tbody tr:nth-child(odd)  td { background: #fff; }
.recruit-compare-table td small {
  display: block;
  font-size: 1rem;
  color: #666;
  margin-top: 2px;
}

/* 雇用形態区分ラベル（正社員 / 非常勤） */
.recruit-koyo-label {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e4f6e;
  border-left: 4px solid #1e4f6e;
  padding-left: 0.6rem;
  margin: 1.5rem 0 0.4rem;
}
.recruit-koyo-label--parttime {
  color: #666;
  border-left-color: #999;
}

/* 事業所サブセクション見出し */
.recruit-station-label {
  font-size: 1rem;
  font-weight: bold;
  color: #00a5d4;
  border-left: 3px solid #00a5d4;
  padding-left: 0.55rem;
  margin: 2rem 0 0.5rem;
}

/* 応募ボタン（セクション内：固定CTAに統一したため非表示） */
.recruit-apply-area {
  display: none;
}

/* 固定追従CTAバー */
.recruit-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  border-top: 2px solid #00a5d4;
  padding: 0.75rem 1rem;
  text-align: center;
  z-index: 200;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.1);
}
.recruit-sticky-btn {
  display: inline-block;
  padding: 0.8rem 3rem;
  background: #00a5d4;
  color: #fff !important;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.recruit-sticky-btn:hover {
  background: #0090bd;
  color: #fff !important;
}
@media (max-width: 600px) {
  .recruit-sticky-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
  }
}

/* 固定CTAバー分のスペース確保 */
.detail.recruit-list {
  padding-bottom: 72px;
}

/* 職種一覧カード（メインページ用） */
.recruit-index-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.recruit-index-card {
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 200px;
  display: block;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 2px solid #00a5d4;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}
.recruit-index-card:hover {
  background: #edf6fa;
  color: #333;
}
.recruit-index-card-title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
}
.recruit-index-card-meta {
  font-size: 1rem;
  color: #00a5d4;
  margin-top: 0.3rem;
}

@media (max-width: 600px) {
  .recruit-index-card { flex: 1 1 100%; }
  .recruit-apply-btn  { display: block; text-align: center; }
}

/* ================================================================
   セクション追跡バー（ヘッダー直下・PC／SP共通）
   ================================================================ */
.recruit-section-tracker {
  position: fixed;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 3px solid #1e4f6e;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #1e4f6e;
  z-index: 190;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.recruit-section-tracker.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   SP：テーブル → カード変換（JS連携）
   ================================================================ */
@media (max-width: 767px) {
  .recruit-sp-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .recruit-sp-card {
    border: 2px solid #1e4f6e;
    border-radius: 6px;
    overflow: hidden;
  }
  .recruit-sp-card__head {
    background: #1e4f6e;
    color: #fff;
    font-weight: bold;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  .recruit-sp-card__row {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
  }
  .recruit-sp-card__row:last-child {
    border-bottom: none;
  }
  .recruit-sp-card__label {
    flex: 0 0 5.5em;
    background: #edf6fa;
    font-weight: bold;
    padding: 0.55rem 0.65rem;
    font-size: 1rem;
    color: #333;
    border-right: 1px solid #d8d8d8;
    display: flex;
    align-items: center;
  }
  .recruit-sp-card__value {
    flex: 1;
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    background: #fff;
    min-width: 0;
    word-break: break-word;
  }
  .recruit-koyo-label--parttime + .recruit-compare-wrap .recruit-sp-card {
    border-color: #6b7a8a;
  }
  .recruit-koyo-label--parttime + .recruit-compare-wrap .recruit-sp-card__head {
    background: #6b7a8a;
  }
}
