@charset "utf-8";

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

.midashi {
  font-family: fot-tsukuaoldmin-pr6n, sans-serif;
  font-weight: 300;
  font-weight: 500;
  line-height: 1.2;
}

.school-wrapper {
  margin: 2rem 0;
}

article {
  background-color: #fff;
  color: #333;
  padding: 1rem;
}

article h1 {
  font-size: 22px;
  color: var(--main-color);
  font-family: hiragino-kaku-gothic-pron, sans-serif;
  font-weight: bold;
}

article h1 span {
  display: block;
  color: #858585;
  font-size: 13px;
  margin-bottom: 1rem;
  font-weight: normal;
}

.school-logo {
  width: 40%;
  aspect-ratio: 4 / 2;
  margin: 1rem 0;
}

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

.thumbnail {
  margin: 1rem 0;
  aspect-ratio: 3 / 2;
}

.thumbnail img {
  height: 100%;
}

.website a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  padding: 1.5rem 0;
  margin: 2rem 0;
  font-size: 21px;
  letter-spacing: .2em;
}

.school-category {
  text-align: center;
  margin-bottom: 3rem;
}

.category-title {
  font-family: fot-tsukuaoldmin-pr6n, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 21px;
}

.school-category .category-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.school-category .category-contents li {
  background-color: #344b6b;
  font-size: 10px;
  width: 49%;
  min-height: 55px;
  line-height: 1.2;
  font-family: hiragino-kaku-gothic-pron, sans-serif;
  font-weight: 300;
  font-style: normal;
}

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

@media screen and (min-width:1200px) {

  main {
    background-position: left top;
  }

  .midashi {
    margin-bottom: 5rem;
  }

  .school-wrapper {
    background-color: #344b6b;
    padding: 2rem;
    margin: 0 0 5rem;
  }

  article {
    padding: 2rem;
  }

  .school-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

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


  .category-title {
    display: inline-block;
  }

  .school-category .category-contents {
    flex-direction: column;
    gap: 1rem;
    width: 60%;
  }

  .school-category .category-contents li {
    width: 100%;
    font-size: 13px;
  }
}