/* =============================================
   講師一覧 — teachers.css
   青ペン×ノート
   ============================================= */

/* 塾長カード（ノート見開き風） */
.principal-card {
  display: flex;
  gap: 48px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 34px, rgba(43,92,201,.07) 34px 35px),
    #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 48px;
  box-shadow: 0 10px 28px rgba(36,52,74,.08);
  align-items: flex-start;
  position: relative;
}
/* 上辺にテープ */
.principal-card::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 60px;
  width: 110px;
  height: 28px;
  background: rgba(150,190,255,.45);
  transform: rotate(-2deg);
  border-left: 1px dashed rgba(255,255,255,.8);
  border-right: 1px dashed rgba(255,255,255,.8);
}
.principal-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.principal-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue-light);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gray-400);
}
.principal-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.principal-badge {
  font-family: 'Klee One', cursive;
  background: var(--blue);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 5px 18px;
  border-radius: 40px;
  white-space: nowrap;
}
.principal-info { flex: 1; min-width: 0; }

.teacher-name {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}
.teacher-kana {
  font-family: 'Klee One', cursive;
  font-size: .84rem;
  color: var(--blue);
  letter-spacing: .12em;
  margin-bottom: 24px;
  display: block;
}
.principal-body {
  font-size: .86rem;
  color: var(--gray-600);
  line-height: 35px;   /* 罫線に合わせる */
  margin-bottom: 8px;
}
/* 受験戦略家の引用（青ペン枠） */
.philosophy-quote {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--blue);
  padding: 18px 22px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  margin: 20px 0;
  line-height: 1.9;
  position: relative;
}
.philosophy-quote::before {
  content: '受験戦略家';
  position: absolute;
  top: -13px;
  left: 16px;
  font-family: 'Klee One', cursive;
  font-size: .74rem;
  color: var(--blue);
  background: #fff;
  font-weight: 600;
  letter-spacing: .14em;
  padding-inline: 8px;
}
/* 実は…（黄色い付箋） */
.fun-fact {
  background: #fff8c9;
  border-left: none;
  border-radius: 2px;
  padding: 14px 20px;
  margin: 20px 0;
  box-shadow: 0 6px 14px rgba(36,52,74,.08);
  transform: rotate(-.6deg);
}
.fun-fact strong {
  display: block;
  font-family: 'Klee One', cursive;
  color: #b08a1e;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.fun-fact p {
  font-size: .84rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.9;
}
.credentials-list { margin: 16px 0 20px; }
.credentials-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  color: var(--gray-600);
  padding: 5px 0;
}
.credentials-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 科目タグ共通 */
.subject-group { margin-top: 16px; }
.subject-group-label {
  font-family: 'Klee One', cursive;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 8px;
}
.subject-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.subject-tag {
  background: #fff;
  color: var(--blue-dark);
  font-size: .74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 40px;
  border: 1px dashed rgba(43,92,201,.45);
}

/* 講師グリッド */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.teacher-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 22px rgba(36,52,74,.06);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.teacher-card:hover { box-shadow: 0 14px 32px rgba(36,52,74,.12); transform: translateY(-4px); }
/* 上辺にテープ */
.teacher-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 90px;
  height: 25px;
  background: rgba(150,190,255,.4);
  border-left: 1px dashed rgba(255,255,255,.8);
  border-right: 1px dashed rgba(255,255,255,.8);
}
.teacher-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 2px solid var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-mid);
  margin-bottom: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 2px;
}
.teacher-gender { font-size: .74rem; color: var(--gray-400); margin-left: 3px; font-weight: 400; }
.teacher-univ {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 40px;
  margin: 10px 0 16px;
  letter-spacing: .04em;
}
/* ひとことメッセージ（手書き） */
.teacher-message {
  font-family: 'Klee One', cursive;
  background: transparent;
  border-left: none;
  border-bottom: 2px dashed rgba(43,92,201,.35);
  border-radius: 0;
  padding: 4px 4px 10px;
  font-size: .95rem;
  font-weight: 600;
  font-style: normal;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 18px;
  width: 100%;
}
.teacher-card .subject-group { width: 100%; text-align: left; }
.teacher-card .subject-tags { justify-content: flex-start; }

/* ボタン */
.teachers-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .principal-card { padding: 36px; gap: 32px; }
  .teachers-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; margin-bottom: 48px; }
}
@media (max-width: 768px) {
  .principal-card { flex-direction: column; align-items: center; padding: 32px 20px; gap: 24px; }
  .principal-photo { width: 120px; height: 120px; font-size: 2.8rem; }
  .teacher-name { font-size: 1.5rem; text-align: center; }
  .teacher-kana { text-align: center; }
  .teachers-btns { flex-direction: column; align-items: center; }
}
