@charset "UTF-8";
/* =========================================================
   Stylish variant — sidebar layout, editorial typography
   No external fonts / libraries
   ========================================================= */
:root {
  --bg: #ffffff;
  --text: #1c1f24;
  --muted: #6e7681;
  --faint: #a3a9b0;
  --line: #eceef1;
  --soft: #f6f8fa;
  --accent: #1f3b63;
  --accent-2: #3a76c4;
  --accent-soft: #eef4fb;
  --name-hl: #dcebfb;
  --new: #1a6fd6;
  --sidebar-w: 330px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Segoe UI", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

/* 画面最上部の細いアクセントライン */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, #8fb8e8);
  z-index: 30;
}

/* リンク：下線が左から伸びる */
a {
  color: var(--accent-2);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.2s ease;
}
a:hover { background-size: 100% 1px; }

img { max-width: 100%; height: auto; }

/* ===== Layout ===== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 45%);
}

.sidebar-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 64px 40px 32px;
}

/* header 内の要素をサイドバーの縦並びに直接参加させる */
.site-header, .site-header .wrap { display: contents; }

.identity { order: 1; }
.site-nav { order: 2; }
.meta     { order: 3; }

/* ===== Identity ===== */
.identity img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line), 0 10px 30px rgba(31, 59, 99, 0.12);
  margin-bottom: 26px;
}

.identity h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.identity h1 .kana {
  display: block;
  margin-top: 2px;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.identity .role {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.identity .group-link { margin-top: 6px; font-size: 0.82rem; }
.identity .group-link a::after { content: " \2197"; }

/* ===== Navigation (vertical) ===== */
.site-nav { margin-top: 48px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav li + li { margin-top: 4px; }

.site-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.1em;
  background: none;
  transition: color 0.25s ease;
}

.site-nav a::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease), background-color 0.25s ease;
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::before { width: 30px; }

.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav a[aria-current="page"]::before { width: 30px; height: 2px; background: var(--accent-2); }

/* ===== Meta (bottom of sidebar) ===== */
.meta {
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.meta .lang { margin-top: 6px; }
.meta .lang a { color: var(--muted); background: none; }
.meta .lang a:hover { color: var(--accent-2); }
.meta .lang a[aria-current="true"] { color: var(--accent); font-weight: 600; }

.meta .contact-mini {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.meta .contact-mini img { display: block; max-width: 100%; height: auto; }

/* ===== Content ===== */
.content {
  padding: 88px 72px 0;
  max-width: 940px;
}

main {
  animation: fadeUp 0.9s var(--ease);
  transition: opacity 0.22s ease;
}

body.is-leaving main { opacity: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  main { animation-name: fadeIn; }
  html { scroll-behavior: auto; }
}

.page-title {
  margin: 0 0 36px;
  padding-bottom: 18px;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.08em;
  position: relative;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

section { margin-top: 64px; scroll-margin-top: 32px; }

/* ===== スクロールしても上部に固定されるページ見出し ===== */
.page-head {
  position: sticky;
  top: 0;
  z-index: 15;
  margin: -24px -24px 0;
  padding: 24px 24px 22px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-head .page-title {
  transition: font-size 0.3s var(--ease), margin 0.3s var(--ease), padding 0.3s var(--ease);
}

.page-head .researchmap-lead { transition: padding 0.3s var(--ease), font-size 0.3s var(--ease); }

/* スクロール後はコンパクトに */
body.scrolled .page-head {
  padding-top: 18px;
  padding-bottom: 14px;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 20px -18px rgba(31, 59, 99, 0.35);
}

body.scrolled .page-head .page-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
}

body.scrolled .page-head .researchmap-lead { padding: 12px 18px; font-size: 0.9rem; }

.page-head + section { margin-top: 44px; }

/* 略歴ページ内リンクで飛んだとき、固定見出しに隠れないように */
.page-head ~ section { scroll-margin-top: 160px; }

section h3 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 箇条書き：小さなドット */
ul.plain { list-style: none; margin: 0; padding: 0; }

ul.plain > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
}

ul.plain > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.7;
}

/* ===== Home ===== */
.news {
  margin-top: 0;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfe 0%, #ffffff 70%);
}

.news h3 {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.24em;
}
.news h3::after { display: none; }

.news dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 28px;
}

.news dt {
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.news dd { margin: 0; }

/* ページへのリンク：大きな行リンク */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.cards a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: none;
  transition: padding 0.4s var(--ease), background-color 0.3s ease;
}

.cards a::after {
  content: "\2192";
  grid-column: 3;
  font-size: 1.05rem;
  color: var(--accent-2);
  transition: transform 0.4s var(--ease);
}

.cards a:hover {
  padding-left: 22px;
  background-color: var(--soft);
}
.cards a:hover::after { transform: translateX(6px); }

.cards .card-title {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.cards .card-sub {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
}

/* ===== Pills (profile links / page toc) ===== */
.profile-links,
.page-toc {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-title + .profile-links,
.page-title + .page-toc { margin-top: -12px; }

.profile-links a,
.page-toc a {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  background: #fff;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.profile-links a { font-weight: 600; }
.profile-links a::after { content: " \2197"; color: var(--accent-2); }
.page-toc a::before { content: "\2193\00a0"; color: var(--accent-2); }

.profile-links a:hover,
.page-toc a:hover {
  border-color: var(--accent-2);
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(58, 118, 196, 0.12);
}

/* ===== Publication / presentation lists ===== */
ol.pub {
  margin: 0;
  padding-left: 3em;
  border-top: 1px solid var(--line);
}

ol.pub > li {
  padding: 20px 12px 20px 10px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}

ol.pub > li:hover { background: linear-gradient(90deg, var(--soft), rgba(246, 248, 250, 0)); }

ol.pub > li::marker {
  color: var(--faint);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

ol.pub .note {
  display: block;
  padding-left: 1.6em;
  font-size: 0.92em;
  color: var(--muted);
}

.highlight-new { color: var(--new); font-weight: 600; }
.highlight-name { background-color: var(--name-hl); padding: 0 3px; border-radius: 2px; }
.red { color: #d32f2f; }

.researchmap-lead {
  margin: -12px 0 0;
  padding: 20px 24px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 80%);
}

/* ===== Contact ===== */
.contact img { display: block; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 96px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}

/* ===== Tablet / phone ===== */
@media (max-width: 960px) {
  :root { --sidebar-w: 280px; }
  .sidebar-inner { padding: 56px 28px 28px; }
  .content { padding: 72px 40px 0; }
}

@media (max-width: 780px) {
  .layout { display: block; }

  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }

  .sidebar-inner {
    position: static;
    height: auto;
    overflow: visible;
    padding: 32px 16px 0;
  }

  .identity {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .identity img { width: 76px; height: 76px; margin-bottom: 0; flex-shrink: 0; }
  .identity h1 { font-size: 1.3rem; }
  .identity .role { margin-top: 4px; }

  .meta { order: 2; margin-top: 16px; padding-top: 0; }

  .site-nav { order: 3; margin-top: 16px; }
  .site-nav ul { display: flex; gap: 22px; overflow-x: auto; }
  .site-nav li + li { margin-top: 0; }
  .site-nav a { padding: 10px 0 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
  .site-nav a::before { display: none; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--accent-2); }

  .content { padding: 36px 16px 0; }
  .page-title { font-size: 1.9rem; }

  .page-head { margin: -16px -16px 0; padding: 16px 16px 18px; }
  body.scrolled .page-head { padding-top: 12px; padding-bottom: 12px; }
  body.scrolled .page-head .page-title { font-size: 1.2rem; margin-bottom: 18px; padding-bottom: 6px; }
  body.scrolled .page-head .researchmap-lead { padding: 8px 12px; font-size: 0.82rem; line-height: 1.6; }
  .page-head ~ section { scroll-margin-top: 130px; }

  .cards a { grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 6px; }
  .cards .card-title { font-size: 1.05rem; grid-column: 1; grid-row: 1; }
  .cards .card-sub { grid-column: 1; grid-row: 2; text-align: left; }
  .cards a::after { grid-column: 2; grid-row: 1 / span 2; }

  .news { padding: 18px 20px; }
  .news dl { grid-template-columns: 1fr; gap: 0; }
  .news dd { margin-bottom: 6px; }

  ol.pub { padding-left: 2.4em; }
  ol.pub > li { padding: 16px 6px 16px 6px; }
  .site-footer { margin-top: 64px; }
}
