/* ==========================================================
 * シンプルな研究者ホームページスタイル
 * (jonbarron.info 等、CV分野で定番のプレーンな1カラム構成)
 * ========================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  /* 真っ白ではなく、目にやさしいごく薄いブルーグレー */
  background: #f5f7f9;
  color: #24292f;
  font-family: "Lato", "Noto Sans JP", Verdana, Helvetica,
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 上部の背景写真 (images/header.jpg を差し替え可能) ---------- */
.top-banner {
  height: 240px;
  background: url(../images/header.jpg) center / cover no-repeat;
  position: relative;
}
/* 写真を薄くしてページ背景に溶け込ませる */
.top-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245, 247, 249, 0.3) 0%,
    rgba(245, 247, 249, 0.55) 55%,
    #f5f7f9 100%
  );
}

.page {
  max-width: 960px;
  margin: -130px auto 0;
  padding: 16px 32px 60px;
  position: relative;
}

a {
  color: #1772d0;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #f09228;
}

h1, h2, h3 {
  font-weight: normal;
  margin: 0;
}

h2 {
  font-size: 22px;
  margin: 48px 0 16px;
}

h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 24px 0 12px;
}

/* ---------- ナビゲーション ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f5f7f9;
  border-bottom: 1px solid #e1e7ec;
}

.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-name {
  color: #24292f;
  font-weight: bold;
  white-space: nowrap;
}
.nav-name:hover { color: #1772d0; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  font-size: 14px;
}

.nav-links a {
  color: #57606a;
  white-space: nowrap;
}
.nav-links a:hover { color: #1772d0; }

.lang-switch {
  margin: 0 0 0 auto;
  font-size: 14px;
  white-space: nowrap;
}
.lang-switch a { color: #57606a; }
.lang-switch a.active {
  color: #24292f;
  font-weight: bold;
}
.lang-sep { color: #b6bec6; margin: 0 6px; }

/* ---------- イントロ ---------- */
.intro {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px 0 8px;
}

.intro-text { flex: 1; }

.name {
  font-size: 32px;
  margin-bottom: 2px;
}

.name-sub {
  color: #606060;
  margin: 0 0 12px;
}

.intro-text p { margin: 0 0 12px; }

/* 所属（1行目）と学年（2行目）は続けて読ませるため間隔を詰める */
#hero-affiliation { margin-bottom: 2px; }

.position-line { color: #606060; }

.interests-line {
  color: #606060;
  font-size: 14px;
}

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

.contact-icon { display: inline-flex; }

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: #57606a;
  transition: fill 0.15s;
}
.contact-icon:hover svg,
.contact-icon:focus svg { fill: #1772d0; }

.intro-photo { flex-shrink: 0; }

.photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #e2e6ea;
  color: #8a939c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ニュース ---------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 6px;
}

.news-date {
  flex-shrink: 0;
  width: 70px;
  color: #606060;
  font-variant-numeric: tabular-nums;
}

/* ---------- 研究業績 ---------- */
.pub-list {
  margin: 0;
  padding-left: 26px;
}

.pub-list li { margin-bottom: 14px; }

.pub-title { font-weight: bold; }
.pub-me { font-weight: bold; }
.pub-venue { font-style: italic; }

/* ---------- 受賞・スキルなど ---------- */
.plain-list {
  margin: 0;
  padding-left: 26px;
}
.plain-list li { margin-bottom: 8px; }

.note { color: #606060; font-size: 14px; }

/* ---------- 学歴・職歴 ---------- */
.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.cv-period {
  flex-shrink: 0;
  width: 185px;
  color: #606060;
  font-variant-numeric: tabular-nums;
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 72px;
  background: #3f464e;
  color: #aab3bb;
  text-align: center;
  padding: 34px 20px 30px;
}

.footer-name {
  margin: 0;
  color: #e8ebee;
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  /* ナビは横スクロールにせず折り返して全項目を見せる */
  html { scroll-padding-top: 88px; }
  .site-nav-inner {
    height: auto;
    min-height: 44px;
    padding: 6px 18px;
    gap: 16px;
    align-items: center;
  }
  .nav-name { display: none; }
  .nav-links {
    flex: 1;
    flex-wrap: wrap;
    overflow: visible;
    gap: 2px 14px;
    font-size: 13px;
  }
  .lang-switch { font-size: 13px; }

  .top-banner { height: 150px; }
  .page { margin-top: -80px; padding: 12px 22px 50px; }

  .intro {
    flex-direction: column-reverse;
    text-align: left;
    gap: 20px;
  }
  .intro-photo { align-self: center; }
  .photo { width: 130px; height: 130px; }

  .cv-list li { flex-direction: column; gap: 0; }
  .cv-period { width: auto; }
}
