@charset "utf-8";

main {
  padding-top: var(--space-top);
  background-image: url(../images/decoration/light2.png);
  background-repeat: no-repeat;
  background-position: left top 2%;
  background-size: contain;
}

.school-intro {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.school-category {
  font-size: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: 2rem;
}

.school-category li {
  background-color: #344b6b;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 55px;
  line-height: 1.2;
  font-family: hiragino-kaku-gothic-pron, sans-serif;
  font-weight: 300;
  font-style: normal;
}

.school-category li span {
  font-size: 10px;
}

.school-category li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 8px 16px;
}

@media screen and (min-width:1200px) {
  main {
    background-position: left top;
  }

  h1 {
    margin-bottom: 5rem;
  }

  .school-intro {
    padding-left: 4rem;
    margin-top: 0;
    position: relative;
  }

  .school-intro::before {
    content: '';
    display: block;
    width: 12px;
    height: 50%;
    background-image: url(../images/decoration/line-g.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: 1.5rem;
    top: 3%;
  }

  .school-intro p {
    text-align: left;
  }

  .copy {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align-last: left;
  }

  .school-category {
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 13px;
  }

  .school-category li {
    width: 70%;
  }
}

/* school-contents */

.school-contents {
  background-color: #344b6b;
  font-family: hiragino-kaku-gothic-pron, sans-serif;
  font-weight: 300;
  font-style: normal;
  padding: 16px 24px;
}

.school-contents h2 {
  font-size: 12px;
  background-color: var(--main-color);
  border-left: #ad9d66 3px solid;
  border-right: #ad9d66 3px solid;
  text-align: center;
  padding: 8px 0;
  margin-bottom: 2rem;
}

.school-logo {
  width: 50%;
  height: 60px;
  padding: 1rem;
  background-color: #fff;
  margin-bottom: 1rem;
}

.school-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.school-item {
  background-color: #e3eff6;
  padding: 1.5rem 1rem;
  margin-bottom: 3rem;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.school-item::before {
  content: "";
  width: 85%;
  height: 3px;
  background-color: #2e8ca7;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.school-item h3 {
  font-size: 22px;
  color: var(--main-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.school-item h3 span {
  display: block;
  font-size: 12px;
  color: #858585;
  font-weight: normal;
}

.school-item img {
  display: block;
  margin-top: auto;
  aspect-ratio: 4 / 3;
}

@media screen and (min-width:1200px) {
  .school-contents {
    padding: 24px 32px;
    margin-bottom: 3rem;
  }

  .school-contents h2 {
    width: 70%;
    font-size: 16px;
    margin: 0 auto 2rem;
  }

  .school-logo {
    width: 100%;
    height: 120px;
  }

  .school-item {
    min-height: 400px;

  }

}