/* section-title
================================================ */
.section-title {
  position: relative;
  font-size: 60px;
  color: #152a6d;
  font-weight: 700;
  width: fit-content;
  margin: 0 auto;
  line-height: 1.4;
}

.section-title-multiple {
  display: none;
}

.section-title-multiple .section-title {
  display: block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(var(--scale-x, 0));
  width: 100%;
  height: 6px;
  background-color: #152a6d;
  transform-origin: left;
}

.section-title-ja {
  font-size: 35px;
  text-align: center;
  color: #152a6d;
  font-weight: 600;
  margin-top: 30px;
}

/* SP
================================================ */
@media screen and (width <= 750px) {
  .section-title {
    font-size: calc(24 / 375 * 100vw);
    line-height: 1.8;
  }

  .section-title::after {
    height: calc(3 / 375 * 100vw);
  }

  .section-title-ja {
    font-size: calc(18 / 375 * 100vw);
    margin-top: calc(20 / 375 * 100vw);
  }

  .section-title-multiple {
    display: block;
    text-align: center;
    line-height: 1;
  }
}

/* /recruitment/配下のセクションタイトル */

.recruitment-header {
  display: flex;
  align-items: flex-start;
}

.recruitment-title-wrap > * {
  position: relative;
  z-index: 2;
}

.recruitment-title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: min(calc(10 / 1366 * 100vw), 10px);
  background-color: #152a6d;
  padding: min(calc(20 / 1366 * 100vw), 20px) min(calc(45 / 1366 * 100vw), 45px) min(calc(20 / 1366 * 100vw), 20px)
    min(calc(50 / 1366 * 100vw), 50px);
  width: fit-content;
  color: #fff;
}

.recruitment-title-wrap::before,
.recruitment-title-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  background-color: #152a6d;
  transform: skewX(-40deg) translateX(-100%);
  z-index: 1;
}

.recruitment-title-wrap::before {
  right: max(calc(-110 / 1366 * 100vw), -110px);
  width: min(calc(80 / 1366 * 100vw), 80px);
}

.recruitment-title-wrap::after {
  right: max(calc(-100 / 1366 * 100vw), -100px);
  width: min(calc(30 / 1366 * 100vw), 30px);
}

.recruitment-num {
  font-family: var(--font-family-en);
  font-size: min(calc(35 / 1366 * 100vw), 35px);
  font-weight: 700;
}

.recruitment-separator {
  width: min(calc(3 / 1366 * 100vw), 3px);
  height: min(calc(27 / 1366 * 100vw), 27px);
  background-color: #fff;
  border-radius: min(calc(2 / 1366 * 100vw), 2px);
}

.recruitment-title {
  font-size: min(calc(33 / 1366 * 100vw), 33px);
  font-weight: 700;
}

.fade-in-from-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-in-from-left.active {
  opacity: 1;
  transform: translateX(0);
}

@media (width <= 750px) {
  .recruitment-header {
    display: grid;
    grid-template-columns: auto auto;
    align-items: stretch;
    width: fit-content;
  }

  .recruitment-title-wrap {
    padding: calc(10 / 375 * 100vw) 0 calc(10 / 375 * 100vw) calc(20 / 375 * 100vw);
    gap: calc(5 / 375 * 100vw);
  }

  .recruitment-title-wrap::before {
    right: calc(-90 / 375 * 100vw);
    width: calc(60 / 375 * 100vw);
  }

  .recruitment-title-wrap::after {
    right: calc(-55 / 375 * 100vw);
    width: calc(10 / 375 * 100vw);
  }

  .recruitment-skew img {
    display: block;
    height: 100%;
    width: auto;
  }

  .recruitment-num {
    font-size: calc(18 / 375 * 100vw);
    line-height: calc(22 / 375 * 100vw);
  }

  .recruitment-separator {
    width: calc(2 / 375 * 100vw);
    height: auto;
    align-self: stretch;
  }

  .recruitment-title {
    font-size: calc(16 / 375 * 100vw);
    line-height: calc(22 / 375 * 100vw);
    white-space: nowrap;
  }
}
