@charset "utf-8";

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
}

.main-titile {
  position: relative;
}

.titile-bg {
  width: 100%;
  height: auto;
}

h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  text-align: center;
}

.subtitle {
  display: flex;
  justify-content: center;
  margin: 80px;
}

.school-name {
  font-size: 48px;
  font-weight: bold;
  text-decoration: underline;
}

.address {
  font-size: 24px;
  margin: 40px 0 40px 0;
  line-height: 36px;
}

.school-map {
  width: 600px;
  padding: 80px 0 0 60px;
  background-color: #FFFED8;
}

.school-img {
  width: 50%;
  object-fit: cover;
}

.icon-img {
  width: 38px;
}

.map-icon>a {
  font-size: 24px;
}

.school-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.map-icon-text {
  color: #2C4EFF;
  text-decoration: underline;
}

.map-icon-text:hover {
  text-decoration: none;
}

.map-link:hover {
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  .subtitle {
    align-items: flex-start;
    align-items: center;
    flex-direction: column;
    margin: 0;
  }

  .school-name {
    font-size: 36px;
  }

  .school-map {
    width: 100%;
    padding: 30px 20px 40px 20px;
  }

  .school-img {
    width: 100%;
  }

  .address {
    font-size: 24px;
  }
}