.mainEl {
  background: url(../images/bk-pattern.jpg) repeat;
  background-size: 107px;
}

.container {
  background: #fff;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 65rem;
  min-height: calc(100dvh - 1.875rem);
  padding: 2.5rem;
  width: calc(100% - 2.5rem);
}

.mainTitle {
  margin: 0 auto;
  padding: 2.5rem;
  position: relative;
  width: fit-content;
}

.mainLead {
  font-family: "Darumadrop One", sans-serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 auto;
  text-align: center;
}

.mainHeading {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

.mainTitle__image {
  height: 100%;
  left: -2.5rem;
  opacity: 0.1;
  position: absolute;
  top: 0;
  width: auto;
}

.mainContents {
  margin: 2.5rem auto 0;
  max-width: 58.125rem;
}

.professor__article {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: clamp(9.375rem, 21.6vw, 11.875rem) 1fr;
}

.professor__heading,
.professor__subheading {
  font-size: 1.125rem;
  font-weight: 700;
}

.professor__text {
  margin-top: 1rem;
}

.professor__block {
  border: 1px solid #000;
  box-sizing: border-box;
  margin-top: 1rem;
  padding: 1.5rem;
}

.professor__figure {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 9.0625rem 1fr;
}

.professor__textContents {
  display: flex;
  flex-direction: column;
  padding: 0.6875rem 0;
}

.professor__subheading {
  display: flex;
  flex-direction: column;
}

.professor__collab {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1.25rem auto;
  width: fit-content;
}

.professor__link {
  align-items: center;
  background: #000;
  border: 1px solid #000;
  color: #fff;
  display: flex;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  height: 2.1875rem;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1.8;
  max-width: 9.375rem;
  margin-top: 1.25rem;
  transition:
    color 0.2s,
    background-color 0.2s;
  width: 100%;
}

.professor__link:hover {
  background: #fff;
  color: #000;
}

.toTopLink {
  align-items: center;
  color: #000;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 1.5rem auto;
  margin: 2.5rem auto 0;
  transition: 0.2s;
  width: fit-content;
}

.toTopLink:hover {
  transform: scale(1.1);
}

.topTopLink__arrow {
  align-items: center;
  display: flex;
  height: 24px;
  justify-content: center;
  width: 1.5rem;
}

.topTopLink__arrow img {
  width: 1rem;
}

.topTopLink__text {
  font-family: "Wahupop", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.professor__commentHeading {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #c7c7c7;
  font-weight: 700;
}

.professor__commentText {
  margin-top: 0.5rem;
}

@media screen and (max-width: 767px) {
  .container {
    max-width: 37.5rem;
    padding: 1.25rem;
  }
  .professor__article {
    grid-template-columns: 1fr;
  }
  .professor__portrait {
    justify-self: center;
  }
  .mainTitle {
    padding: 1.0625rem 1rem 0 1rem;
  }
  .mainHeading {
    font-size: min(0.875rem, 3.733vw);
  }
  .mainLead {
    font-size: min(2.5rem, 10.67vw);
  }
  .mainTitle__image {
    left: -7%;
  }
  .professor__heading,
  .professor__subheading {
    font-size: min(1.125rem, 4.8vw);
  }
  .professor__block {
    margin: 1rem auto 0;
    max-width: 18.4375rem;
  }
  .professor__figure {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .professor__collab {
    margin: 0 auto;
  }
  .professor__link {
    margin: 1.25rem auto 0;
  }
}
