/* ==================================================
   Recruit Management System
================================================== */

.rms-job-list-wrap,
.rms-job-detail {
  width: min(1100px, calc(100% - 32px));
  margin: 40px auto;
  color: #222;
}

/* 一覧 */
.rms-job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rms-job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid #e7e0d5;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(80, 60, 30, 0.08);
}

.rms-job-card.is-closed {
  background: #f7f7f7;
  opacity: 0.78;
}

.rms-job-card-head,
.rms-job-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.rms-job-status,
.rms-job-employment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.rms-job-status.is-open {
  background: #e9f8ef;
  color: #0a7a35;
}

.rms-job-status.is-closed {
  background: #e9e9e9;
  color: #777;
}

.rms-job-employment {
  background: #fff1d8;
  color: #9a5a00;
}

.rms-job-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.45;
  font-weight: 900;
}

.rms-job-title a {
  color: #222;
  text-decoration: none;
}

.rms-job-title a:hover {
  color: #d26a00;
}

.rms-job-occupation {
  margin: 0 0 16px;
  color: #8a5a20;
  font-size: 15px;
  font-weight: 800;
}

.rms-job-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.rms-job-summary div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: start;
}

.rms-job-summary dt {
  color: #8a6a40;
  font-size: 13px;
  font-weight: 800;
}

.rms-job-summary dd {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.65;
}

.rms-job-card-footer {
  margin-top: auto;
  padding-top: 8px;
}

.rms-job-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #f39800;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(243, 152, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rms-job-detail-btn:hover {
  background: #d97800;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(243, 152, 0, 0.32);
}

.rms-job-empty {
  padding: 28px;
  border-radius: 14px;
  background: #f7f7f7;
  text-align: center;
}

/* 詳細 */
.rms-job-detail {
  padding: 30px;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(80, 60, 30, 0.08);
}

.rms-job-main-image {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 18px;
}

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

.rms-job-detail-section {
  margin: 34px 0 0;
}

.rms-job-detail-section h2 {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 10px;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1.45;
}

.rms-job-detail-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: #f39800;
}

.rms-job-detail-table {
  margin: 0;
  border: 1px solid #eadfce;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.rms-job-detail-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #eadfce;
}

.rms-job-detail-table div:last-child {
  border-bottom: none;
}

.rms-job-detail-table dt,
.rms-job-detail-table dd {
  margin: 0;
  padding: 16px 18px;
  line-height: 1.7;
}

.rms-job-detail-table dt {
  background: #fff6e8;
  color: #8a5a20;
  font-weight: 900;
}

.rms-job-detail-table dd {
  background: #fff;
}

.rms-job-text {
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eadfce;
  line-height: 1.9;
}

.rms-job-text p {
  margin: 0 0 1em;
}

.rms-job-text p:last-child {
  margin-bottom: 0;
}

/* 応募 */
.rms-job-apply-box {
  margin: 38px 0 0;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff3dc, #fffaf1);
  text-align: center;
  border: 1px solid #f3dfbd;
}

.rms-job-apply-lead {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
}

.rms-job-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: 999px;
  background: #f39800;
  color: #fff !important;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(243, 152, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rms-job-apply-btn:hover {
  background: #d97800;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(243, 152, 0, 0.38);
}

.rms-job-closed-message {
  margin: 0;
  color: #777;
  font-size: 17px;
  font-weight: 900;
}

/* スマホ */
@media (max-width: 900px) {
  .rms-job-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rms-job-list-wrap,
  .rms-job-detail {
    width: min(100% - 24px, 1100px);
    margin: 28px auto;
  }

  .rms-job-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rms-job-card {
    padding: 20px;
    border-radius: 16px;
  }

  .rms-job-detail {
    padding: 20px;
    border-radius: 18px;
  }

  .rms-job-summary div {
    grid-template-columns: 72px 1fr;
  }

  .rms-job-detail-table div {
    grid-template-columns: 1fr;
  }

  .rms-job-detail-table dt {
    padding-bottom: 6px;
  }

  .rms-job-detail-table dd {
    padding-top: 6px;
  }

  .rms-job-apply-box {
    padding: 22px 18px;
  }

  .rms-job-apply-btn {
    width: 100%;
  }
}


/* 勤務時間 */

.rms-work-hours-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rms-work-hours-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  line-height: 1.7;
}

.rms-work-hours-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff1d8;
  color: #9a5a00;
  font-size: 13px;
  font-weight: 800;
}

.rms-work-hours-time {
  color: #333;
}

/* 求人一覧カード内の勤務時間 */
.rms-job-card .rms-work-hours-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rms-job-card .rms-work-hours-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 6px;
  align-items: start;
  margin: 0;
  padding: 0;
  line-height: 1.55;
}

.rms-job-card .rms-work-hours-list li::before {
  content: none;
}

.rms-job-card .rms-work-hours-label {
  display: inline;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8a5a20;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.rms-job-card .rms-work-hours-time {
  display: inline;
  color: #333;
  font-size: 14px;
}

/* 求人詳細ページ下の「次の記事・前の記事」ナビを非表示 */
.single-rms_job .postNextPrev,
.single-rms_job .post-navigation,
.single-rms_job .navigation.post-navigation,
.single-rms_job .nav-links {
  display: none !important;
}

.single-rms_job .vk_posts,
.single-rms_job .vk_post {
  display: none !important;
}

/* 求人詳細ページのパンくずで、HOME以外をクリック不可にする */
.single-rms_job .breadcrumb-list__item:not(:first-child) a,
.single-rms_job .breadcrumb li:not(:first-child) a,
.single-rms_job .vk_breadcrumb li:not(:first-child) a,
.single-rms_job .breadCrumb li:not(:first-child) a {
  pointer-events: none;
  cursor: default;
  color: inherit;
  text-decoration: none;
}

/* 求人詳細ページ本文下の分類メタだけ非表示 */
.single-rms_job .entry-footer,
.single-rms_job .entry-meta-data-list,
.single-rms_job .vk_post_meta,
.single-rms_job .taxonomy-list {
  display: none !important;
}