/* =============================================
   Job Detail Page (共通) - mid_recruit
   ============================================= */

/* ===== Common ===== */

.section-header {
  position: relative;
  margin-bottom: 40px;
}

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

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

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

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

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

/* ===== Job Description ===== */
.job-desc-section {
  padding: 0;
  background: #fff;
}

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

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

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

/* ===== Mission ===== */
.job-mission-section {
  padding: 80px 0 0;
  background: #fff;
}

.job-mission-card {
  border-bottom: 1px solid #E5E7EB;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-mission-card:nth-child(4) {
  border-bottom: 0;
}

.job-mission-top {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.job-mission-header {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.job-mission-slash {
  font-size: 48px;
  font-weight: 300;
  color: rgba(32, 178, 211, 0.30);
  line-height: 1;
}

.job-mission-num {
  font-size: 36px;
  font-weight: 300;
  color: rgba(32, 178, 211, 0.30);
  line-height: 1;
}

.job-mission-title {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
}

.job-mission-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.9;
  margin: 0;
}

/* ===== Experience (inside Mission) ===== */
.job-exp-heading {
  margin-top: 56px;
  margin-bottom: 32px;
}

.job-exp-title {
  font-size: 30px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 12px;
}

.job-exp-title-line {
  display: flex;
  align-items: center;
}

.job-exp-title-line-primary {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.job-exp-title-line-gray {
  display: block;
  flex: 1;
  height: 1px;
  background: #D1D5DC;
}

.job-exp-card {
  background: #FFF;
  border-radius: 10px;
  border: 1px solid #20B2D3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.job-exp-icon {
  width: 64px;
  height: 64px;
  background: rgb(32 178 211/.1);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #20B2D3;
  font-size: 22px;
  margin-bottom: 16px;
}

.job-exp-badge {
  max-width: 30px;
  max-height: 30px;
  font-weight: 700;
  color: #20B2D3;
  line-height: 1;
}

.job-exp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
}

.job-exp-card-desc {
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  line-height: 1.8;
  margin: 0;
}

.job-welcome-heading {
  margin: 48px 0 32px;
}

.job-welcome-highlight {
  color: #000;
  font-size: 24px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.job-welcome-highlight .wsplash {
  max-width: 30px;
  margin: 0 15px;
}

.job-welcome-highlight .marker {
  background: linear-gradient(transparent 60%, #E9F7FB 60%);
}

/* ===== Workflow ===== */
.job-workflow-section {
  padding: 0;
  background: #fff;
}

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

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

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

.job-wf-item:last-child {
  margin-bottom: 0;
}

.job-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;
}

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

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

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

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

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

.job-wf-item.job-wf-reverse {
  flex-direction: row-reverse;
}

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

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

.job-iv-card:last-child {
  margin-bottom: 0;
}

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

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

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

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

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

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

.job-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;
  text-decoration: none;
}

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

.job-iv-card .iv-card-img {
  flex: 0 0 50%;
  overflow: hidden;
  border-radius: 0 0 100px 0;
}

.job-iv-card .iv-card-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
}

/* ===== Details ===== */
.job-details-section {
  padding: 80px 0;
}

.job-details-table {
  width: 100%;
}

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

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

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

.job-details-row .job-details-value .note {
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.job-details-row .job-details-value .highlight-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

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

/* ===== CTA ===== */
.job-cta {
  padding: 0 0 80px;
  text-align: center;
  position: relative;
}

.job-cta .container {
  background: linear-gradient(to bottom, #fff 0%, #fff 20%, var(--primary) 20%, var(--primary) 100%);
  padding-bottom: 40px;
}

.job-cta-title {
  font-size: 100px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 24px;
}

.job-cta-text {
  font-size: 18px;
  color: #fff;
  line-height: 2;
  margin-bottom: 40px;
}

.btn-job-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 60px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  text-decoration: none;
}

.btn-job-entry:hover {
  background: #f0f0f0;
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- Benefits Section --- */
.benefits-section {
  padding: 50px 0 80px;
  background: #fff;
}

.benefits-section .benefits-desc {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  background: #fff;
  border: 1.5px solid var(--primary);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.benefit-card .benefit-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.6;
}

.benefit-card .benefit-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
}

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

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

  .job-iv-card .iv-card-content {
    padding: 0 0 24px;
  }

  .job-iv-card .iv-card-img {
    flex: none;
    height: auto;
  }
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {

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

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

  .job-mission-section,
  .job-experience-section,
  .job-workflow-section,
  .job-interview-section,
  .job-details-section {
    padding: 50px 0;
  }

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

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

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

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

  .job-iv-card .iv-card-img {
    height: 250px;
    overflow: hidden;
  }

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

  .job-details-row .job-details-label {
    width: 100%;
    padding: 16px 16px 8px;
  }

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

  .job-cta-title {
    font-size: 60px;
  }

  .job-cta-text {
    font-size: 14px;
  }

  .job-cta .container {
    background: linear-gradient(to bottom, #fff 0%, #fff 10%, var(--primary) 10%, var(--primary) 100%);
  }
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

