/* リセットと基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdfcfa;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0;
  min-height: auto;
}

/* コンテナ中央揃え */
.container {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 40px 30px;
  margin: 0 auto;
  max-width: 600px;
  width: 90%;
}

.container h1,
.container p,
.bioi {
  text-align: center;
}
.avatar-wrapper {
  position: relative;  /* ← ここ重要！ */
  width: 120px;
  height: 120px;
  margin: 16px auto;  /* ← 横中央寄せ */
}

.avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.8s ease;
  border: 3px solid #ccc;
}

.avatar.normal {
  opacity: 1;
  z-index: 1;
}

.avatar.hover {
  opacity: 0;
  z-index: 2;
}


/* プロフィール */
.bio {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #666;
  align-items: center;
}

/* カードスタイル */
.card {
  background-color: #f1f1f1;
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  transition: transform 0.2s, background-color 0.2s;
}
.card:hover {
  background-color: #e0f0ff;
  transform: translateY(-2px);
}

/* アイコン */
.icon {
  width: 50px;
  height: 50px;
  margin-right: 16px;
}

/* リンクテキスト */
.card a {
  text-align: left;
  text-decoration: none;
  color: #333;
}
.card a strong {
  font-size: 1.1em;
}
.card a span {
  font-size: 0.9em;
  color: #666;
}

/* フッター */
footer {
  font-size: 0.8em;
  color: #aaa;
  margin-top: 20px;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
  padding-top: 10px;
}

.category-buttons button {
  padding: 8px 16px;
  background-color: #eee;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9em;
}

.category-buttons button.active,
.category-buttons button:hover {
  background-color: #a0c4ff;
  color: white;
}

.container {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 40px 30px;
  margin: 0 auto 30px auto; /* 下に余白を空ける */
  max-width: 600px;
  width: 90%;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.bg-video.active {
  opacity: 1;
}

/* containerは動画の上に表示 */
.container {
  position: relative;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 40px 30px;
  max-width: 600px;
  width: 90%;
  margin: 40px auto;
  z-index: 1;            /* 背景動画より前面 */
}