@charset "UTF-8";
/* =========================================
  teacher-list.css  (Shapes School)
  - 講師一覧ページ用のCSS
========================================= */
#child-hero {
  background-image: url(../img/teachers-hero.webp);
  background-position: center center;
  height: 100vw;
}
@media screen and (min-width: 768px) {
  #child-hero {
    height: 48vh;
  }
}
@media screen and (min-width: 1024px) {
  #child-hero {
    height: 42vh;
  }
}
#child-hero > div {
  display: grid;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.75);
}
.child-title {
  font-weight: 100;
  text-align: center;
  padding: 1em 0;
}
.teacher-lead {
  display: grid;
  place-items: center;
  font-size: 20px;
}
.teacher-lead p {
  width: fit-content;
}
.teacher-cards {
  display: grid;
  gap: 40px;
}
.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 8px;
  gap: 24px;
  border: 1px solid var(--c-bg-2);
  box-shadow: var(--box-shadow);
  background-color: var(--c-bg);
}
.teacher-card div span {
  font-size: 24px;
}
.teacher-about {
  width: 100%;
}
.teacher-pic {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: max(180px, 20vw);
  height: max(180px, 20vw);
  flex: 0 0 auto;
}
h2 {
  margin: 16px auto 0;
  font-weight: normal;
  text-align: center;
  font-size: 20px;
}
.teacher-card h2 .h2-teacher {
  font-size: 0.8em;
}
table {
  border-collapse: collapse;
}
table,
tbody,
tr,
th,
td {
  display: block;
  width: 100%;
}
th {
  background-color: var(--c-bg-2);
}
th,
td {
  font-family: var(--f-text);
  padding: 8px 16px;
}
td ul li {
  list-style-type: disc;
  margin-left: 1.5em;
}
.video-cell {
  padding: 10px;
}
.video-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/*　講師1番目の画像設定　*/
.teacher-pic-1 {
  background-image: url(../img/matsuo.webp);
}
/*　講師2番目の画像設定　*/
.teacher-pic-2 {
  background-image: url(../img/mori.webp);
}
/*　講師3番目の画像設定　*/
.teacher-pic-3 {
  background-image: url(../img/ikuta.webp);
}
/*　講師4番目の画像設定　*/
.teacher-pic-4 {
  background-image: url(../img/kibayashi.webp);
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .teacher-card {
    gap: 32px;
  }
  .teacher-pic {
    width: max(320px, 38vw);
    height: max(320px, 38vw);
  }
  h2 {
    font-size: 28px;
    margin-top: 24px;
  }
  th,
  td {
    padding: 16px 24px;
    font-size: 20px;
  }
  .video-cell {
    padding: 16px;
  }
}
@media screen and (min-width: 1024px) {
  .teacher-card {
    flex-direction: row;
    padding: 24px;
  }
  /* 偶数カードだけ左右を反転 */
  .teacher-cards > .teacher-card:nth-child(even) {
    flex-direction: row-reverse;
  }
  h2 {
    font-size: 36px;
  }
  tr {
    display: flex;
  }
  th {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 30%;
  }
  td {
    width: 70%;
  }
  table,
  th,
  td {
    border: 1px solid #ccc;
  }
}
