/* =========================
   🌙 Aestribra — Refined Style
   ========================= */

:root {
  --bg-dark: #0a0f2c;
  --bg-card: rgba(255, 255, 255, 0.06);
  --accent: #fcd34d;
  --accent-glow: rgba(252, 211, 77, 0.4);
  --text: #e6eaf7;
  --muted: #94a3b8;
  --max: 1100px;
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 30% 20%, #1a1e45 0%, var(--bg-dark) 80%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* === 星空背景 === */
canvas#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent;
  image-rendering: crisp-edges;
}

/* === ヘッダー === */
header {
  text-align: center;
  padding: 60px 20px 40px;
}

header h1 {
  font-size: 2.6rem;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  margin-bottom: 8px;
}

header p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* === メンバーカード === */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px var(--accent-glow);
}

.avatar {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 12px;
  display: block;
}

.name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.role {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* === フッター === */
footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* === ギャラリーリンク（半透明カード風） === */
.gallery-link {
  text-align: center;
  margin: 40px 0;
}

.gallery-link a {
  display: inline-block;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 10px 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.gallery-link a:hover {
  color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 20px var(--accent-glow);
  text-shadow: 0 0 8px var(--accent-glow);
  transform: translateY(-2px);
}

.gallery-link .emoji {
  margin-right: 6px;
}

/* === プロフィールページ === */
.profile {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  align-items: flex-start;
}

.avatar-large {
  flex: 0 0 280px;
  width: 280px;
  border-radius: 16px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.profile-text {
  flex: 1;
  min-width: 260px;
}

.profile-text h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

.profile-text p {
  line-height: 1.8;
  color: var(--text);
}

.profile-text ul {
  list-style: none;
  padding-left: 0;
}

.profile-text li::before {
  content: "★ ";
  color: var(--accent);
}

/* === SNSリンク === */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-start;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.social-links img {
  width: 16px;
  height: 16px;
  filter: brightness(0.9);
}

/* === ギャラリーページ === */
.gallery-container {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

.back-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 10px 24px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* === スマホ対応 === */
@media (max-width: 700px) {
  header {
    padding: 40px 10px 20px;
  }
  header h1 {
    font-size: 2rem;
  }
  main {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profile-card {
    flex-direction: column;
    padding: 20px;
  }
  .avatar-large {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  footer {
    font-size: 0.8rem;
  }
}
