body {
  background-color: #FBFCFE;
}

/* p-bg
---------------------------------------------------------------------------- */
.p-bg {
  position: relative;
}

.p-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #FBFCFE;
  background-image: url(./../../../images/recruit/message/bg_bg_pc.png);
}

@media screen and (max-width: 767px) {
  .p-bg::after {
    content: none;
  }
}
/* p-message
---------------------------------------------------------------------------- */
.p-message {
  padding-block: 5.8rem 25.5rem;
}

.p-message-container {
  padding-block: 4.4rem 7.4rem;
  padding-inline: 4.4rem;
  border: 0.6rem solid #C6E9FE;
  border-radius: 3rem;
  display: flex;
  flex-direction: column;
  gap: 7.5rem;
  background-color: #fff;
}

.p-message-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1100/476;
  display: flex;
  align-items: center;
  padding-left: 8rem;
}

.p-message-wrap-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
}

.p-message-wrap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-message-wrap-boxes {
  width: 50.4rem;
  aspect-ratio: 504/353;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding-bottom: 1.5rem;
}

.p-message-wrap-boxes::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(./../../../images/recruit/message/bg_ellipse.png);
}

.p-message-wrap-boxes-img {
  width: 18rem;
  aspect-ratio: 180/48;
  z-index: 3;
}

.p-message-wrap-boxes-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.p-message-wrap-box {
  display: flex;
  align-items: center;
  z-index: 3;
}

.p-message-wrap-box-txt01 {
  font-size: 2.2rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding-right: 2rem;
  border-right: 1px solid #B2B2B2;
}

.p-message-wrap-box-txt02 {
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #0081D9;
  padding-left: 2rem;
}

.p-message-wrap-box-txt02 span {
  font-size: 3rem;
  line-height: 1.2666666667;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.p-message-groups {
  padding-inline: 5rem;
}

.p-message-group01 {
  display: flex;
  flex-direction: column;
  gap: 3.3rem;
}

.p-message-group01-ttl {
  font-family: "Zen Maru Gothic", serif;
  font-size: 4.2rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  letter-spacing: normal;
  background-image: linear-gradient(90deg, #D5D02A 0, #0087DE 50%, #0A3190 100%);
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  margin-inline: auto;
}

.p-message-group02 {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  margin-top: 7rem;
}

.p-message-group02-ttl {
  font-family: "Zen Maru Gothic", serif;
  font-size: 3rem;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: normal;
  color: #0081D9;
}

.p-message-group03 {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-top: 7rem;
}

.p-message-group03-ttl {
  font-family: "Zen Maru Gothic", serif;
  font-size: 2.6rem;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: normal;
  color: #0081D9;
}

.p-message-group04 {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  margin-top: 5.5rem;
}

.p-message-group04-ttl {
  font-family: "Zen Maru Gothic", serif;
  font-size: 2.2rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: normal;
  color: #0081D9;
  padding-bottom: 1rem;
  border-bottom: 1px solid #B2B2B2;
}

.p-message-group01-txt,
.p-message-group02-txt,
.p-message-group03-txt,
.p-message-group04-txt {
  font-size: 1.8rem;
  line-height: 2;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.p-message-group-img {
  width: 52rem;
  aspect-ratio: 520/348;
  border-radius: 2rem;
  overflow: hidden;
  margin-inline: auto;
  margin-top: 5rem;
}

.p-message-group-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 767px) {
  .p-message {
    padding-block: 0 39.7333333333vw;
  }
  .p-message-container {
    padding-block: 5.3333333333vw 12.2666666667vw;
    padding-inline: 3.7333333333vw;
    border-width: 0.8vw;
    border-radius: 2.6666666667vw;
    gap: 5.8666666667vw;
  }
  .p-message-wrap {
    aspect-ratio: 295/150;
    padding-left: 2.6666666667vw;
  }
  .p-message-wrap-img {
    border-radius: 2.6666666667vw;
  }
  .p-message-wrap-boxes {
    width: 43.7333333333vw;
    aspect-ratio: 156/109;
    gap: 1.3333333333vw;
    padding-bottom: initial;
  }
  .p-message-wrap-boxes-img {
    width: 14.6666666667vw;
    aspect-ratio: 55/15;
  }
  .p-message-wrap-box {
    flex-direction: column;
    gap: 0.8vw;
  }
  .p-message-wrap-box-txt01 {
    font-size: 3.2vw;
    padding-right: initial;
    padding-bottom: 0.8vw;
    border-right: none;
    position: relative;
  }
  .p-message-wrap-box-txt01::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3.2vw;
    height: 1px;
    background-color: #B2B2B2;
  }
  .p-message-wrap-box-txt02 {
    font-size: 2.6666666667vw;
    padding-left: initial;
  }
  .p-message-wrap-box-txt02 span {
    font-size: 3.2vw;
  }
  .p-message-groups {
    padding-inline: initial;
  }
  .p-message-group01 {
    gap: 2.6666666667vw;
  }
  .p-message-group01-ttl {
    font-size: 6.1333333333vw;
    line-height: 1.5652173913;
  }
  .p-message-group02 {
    gap: 2.1333333333vw;
    margin-top: 9.3333333333vw;
  }
  .p-message-group02-ttl {
    font-size: 5.3333333333vw;
    line-height: 1.5;
  }
  .p-message-group03 {
    gap: 2.1333333333vw;
    margin-top: 9.3333333333vw;
  }
  .p-message-group03-ttl {
    font-size: 4.8vw;
    line-height: 1.5;
  }
  .p-message-group04 {
    gap: 2.1333333333vw;
    margin-top: 9.3333333333vw;
  }
  .p-message-group04-ttl {
    font-size: 4.8vw;
    line-height: 1.5;
    padding-bottom: 1.3333333333vw;
  }
  .p-message-group01-txt,
  .p-message-group02-txt,
  .p-message-group03-txt,
  .p-message-group04-txt {
    font-size: 4vw;
    line-height: 1.8;
  }
  .p-message-group-img {
    width: 100%;
    aspect-ratio: 295/195;
    margin-top: 5.3333333333vw;
  }
}
