:root {
  --bg: #0c0c14;
  --bg-subtle: #13131f;
  --text: #d4d4dc;
  --text-dim: #7a7a8e;
  --accent: #8b8ff5;
  --border: rgba(255, 255, 255, 0.06);
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", monospace;
  --max-w: 640px;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-subtle: #f0f0f4;
  --text: #2a2a3a;
  --text-dim: #8a8a9a;
  --accent: #5b5fd0;
  --border: rgba(0, 0, 0, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 143, 245, 0.2); }

/* ナビ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav { background: rgba(250, 250, 250, 0.88); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.85rem;
  font-family: var(--mono);
  color: var(--text-dim);
  text-decoration: none;
}

.theme-toggle {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 0.3rem; display: flex;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }

/* 本文 */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

/* ヘッダー */
.header { margin-bottom: 3rem; }

.name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.affiliation {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.intro {
  margin-top: 1.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.links {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.25rem;
}

.links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.links a:hover { color: var(--accent); }
.links svg { width: 15px; height: 15px; }

/* セクション */
.section { margin-top: 3rem; }

.section-title {
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* プロジェクトリスト */
.item { margin-bottom: 1.5rem; }

.item-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.item-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.item-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  line-height: 1.75;
}

/* 興味リスト */
.interests {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.interests li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.25rem 0;
}

.interests li::before {
  content: "·";
  color: var(--text-dim);
  margin-right: 0.4rem;
}

/* フッター */
.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .page { padding: 6rem 1.25rem 3rem; }
  .name { font-size: 1.35rem; }
}
