/* ===== 基本設定 ===== */
:root {
  --primary: #2563eb;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --sub: #6b7280;
  --radius: 16px;
}
/* 仮にリンクさせないようにする */
.disabled-link {
  pointer-events: none;
}
body {
  margin: 0;
  font-family: "Inter", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text);
}
h2, h3 {
  line-height: 0.8; /* または他の小さい値 (例: 1.0, 1.1など) */

}

h3{
  color: #79aef4;
  font-family: nomal;
}

/* ===== ヘッダー ===== */
.site-header {
  text-align: center;
  padding: 20px 20px;
  background: linear-gradient(135deg, #dbeafe, #ffffff);
}

.site-header h1 {
  font-size: 2.5rem;
  margin: 0 0 0px;
}

.site-header p {
  color: var(--sub);
  font-size: 2.1rem;
}

/* ===== メイン ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== 学生カード ===== */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.student-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 10px 20px;
  padding-bottom: 10px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.student-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* 番号 */
.student-card .number {
  position: absolute;
  top: 30px;
  right: 15px;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  opacity: 0.25;
}

/* 名前 */
.student-card h2 {
  margin: 6px 0;
  font-size: 1.25rem;
  line-height: 1.15;
}
.student-card h3 {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #79aef4;
  font-weight: normal;
  line-height: 1.15;
}

/* 学習内容 */
.student-card p {
  margin: 0;
  color: var(--sub);
  font-size: 0.95rem;
}

/* ===== フッター ===== */
.site-footer {
  text-align: center;
  padding: 32px;
  color: var(--sub);
  font-size: 0.9rem;
  border-top: 1px solid #e5e7eb;
}
/* =========================
   ランダムに動く小さい画像
========================= */
#floating-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-image {
  position: absolute;
  width: 28px;
  opacity: 0.85;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* 横方向 往復 */
@keyframes move-horizontal {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(calc(100vw + 80px));
  }
  100% {
    transform: translateX(0);
  }
}

/* 縦方向 往復 */
@keyframes move-vertical {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(calc(100vh + 80px));
  }
  100% {
    transform: translateY(0);
  }
}


@keyframes float-move {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(110vw);
    opacity: 1;
  }
}

/* ===== ハート ===== */
#heart-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.heart {
  position: absolute;
  font-size: 16px;
  animation: heart-fade 1s ease-out forwards;
}

@keyframes heart-fade {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-40px) scale(0.5);
    opacity: 0;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .site-header h1 {
    font-size: 2rem;
  }
}
/* =========================
   ランダムに動く小さい画像
========================= */
#floating-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-image {
  position: absolute;
  width: 28px;
  opacity: 0.85;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* 横方向 往復 */
@keyframes move-horizontal {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(calc(100vw + 80px));
  }
  100% {
    transform: translateX(0);
  }
}

/* 縦方向 往復 */
@keyframes move-vertical {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(calc(100vh + 80px));
  }
  100% {
    transform: translateY(0);
  }
}

/* =========================
   マウスから出るハート
========================= */
#heart-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.heart {
  position: absolute;
  font-size: 16px;
  animation: heart-fade 1s ease-out forwards;
}

@keyframes heart-fade {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-40px) scale(0.5);
    opacity: 0;
  }
}
