/* ===== Base ===== */
:root{
  --bg: #ffffff;
  --text: #111827;     /* near-black */
  --muted: #6b7280;    /* gray */
  --line: #e5e7eb;     /* light gray */

  --link: #8B1E2D;        /* academic red */
  --link-hover: #6E1723;  /* darker on hover */

  --maxw: 820px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

/* Accessibility */
.skip{
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 10px;
}
.skip:focus{ left: 10px; top: 10px; z-index: 9999; }

.container{
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

/* Links */
a{
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover{ color: var(--link-hover); text-decoration: underline; }

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

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

.brand .name{
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand .meta{
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap; /* スマホで折り返す */
}
.nav a{
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.nav a:hover{ color: var(--link-hover); }

/* ===== Main ===== */
.hero{
  padding: 28px 0 10px;
}
h1{
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}
.lead{
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.02rem;
}
.links{
  margin: 0;
  color: var(--muted);
}
.dot{ color: var(--muted); margin: 0 6px; }

.section{
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

h2{
  font-size: 1.15rem;
  margin: 0 0 8px;
}
h3{
  font-size: 1.02rem;
  margin: 14px 0 6px;
  color: #111827;
}

.bullets{
  margin: 8px 0 0;
  padding-left: 18px;
}
.bullets li{ margin: 6px 0; }

.publist{
  margin: 8px 0 0;
  padding-left: 20px;
}
.publist li{ margin: 10px 0; }
.pub-title{ font-weight: 600; }
.pub-venue{ color: #111827; }
.pub-link{ margin-left: 6px; }
.muted{ color: var(--muted); }

/* Footer */
.site-footer{
  padding: 18px 0 40px;
  border-top: 1px solid var(--line);
}
.site-footer p{ margin: 0; }

/* Small screens */
@media (max-width: 520px){
  .header-inner{ align-items: flex-start; flex-direction: column; }
}

  /* Accordion button */
.accordion {
  background: none;
  border: none;
  padding: 0;
  margin: 6px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c73d3a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Arrow */
.accordion .arrow {
  transition: transform 0.25s ease;
  font-size: 0.9rem;
}

/* Open state */
.accordion.active .arrow {
  transform: rotate(180deg);
}

/* Panel (hidden by default) */
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-left: 0;
}

.panel p {
  margin: 8px 0 12px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

/* Publication item spacing */
.pubitem { margin: 12px 0; }
.pubrow { margin-bottom: 6px; }


/* Optional: keep DOI link modest */
.pub-link{
  margin-left: 6px;
  font-size: 0.95rem;
}
/* HERO LAYOUT */
.hero-inner{
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 40px 0 20px;
}

/* Large profile photo */
.hero-photo{
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;  /* ← 丸くしたいなら 50% */
  border: 1px solid #e5e7eb;
}

/* Text block */
.hero-text h1{
  margin: 0 0 8px;
}
@media (max-width: 700px){
  .hero-inner{
    flex-direction: column;
    text-align: center;
  }

  .hero-photo{
    width: 140px;
    height: 140px;
  }
}
.icon-links i{
  font-size: 2.5rem;
  transition: transform 0.2s ease;
}

.icon-links a:hover i{
  transform: scale(1.15);
}
/* Japanese page: tighter, readable typography */
.jp-page h1 { margin-top: 0; }

.jp-publist{
  margin: 8px 0 0;
  padding-left: 20px;
}

.jp-publist li{
  margin: 12px 0;
}

.jp-pub-head{
  margin: 0;
}

.jp-abs{
  margin: 8px 0 0;
  padding-left: 0;
  color: #333;
  line-height: 1.75;
}

/* Optional: book block */
.jp-book{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 10px 0 0;
}

.jp-book-cover{
  width: 60px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.jp-book-title{
  margin: 0 0 6px;
  font-weight: 700;
}

.timeline{
  position: relative;
  margin-top: 16px;
  padding-left: 20px;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.timeline-year{
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.timeline-content{
  padding-bottom: 6px;
  line-height: 1.6;
}
.book-cover{
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-cover:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 赤い小見出し：既に --link を academic red にしている前提で寄せる */
.bp-kicker{
  margin: 18px 0 10px;
  font-weight: 700;
  color: var(--link);
  letter-spacing: 0.2px;
}

/* タイトルは大きく、でもやりすぎない */
.bp-title{
  margin: 0 0 22px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: 0.1px;
}

/* 2カラム：左本文／右画像 */
.bp-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

/* 本文は読みやすく */
.bp-text p{
  margin: 0 0 14px;
  line-height: 1.8;
}

/* 画像 */
.bp-figure{
  margin: 0;
}

.bp-image{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

/* キャプション：小さめ、落ち着いた色 */
.bp-caption{
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

/* 画面が狭いときは縦積み */
@media (max-width: 860px){
  .bp-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
