@charset "UTF-8";
/* ==========================================
   オンライン英会話「講師一覧」ページ 専用スタイル
   設置場所：/assets/aeon-managed/style/teacher-list.css
   対象ページ：/online/teacher-list.html
   ========================================== */

/* ---------- 講師紹介：「もっと見る」 ----------
   表示件数は .js-teacherMore の data-* 属性で制御
   data-init-pc / data-init-sp：最初に表示する人数（all＝全員）
   data-step-pc / data-step-sp：「もっと見る」1回で追加する人数
   data-max-pc  / data-max-sp ：表示できる上限（省略時は全員） */
.js-teacherMore .u-panel-profile__item[hidden] {
  display: none !important;
}
.u-teacherMore__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 320px;
  margin: 24px auto 0;
  padding: 12px 16px;
  border: 2px solid var(--COLOR_BRAND_PRIMARY, #2b5686);
  border-radius: 999px;
  background: #fff;
  color: var(--COLOR_BRAND_PRIMARY, #2b5686);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.u-teacherMore__button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.u-teacherMore__button.is-close::after {
  transform: translateY(2px) rotate(-135deg);
}
.u-teacherMore__button:hover {
  background: var(--COLOR_BRAND_PRIMARY, #2b5686);
  color: #fff;
}
.u-teacherMore__button[hidden] {
  display: none !important;
}

/* JSが動く前・動かない環境でも初期表示数になるようCSSでも制御
   （data-init-pc / data-init-sp を変えたら nth-child の数字も「初期表示数＋1」に合わせる） */
.u-teacherMore:not(.is-ready) .js-teacherMore-button {
  display: none;
}
@media (max-width: 767px) {
  .u-teacherMore:not(.is-ready) .u-panel-profile__item:nth-child(n+3) {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .u-teacherMore:not(.is-ready) .u-panel-profile__item:nth-child(n+6) {
    display: none !important;
  }
}

/* ---------- 講師紹介：余白調整 ---------- */
/* 「イーオンの講師紹介」見出し〜説明文の余白を「日本人講師も在籍」と同じにそろえる */
.u-heading-type2 + .u-teacherIntro-lead {
  margin-top: 24px !important;
}
@media (min-width: 768px) {
  .u-heading-type2 + .u-teacherIntro-lead {
    margin-top: 40px !important;
  }
}

/* ---------- ページ冒頭リード（掲載人数） ----------
   「在籍講師の中から 外国人講師30名｜日本人講師10名 をご紹介します。」
   SP・PCとも横並び＋区切り線（PCは文字サイズを約2割アップ）
   SPは画面幅に合わせて文字サイズが伸縮（vw指定）し、幅いっぱいで1行に収まる（320px幅でも折り返さない） */
.u-teacherListLead {
  margin: 8px 0 0;
  text-align: center;
}
.u-teacherListLead__text {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
}
.u-teacherListLead__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: min(4.8vw, 1.125rem);
  letter-spacing: .08em;
}
.u-teacherListLead__sub::before,
.u-teacherListLead__sub::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.u-teacherListLead__main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  column-gap: min(4vw, 16px);
  margin: 6px 0 4px;
}
.u-teacherListLead__item {
  white-space: nowrap;
  font-size: min(4.4vw, 1.125rem);
}
.u-teacherListLead__num {
  margin: 0 2px 0 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: min(10vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--COLOR_BRAND_PRIMARY, #2b5686);
}
.u-teacherListLead__sep {
  width: 1px;
  height: 1.6em;
  align-self: center;
  background: #c8ced6;
}
.u-teacherListLead__end {
  display: block;
  font-size: min(4.8vw, 1.125rem);
  letter-spacing: .08em;
}
/* リードの次の「イーオンの講師紹介」見出しとの間隔 */
.u-teacherListLead + .u-heading-type2--top {
  margin-top: 40px;
}
@media (min-width: 768px) {
  .u-teacherListLead {
    margin-top: 16px;
  }
  .u-teacherListLead__sub,
  .u-teacherListLead__end {
    font-size: 1.275rem;
  }
  .u-teacherListLead__sub::before,
  .u-teacherListLead__sub::after {
    width: 48px;
  }
  .u-teacherListLead__main {
    column-gap: 40px;
    margin: 6px 0 4px;
  }
  .u-teacherListLead__sep {
    height: 1.6em;
  }
  .u-teacherListLead__item {
    font-size: 1.5rem;
  }
  .u-teacherListLead__num {
    margin: 0 2px 0 6px;
    font-size: 4.2rem;
  }
  .u-teacherListLead + .u-heading-type2--top {
    margin-top: 64px;
  }
}

/* ---------- 講師カード：クリックできることが分かるデザイン ----------
   ・写真／名前／「プロフィールを見る」どこを押しても詳細ダイアログが開く
     （名前ボタンの ::after をカード全面に広げてクリック範囲にしている）
   ・ホバーで「プロフィールを見る」が塗りに変わる（写真は動かさない） */
.aeon-lp-container .u-panel-profile__item {
  position: relative;
}
.aeon-lp-container .u-panel-profile__title {
  text-align: center;
}
.aeon-lp-container .u-panel-profile__title-item {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
/* 既存の別窓風アイコンは非表示 */
.aeon-lp-container .u-panel-profile__title-item::before {
  display: none;
}
/* カード全体をクリック範囲にする */
.aeon-lp-container .u-panel-profile__title-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
}
/* サイト共通のホバー下線（::after）が写真の上に線として出るのを打ち消す */
.aeon-lp-container .u-panel-profile__title-item::after,
.aeon-lp-container .u-panel-profile__title-item:hover::after {
  width: auto !important;
  height: auto !important;
  background: none !important;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}
.aeon-lp-container .u-panel-profile__title-item:focus-visible {
  outline: none;
}
.aeon-lp-container .u-panel-profile__title-item:focus-visible::after {
  outline: 3px solid var(--COLOR_BRAND_PRIMARY, #2b5686);
  outline-offset: 4px;
}
.u-profileCard__name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
.u-profileCard__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 14px 5px 16px;
  border: 1px solid var(--COLOR_BRAND_PRIMARY, #2b5686);
  border-radius: 999px;
  background: #fff;
  color: var(--COLOR_BRAND_PRIMARY, #2b5686);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  transition: background .2s, color .2s;
}
.u-profileCard__more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.aeon-lp-container .u-panel-profile__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.aeon-lp-container .u-panel-profile__media img {
  display: block;
}
@media (hover: hover) {
  .aeon-lp-container .u-panel-profile__item:hover .u-profileCard__more {
    background: var(--COLOR_BRAND_PRIMARY, #2b5686);
    color: #fff;
  }
}
@media (min-width: 768px) {
  .u-profileCard__more {
    font-size: .8125rem;
  }
}

/* ---------- 講師ページへ戻る（文字リンク） ----------
   「もっと見る」「無料体験レッスン」ボタンと見た目を分けるため、ボタンではなく小さめの文字リンクにしている */
.u-teacherBack {
  margin: 40px 0 0;
  text-align: center;
}
.u-teacherBack__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--COLOR_BRAND_PRIMARY, #2b5686);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.u-teacherBack__link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@media (hover: hover) {
  .u-teacherBack__link:hover {
    text-decoration: none;
  }
}

/* ---------- 詳細ダイアログ：特徴タグ ----------
   サイト既存の u-badge は明朝体のため、ゴシック体に変更 */
.u-profileTags .u-badge {
  font-family: "Noto Sans JP", sans-serif;
}

/* ---------- 日本人講師のポイント（日本語で質問OK／初心者に伴走／20名以上在籍） ----------
   サイト既存の紺ベタ＋明朝体のバッジを、淡い背景の帯＋チェックアイコン＋ゴシック体に変更 */
.u-jpPoints {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 20px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 8px;
  background: #f3f6f9;
  list-style: none;
}
.u-jpPoints .u-badge-list__item {
  margin: 0 !important;
  padding: 0 !important;
}
.u-jpPoints .u-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--COLOR_BRAND_PRIMARY, #2b5686);
  font-family: "Noto Sans JP", sans-serif;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
}
.u-jpPoints .u-badge::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--COLOR_BRAND_PRIMARY, #2b5686) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (min-width: 768px) {
  .u-jpPoints {
    gap: 8px 40px;
    padding: 16px 24px !important;
  }
  .u-jpPoints .u-badge {
    font-size: 1rem;
  }
  .u-jpPoints .u-badge::before {
    width: 18px;
    height: 18px;
  }
}

/* ---------- 「もっと見る」：次の講師の頭をグラデーションでチラ見せ ----------
   JSが一覧の高さ（max-height）を「表示中の講師＋次の段の上部」に合わせ、下端を白へフェード。
   開閉はmax-heightのアニメーションでなめらかに伸び縮みする */
.js-teacherMore .u-panel-profile {
  position: relative;
  overflow: hidden;
  padding-bottom: 4px; /* 最下段の「プロフィールを見る」の枠が切れないよう余白を確保 */
  transition: max-height .5s ease;
}
.js-teacherMore.is-peek .u-panel-profile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 39px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 60%, #fff 100%);
  pointer-events: none;
}
/* チラ見せ中の講師はクリック不可 */
.js-teacherMore .u-panel-profile__item.is-peek {
  pointer-events: none;
}
@media (min-width: 768px) {
  .js-teacherMore.is-peek .u-panel-profile::after {
    height: 63px;
  }
}

/* ---------- 「もっと見る」「閉じる」ボタンを横並び ----------
   「閉じる」は1回以上開いたときだけ表示。全員表示後は「閉じる」のみ */
.u-teacherMore__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.u-teacherMore__buttons .u-teacherMore__button {
  flex: 1 1 0;
  max-width: 280px;
  margin: 0;
}
.u-teacherMore__buttons .u-teacherMore__button--close {
  border-color: #c8ced6;
  color: #4b5563;
}
.u-teacherMore__buttons .u-teacherMore__button--close::after {
  transform: translateY(2px) rotate(-135deg);
}
@media (hover: hover) {
  .u-teacherMore__buttons .u-teacherMore__button--close:hover {
    border-color: #4b5563;
    background: #4b5563;
    color: #fff;
  }
}
.u-teacherMore:not(.is-ready) .u-teacherMore__buttons {
  display: none;
}
