#shoukaiPageSection05 {
  height: 700px;
  background-color: #F5F8FB;
  padding-top: 120px;
  transition: height 0.5s;
}

#shoukaiPageSection05.answer-opened {
  height: 800px;
}

#shoukaiPageSection05 .title p.pre-title {
  font-weight: 700;
}

#shoukaiPageSection05 .title h4 {
  font-size: 52px;
  margin-bottom: 60px;
}

#shoukaiPageSection05 .title p.pre-title,
#shoukaiPageSection05 .title h4 {
  width: 312px;
}

#shoukaiPageSection05 .sps5-content {
  width: fit-content;
  margin: 0 auto;
}

#shoukaiPageSection05 .sps5-content .question-and-answer {
  width: 1160px;
  height: 70px;
  transition: height 0.5s;
  background-color: #F5F8FB;
  margin-bottom: 2px;
  align-items: center;
  border-top: 1px solid #D5D5D5;
}

#shoukaiPageSection05 .sps5-content .question-and-answer:last-child {
    border-bottom: 1px solid #D5D5D5; /* 最後の質問の下にボーダーを追加 */
}

#shoukaiPageSection05 .sps5-content .question-and-answer.ichi.show-answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.ni.show-answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.san.show-answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.yon.show-answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.go.show-answer {
  height: 200px;
}

#shoukaiPageSection05 .sps5-content .question-and-answer .answer {
  display: none;
}

#shoukaiPageSection05 .sps5-content .question-and-answer.show-answer .answer {
  display: block;
}

#shoukaiPageSection05 .sps5-content .question-and-answer .question {
  width: 1160px;
  height: 70px;
  background-color: #F5F8FB;
  padding: 0 81px;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  line-height: 70px;
  position: relative;
  cursor: pointer;
}

#shoukaiPageSection05 .sps5-content .question-and-answer .question::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 24px;
  background: url("../images/question.png") no-repeat;
  background-size: 17px 24px;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
}

#shoukaiPageSection05 .sps5-content .question-and-answer .question::after {
  content: "\002B";
  position: absolute;
  font-size: 36px;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
}

#shoukaiPageSection05
  .sps5-content
  .question-and-answer.show-answer
  .question::after {
  content: "\2212";
}

#shoukaiPageSection05 .sps5-content .question-and-answer .answer {
  width: 1160px;
  background-color: #F5F8FB;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 30px;
  position: relative;
  padding: 0 81px 0 81px;
}

#shoukaiPageSection05 .sps5-content .question-and-answer .answer::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 24px;
  background: url("../images/answer.png") no-repeat;
  background-size: 17px 24px;
  left: 34px;
  top: 8px;
}

#shoukaiPageSection05 .sps5-content .question-and-answer.ichi .answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.ni .answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.san .answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.yon .answer,
#shoukaiPageSection05 .sps5-content .question-and-answer.go .answer {
  height: 120px;
}

@media (max-width: 1160px) {
  #shoukaiPageSection05 {
    height: 750px;
    background-color: #F5F8FB;
    padding-top: 120px;
    transition: height 0.5s;
  }

  #shoukaiPageSection05.answer-opened {
    height: 850px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer,
  #shoukaiPageSection05 .sps5-content .question-and-answer .question,
  #shoukaiPageSection05 .sps5-content .question-and-answer .answer {
    width: 620px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ichi.show-answer {
    height: 220px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ichi .answer {
    height: 150px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ni.show-answer {
    height: 220px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ni .answer {
    height: 150px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.san.show-answer {
    height: 220px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.san .answer {
    height: 150px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.yon.show-answer {
    height: 200px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.yon .answer {
    height: 120px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.go.show-answer {
    height: 240px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.go .answer {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  #shoukaiPageSection05 .sps5-content .question-and-answer,
  #shoukaiPageSection05 .sps5-content .question-and-answer .question,
  #shoukaiPageSection05 .sps5-content .question-and-answer .answer {
    width: 345px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer {
    height: 40px;
  }

  #shoukaiPageSection05 .title p.pre-title,
  #shoukaiPageSection05 .title h4 {
    width: 192px;
  }

  #shoukaiPageSection05 .title h4 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer .question {
    height: 40px;
    font-size: 12px;
    line-height: 40px;
    padding: 0 20px 0 30px;
  }
  
  #shoukaiPageSection05 .sps5-content .question-and-answer .question::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 16px;
    background: url("../images/question.png") no-repeat;
    background-size: 10px 16px;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer .question::after {
    content: "\002B";
    position: absolute;
    font-size: 20px;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer .answer {
    font-size: 12px;
    line-height: 18px;
    padding: 8px 20px 0 30px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer .answer::before {
    left: 10px;
    top: 10px;
    content: "";
    position: absolute;
    width: 10px;
    height: 16px;
    background: url("../images/answer.png") no-repeat;
    background-size: 10px 16px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ichi.show-answer {
    height: 160px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ichi .answer {
    height: 100px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ni.show-answer {
    height: 160px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.ni .answer {
    height: 100px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.san.show-answer {
    height: 160px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.san .answer {
    height: 100px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.yon.show-answer {
    height: 140px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.yon .answer {
    height: 100px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.go.show-answer {
    height: 160px;
  }

  #shoukaiPageSection05 .sps5-content .question-and-answer.go .answer {
    height: 100px;
  }

  #shoukaiPageSection05.answer-opened.ichi {
    height: 500px;
  }

  #shoukaiPageSection05.answer-opened.ni {
    height: 500px;
  }

  #shoukaiPageSection05.answer-opened.san {
    height: 500px;
  }

  #shoukaiPageSection05.answer-opened.yon {
    height: 500px;
  }

  #shoukaiPageSection05.answer-opened.go {
    height: 500px;
  }

  #shoukaiPageSection05
    .sps5-content
    .question-and-answer.show-answer
    .question::after {
    right: 5px;
  }

  #shoukaiPageSection05.overseas-internship-qna {
    padding-top: 30px;
  }

  #shoukaiPageSection05.overseas-internship-qna
    .sps5-content
    .question-and-answer.ichi.show-answer {
    height: 460px;
  }

  #shoukaiPageSection05.overseas-internship-qna
    .sps5-content
    .question-and-answer.ni.show-answer {
    height: 300px;
  }

  #shoukaiPageSection05.overseas-internship-qna.answer-opened.ichi {
    height: 800px;
  }

  #shoukaiPageSection05.overseas-internship-qna.answer-opened.ni {
    height: 650px;
  }

  #shoukaiPageSection05.overseas-internship-qna.answer-opened.san {
    height: 700px;
  }

  #shoukaiPageSection05 {
    height: 400px;
    padding-top: 60px;
  }
}
