.teacher-list-all-page {
  position: relative;
  overflow: visible;
  padding: 58px 24px 60px;
  background:
    radial-gradient(circle at 0 0, rgba(245, 245, 245, 0.95), transparent 38%),
    linear-gradient(180deg, #f7f7f7 0%, #ffffff 72%, #fafafa 100%);
  color: #111;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.teacher-list-all-hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 64px;
  padding-top: 18px;
  text-align: center;
  min-height: 160px;
}

.teacher-list-all-mic {
    position: absolute;

    top: -55px;
    right: -58px;

    width: 460px;
    max-width: 36%;

    height: auto;

    opacity: 0.88;
    z-index: 0;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(
        to left,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 58%,
        rgba(0,0,0,0) 100%
    );

    mask-image: linear-gradient(
        to left,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 58%,
        rgba(0,0,0,0) 100%
    );
}
.teacher-list-all-en,
.teacher-list-all-title,
.teacher-list-all-lead {
  position: relative;
  z-index: 1;
}

.teacher-list-all-en {
  margin: 0 0 16px;
  color: #e11d48;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.teacher-list-all-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.teacher-list-all-lead {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
}

.teacher-list-all-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.teacher-all-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(225, 225, 225, 0.8);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
}

.teacher-all-card .teacher-profile {
  margin-bottom: 32px;
}

.teacher-all-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f6f6;
  margin-bottom: 22px;
}

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

.teacher-all-photo:not(:has(img)) {
  background-size: cover;
  background-position: center;
}

.teacher-all-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-weight: 700;
}


.teacher-all-text {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
}

.teacher-all-buttons {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  margin-top: auto;
  border: 1px solid #f43f6f;
  border-radius: 7px;
  overflow: hidden;
}

.teacher-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
}

.teacher-all-btn i {
  margin-right: 6px;
  font-size: 14px;
}

.teacher-all-btn-outline {
  color: #f43f6f;
  background: #fff;
}

.teacher-all-btn-fill {
  color: #fff;
  background: linear-gradient(135deg, #ff416c 0%, #e11d48 100%);
}

.teacher-all-consult {
  position: relative;
  max-width: 1180px;
  margin: 52px auto 0;
  padding: 44px 36px 36px;
  overflow: visible;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 91, 135, 0.18), transparent 25%),
    linear-gradient(135deg, #fff4f7 0%, #fff9fb 100%);
}

.teacher-all-consult-main {
  position: relative;
  z-index: 2;
  width: calc(100% - 250px);
  text-align: center;
}

.teacher-all-consult h2 {
  margin: 0;
  color: #173153;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.teacher-all-consult h2 i {
  color: #e11d48;
  margin-right: 12px;
  font-size: 28px;
}

.teacher-all-consult-main > p {
  margin: 14px 0 30px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.teacher-all-consult-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.teacher-all-consult-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 18px;
  min-height: 106px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  text-align: left;
}

.teacher-all-consult-item > i {
  flex: 0 0 auto;
  color: #e11d48;
  font-size: 38px;
}

.teacher-all-consult-item h3 {
  margin: 0 0 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.teacher-all-consult-item p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.teacher-all-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 410px;
  min-height: 58px;
  padding: 12px 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff416c 0%, #e11d48 100%);
  color: #fff;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.24);
}

.teacher-all-contact-button i:first-child {
  font-size: 22px;
}

.teacher-all-contact-button i:last-child {
  margin-left: 6px;
  font-size: 14px;
}

.teacher-all-consult-person {
  position: absolute;
  right: 26px;
  bottom: 0;
  transform: translateY(-100px);
  width: 260px;
  max-width: 24%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .teacher-list-all-mic {
    width: 420px;
    right: -25px;
    top: -60px;
    max-width: 34%;
  }
}
@media (max-width: 1024px) {
  .teacher-list-all-wrap {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }

  .teacher-list-all-mic {
    width: 280px;
    opacity: 0.45;
    top: -60px;
    right: -25px;
  }

  .teacher-all-consult-main {
    width: 100%;
    padding-right: 180px;
  }

  .teacher-all-consult-items {
    grid-template-columns: 1fr;
  }

  .teacher-all-consult-person {
    width: 190px;
    max-width: 28%;
  }
}

@media (max-width: 767px) {
  .teacher-list-all-page {
    padding: 42px 16px 44px;
  }

  .teacher-list-all-hero {
    margin-bottom: 36px;
    min-height: auto;
  }

  .teacher-list-all-mic {
    top: -40px;
    right: -15px;
    width: 220px;
    max-width: none;
    opacity: 0.25;
  }

  .teacher-list-all-title {
    font-size: 38px;
  }

  .teacher-list-all-lead {
    font-size: 14px;
  }

  .teacher-list-all-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .teacher-all-card {
    padding: 14px 14px 16px;
  }

  .teacher-all-card h2 {
    font-size: 23px;
  }

  .teacher-all-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-all-btn {
    font-size: 12px;
  }

  .teacher-all-consult {
    margin-top: 34px;
    padding: 34px 18px 0;
  }

  .teacher-all-consult-main {
    width: 100%;
    padding-right: 0;
    padding-bottom: 260px;
  }

  .teacher-all-consult h2 {
    font-size: 23px;
  }

  .teacher-all-consult h2 i {
    display: block;
    margin: 0 auto 8px;
  }

  .teacher-all-consult-main > p {
    font-size: 14px;
  }

  .teacher-all-consult-item {
    padding: 18px 16px;
  }

  .teacher-all-contact-button {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

  .teacher-all-consult-person {
    display: none !important;
  }
  .teacher-all-consult {
    padding-bottom: 34px !important;
  }

  .teacher-all-consult-main {
    padding-bottom: 0 !important;
  }
}