:root {
  --bg: #0a0911;
  --fg: #e8e4ff;
  --muted: #8b80a8;
  --accent: #8b5cf6;
  --accent2: #b06aff;
}

/* 全体 */
html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(ellipse at top, #0b0712, #06040a 80%);
  color: var(--fg);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
}
a {
    text-decoration: none;
}
.wrap {
  display: flex;
  min-height: 100vh; /* 高さ自動調整 */
  backdrop-filter: blur(8px);
  overflow-y: auto; /* 縦スクロールを有効化 */
}

/* 左側 */
.left {
  flex: 1.2; /* 右より少し広め */
  padding: 8vh 6vw; /* 上下パディング少し減らし、左右広め */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; /* 左側の内容を中央寄せ */
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--accent);
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.desc {
    font-size: 14px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.links a {
  color: var(--fg);
  text-decoration: none;
  display: block;
  font-size: 14px;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}
.links a:hover {
  color: var(--accent);
}

/* 右側 */
.right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 2rem 2rem 2rem;
}


/* Skills */
.top .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.top {
  margin-top: 2rem;
  display: flex;
  justify-content: center; /* 中央寄せ */
}


.skill {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, #222 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circle .percent {
  position: relative; /* absolute だとレイアウトずれる */
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.circle::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 0;
}

.skill span {
  display: block;
  margin-top: 0.6rem;
  font-size: 13px;
  color: var(--muted);
}

.bottom {
  display: flex;
  gap: 2rem;
}

/* Likes と Projects を横並びに */
.bottom .likes {
  flex: 1; /* 空き幅に応じて調整 */
}
.bottom .projects {
  flex: 2; /* プロジェクト欄は広めに */
}

.bottom .projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Likes */
.likes h2,
.projects h2 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 0.8rem;
}
.likes .tags span {
  position: relative;
  display: inline-block;
  background: rgba(162, 117, 255, 0.08);
  border: 1px solid rgba(162, 117, 255, 0.3);
  color: #c8b4ff;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  overflow: hidden; /* 丸枠内に制限 */
  cursor: pointer;
}

/* 光の流れ */
.likes .tags span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  border-radius: inherit;
  transition: none;
  pointer-events: none;
}

.likes .tags span:hover::after {
  animation: shine 0.8s linear forwards;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* Projects */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.card {
  flex: 1 1 45%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(162, 117, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(162, 117, 255, 0.6);
  box-shadow: 0 0 12px rgba(162, 117, 255, 0.3);
  transform: translateY(-3px);
}
.card .title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #d8caff;
}
.card .desc {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.3rem;
}

/* Footer */
footer {
  position: fixed;
  bottom: 1.5rem;
  left: 8vw;
  color: var(--muted);
  font-size: 13px;
}
