:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --surface: #151515;
  --surface-2: #1a1a1a;
  --text: #f1efea;
  --muted: #a8a39a;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #d4c2a3;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: linear-gradient(180deg, #080808 0%, var(--bg) 52%, #0f0f0f 100%);
  font-family: "Noto Sans JP", "Manrope", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.82;
  letter-spacing: 0.008em;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.006) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1040px, 92vw);
  margin: 3.2rem auto 5rem;
}

.topbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: rgba(212, 194, 163, 0.6);
  background: rgba(16, 16, 16, 0.95);
}

.hero,
.panel {
  position: relative;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 1.9rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 1px;
  background: var(--accent);
}

.profile-wrap {
  position: relative;
}

.profile {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(10%) contrast(1.05);
}

.hero-body {
  align-self: center;
}

.label {
  margin: 0;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  margin-top: 0.3rem;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0.012em;
}

h2 {
  margin-bottom: 0.86rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #ece8df;
}

h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.4;
  font-weight: 700;
}

h3 span {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 500;
}

.lead {
  margin: 0.82rem 0 0;
  color: #d2cec6;
  font-size: 0.98rem;
  max-width: 54rem;
}

.social-links {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.52rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease;
}

.social-link:hover {
  border-color: rgba(212, 194, 163, 0.75);
}

.social-link img {
  width: 17px;
  height: 17px;
  display: block;
}

.panel {
  padding: 1.2rem 1.28rem 1.36rem;
  margin-bottom: 0.92rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.panel h2 {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.62rem;
  align-items: center;
}

.panel h2::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}

.authors {
  margin: 0.38rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.15rem;
}

.panel li + li {
  margin-top: 0.3rem;
}

.interest-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.interest-tags li {
  padding: 0.25rem 0.66rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #e8e4dc;
  font-family: "Manrope", sans-serif;
  font-size: 0.81rem;
  font-weight: 600;
}

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.timeline li {
  padding: 0.43rem 0.62rem;
  border-left: 1px solid rgba(212, 194, 163, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.year {
  display: inline-block;
  min-width: 10.5rem;
  margin-right: 0.2rem;
  color: #ece7dd;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.pub-card {
  display: grid;
  grid-template-columns: minmax(220px, 285px) 1fr;
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pub-card:first-of-type {
  margin-top: 0.22rem;
  padding-top: 0.3rem;
  border-top: none;
}

.pub-image-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pub-image-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.pub-card:hover .pub-image-wrap img {
  transform: scale(1.015);
}

.exp-card {
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-left: 2px solid rgba(212, 194, 163, 0.45);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.72rem;
}

.exp-card:last-child {
  margin-bottom: 0;
}

.exp-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.22rem;
}

.exp-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
}

.exp-period {
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.exp-org {
  margin: 0 0 0.52rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.exp-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #c8c4bc;
  line-height: 1.76;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: 0.64rem;
}

.exp-tag {
  padding: 0.18rem 0.56rem;
  border: 1px solid rgba(212, 194, 163, 0.28);
  background: rgba(212, 194, 163, 0.055);
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  margin-top: 0.8rem;
}

.link-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.link-list li {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
  padding: 0.44rem 0.62rem;
  transition: border-color 0.2s ease;
}

.link-list li:hover {
  border-color: rgba(212, 194, 163, 0.45);
}

.link-list a {
  display: inline-block;
}

.links a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.links a:hover {
  border-color: rgba(212, 194, 163, 0.65);
  background: rgba(212, 194, 163, 0.07);
  color: var(--accent);
  text-decoration: none;
}

a {
  color: #f0ede6;
  text-decoration-color: rgba(240, 237, 230, 0.34);
  text-underline-offset: 0.2rem;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #dbc7a5;
  text-decoration-color: #dbc7a5;
}

.fade-up {
  animation: reveal 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .profile {
    width: min(340px, 100%);
  }

  .pub-card {
    grid-template-columns: 1fr;
  }

  .panel h2::after {
    max-width: 160px;
  }
}

@media (max-width: 640px) {
  .page {
    margin-top: 1rem;
    margin-bottom: 2.6rem;
  }

  .topbar {
    top: 0.72rem;
    right: 0.72rem;
  }

  .hero,
  .panel {
    padding: 1rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .year {
    min-width: 0;
    margin-right: 0.36rem;
  }
}
