:root{
  --bg: #ffffff;
  --surface: #ffffff;

  --text: #0b1220;
  --muted: #5b667a;

  --line: #e6eaf2;

  /* Slide palette */
  --accent: #1F4880;
  --accent-weak: #e9f0fb;
  --accent-strong: #16355f;

  --warm: #EB801A;
  --sand: #CBAB82;

  --max: 900px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

/* =========================
   Layout
========================= */
.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   Header / Navigation
========================= */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-nav{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a{
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
}

.site-nav a:hover{
  color: var(--accent);
  background: var(--accent-weak);
}

.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 18px;
}

/* =========================
   Sections
========================= */
.section{
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.section h2{
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 12px;
}

.section h2::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.1em;
  border-radius: 99px;
  background: var(--accent);
}

/* =========================
   Chips (Category tabs)
========================= */
.chips{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.chip{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.chip.is-active{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* =========================
   PRESENTATIONS list
========================= */
.timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline li{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.timeline li .date{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline li .date::after{
  content: attr(data-no);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Left column (date + number) */
.date{
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-no{
  font-weight: 600;
  color: var(--muted);
}

/* Right column */
.tags{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* Base tag style */
.tag{
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--accent-weak);
  color: var(--accent);
  border: none; /* ← 発表タグは枠線なし */
}

/* 国際学会：淡いオレンジ */
.tag.tag-international{
  background: rgba(235,128,26,0.15);
  color: #b45309;
}

/* その他：グレー */
.tag.tag-other{
  background: #f3f4f6;
  color: #4b5563;
}

/* Event title */
.title{
  font-weight: 400;
  margin-bottom: 2px;
}

.muted{
  color: var(--muted);
}

/* =========================
   Footer (if any)
========================= */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   Responsive
========================= */
@media (max-width: 720px){
  .nav-toggle{ display: inline-block; }

  .site-nav{
    display: none;
    width: 100%;
    padding: 10px 0 4px;
  }

  .site-nav.is-open{ display: flex; }

  .header-inner{ flex-wrap: wrap; }

  .timeline li{
    grid-template-columns: 1fr;
  }
}

/* 左上の名前を紺色に */
.brand{
  color: var(--accent);
}

.brand:hover{
  opacity: 0.85;
}

/* ヘッダーナビ：ホバー時に少し浮かせる */
.site-nav a{
  transition: 
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.site-nav a:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(31,72,128,0.12);
}

/* ブランド名：フォーカス時の見た目をヘッダーと統一 */
.brand{
  padding: 6px 8px;
  border-radius: 8px;
  outline: none;
}

.brand:focus,
.brand:focus-visible{
  outline: none;
  background: var(--accent-weak);
}

/* イベント名リンク */
.event-link{
  color: inherit;              /* 文字色を通常テキストと同じに */
  text-decoration: none;       /* 下線を消す */
}

.event-link:hover{
  text-decoration: underline;  /* ホバー時だけ下線 */
}

/* 発表資料リンク */
.material-link{
  font-size: 1em;
  color: var(--accent);
  text-decoration: none;
}

.material-link:hover{
  text-decoration: underline;
}

/* ===== PUBLICATIONS タグ ===== */

/* 査読あり：オレンジ */
#publications .tag.tag-reviewed{
  background: rgba(235,128,26,0.15);
  color: #b45309;
}

/* 査読中：青 */
#publications .tag.tag-under-review{
  background: var(--accent-weak);
  color: var(--accent);
}

/* ===== 通し番号（共通） ===== */
.pub-no{
  font-weight: 600;
  color: var(--muted);
}

/* ジャーナルリンク */
.journal-link{
  color: inherit;        /* 通常テキストと同じ色 */
  text-decoration: none;
}

.journal-link:hover{
  text-decoration: underline;
}

/* arXiv リンク */
.arxiv-link{
  font-size: 1em;
  color: var(--accent);
  text-decoration: none;
}

.arxiv-link:hover{
  text-decoration: underline;
}

/* arXiv 行の余白 */
.preprint{
  margin-top: 4px;
}


/* トップメッセージ */
.welcome{
  color: var(--accent); /* 紺色 */
}

/* ===== HERO：kicker + welcome だけ淡色背景・中央揃え ===== */
.hero{
  text-align: center;
  padding: 32px 0 24px;   /* 余白を引き締める */
}

/* kicker + welcome をまとめて見せる */
.hero .kicker,
.hero .welcome{
  display: inline-block;
  background: var(--accent-weak); /* 淡い青 */
  padding: 8px 18px;
  border-radius: 999px;
}

/* kicker */
.hero .kicker{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* welcome（タイトル） */
.hero .welcome{
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--accent);
}

/* タイトルと本文の間隔 */
.hero .welcome + .lead{
  margin-top: 14px;
}

/* lead 文 */
.hero .lead{
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}

/* モバイル調整 */
@media (max-width: 720px){
  .hero{
    padding: 24px 0 18px;
  }
  .hero .kicker,
  .hero .welcome{
    padding: 6px 14px;
  }
}

/* ===== HERO：welcome + kicker を1つの塊に ===== */
.hero{
  text-align: center;
  padding: 28px 0 22px; /* 余白控えめ */
}

/* 1つの塊 */
.hero-badge{
  display: inline-block;
  background: var(--accent-weak); /* 淡い青 */
  padding: 14px 24px 18px;
  border-radius: 22px;
}

/* kicker */
.hero-badge .kicker{
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* welcome */
.hero-badge .welcome{
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--accent);
}

/* lead 文 */
.hero .lead{
  margin: 14px auto 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}


/* モバイル調整 */
@media (max-width: 720px){
  .hero{
    padding: 22px 0 18px;
  }
  .hero-badge{
    padding: 12px 18px 14px;
    border-radius: 18px;
  }
}

/* ===== Teaching Experience ===== */
.teaching-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.teaching-list li{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
}

.term{
  font-size: 13px;
  color: var(--muted);
}

.teach-title{
  font-weight: 500;
}

/* ===== 通し番号（共通） ===== */
.award-no{
  font-weight: 600;
  color: var(--muted);
}


/* ===== CV / Biography ===== */
.cv-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.cv-list li{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
}

.cv-term{
  font-size: 13px;
  color: var(--muted);
}

.cv-title{
  font-weight: 500;
}

/* ===== Research ===== */
.research-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* カード */
.research-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 18px;
  background: #fff;
}

/* タイトル（淡い青背景） */
.research-title{
  display: inline-block;
  background: var(--accent-weak);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}


/* 説明文 */
.research-text{
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 80ch;
  color: var(--muted);
}

/* レスポンシブ */
@media (max-width: 900px){
  .research-grid{
    grid-template-columns: 1fr;
  }
}

.research-card{
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.research-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31,72,128,0.12);
}

#research a{
  color: var(--accent);
  text-decoration: underline;
}

#research a:hover{
  text-decoration-thickness: 2px;
}

/* ===== 全ハイパーリンク共通：フォーカス枠を紺色に ===== */
a:focus,
a:focus-visible{
  outline: 2px solid var(--accent); /* 紺色 */
  outline-offset: 2px;
}

/* a:hover{
  text-decoration-thickness: 2px;
}

a:focus-visible{
  outline-offset: 3px;
} */


/* ===== PROFILE（写真 + テキストの窓） ===== */
.profile-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 20px;                 /* 少し広げる */
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;                     /* ← 間隔を広げる */
  align-items: start;
}


/* 写真 */
.profile-photo{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(31,72,128,0.08);
  background: none;              /* ← 淡い青を消す */
}


.profile-photo img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 右側 */
.profile-name{
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}


/* メタ情報 */
.profile-meta li{
  color: var(--muted);
}
/* .profile-meta{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
} */

.profile-meta .label{
  display: inline-block;
  min-width: 92px;
  font-size: 12px;
  color: var(--muted);
}

/* PROFILE 本文をグレーに */
.profile-text{
  color: var(--muted);
}

/* リンク群 */
.profile-links{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-body{
  position: relative;
  padding-left: 20px;            /* 縦線との距離 */
}

/* 縦線 */
.profile-body::before{
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);       /* ごく薄い線 */
}


/* スマホ：縦並び */
@media (max-width: 720px){
  .profile-card{
    grid-template-columns: 1fr;
  }
  .profile-photo{
    max-width: 360px;
    margin: 0 auto;
  }
}


/* プロフィール内のメールリンクを紺色に */
.profile-meta a{
  color: var(--accent);
  text-decoration: none;
}

/* ホバー時 */
.profile-meta a:hover{
  text-decoration: underline;
}


/* ===== Thanks ===== */
.thanks{
  text-align: center;
}

.thanks-wrap{
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* ワニ博士 */
.mascot{
  width: 96px;
  height: auto;
}

/* 吹き出し */
.speech-bubble{
  background: var(--accent-weak);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 16px;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
}

/* 吹き出しの尻尾（右側・マスコット向き） */
.speech-bubble::after{
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--accent-weak);
}

/* マスコット全体 */
.mascot-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* キャラ画像 */
.mascot{
  width: 96px;
  height: auto;
}

/* キャラ説明文 */
.mascot-caption{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* 横並び（基準は画像） */
.thanks-wrap{
  display: inline-flex;
  align-items: center;   /* ← 画像と吹き出しの中央が揃う */
  gap: 16px;
}

/* キャラ */
.mascot{
  width: 96px;
  height: auto;
}

/* 説明文（下に配置） */
.mascot-caption{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}



/* スマホ対応 */
@media (max-width: 600px){
  .thanks-wrap{
    flex-direction: column;
  }

  .speech-bubble::after{
    display: none;
  }
}

/* 見出し左の縦棒：ホバーで伸びる */
.section h2::before{
  transition: height 0.18s ease, transform 0.18s ease;
  transform-origin: top;
}

/* セクションにマウスが乗ったら伸ばす（子要素上でも発火） */
.section:hover h2::before{
  height: 1.6em;          /* ここを好みで調整 */
}

/* 見出しそのものに乗っても確実に発火させる保険 */
.section h2:hover::before{
  height: 1.6em;
}

/* ===== RESEARCH セクション ===== */

/* ナビジャンプ時のずれ補正（固定ヘッダー分） */
section{
  scroll-margin-top: 100px;
}

/* トップに戻るときのずれ補正 */
#top{
  scroll-margin-top: 100px;
}


/* Presentation / Publication 内リンク：ホバー時も紺色に固定
#news a:hover,
#publications a:hover,
#awards a:hover,
#othermaterials a:hover{
  color: var(--accent);
} */

/* ===== セクション内リンク：hoverしても紺色 ===== */
#news a:hover,
#news a:focus-visible,
#publications a:hover,
#publications a:focus-visible,
#awards a:hover,
#awards a:focus-visible,
#othermaterials a:hover,
#othermaterials a:focus-visible,
#cv a:hover,
#cv a:focus-visible{
  color: var(--accent);
}


