@charset "utf-8";

.page2 img {
  width: 100%;
}

:root {
  --title: #0086e4;
  --bg: #dff2fc;
}

.page2 .title {
  margin-bottom: 10px;
}

.page2 .message {
  margin-bottom: 50px;
  display: flex;
}
.page2 .message:nth-of-type(2) {
  flex-direction: row-reverse;
}
.page2 .message .img {
  max-width: 500px;
  width: 40%;
  margin-right: 20px;
}
.page2 .message:nth-of-type(2) .img {
  margin-right: 0;
  margin-left: 20px;
}
.page2 .message .text-wrap {
  max-width: 60%;
}
.page2 .message .text-wrap .lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 10px;
}
.page2 .message .text-wrap .name {
  font-weight: 600;
  color: var(--title);
  margin-bottom: 10px;
}
.page2 .highschool {
  border: 5px solid var(--title);
  border-radius: 20px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 816px;
  margin: 0 auto;
}
.page2 .highschool .text {
  max-width: 50%;
  margin-right: 70px;
}
.page2 .highschool .text p {
  font-size: 40px;
  font-weight: 600;
  color: #e60012;
  margin-bottom: 10px;
  line-height: 1.3;
}
.page2 .highschool .text a:hover {
  opacity: .8;
  transition: all .2s;
}
.page2 .highschool > .img {
  max-width: 250px;
}

@media screen and (max-width:600px) {
  .page2 .message {
    display: block;
  }
  .page2 .message .img{
    width: 100%;
    margin: 0 auto;
  }
  .page2 .message:nth-of-type(2) .img {
    margin: 0 auto;
  }
  .page2 .message .text-wrap {
    max-width: 100%;
  }
  .page2 .highschool {
    flex-direction: column-reverse;
  }
  .page2 .highschool .text {
    max-width: 100%;
    margin-right: 0;
  }
  .page2 .highschool .text p {
    font-size: 32px;
  }
  .page2 .highschool > .img {
    margin-bottom: 30px;
  }
  .page2 .highschool .text .img {
    max-width: 300px;
  }
}