.career-page,
.career-page * {
  box-sizing: border-box;
}

.career-page {
  color: #333;
  font-family: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.career-content {
  width: min(calc(100% - 48px), 1024px);
  margin: 0 auto;
  padding: 54px 0 120px;
}

.career-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid #153a6b;
  color: #003b71;
  text-align: center;
}

.career-heading h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.35;
}

.career-heading p {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.career-section-heading {
  margin: 29px 0 0;
  padding: 0 0 13px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
}

.career-section-line {
  width: 100%;
  height: 25px;
  box-sizing: border-box;
  border-top: 1px solid #153a6b;
  border-left: 1px solid #153a6b;
  margin-bottom: 42px;
}

.career-intro {
  margin: 0 0 55px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.career-profile {
  position: relative;
  padding-top: 74px;
}

.career-profile + .career-profile {
  margin-top: 96px;
}

.career-profile-label {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: flex;
  width: 453px;
  height: 115px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  background: #003b71;
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  transform: translateX(-50%);
}

.career-profile-label small {
  font-size: 14px;
  font-weight: 400;
}

.career-profile-top {
  display: grid;
  grid-template-columns: 56.5% 43.5%;
}

.career-photo,
.career-photo img {
  display: block;
  width: 100%;
}

.career-photo img {
  height: auto;
}

.career-profile-bottom {
  display: grid;
  grid-template-columns: 40.5% 1fr;
  gap: 8px;
  margin-top: 8px;
  min-height: 488px;
}

.career-profile + .career-profile .career-profile-bottom {
  min-height: 554px;
}

.career-profile-bottom-right {
  display: grid;
  gap: 8px;
}

.career-answer {
  background: #d6ebfc;
  padding: 28px 26px;
}

.career-answer h4 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.career-question-number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  background: #005192;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.career-answer p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.career-answer--1 {
  padding-top: 60px;
}

.career-requirements-link {
  display: block;
  width: min(100%, 768px);
  margin: 90px auto 0;
  box-shadow: 5px 5px 6px #0004;
  opacity: 1;
  transition: opacity .2s ease;
}

.career-requirements-link picture,
.career-requirements-link img {
  display: block;
  width: 100%;
}

.career-requirements-link img {
  height: auto;
}

@media (min-width: 769px) {
  .career-requirements-link:hover {
    opacity: .5;
  }
}

@media (min-width: 769px) {
  .career-answer {
    --career-text-right: 50px;
  }

  .career-answer--2 {
    --career-text-right: 20px;
  }

  .career-answer h4 > span:last-child {
    flex: 0 0 calc(100% - 59px - var(--career-text-right));
  }

  .career-answer p {
    width: calc(100% - 59px - var(--career-text-right));
    margin-right: var(--career-text-right);
    margin-left: 59px;
  }
}

@media (max-width: 768px) {
  .career-content {
    width: calc(100% - 50px);
    padding: 12px 0 65px;
  }

  .career-heading {
    padding-bottom: 9px;
  }

  .career-heading h1 {
    font-size: 27px;
  }

  .career-heading p {
    margin-top: 2px;
    font-size: 15px;
  }

  .career-section-heading {
    margin: 26px 0 0;
    padding-bottom: 10px;
    font-size: 24px;
  }

  .career-section-line {
    margin-bottom: 13px;
  }

  .career-intro {
    max-width: 300px;
    margin: 0 auto 73px;
    font-size: 19px;
    line-height: 1.6;
  }

  .career-profile {
    padding-top: 66px;
  }

  .career-profile + .career-profile {
    margin-top: 73px;
  }

  .career-profile-label {
    width: min(100% - 42px, 290px);
    height: 90px;
    flex-direction: column;
    gap: 0;
    font-size: 20px;
    line-height: 1.4;
  }

  .career-profile-label small {
    font-size: 13px;
  }

  .career-profile-top,
  .career-profile-bottom,
  .career-profile-bottom-right {
    display: block;
  }

  .career-profile-bottom {
    margin-top: 0;
    min-height: 0;
  }

  .career-profile + .career-profile .career-profile-bottom {
    min-height: 0;
  }

  .career-answer {
    padding: 20px 18px 0px;
    margin-top: 1px;
  }

  .career-profile:first-child .career-profile-bottom .career-answer {
    padding-bottom: 23px;
  }

  .career-answer h4 {
    display: block;
    margin-bottom: 16px;
    font-size: 17px;
  }

  .career-question-number {
    display: grid;
    margin: 0 auto 20px;
  }

  /* 01のh4 span全体の調整用 */
  .career-answer h4 .career-question-number--01 {
    position: relative;
    width: 46px;
    height: 46px;
    margin: 25px auto 10px;
    top: 0px;
  }

  .career-answer p {
    font-size: 15px;
    line-height: 1.7;
  }

  .career-requirements-link {
    margin-top: 55px;
    opacity: 1;
    transition: none;
  }
}
