.teacher-item {
  display: grid;
  grid-template-columns: 240px 1fr; /* 固定幅＋可変幅 */
  gap: 56px;
  align-items: start;
  margin-bottom: 80px;
}
.teacher-item.is-reverse {
  grid-template-columns: 1fr 240px;
}
.teacher-item.is-reverse .teacher-photo {
  order: 2;
}
.teacher-item.is-reverse .teacher-info {
  order: 1;
}

.teacher-photo {
  background: #f4f4f4;
  aspect-ratio: 3/4;
  overflow: hidden;
    box-shadow: var(--global-shadow);
  border-radius: 5px;
  max-width: 220px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name-ja {
  font-size: 18px;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  font-weight: 500;
}

.name-en {
  font-family: var(--english-font);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--main-color);
  margin: 0 0 14px;
  font-weight: 500;
}

.career-text {
  margin-top: 16px;
  line-height: 1.9;
  font-size: 14px;
}
.career-text p {
  margin: 0 0 8px;
}


@media (max-width: 900px) {
  .teacher-item {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 64px;
    align-items: center;
  }
  .teacher-item.is-reverse .teacher-photo,
  .teacher-item.is-reverse .teacher-info {
    order: 0;
  }
  .teacher-info {
    text-align: center;
  }
  .name-en {
    font-size: 24px;
  }
  .teacher-photo {
    max-width: 200px;
    margin: 0 auto;
  }
}
