.teacher {
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}

 /****************************************
    教員カード

/* カード全体 */
.teacher-card {
  position: relative;
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;

  padding: 32px;
  border-radius: 24px; /* ← ここがちゃんと効く */
  background: #fff;
  z-index: 0;
}

/* グラデーション枠 */
.teacher-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 4px; /* ← 枠線の太さ */
  border-radius: 24px;

  background: linear-gradient(
    135deg,
    #ffa500,   /* オレンジ */
    #fff3a0   /* 黄色 */
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  z-index: -1;
}



/* 左側 */
.teacher-card-left {
  width: 220px;
  text-align: center;
  flex-shrink: 0;
}

.teacher-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.teacher-name {
  margin-top: 12px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.teacher {
  font-size: 14px;
  margin-left: 4px;
}

.teacher-job {
  font-size: 14px;
  color: #ffa500;
  text-align: center;
  margin: 0px;
  line-height: 0px;
}
.orange-title{
  display: inline-block;
  font-weight: 700;
  padding: 12px 32px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00, #ff5e00);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 138, 0, 0.35);
}

/* 右側 */
.teacher-card-right {
  flex: 1;
  text-align: left;
}

.teacher-message {
  font-size: 20px;
  margin-bottom: 16px;
}

.teacher-profile p {
  margin-bottom: 12px;
}
/* ===== 講師ギャラリー ===== */
.teacher-gallery {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.teacher-gallery img {
  width: calc((100% - 48px) / 4); /* 4枚均等 */
  /* 3枚均等 */
  /* width: calc((100% - 32px) / 3); */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
/* ===== レスポンシブ ===== */
@media screen and (max-width: 768px) {
  .teacher-card {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }
  .teacher-gallery {
    flex-wrap: wrap;
  }

  .teacher-gallery img {
    width: calc((100% - 16px) / 2); /* 2列 */
  }
  .teacher-message {
    margin-top: 30px;
    margin-bottom: 16px;
  }
  .teacher-message {
  font-size: 18px;
  }
}
