:root {
  --card-bg: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.25);
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  --card-drag-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  
  --sky1: #D7F3FF;
  --sky2: #BEEBFF;
  --accent: #40a8e0;
  --muted: rgba(221, 229, 237, 0.8);
  --text-main: #ffffff;
  --glass-btn: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; width: 100%; overflow: hidden; margin: 0; background-color: #0a0e14; }

body {
  font-family: 'Nunito', 'Noto Sans JP', system-ui;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  perspective: 1200px;
}

/* --- 背景 --- */
.background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.bg-image {
  position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
  background: url("https://github.com/furanpito/botid/blob/main/VRChat_2025-08-05_16-12-50.561_3840x2160.png?raw=true") no-repeat center center/cover;
  filter: brightness(0.7) blur(10px);
  transition: transform 0.2s ease-out;
}

/* --- メインカード --- */
.card {
  width: 960px; max-width: 96%;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 32px; padding: 30px;
  position: relative;
  cursor: grab; user-select: none;
  opacity: 0; transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease-out, box-shadow 0.3s ease;
}
.card.show { opacity: 1; transform: translateY(0) scale(1); }
.card.is-dragging { cursor: grabbing; box-shadow: var(--card-drag-shadow); z-index: 100; transition: transform 0.1s linear; }

/* --- ヘッダー --- */
.card-header { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; pointer-events: none; }
.avatar { width: 110px; height: 110px; border-radius: 28px; border: 3px solid rgba(255, 255, 255, 0.4); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.headline h1 { margin: 0; font-size: 32px; font-weight: 900; }
.headline .sub { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* --- レイアウト --- */
.content { display: flex; gap: 40px; }
.left { flex: 0 0 320px; }
.right { flex: 1; }

/* --- ボタンとリンクのアニメーション修正 --- */
.btn {
  background: linear-gradient(135deg, var(--accent), #6dd5fa);
  border: none; color: white; padding: 14px 32px;
  border-radius: 999px; font-weight: 800;
  box-shadow: 0 6px 20px rgba(64, 168, 224, 0.3);
  font-size: 16px;
  cursor: pointer;
  /* ボヨンボヨンを消し、滑らかなスケールへ */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, opacity 0.2s ease;
}

.btn:hover {
  transform: scale(1.06); /* 大きくする */
  box-shadow: 0 10px 25px rgba(64, 168, 224, 0.5);
}

.btn:active {
  transform: scale(0.96); /* 小さくする */
}

.links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.links a {
  padding: 12px 20px; border-radius: 16px;
  background: var(--glass-btn); border: 1px solid var(--card-border);
  text-decoration: none; color: #fff; font-weight: 700;
  /* ボヨンボヨンを消し、滑らかなスケールとフェードへ */
  transition: transform 0.2s ease-in-out, background 0.2s ease, opacity 0.3s ease;
  display: block;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.04); /* 大きくする */
}

.links a:active {
  transform: scale(0.98); /* 小さくする */
}

/* テキスト切り替え用のフェードクラス */
.fading {
  opacity: 0 !important;
}

/* --- その他装飾 --- */
.info dt { font-size: 12px; color: var(--muted); text-transform: uppercase; margin-top: 15px; }
.info dd { margin: 2px 0 10px; font-weight: 800; font-size: 15px; }
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid var(--card-border);
  font-size: 12px; margin: 0 6px 6px 0;
}
.right h2 { font-size: 20px; border-left: 4px solid var(--accent); padding-left: 12px; margin-bottom: 20px; }
.bio-text { line-height: 1.8; }
.card-footer { margin-top: 30px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: var(--muted); }

@media(max-width:768px){ .content { flex-direction: column; } .left { width: 100%; } }
