/* === Base === */
:root {
  --bg: #f7f7f7;
  --bg-alt: #ffffff;
  --text: #222222;
  --muted: #666666;
  --accent: #e63946;
  --border: #dddddd;
  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.3rem;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* === Sections === */
.section {
  padding: 1.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.0rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
}

.section-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding-top: 1.5rem;
}

.hero-title {
  font-size: 3.0rem;
  margin: 0 0 0.0rem;
}

.hero-role {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.hero-desc {
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-links a {
  display: inline-block;
  margin-right: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
}

.hero-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-photo {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}


.keywords {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.keywords li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  background: #fff;
}


.pub-heading {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
}

.pub-list {
  margin-top: 0;
  padding-left: 1.2rem;
}

.pub-list li {
  margin-bottom: 0.3rem;
}

.pub-list-unordered {
  list-style: disc;
}

.pub-authors {
  font-weight: 350;
}

.pub-title {
  font-style: italic;
}

.pub-venue {
  font-size: 0.9rem;
  color: var(--muted);
}
.my-name {
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.pub-links a {
  font-size: 0.85rem;
  margin-right: 0.6rem;
  text-decoration: none;
  color: #ff5722;
  font-weight: 600;
}

.pub-links a:hover {
  text-decoration: underline;
  color: #e64a19;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: #fff;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.project-title {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.project-text {
  margin: 0;
  font-size: 0.95rem;
}

.project-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent);
}


.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg-alt);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}


@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
  }

  .nav a {
    margin-left: 0;
    margin-right: 0.8rem;
    margin-bottom: 0.2rem;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-photo {
    order: -1;
  }
}
