/* 中途採用ページ — 新卒ページ構成を踏襲、メインカラーは teal (#00897b) */

nav.tab {
  margin-top: 60px;
  position: relative;
}
nav.tab ul.flex {
  justify-content: flex-start;
  margin: 0;
  line-height: 0;
}
nav.tab ul.tab li {
  position: relative;
  z-index: 1;
}
nav.tab ul.tab li:nth-child(2) {
  left: -13px;
  z-index: 5;
}
nav.tab ul.tab li:nth-child(3) {
  left: -26px;
  z-index: 10;
}
/* アクティブタブを最前面に */
nav.tab ul.tab li:has(> a.nohover) {
  z-index: 20;
}

@media screen and (max-width: 980px) {
  main > h2 > img {
    width: auto;
    height: 35px !important;
  }
  nav.tab {
    margin-top: 25px;
  }
  nav.tab ul.flex {
    margin: auto;
  }
  nav.tab ul.tab li {
    margin-left: 6px;
  }
  nav.tab ul.tab {
    text-align: center;
    justify-content: center;
  }
  nav.tab ul.tab li img {
    width: 30vw;
    max-width: 180px;
    height: auto;
  }
  main section > .wrap {
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media screen and (max-width: 750px) {
  main section > .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (max-width: 400px) {
  main section > .wrap {
    padding-left: 15px;
    padding-right: 15px;
  }
}

section.copy {
  line-height: 0;
  background-color: #00897b;
}
section.copy .pc {
  padding: 76px 0 150px;
}

/* メッセージ見出し画像（新卒ページと同じ配置） */
section.challenge .challenge-text .catch {
  margin: 0;
}
section.challenge .challenge-text .catch img {
  float: left;
  margin-right: 70px;
  max-width: 100%;
  height: auto;
}

/* 左テキスト / 右写真：ページスクロール中は写真だけ固定（sticky） */
section.challenge {
  background: none;
  padding: 40px 0 70px;
}
section.challenge .challenge-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  height: auto;
  max-height: none;
  font-size: 20px;
  line-height: 1.8em;
  padding: 85px 0 110px;
  box-sizing: border-box;
}
section.challenge .challenge-text {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  min-width: 0;
  overflow: visible;
  padding-right: 0;
}
section.challenge .challenge-text > p {
  margin-top: 0;
  font-weight: 500;
  width: 110%;
}
section.challenge .challenge-photo {
  flex: 1 1 66.666%;
  min-width: 0;
  position: sticky;
  /* 下の固定お問合せバー（#footer_contact ≈ 141px）を除いた可視領域に合わせる */
  top: 20px;
  align-self: flex-start;
  height: calc(100vh - 141px - 20px);
  max-height: none;
  overflow: hidden;
}
section.challenge .challenge-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media screen and (max-width: 980px) {
  section.challenge {
    padding: 24px 0 50px;
  }
  section.challenge .challenge-inner {
    flex-direction: column;
    gap: 28px;
    font-size: 14px;
    line-height: 1.8em;
    padding: 30px 0 0;
  }
  section.challenge .challenge-text {
    flex: none;
    width: 100%;
    max-width: none;
  }
  section.challenge .challenge-text .catch {
    text-align: center;
    margin: 0 auto 15px;
  }
  section.challenge .challenge-text .catch img {
    float: none;
    display: block;
    text-align: center;
    padding: 0 70px 15px;
    margin: 0 auto;
  }
  section.challenge .challenge-text > p {
    text-align: center;
    font-size: 12.71px;
    line-height: 1.8em;
    margin-top: 30px;
    font-weight: 400;
    width: 100%;
    box-sizing: border-box;
  }
  section.challenge .challenge-photo {
    position: static;
    flex: none;
    width: 100%;
    height: auto;
    max-height: none;
  }
  section.challenge .challenge-photo img {
    max-height: 420px;
    aspect-ratio: 16 / 10;
    height: auto;
  }
}
@media screen and (max-width: 750px) {
  section.challenge {
    padding: 16px 0 40px;
  }
  section.challenge .challenge-inner {
    gap: 20px;
    font-size: 12.71px;
    padding-bottom: 0;
  }
  section.challenge .challenge-photo img {
    max-height: 280px;
  }
}

ul.flex.entries {
  width: 525px;
  margin: 0 auto;
  line-height: 0;
}
ul.flex.entries li {
  width: 195px;
  text-align: center;
}
ul.flex.entries li img {
  display: block;
  width: 100%;
  margin: 0;
}
@media screen and (max-width: 980px) {
  ul.flex.entries {
    max-width: 520px;
    width: auto;
    margin: 0 auto;
    justify-content: space-between;
  }
  ul.flex.entries li {
    width: 140px;
  }
}
@media screen and (max-width: 640px) {
  ul.flex.entries {
    max-width: 300px;
  }
}

section.ideal {
  background: url("../img/recruit_midcareer/midcareer_repeat_bg1.png");
  padding: 30px 0 45px;
  background-size: 20px 20px;
}
section.ideal > .wrap {
  max-width: 1092px;
}
section.ideal .ideal-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #00897b;
  margin: 10px 0 25px;
  letter-spacing: 0.08em;
}
@media screen and (max-width: 980px) {
  section.ideal {
    padding-top: 25px;
    background-size: 10px 10px;
  }
  section.ideal .ideal-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  section.ideal > .wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
}

section.events {
  margin: 65px auto;
}
section.events .events-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1a2b2f;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
}
section.events .events-title span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #00897b;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
@media screen and (max-width: 980px) {
  section.events {
    margin: 30px auto;
  }
  section.events .events-title {
    font-size: 18px;
    padding: 0 25px;
  }
}

section.interview {
  background-color: #00897b;
}
section.interview > h3 {
  padding: 50px 0 25px;
  border-bottom: 1px solid #4db6ac;
}
section.interview > h3 div {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
section.interview .interview-title {
  margin: 0;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
section.interview dl {
  color: white;
  max-width: 730px;
  padding-bottom: 40px;
}
section.interview dl dt {
  font-size: 36.52px;
  font-weight: bold;
  margin: 50px 0 20px;
}
section.interview dl dt:before {
  content: " ";
  background: url("../img/recruit_newgraduate/newgraduate_question@2x.png")
    no-repeat;
  background-size: contain;
  width: 53px;
  height: 74px;
  float: left;
  display: inline-block;
  margin-right: 20px;
  margin-top: 5px;
}
section.interview dl dd {
  font-size: 16px;
  margin: 0;
  padding: 0;
  line-height: 1.6em;
}
@media screen and (max-width: 980px) {
  section.interview > h3 {
    padding: 25px 15px;
  }
  section.interview .interview-title {
    font-size: 22px;
  }
  section.interview dl dt {
    margin: 15px 0 10px;
    font-size: 18.26px;
    line-height: 1.2em;
  }
  section.interview dl dt:before {
    width: 23px;
    height: 35px;
    margin-right: 10px;
  }
  section.interview dl dd {
    font-size: 12px;
  }
}

section.requirements h3 {
  margin: 60px auto 40px;
}
section.requirements .req-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #00897b;
  letter-spacing: 0.1em;
  margin: 0;
}
section.requirements table {
  width: 790px;
  margin: auto;
  border: 1px solid #00796b;
  border-top: none;
  font-size: 16px;
}
section.requirements table th,
section.requirements table td {
  border-top: 1px solid #00796b;
  margin: 0;
  line-height: 1.4em;
}
section.requirements table th {
  width: 175px;
  color: #00897b;
  padding: 15px 30px;
  text-align: left;
}
section.requirements table td {
  width: calc(100% - 175px);
  font-weight: 280;
  padding: 15px 10px;
  letter-spacing: 1px;
}
section.requirements table td strong {
  font-weight: 600;
  display: block;
}
section.requirements table td small {
  font-size: 14px;
}
section.requirements table td span.note {
  color: #d8003c;
}
section.requirements table td p {
  margin: 0;
}
section.requirements table td p + p {
  margin-top: 1em;
}
section.requirements ul.flex.entries {
  margin: 55px auto 100px;
}
section.requirements iframe {
  margin: 15px auto 70px;
  max-width: 100%;
}
.pending-copy {
  color: #666;
}
@media screen and (max-width: 980px) {
  section.requirements h3 {
    margin: 30px auto 20px;
  }
  section.requirements .req-title {
    font-size: 18px;
  }
  section.requirements table {
    width: 100%;
  }
  section.requirements table th,
  section.requirements table td {
    width: 100%;
    display: block;
    text-align: left;
    padding: 1em;
  }
  section.requirements table th {
    padding-bottom: 0.5em;
    font-size: 13px;
  }
  section.requirements table td {
    border-top: none;
    padding-top: 0;
    font-size: 12px;
  }
}

section.flow {
  background: #00897b url("../img/recruit_midcareer/midcareer_repeat_bg2.png");
  padding: 50px 0 45px;
  background-size: 20px 20px;
}
section.flow h3 {
  margin: 0 auto;
}
section.flow > div {
  padding-top: 70px;
}
@media screen and (max-width: 980px) {
  section.flow {
    padding: 20px 0;
    background-size: 10px 10px;
  }
  section.flow > div {
    padding-top: 22px;
  }
  section.flow h3 img {
    width: 134px;
    height: auto;
  }
}

section.catch {
  padding: 80px 0;
}
section.catch > div {
  padding-bottom: 80px;
}
@media screen and (max-width: 980px) {
  section.catch {
    padding: 40px 0 0;
  }
  section.catch > div {
    padding-bottom: 40px;
  }
}
