:root {
  --fg: #111;
  --muted: #666;
  --bg: #fff;
  --link: #0b57d0;
  --maxw: 760px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  font-size: 17px;
}

.container {
  max-width: 1300px; /* ページ幅 */
  /*margin: 0 auto; /* ← これが中央寄せの本体 */
  padding: 32px 24px;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header {
  margin-bottom: 18px;
}
.site-title {
  font-size: 1.45rem;
  font-weight: 650;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
nav {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e7e7e7;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
nav a {
  padding: 2px 0;
}
nav a[aria-current="page"] {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
main h1 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
}
main h2 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}
ul {
  padding-left: 1.2em;
}
li {
  margin: 6px 0;
}
hr {
  border: 0;
  border-top: 1px solid #e7e7e7;
  margin: 22px 0;
}
.footer {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid #e7e7e7;
  color: var(--muted);
  font-size: 0.92rem;
}
.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 14px;
  margin: 10px 0 0;
}
.kv div {
  padding: 2px 0;
}
.kv .k {
  color: var(--muted);
}
@media (max-width: 520px) {
  .kv {
    grid-template-columns: 1fr;
  }
}

.profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 14px;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid #e7e7e7;
}
@media (max-width: 520px) {
  .profile {
    align-items: center;
  }
  .avatar {
    width: 92px;
    height: 92px;
  }
}

h1,
h2 {
  max-width: 100%;
}

/* Publications list */
.pubs {
  padding-left: 1.4em;
}
.pubs li {
  margin: 18px 0;
}

.pub-title {
  font-size: 1.05rem;
  line-height: 1.45;
}
.pub-sub {
  margin-left: 1.1em;
}

.pub-links a {
  color: var(--link);
}
.pub-co {
  font-weight: normal;
  margin-left: 0.35em;
}

.journal {
  font-weight: bold; /* bold でもOKだが 600 の方が上品 */
}

/* CV */
.cv-note {
  margin-left: 1.1em;
  color: var(--muted);
}

.cv-table {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.cv-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.cv-date {
  color: var(--muted);
  white-space: nowrap;
}

.cv-role {
  margin-bottom: 2px;
}

.cv-org {
  color: var(--fg);
}

@media (max-width: 720px) {
  .cv-row {
    grid-template-columns: 1fr;
  }
  .cv-date {
    white-space: normal;
  }
}

/* p */

.math {
  font-style: italic;
}

/* language */

.lang {
  text-align: right;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.lang a {
  text-decoration: none;
  font-weight: 600;
  color: #555;
}

.lang a:hover {
  text-decoration: underline;
}

/*lang switch*/
.lang-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  font-size: 0.95rem;
  color: #777;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.lang-switch a {
  text-decoration: none;
  color: #1a73e8;
  font-weight: 600;
}

.lang-switch .is-current {
  font-weight: 700;
  color: #333; /* 現在言語を強調 */
}

.lang-switch .sep {
  margin: 0 6px;
  color: #bbb;
}
