main {
  font-size: 62.5%;
}

/* 改行 */
.pc {display:block;}
.sp {display:none;}

.recruit-hero {
  position: relative;
}
.recruit-hero .image-wrap {
  position: relative;
}
.recruit-hero .image-wrap img {
  width: 100%;
  height: 40rem;
  object-fit: cover;
  display: block;
}
.recruit-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #00102c 0%, rgba(0, 16, 44, 0) 56%);
  pointer-events: none;
}
.recruit-hero .hero-box {
  position: absolute;
  top: 50%;
  left: 6.9%;
  transform: translateY(-50%);
  max-width: 90%;
  padding: 3.4rem 3.5rem;
  border: 3px solid #fff;
  color: #fff;
  box-sizing: border-box;
}
.recruit-hero .hero-box h1 {
  font-size: 4rem;
  font-weight: 400;
  line-height: 5.8rem;
  margin: 0 0 2rem;
}
.recruit-hero .hero-box p {
  font-size: 1.5rem;
  letter-spacing: .1em;
  line-height: 2.5rem;
  margin: 0;
  font-weight: 300;
}

.requirement-section {
  padding: 5.5rem 0 8rem;
  margin: 0 2rem;
}
.requirement-section .inner-wrap {
  max-width: 100rem;
  margin: 0 auto;
}
.requirement-section h2 {
  position: relative;
  color: #00369b;
  font-size: 2.8rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 4rem;
  padding-bottom: 0.2em;
}
.requirement-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.2rem;
  background: #00369b;
}

.requirement-grid {
  display: grid;
  grid-template-columns: 18.5rem 18.5rem 1fr;
  grid-template-rows: 13rem 13rem;
  grid-template-areas:
    "a b c"
    "d e c";
  gap: 1.4rem;
}
.requirement-card:nth-child(1) { grid-area: a; } /* 雇用形態 */
.requirement-card:nth-child(2) { grid-area: b; } /* 勤務時間 */
.requirement-card:nth-child(3) { grid-area: d; } /* 勤務地 */
.requirement-card:nth-child(4) { grid-area: e; } /* 給与 */
.requirement-card--wide { grid-area: c; }         /* 福利厚生（縦2段分） */

.requirement-card {
  display: flex;
  flex-direction: column;
  background: #1949a3;
  border-radius: 0.4rem;
  overflow: hidden;
}
.requirement-card .card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border-bottom: 1px solid #fff;
  margin: 0 1.5rem;
}
.requirement-card .card-head .icon {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
  display: block;
}
.requirement-card--wide .card-head .icon {
  width: 3.3rem;
}
.requirement-card .card-head h3 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}
.requirement-card .card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.4rem 2rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #fff;
  font-weight: 300;
}
.requirement-card:nth-child(2) .card-body {
  padding: 0.8rem 2rem;
}
.requirement-card--wide .card-body {
  justify-content: flex-start;
  text-align: left;
  padding: 1.4rem 3rem;
}
.requirement-card--wide .card-body p {
  line-height: 2.1;
}

.recruit-cta-section {
  background: #eaedf2;
  padding: 6rem 0 7rem;
  text-align: center;
}
.recruit-cta-section .inner-wrap {
  max-width: 100rem;
  margin: 0 auto;
}
.recruit-cta-section h2 {
  font-size: 2.8rem;
  color: #00369b;
  font-weight: 600;
  margin: 0 0 4rem;
}
.cta-links {
  display: flex;
  justify-content: center;
  gap: 2.3rem;
  flex-wrap: wrap;
}
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31.8rem;
  max-width: 100%;
  height: 10rem;
  box-sizing: border-box;
  border: 1px solid #00369b;
  border-radius: 0.4rem;
  background: #fff;
  color: #00369b;
  font-weight: 600;
  font-size: 2.8rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta-button:hover {
  background: #00369b;
  color: #fff;
}

@media (max-width: 768px) {
  .pc {display:none;}
  .sp {display:block;}
  .recruit-hero .image-wrap img { height: 60rem; }
  .requirement-section { padding: 3.5rem 0 6rem; }
  .recruit-hero .hero-box { 
    top: 60%;
    left: 50%;
    width: 90%;        
    transform: translate(-50%, -50%);
    padding: 1.9rem;
  }
  .recruit-hero .hero-box h1 {
    font-size: 2.66rem;
    line-height: 1.4;
    margin: 0 0 1.2rem;
  }
  .recruit-hero .hero-box p { font-size: 1.2rem; line-height: 1.6; }
  .requirement-section .inner-wrap { padding: 0 1.3rem;}
  .requirement-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "a b"
      "d e"
      "c c";
  }
  .requirement-card .card-head { margin: 0 1.35rem; }
  .requirement-card--wide .card-body { padding: 2.4rem 1.7rem; font-size: 1.5rem; }
  .requirement-card .card-head h3 { font-size: 1.63rem; }
  .recruit-cta-section { padding: 4.3rem 0 6.5rem; }
  .recruit-cta-section .inner-wrap { padding: 0 2.2rem; }
  .recruit-cta-section h2 { font-size: 2.2rem; }
  .cta-button {
    width: 100%;
    height: 8.2rem;
    font-size: 2.3rem;
  }
  .cta-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) and (min-width: 490px) {
  .recruit-hero .image-wrap img { height: 90rem; }
}