/* 全体 */
body {
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: #eaf6ff;
  margin: 0;
  padding: 0;
  color: #333;
}

/* ヘッダー */
header {
  text-align: center;
  background: linear-gradient(135deg, #d0ebff, #f0faff);
  padding: 2rem 1rem;
  border-bottom: 4px dotted #99ccff;
}

header h1 {
  font-size: 2rem;
  margin: 0;
  color: #3366cc;
}

header p {
  margin-top: 0.5rem;
  color: #666;
}

/* カード一覧（グリッド） */
.student-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

/* カード */
.student-card {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: #ccc;
}

.student-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease, filter 0.6s ease;
  z-index: 0;
  transform: scale(1);
}

/* ホバーでふわっと拡大 */
.student-card:hover::before {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* 名前ラベル */
.student-card h2 {
  position: relative;
  background-color: rgba(255, 255, 255, 0.7);
  color: #003366;
  padding: 0.5rem 1rem;
  margin: 1rem;
  border-radius: 12px;
  font-size: 1.2rem;
  z-index: 1;
  backdrop-filter: blur(3px);
}

/* 各生徒の背景画像をbeforeに設定 */
.student-card.inoki::before {
  background-image: url('img/inokitop.png');
}
.student-card.ogawa::before {
  background-image: url('img/ogawatop.png');
}
.student-card.omi::before {
  background-image: url('img/omitop.png');
}
.student-card.kato::before {
  background-image: url('img/katotop.png');
}
.student-card.kimura::before {
  background-image: url('img/kimura.png');
}
.student-card.saga::before {
  background-image: url("img/sagatop.png");
}
.student-card.noro::before {
  background-image: url('img/norotop.png');
}
.student-card.yaegashi::before {
  background-image: url('img/yaegashi.png');
}
.student-card.yama::before {
  background-image: url('img/yamatop.png');
}

/* フッター */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #d6ebff;
  font-size: 0.9rem;
  color: #666;
  border-top: 3px dotted #99ccff;
}
