.teacherPage {
  background: #fff;
}

.teacherMain {
  min-width: 0;
}

.teacherResponsive {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 40px;
  color: #444;
  font-size: 16px;
  line-height: 1.8;
}

.teacherResponsive,
.teacherResponsive * {
  box-sizing: border-box;
}

.teacherResponsive img {
  max-width: 100%;
  height: auto;
}

.teacherHero {
  margin: 0 0 28px;
  padding: 32px 28px;
  border: 1px solid #d8efcf;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fcf3 0%, #fff 100%);
  box-shadow: 0 3px 0 rgba(120, 190, 80, 0.16);
}

.teacherHeroLabel {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #7fc438;
  color: #fff;
  font-weight: bold;
  line-height: 1.4;
}

.teacherHero h2 {
  margin: 0 0 14px;
  color: #2f8426;
  font-size: 30px;
  line-height: 1.35;
}

.teacherHeroLead {
  margin: 0 0 20px;
  font-size: 17px;
}

.teacherHeroPoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teacherHeroPoints li {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #d8efcf;
  border-radius: 8px;
  background: #fff;
  color: #3f8d2d;
  font-weight: bold;
  text-align: center;
}

.teacherSection {
  margin: 0 0 28px;
  padding: 26px;
  border: 1px solid #d8efcf;
  border-radius: 12px;
  background: #fff;
}

.teacherSection h2 {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #7fc438;
  color: #fff;
  font-size: 22px;
  line-height: 1.4;
}

.teacherSection h3 {
  margin: 0 0 10px;
  color: #3f8d2d;
  font-size: 18px;
  line-height: 1.45;
}

.teacherSection p {
  margin: 0 0 16px;
}

.teacherSectionIntro {
  margin-bottom: 10px;
}

.teacherFeatureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teacherFeatureGrid li {
  padding: 16px;
  border: 1px solid #d8efcf;
  border-radius: 10px;
  background: #fbfff8;
}

.teacherFeatureGrid p {
  margin: 0;
}

.teacherBookBlock {
  display: block;
  margin: 12px 0 0;
  padding: 0;
}

.teacherListBlock,
.teacherInfomationBlock {
  position: relative;
  margin: 0;
}

.teacherListBlock {
  margin-top: 22px;
}

.teacherListBlock::after {
  display: block;
  margin-top: 10px;
  color: #777;
  font-size: 13px;
  text-align: right;
  content: "一覧をスクロールして他の講師も確認できます";
}

.teacherAreaTitle {
  margin: 0 0 14px;
  color: #3f8d2d;
  font-size: 20px;
  line-height: 1.4;
}

.teacherNoneMesagge {
  margin: 0;
  text-align: center;
}

.teacherList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 16px 12px;
  max-height: 310px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 6px 2px 0;
  list-style: none;
}

.teacherList li {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: center;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #d8efcf;
  border-radius: 10px;
  background: #fbfff8;
  color: #3f8d2d;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: keep-all;
  cursor: pointer;
}

.teacherList img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
}

.teacherList .teacherImageOver {
  display: none;
}

.teacherInfomationBlock {
  min-height: 0;
  padding: 18px;
  border: 1px solid #d8efcf;
  border-radius: 12px;
  background: #fbfff8;
}

.teacherInfomationBlock::before {
  display: block;
  margin: 0 0 14px;
  color: #3f8d2d;
  font-weight: bold;
  text-align: center;
  content: "講師を選ぶと詳細が表示されます";
}

.teacherInfomationBlock:has(.teacherImage img)::before {
  display: none;
}

.teacherInfomationBlock .teacherImage {
  margin: 0 0 10px;
  text-align: center;
}

.teacherInfomationBlock .teacherImage img {
  width: min(150px, 42%);
  height: auto;
  border-radius: 14px;
}

.teacherImageButton {
  margin: 0 0 12px;
  text-align: center;
}

.teacherImageButton a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #159bd3;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.teacherImageButton a::before {
  content: "無料体験で講師について相談する";
}

.teacherName,
.teacherEntryName {
  margin: 0 0 6px;
  color: #3f8d2d;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  overflow-wrap: anywhere;
}

.teacherEntryUniversity,
.teacherEntryHighSchool {
  margin: 0 0 8px;
  text-align: center;
}

.teacherEntryCategories,
.teacherInfomationBlock > section.group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.teacherEntryHobby,
.teacherEntryClub,
.teacherEntryDream {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.teacherEntryCategories .label,
.teacherInfomationBlock .label {
  display: block;
  margin-bottom: 4px;
  color: #3f8d2d;
  font-weight: bold;
}

.teacherEntryComment {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
}

.teacherEntryComment img {
  display: block;
  margin-bottom: 8px;
}

.prevTeacherButton,
.nextTeacherButton {
  display: inline-block;
  margin: 12px 6px 0;
  vertical-align: middle;
}

.teacherInfomationBlock .prevTeacherButton {
  margin-left: auto;
}

.teacherInfomationBlock .nextTeacherButton {
  margin-right: auto;
}

.prevTeacherButton img,
.nextTeacherButton img {
  width: auto;
  max-height: 44px;
}

.teacherInfomationBlock {
  text-align: center;
}

.teacherInfomationBlock > p:not(.teacherImage):not(.teacherImageButton):not(.teacherName):not(.teacherEntryUniversity):not(.teacherEntryHighSchool):not(.teacherEntryComment) {
  display: inline-block;
}

.teacherFlow {
  counter-reset: teacher-flow;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teacherFlow li {
  position: relative;
  padding: 16px 16px 16px 56px;
  border: 1px solid #d8efcf;
  border-radius: 10px;
  background: #fbfff8;
}

.teacherFlow li::before {
  counter-increment: teacher-flow;
  content: counter(teacher-flow);
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #7fc438;
  color: #fff;
  font-weight: bold;
}

.teacherFaq {
  display: grid;
  gap: 12px;
}

.teacherFaq details {
  padding: 14px 16px;
  border: 1px solid #d8efcf;
  border-radius: 10px;
  background: #fbfff8;
}

.teacherFaq summary {
  color: #3f8d2d;
  font-weight: bold;
  cursor: pointer;
}

.teacherFaq p {
  margin: 10px 0 0;
}

.teacherCta {
  margin: 0 0 30px;
  text-align: center;
}

.teacherCta a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: #159bd3;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

@media screen and (max-width: 760px) {
  .teacherResponsive {
    font-size: 15px;
  }

  .teacherHero,
  .teacherSection {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .teacherHero h2 {
    font-size: 24px;
  }

  .teacherHeroPoints,
  .teacherFeatureGrid,
  .teacherEntryCategories,
  .teacherInfomationBlock > section.group {
    grid-template-columns: 1fr;
  }

  .teacherBookBlock {
    display: block;
  }

  .teacherListBlock {
    margin-top: 18px;
  }

  .teacherList {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px 8px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .teacherList li {
    padding: 8px 6px;
    font-size: 14px;
  }

  .teacherList img {
    width: 68px;
    height: 68px;
  }

  .teacherSection h2 {
    font-size: 20px;
  }

  .teacherInfomationBlock {
    position: static;
    padding: 18px 14px;
  }
}
