:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --accent: #6c63ff;
  --accent-hover: #5a52d5;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 30px rgba(108,99,255,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 680px;
  --font: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --surface: #1a1a2e;
    --text: #e8e8f0;
    --text-secondary: #999;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --card-shadow-hover: 0 8px 30px rgba(108,99,255,0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.06) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 50%, rgba(255,107,157,0.06) 0%, transparent 60%);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Profile */
.profile {
  text-align: center;
  margin-bottom: 48px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 4px 20px rgba(108,99,255,0.2);
  margin-bottom: 16px;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.sns-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: all 0.2s;
}

.sns-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

/* Sections */
.section {
  margin-bottom: 36px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
  padding-left: 4px;
}

/* Cards */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 8px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

/* Banner card (for reciprocal links with image) */
.banner-link {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px;
}

.banner-link img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.banner-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.link-card .label {
  font-size: 0.95rem;
  font-weight: 500;
}

.link-card .arrow {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}

.link-card:hover .arrow {
  transform: translateX(4px);
}

/* Affiliation */
.affiliation {
  margin-bottom: 36px;
}

.disclaimer {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-left: 4px;
}

.affi-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(128,128,128,0.15);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer p {
  margin-bottom: 4px;
}

.footer-note {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Sub page */
.sub-page .profile {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: gap 0.2s;
}

.back-link:hover {
  gap: 10px;
}

/* Rickroll-specific */
.rickroll-list {
  list-style: none;
}

.rickroll-list li {
  margin-bottom: 6px;
}

.rickroll-list a {
  display: block;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.rickroll-list a:hover {
  transform: translateX(4px);
  box-shadow: var(--card-shadow-hover);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
  .container { padding: 24px 16px 40px; }
  .avatar { width: 96px; height: 96px; }
  .profile-name { font-size: 1.4rem; }
  .link-card { padding: 14px 16px; }
  .link-card .label { font-size: 0.88rem; }
}
