/* employees.css: 社員紹介ページ専用のスタイル */

/* ヒーローセクションの中央揃え (40vh, 灰色背景) */
.hero {
  height: 40vh;
  background-color: #f3f3f3;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* 例: ヘッダーの高さが60pxの場合 */
  margin-top: 60px;
  /* ヘッダー分ずらす */
}

/* ▼▼▼ ヒーロー内部のテキストを小さめに調整 ▼▼▼ */
.hero .hero-content h1 {
  font-size: 2rem;
  /* index.htmlより小さめ (例) */
  line-height: 1.3;
}

.hero .hero-content p {
  font-size: 1rem;
  /* サブタイトル部分も小さめ */
  line-height: 1.6;
  margin: 0 2rem;
  /* 左右に余白 (お好みで調整) */
}

/* ページ内メイン構造 */
.employee-section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.employee-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: #0067C0;
  position: relative;
}

.employee-section .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0067C0;
}

/* 社員カード配置 */
.employee-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* 社員カード本体 */
.employee-card {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 280px;
  /* 必要に応じ調整 */
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* ▼▼▼ 初期状態は透明+下方向にずらす。fadein でアニメ後に正常表示 ▼▼▼ */
.employee-card {
  /* 既存ホバーなどのプロパティはそのまま使い、以下を追加 */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.5s;
  /* ディレイを0.5s追加 */
}

.employee-card.fadein {
  opacity: 1;
  transform: translateY(0);
}

/* 写真 */
.employee-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* 社員名と役職・経歴 */
.employee-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.employee-card .position {
  font-size: 0.9rem;
  color: #0067C0;
  margin-bottom: 1rem;
  font-weight: bold;
}

.employee-card .bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}


@media screen and (max-width: 600px) {
  .hero {
    /* PCより高さを抑えてコンパクトに */
    height: 30vh;
    margin-top: 60px;
    /* 必要に応じて減らしてもOK */
    /* さらに .hero h1 { font-size: ... } などで文字サイズ調整も可能 */
  }

  /* ヒーローの文字サイズをさらに小さく */
  .hero .hero-content h1 {
    font-size: 1.6rem;
    /* PC時2rem → スマホ時1.6rem */
  }

  .hero .hero-content p {
    font-size: 0.85rem;
    /* PC時1rem → スマホ時0.95rem */
    margin: 0 1.5rem;
    /* 左右余白をやや狭める */
  }
    /* 「社員紹介」(h2.section-title) */
    #employee-section .section-title {
      font-size: 1.4rem; /* PC時と比べて小さめ */
    }
    /* 「個性豊かな学生メンバーが…」の段落 */
    #employee-section p {
      font-size: 0.75rem; /* PC時より小さく */
      line-height: 2;
    }
}