body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #020617, #000);
  color: #e0f2fe;
  overflow-x: hidden;
}

h1 {
  text-align: center;
  margin-top: 20px;
  color: #38bdf8;
  text-shadow: 0 0 10px #38bdf8;
  letter-spacing: 2px;
}

.container {
  display: flex;
}

/* 左メニュー */
.member-list {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
}

/* カード */
.card {
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;

  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: white;

  opacity: 0;
  transform: translateX(-50px);
  animation: slideFade 0.6s ease forwards;

  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  transition: 0.3s;

  border-left: 4px solid #22d3ee;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
  transform: translateX(10px) scale(1.03);
  box-shadow: 0 0 25px #8b5cf6;
}

/* 右パネル */
.detail-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;

  background: rgba(15, 23, 42, 0.95);
  border-left: 2px solid #22d3ee;

  padding: 30px;

  transition: 0.4s ease;
  backdrop-filter: blur(10px);
}

.detail-panel.active {
  right: 0;
  box-shadow: -10px 0 30px rgba(56, 189, 248, 0.5);
}

/* 画像 */
.icon {
  width: 120px;
  height: 120px;
  object-fit: cover;

  border-radius: 10px;
  border: 2px solid #38bdf8;

  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);

  margin-bottom: 15px;
}

/* テキスト */
#name {
  font-size: 1.8rem;
  color: #38bdf8;
  text-shadow: 0 0 10px #38bdf8;
}

#role {
  margin-top: 10px;
  color: #a855f7;
}

#desc {
  margin-top: 15px;
  line-height: 1.6;
}

/* ボタン */
button {
  margin-top: 20px;
  padding: 10px 15px;
  background: transparent;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #38bdf8;
  color: black;
  box-shadow: 0 0 15px #38bdf8;
}

/* アニメーション */
@keyframes slideFade {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* 団長（青＋紫グラデ） */
.leader {
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
}

/* 副団長（紫） */
.sub {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

/* スペード（青） */
.spade {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

/* ダイヤ（水色） */
.diamond {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
}

/* ハート（ピンク） */
.heart {
  background: linear-gradient(135deg, #f472b6, #ec4899);
}

/* クローバー（緑） */
.club {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.leader:hover { box-shadow: 0 0 25px #8b5cf6; }
.sub:hover { box-shadow: 0 0 25px #6d28d9; }

.spade:hover { box-shadow: 0 0 25px #38bdf8; }
.diamond:hover { box-shadow: 0 0 25px #0ea5e9; }
.heart:hover { box-shadow: 0 0 25px #ec4899; }
.club:hover { box-shadow: 0 0 25px #22c55e; }
