/* =============================================
   Jobs Detail Page (募集職種)
   ============================================= */

/* --- Page Hero --- */
.jobs-hero {
  background: var(--primary);
  padding: 5rem 48px;
  text-align: center;
}

.jobs-hero .hero-eng {
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.jobs-hero .hero-jp {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0;
}

/* --- Job Intro --- */
.jobs-intro {
  padding: 48px 0;
  background: #fff;
}

.jobs-intro .intro-catch {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0;
}

/* --- Job Description --- */
.jobs-desc-section {
  padding: 0 0 60px;
  background: #fff;
}

.jobs-desc-img {
  border-radius: 8px;
  overflow: hidden;
}

.jobs-desc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.jobs-desc-text p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 2;
  margin-bottom: 16px;
}

/* --- Workflow Section --- */
.workflow-section {
  padding: 60px 0 80px;
  background: #fff;
}

.workflow-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.workflow-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e0e0e0;
  transform: translateX(-50%);
}

.wf-item {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.wf-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.wf-item .wf-text {
  flex: 1;
}

.wf-item .wf-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.wf-item .wf-text p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

.wf-item .wf-img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.wf-item .wf-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

/* Reverse order for even items */
.wf-item.wf-reverse {
  flex-direction: row-reverse;
}

/* --- Interview Section --- */
.jobs-interview-section {
  padding: 80px 0;
  background: #fff;
}

.jobs-iv-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  overflow: hidden;
margin-bottom:3rem;
}
.jobs-iv-card:last-child {
margin-bottom:0;
}

.jobs-iv-card .iv-card-content {
  flex: 1;
  padding: 0 0 32px;
}

.jobs-iv-card .iv-card-content .iv-catch {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.jobs-iv-card .iv-card-content .iv-dept {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.jobs-iv-card .iv-card-content .iv-name {
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 16px;
}

.iv-career-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 24px;
  font-size: 13px;
}

.iv-career-row .career-label {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.iv-career-row .career-value {
  background: #E8ECEF;
  color: #212529;
  max-width: 500px;
  padding: 8px 16px;
  flex: 1;
  display: flex;
  align-items: center;
}

.btn-iv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 10px 32px;
  background: #fff;
  transition: all 0.3s;
}

.btn-iv-link:hover {
  background: var(--primary);
  color: #fff;
}

.jobs-iv-card .iv-card-img {
  flex: 0 0 50%;
}

.jobs-iv-card .iv-card-img img {
  width: 100%;
  /*height: 100%;
  object-fit: cover;
  display: block;*/
}

/* --- Details Section --- */
.jobs-details-section {
  padding: 80px 0;
}

.details-table {
  width: 100%;
}

.details-row {
  display: flex;
  border-bottom: 1px solid #D1D5DC;
}

.details-row .details-label {
  width: 200px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  padding: 20px 16px;
  border-bottom: 2px solid var(--primary);
}

.details-row .details-value {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 20px 16px;
  line-height: 1.8;
}

.details-row .details-value .note {
  font-size: 12px;
  color: var(--text-muted);
}

.details-row .details-value .sub-list {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.8;
}

.details-row .details-value .salary-examples {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .jobs-hero .hero-eng {
    font-size: 44px;
  }

  .jobs-iv-card {
    flex-direction: column;
  }

  .jobs-iv-card .iv-card-img {
    flex: none;
    height: auto;
  }
}

@media (max-width: 767px) {
  .jobs-hero {
    padding: 120px 20px 2rem;
  }

  .jobs-hero .hero-eng {
    font-size: 32px;
  }

  .jobs-intro .intro-catch {
    font-size: 18px;
  }

  .workflow-section,
  .jobs-interview-section,
  .jobs-details-section {
    padding: 50px 0;
  }

  .workflow-timeline::before {
    display: none;
  }

  .wf-item,
  .wf-item.wf-reverse {
    flex-direction: column;
    gap: 16px;
  }

  .wf-item::after {
    display: none;
  }

  .jobs-iv-card .iv-card-content .iv-catch {
    font-size: 22px;
  }

  .jobs-iv-card .iv-card-img {
    height: 250px;
  }

  .details-row {
    flex-direction: column;
  }

  .details-row .details-label {
    width: 100%;
    padding: 16px 16px 8px;
    border-bottom: 2px solid var(--primary);
  }

  .details-row .details-value {
    padding: 8px 16px 16px;
  }
}