@charset "UTF-8";

.teacher {
  margin-top: 130px;
}

@media screen and (max-width: 768px) {
  .teacher {
    margin-top: 50px;
  }
}

.section-title-wrapper {
  text-align: center;
}

.title-image {
  display: block;
  margin: 0 auto 18px;
  max-width: 377px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .title-image {
    max-width: 259px;
  }
}

.section-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 20px;
    letter-spacing: 1px;
  }
}

.teacher__inner {
  max-width: 814px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 0px;
  margin-left: auto;
  margin-right: auto;
  /* padding-bottom: 47px; */
  padding-left: 50px;
  padding-right: 10px;
}

@media screen and (max-width: 768px) {
  .teacher__inner {
    gap: 0px;
    position: relative;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: -60px;
    overflow: hidden;
  }
}

.teacher__image-wrap {
  width: 28%;
  margin-top: 140px;
  margin-left: 30px;
}

@media screen and (max-width: 768px) {
  .teacher__image-wrap {
    max-width: 100px;
    width: 100%;
    position: absolute;
    top: 97px;
    left: 40px;
    margin-top: 0;
    margin-left: 0;
  }
}

.teacher__image {
  aspect-ratio: 170 / 190;
  overflow: hidden;
}

.teacher__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher__position--main {
  font-size: 20px;
  font-weight: 700;
  line-height: 37px; /* 185% */
  margin-top: 11px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .teacher__position--main {
    font-size: 14px;
    font-weight: 700;
    line-height: 180%; /* 25.2px */
    letter-spacing: 0.14px
  }
}

.teacher__name--main {
  font-size: 20px;
  font-weight: 700;
  line-height: 37px; /* 185% */
  text-align: center;
}

@media screen and (max-width: 768px) {
  .teacher__name--main {
    font-size: 14px;
    font-weight: 700;
    line-height: 180%; /* 25.2px */
    letter-spacing: 0.14px
  }
}

.teacher__tora-wrap {
  width: 70%;
  margin-left: 124px;
}

@media screen and (max-width: 768px) {
  .teacher__tora-wrap {
    max-width: 283px;
    width: 110%;
    position: absolute;
    top: 0;
    left: 130px;
    margin-left: 0;
  }
}


@media screen and (max-width: 768px) {
  .teacher__tora-wrap {
    width: 60%;
    margin-top: 40px;
    margin-left: 30px;
  }
}

.teacher__butterfly {
  aspect-ratio: 421 / 125;
  overflow: hidden;
  margin-left: -30px;
}

@media screen and (max-width: 768px) {
  .teacher__butterfly {
    aspect-ratio: 238.5 / 71;
    margin-left: 0;
    margin-top: -10px;
  }
}

.teacher__butterfly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher__tora {
  aspect-ratio: 425 / 264;
  overflow: hidden;
  position: relative;
  transform: translateX(100%); /* 初期位置（画面外右） */
  opacity: 0; /* 最初は非表示 */
  animation: slideIn 1s ease-out forwards;
  margin-top: 10px;
  /* margin-left: 50px; */
  margin-bottom: 10px;
}

.teacher__tora img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.teacher-offline {
  margin-top: 100px;
}

@media screen and (max-width: 768px) {
  .teacher-offline {
    margin-top: 70px;
  }
  
}

.teacher-offline__inner {
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 60px;
}

@media screen and (max-width: 768px) {
  .teacher-offline__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}


.teacher-offline__title {
  width: 332px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
  .teacher-offline__title {
    max-width: 237px;
    width: 100%;
  }
}

.teacher-offline__text {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 37px; /* 185% */
  margin-top: 40px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .teacher-offline__text {
    font-size: 14px;
    font-weight: 700;
    line-height: 180%; /* 25.2px */
    letter-spacing: 0.14px;
    margin-top: 30px;
  }
}


.teacher-offline__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 51px 8%;
  margin-top: 70px;
}

@media screen and (max-width: 768px) {
  .teacher-offline__items {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 25px;
    margin-top: 30px;
    padding-bottom: 0;
  }
}

.teacher-offline__image {
  aspect-ratio: 170 / 190;
  overflow: hidden;
  transition: all 0.3s;
}

.teacher-offline__image:hover {
  filter: brightness(1.2);
}

@media screen and (max-width: 768px) {
  .teacher-offline__image {
    aspect-ratio: 100 / 111;
  }
}


.teacher-offline__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-offline__content {
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .teacher-offline__content {
    margin-top: 4px;
  }
}

.teacher__position {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px; /* 137.5% */
  letter-spacing: 0.32px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .teacher__position {
    font-size: 11px;
    font-weight: 700;
    line-height: 16px; /* 145.455% */
  }
}

.teacher__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px; /* 137.5% */
  letter-spacing: 0.32px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .teacher__name {
      font-size: 11px;
      font-weight: 700;
      line-height: 16px; /* 145.455% */
  }
}

.teacher-online {
  margin-top: 100px;
}

@media screen and (max-width: 768px) {
  .teacher-online {
    margin-top: 70px;
  }
}

.teacher-online__inner {
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 60px;
}

@media screen and (max-width: 768px) {
  .teacher-online__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.teacher-online__title {
  width: 332px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
  .teacher-online__title {
    max-width: 237px;
    width: 100%;
  }
}

.teacher-online__text {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 37px; /* 185% */
  margin-top: 40px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .teacher-online__text {
    font-size: 14px;
    font-weight: 700;
    line-height: 180%; /* 25.2px */
    letter-spacing: 0.14px;
    margin-top: 30px;
  }
}

.teacher-online__items {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 51px 8%;
  /* gap: 51px 10.6%; */
  padding-bottom: 100px;
}

@media screen and (max-width: 768px) {
  .teacher-online__items {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 25px;
    margin-top: 30px;
    padding-bottom: 0;
  }
}

.teacher-online__image {
  aspect-ratio: 170 / 190;
  overflow: hidden;
}

.teacher-online__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-online__content {
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .teacher-online__item .teacher__name {
      margin-top: 11px;
  }
}

#teacher-online, #teacher-offline {
  scroll-margin-top: 100px; /* ヘッダーの高さに応じて調整 */
}

.special_lecturer__inner {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 60px;
}

@media screen and (max-width: 768px) {
  .special_lecturer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.special_lecturer {
  margin: 0px auto 160px auto;
}

@media screen and (max-width: 768px) {
  .special_lecturer {
    margin-top: 70px;
  }
}

.special_lecturer .title {
  display: block;
  background-repeat: no-repeat;
  text-indent: 120%;
  white-space: nowrap;
  overflow: hidden;
  background: url("../images/teacher/special/title_guest.png") center/100% no-repeat;
  width: 409.5px;
  height: 66.5px;
  margin: 0 auto 35px auto;
}
.special_lecturer__cards {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  margin-top: 70px;
}

@media screen and (max-width: 979px) {
  .special_lecturer__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .special_lecturer__cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
  }
}

.special_lecturer__card {
  border: #ccc dashed 1px;
  padding: 0 0 20px 0;
  margin: 0;
  height: 100%;
}

.special_lecturer__card img {
  width: 100%;
  height: auto;
  display: block;
}

.special_lecturer__card h4 {
  font-size: 1.6rem;
  margin-top: 15px;
  text-align: center;
}
.special_lecturer .btn {
  margin: 20px auto 0 auto;
  width: 130px;
}
.special_lecturer .btn a {
  display: block;
  width: 130px;
  text-align: center;
  border-radius: 50px;
  border: #4cb57d dashed 1px;
  font-size: 1.5rem;
  padding: 7px 0;
  color: #4cb57d;
}
.special_lecturer .btn a:hover {
  border: #ccc dashed 1px;
  color: #ccc;
}

@media screen and (max-width: 768px) {
  .special_lecturer {
    margin: 50px auto 70px auto;
  }
  .special_lecturer .title {
    display: block;
    background-repeat: no-repeat;
    text-indent: 120%;
    white-space: nowrap;
    overflow: hidden;
    background: url("../images/teacher/special/title_guest.png") center no-repeat;
    background-size: contain;
    width: 100%;
    height: auto;
    /* height: 0px; */
    padding-top: 16%;
    margin: 0 auto 25px auto;
  }
  
  .special_lecturer__card {
    /* width: 48%; */
    border: #ccc dashed 1px;
    padding: 0 0 20px 0;
    margin: 0;
    /* margin: 0 2px 10px 2px; */
  }
  .special_lecturer__card h4 {
    font-size: 1.5rem;
    margin-top: 15px;
    text-align: center;
  }
  .special_lecturer .btn {
    margin: 20px auto 0 auto;
    width: 80%;
  }
  .special_lecturer .btn a {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 50px;
    border: #4cb57d dashed 1px;
    font-size: 1.5rem;
    padding: 7px 0;
    color: #4cb57d;
  }
  .special_lecturer .btn a:hover {
    border: #ccc dashed 1px;
    color: #ccc;
  }
}