html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.7;
  color: #111;
  background: #fff;
}

main {
  max-width: 900px;
  margin: 0 auto;
}

section {
  padding: 56px 24px;
}

h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.subtitle {
  margin: 0 0 16px;
  opacity: 0.7;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

h3 {
  margin: 24px 0 10px;
  font-size: 16px;
}

/* =====================
   ナビ
===================== */

.nav {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  padding: 14px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 10;
}

.nav a {
  text-decoration: none;
  color: #111;
}

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

.nav-spacer {
  flex: 1;
}

/* =====================
   トップ
===================== */

.name-ja{
  margin:0;
}

.name-en{
  margin:2px 0 14px;
  font-size:16px;
  letter-spacing:0.04em;
  opacity:0.6;
}

.subtitle{
  margin: 0 0 6px;
  opacity: 0.7;
}

.subtitle-small{
  margin: 0;
  font-size: 14px;
  opacity: 0.6;
}

/* subtitle内リンク（研究室リンクなど） */
.subtitle-small a{
  color:#111;
  text-decoration:none;
  border-bottom:1px solid rgba(17,17,17,0.25);
  padding-bottom:1px;
}

.subtitle-small a:hover{
  border-bottom-color:rgba(17,17,17,0.9);
}

/* 研究室リンク（本文や他箇所でも使うなら残してOK） */
.inline-link{
  color:#111;
  text-decoration:none;
  border-bottom:1px solid rgba(17,17,17,0.35);
  padding-bottom:1px;
}

.inline-link:hover{
  border-bottom-color:rgba(17,17,17,0.9);
}



/* =====================
   経歴
===================== */
.about-heading{
  margin: 18px 0 10px;
  font-size: 16px;
}

/* 経歴リスト */
.about-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
  max-width: 760px;
}

.about-list li{
  display:grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
}

.about-year{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  opacity: 0.6;
}

.about-text{
  min-width:0;
}

/* モバイル */
@media (max-width: 720px){
  .about-list li{
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* =====================
   業績
===================== */

.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

/* カード */
.pubs li {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  background: #fff;

  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
}

/* 左カラム */
.pub-left {
  display: grid;
  gap: 4px;
}

/* カテゴリ（少し抑えてタイトルを主役に） */
.pub-category {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* 日付 */
.pub-date {
  font-size: 12px;
  opacity: 0.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* 右カラム */
.pub-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

/* =====================
   ★タイトル（リンク感を強化）
===================== */

.pub-title {
  font-weight: 800;
  color: #111;
  text-decoration: none;

  /* 常時下線は消す */
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;

  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;

  transition: border-color 120ms ease, opacity 120ms ease;
}

.pub-title:hover {
  border-bottom-color: rgba(17,17,17,0.9);
  opacity: 0.95;
}

/* 著者 */
.pub-authors{
  font-size:13px;
  opacity:0.85;
}

/* 掲載情報 */
.pub-venue{
  font-size:13px;
  opacity:0.6;
  margin-bottom:2px;
}

/* =====================
   リンク（PDF / Report）
===================== */

.pub-links{
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
}

.pub-links a{
  text-decoration: none;
  border: 1px solid #e6e6e6;

  /* ★丸から少し四角へ（ここが変更点） */
  border-radius: 6px;

  padding: 4px 10px;
  line-height: 1;
  color: #111;
  opacity: 0.85;
  background: #fafafa;

  transition:
    opacity 120ms ease,
    border-color 120ms ease,
    transform 120ms ease,
    background 120ms ease;
}

.pub-links a:hover{
  opacity: 1;
  border-color: #cfcfcf;
  background:#f3f3f3; /* ←ほんの少しだけ反応 */
  transform: translateY(-1px);
}

/* 説明文（受賞など） */
.pub-desc {
  font-size:13px;
  opacity:0.7;
  line-height:1.6;
}

/* =====================
   フッター
===================== */

.footer {
  padding: 24px;
  opacity: 0.6;
}

/* =====================
   モバイル
===================== */

@media (max-width: 720px) {

  section {
    padding: 42px 18px;
  }

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

  .pub-left {
    grid-auto-flow: column;
    gap: 10px;
  }
}


/* ===== Contact ===== */

.contact-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.contact-list li{
  display:flex;
  align-items:center;
  gap:10px;
}

.contact-icon{
  font-size:16px;
  width:18px;
  opacity:0.7;
}