/* =====================================================
 * MitsuPita Job – Job Card
 * 求人カード専用CSS
 * アイキャッチ：スマホでも切らずに全体表示
 * ===================================================== */


/* =====================================================
 * Job Card
 * ===================================================== */

.mpj-job-card {
  position: relative;
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  border-top: 4px solid #188c3a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.mpj-job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.mpj-job-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.mpj-job-card__link:hover {
  color: inherit;
  text-decoration: none;
}

.mpj-job-card__content {
  position: relative;
  min-height: 100%;
  height: 100%;
  padding: 22px 24px 22px;
}

.mpj-job-card__main {
  position: relative;
  z-index: 2;
}


/* =====================================================
 * 求人種別ラベル
 * ===================================================== */

.mpj-job-card__labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mpj-job-type-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: keep-all;
}

.mpj-job-type--agent {
  background: #eef6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.mpj-job-type--direct {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}


/* =====================================================
 * NEW Badge
 * ===================================================== */

.mpj-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-width: 46px;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1744, #ff6b6b);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  box-shadow: 0 5px 12px rgba(255, 23, 68, 0.25);
}


/* =====================================================
 * Catch Copy
 * ===================================================== */

.mpj-job-card__catch {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px dashed #cfe9d7;
  color: #16824f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: 0.02em;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}


/* =====================================================
 * Title
 * ===================================================== */

.mpj-job-card__title {
  margin: 8px 0 10px;
  color: #1f2933;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}


/* =====================================================
 * Image
 * アイキャッチ：切らずに全体表示
 * ===================================================== */

.mpj-job-card__image,
.mpj-job-card__image--banner {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;
  min-height: 225px !important;

  margin: 14px 0 16px !important;
  padding: 6px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #f9fcfb !important;
  border: 1px solid rgba(18, 59, 50, 0.08) !important;
  border-radius: 14px !important;
  overflow: visible !important;
  box-sizing: border-box !important;

  pointer-events: auto !important;
}

.mpj-job-card__image img,
.mpj-job-card__image--banner img {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center center !important;

  margin: 0 auto !important;
  border-radius: 10px !important;
  transform: none !important;
}

.mpj-job-card:hover .mpj-job-card__image img,
.mpj-job-card:hover .mpj-job-card__image--banner img {
  transform: none !important;
}


/* =====================================================
 * Chips
 * ===================================================== */

.mpj-job-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 10px;
}

.mpj-job-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f5f0;
  color: #13764b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.mpj-job-chip--employment {
  background: #eef7f6;
  color: #178274;
}

.mpj-job-chip--beginner {
  background: #fff7ed;
  color: #c2410c;
}


/* =====================================================
 * Company
 * ===================================================== */

.mpj-job-card__company {
  display: inline-block;
  max-width: 100%;
  margin: 4px 0 10px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eef7f2;
  color: #27624a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;

  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}


/* =====================================================
 * Meta
 * ===================================================== */

.mpj-job-card__meta {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
}

.mpj-job-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  word-break: normal;
  overflow-wrap: anywhere;
}

.mpj-meta-icon {
  flex: 0 0 auto;
  width: 18px;
  text-align: center;
}

.mpj-job-card__salary strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}


/* =====================================================
 * CTA
 * ===================================================== */

.mpj-job-card__cta {
  margin-top: 14px;
}

.mpj-btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mpj-job-card:hover .mpj-btn-detail {
  transform: translateX(4px);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}


/* =====================================================
 * キープボタン
 * ===================================================== */

.mpj-job-card__keep {
  padding: 0 12px 12px;
  background: #ffffff;
}

.mpj-job-card__keep button,
.mpj-job-card__keep a {
  width: 100%;
}


/* =====================================================
 * Tablet / Mobile
 * ===================================================== */

@media (max-width: 899px) {
  .mpj-job-card {
    border-radius: 24px;
  }

  .mpj-job-card__content {
    position: relative;
    min-height: auto;
    height: auto;
    padding: 20px 18px 18px !important;
  }

  .mpj-job-card__main {
    width: 100%;
    max-width: 100%;
  }

  .mpj-job-card__catch {
    font-size: 15px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
  }

  .mpj-job-card__title {
    margin: 10px 0 10px;
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .mpj-job-card__image,
  .mpj-job-card__image--banner {
    height: auto !important;
    min-height: 210px !important;
    padding: 8px !important;
    margin: 10px 0 14px !important;
    border-radius: 12px !important;
    overflow: visible !important;
  }

  .mpj-job-card__image img,
  .mpj-job-card__image--banner img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 9px !important;
  }

  .mpj-job-card__chips {
    width: 100%;
    max-width: 100%;
    margin: 10px 0 12px;
  }

  .mpj-job-card__company {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 6px 0 12px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .mpj-job-card__meta {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0;
  }

  .mpj-job-card__meta li {
    font-size: 13px;
    line-height: 1.65;
  }

  .mpj-job-card__salary strong {
    font-size: 14px;
    line-height: 1.6;
  }

  .mpj-btn-detail {
    width: auto;
    min-width: 132px;
    min-height: 40px;
    padding: 10px 18px;
    font-size: 14px;
  }
}


/* =====================================================
 * Small Mobile
 * ===================================================== */

@media (max-width: 768px) {
  .mpj-job-type-label {
    font-size: 10px;
    padding: 4px 8px;
  }

  .mpj-job-card__labels {
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .mpj-job-card__content {
    padding: 20px 16px 18px !important;
  }

  .mpj-job-card__catch {
    font-size: 15px;
    -webkit-line-clamp: 3;
  }

  .mpj-job-card__title {
    font-size: 15px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 2 !important;
  }

  .mpj-job-card__image,
  .mpj-job-card__image--banner {
    height: auto !important;
    min-height: 260px !important;
    padding: 8px !important;
    margin: 12px 0 15px !important;
    overflow: visible !important;
  }

  .mpj-job-card__image img,
  .mpj-job-card__image--banner img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .mpj-job-card__labels {
    align-items: flex-start;
  }

  .mpj-job-card__labels .mpj-badge-new {
    margin-left: 0;
  }

  .mpj-job-type-label {
    max-width: 100%;
  }

  .mpj-btn-detail {
    width: 100%;
    min-height: 38px;
  }
}