/* ========================================
   TEACHER / 講師紹介
   ======================================== */

/* ── Teacher Header ── */
.teacher__header {
  text-align: center;
  
  margin-bottom: 60px;
}

.teacher__label {
  font-family: var(--font-jakarta);
  color: var(--clr-accent);
  line-height: 1;
  display: block;
  margin-bottom: 5px;
}

.teacher__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--clr-navy);
  line-height: 1.4;
}

.teacher__year-note {
  font-size: 12px;
  color: var(--clr-gray);
  margin-top: 8px;
  letter-spacing: .1em;
}

.teacher__inner {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: 60px;
  padding-left: 30px;
  padding-bottom: 30px;
}

.teacher__inner:last-of-type {
  margin-bottom: 0;
}

.teacher__hidden-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s ease-in-out, visibility 0.8s ease-in-out;
  visibility: hidden;
}
.teacher__hidden-wrapper.is-active {
  grid-template-rows: 1fr;
  visibility: visible;
}
.teacher__hidden-list {
  overflow: hidden;
}

/* Photo */
.teacher__photo {
  position: relative;
  width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}

.teacher__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(-30px, 30px);
  background-image: url('../images/teacher-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  z-index: 0;
}

.teacher__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* Info */
.teacher__info {
  display: flex;
  flex-direction: column;
}

.teacher__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--clr-text);
  margin-bottom: 12px;
}

.teacher__affiliation {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.teacher__card {
  background: var(--clr-white);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.teacher__card-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teacher__card-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--clr-key-1);
  font-family: var(--font-sans);
  font-weight: 500;
}

.teacher__card-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--clr-gray-dark);
}

/* ── Action ── */
.teacher__action {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.teacher__action > a {
  max-width: 250px;
}

/* Responsive */
@media (max-width: 1024px) {
  .teacher {
    padding-block: 40px;
    background-size: 80% auto;
  }

  .teacher__header {
    margin-bottom: 36px;
  }

  .teacher__title {
    font-size: 24px;
  }

  .teacher__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
    padding-left: 0;
    padding-bottom: 30px;
  }

  .teacher__photo {
    width: min(280px, 100%);
    margin-inline: auto;
    margin-bottom: 20px;
  }

  .teacher__photo::before {
    transform: translate(-15px, 15px);
  }

  .teacher__name {
    font-size: 21px;
    letter-spacing: .16em;
  }

  .teacher__affiliation {
    margin-bottom: 20px;
  }

  .teacher__card {
    padding: 0;
    gap: 18px;
    box-shadow: none;
  }

  .teacher__action {
    margin-top: 0;
  }

  .teacher__hidden-wrapper.is-active + .teacher__action {
    margin-top: 40px;
  }

  .teacher__action > a {
    max-width: none;
  }
}
