:root {
  --bg: #fafaf8;
  --fg: #1c1c1c;
  --accent: #1f3a5f;
  --muted: #6a6a6a;
  --border: #e2e2dc;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}

.lang-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--fg);
  border-radius: 3px;
  font-family: inherit;
  z-index: 10;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.profile-img {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  flex-shrink: 0;
}
.header-text { min-width: 0; }
.header-text h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.header-text .affil {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.header-text .affil:last-child { margin-bottom: 0; }

section { margin-bottom: 44px; }
section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  letter-spacing: 0.03em;
}
section p { margin: 0 0 12px; }
section p:last-child { margin-bottom: 0; }

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li {
  display: flex;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.list li:last-child { border-bottom: none; }
.list .date {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.88rem;
  width: 120px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.list .body {
  flex: 1;
  min-width: 0;
}

.empty {
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

.keywords {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.keywords .label {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  vertical-align: 2px;
  white-space: nowrap;
}

/* 論文種別タグ: 国際会議＝枠線、論文誌＝塗りつぶしで区別 */
.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  vertical-align: 2px;
  white-space: nowrap;
}
.tag-conference {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.tag-journal {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.7rem;
  line-height: 1;
  vertical-align: 1px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.link-btn:hover {
  background: var(--accent);
  color: #fff;
}
.link-btn::before { content: "\2197"; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 4px 0; }
.contact-list .label {
  display: inline-block;
  width: 80px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 56px 18px 60px; }
  header {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .profile-img { width: 108px; height: 108px; }
  .header-text h1 { font-size: 1.4rem; }
  .header-text .affil { font-size: 0.85rem; }
  .list li { flex-direction: column; gap: 2px; }
  .list .date { width: auto; font-size: 0.82rem; }
  .lang-toggle { top: 12px; right: 12px; }
  .keywords .label { display: inline-block; margin-bottom: 4px; }
  .contact-list .label { width: 64px; font-size: 0.82rem; }
}
