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

body {
  font-family: Arial, 'Noto Sans JP', sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

a {
  color: #000;
}

a:hover {
  color: #333;
}

/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
}

.site-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #000;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #888;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
}

.lang-btn.active {
  color: #000;
  font-weight: 700;
}

.lang-btn:hover {
  color: #000;
}

.lang-sep {
  color: #ccc;
  font-size: 0.8rem;
}

/* Main content */
.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}

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

.section > h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
}

/* Profile */
.profile-header {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.profile-photo {
  width: 250px;
  flex-shrink: 0;
  display: block;
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-info h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}

.bio {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 8px;
}

.contact {
  font-size: 0.9rem;
}

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

/* List items (education, experience) */
.list-section > ul {
  list-style: disc;
  padding-left: 24px;
}

.list-section > ul > li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.list-section > ul > li > ul {
  list-style: disc;
  padding-left: 24px;
  margin-top: 4px;
}

.list-section > ul > li > ul > li {
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.item-degree {
  font-weight: 700;
}

/* Grants */
.grants-section > ul {
  list-style: disc;
  padding-left: 24px;
}

.grants-section > ul > li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.grant-title-text {
  font-weight: 700;
}

/* Publications */
.pub-category {
  margin-bottom: 24px;
}

.pub-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-decoration: underline;
}

.pub-entry {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pub-title {
  font-weight: 400;
}

.pub-venue {
  font-style: normal;
}

.pub-award {
  font-weight: 700;
}

.pub-note {
  font-size: 0.85rem;
  color: #555;
}

.pub-links {
  margin-top: 2px;
}

.pub-links a {
  margin-right: 6px;
  font-size: 0.85rem;
  color: #000;
  text-decoration: underline;
}

.pub-doi a {
  font-size: 0.85rem;
}

/* Talks */
.talk-item {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Media */
.media-item {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.media-date {
  font-weight: 400;
}

/* Service */
#service-content {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
  .top-bar {
    padding: 0 16px;
  }

  .content {
    padding: 64px 16px 40px;
  }

  .profile-header {
    flex-direction: column;
  }

  .profile-photo {
    width: 100%;
    max-width: 250px;
  }
}
