@charset "UTF-8";
/* =========================================================================
   modern.css  —  Konosuke Ikeda / personal site (renewal)
   ※ 既存の css/style.css とは独立した新規スタイル。元ファイルは変更しません。
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root{
  --bg:            #f6f8fc;
  --bg-grad-1:     #eef3ff;
  --bg-grad-2:     #f7fbff;
  --surface:       #ffffff;
  --surface-2:     #f2f5fa;
  --text:          #121722;
  --text-soft:     #3d4757;
  --text-muted:    #6b7686;
  --border:        #e4e9f1;
  --border-strong: #cfd8e5;

  --accent:        #1d4ed8;
  --accent-2:      #0ea5e9;
  --accent-ink:    #12306e;
  --accent-soft:   #e7efff;
  --gold:          #a7740a;
  --gold-soft:     #fdf4e3;
  --green:         #0f766e;
  --green-soft:    #e2f5f2;

  --radius:        18px;
  --radius-sm:     10px;
  --radius-pill:   999px;

  --shadow-xs: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-sm: 0 2px 6px rgba(16,24,40,.06), 0 8px 20px -14px rgba(16,24,40,.25);
  --shadow:    0 18px 40px -22px rgba(16,24,40,.38), 0 2px 8px rgba(16,24,40,.05);

  --maxw:      1140px;
  --header-h:  66px;

  --font-ja: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:            #0c1018;
    --bg-grad-1:     #101726;
    --bg-grad-2:     #0c1018;
    --surface:       #141a25;
    --surface-2:     #1b2231;
    --text:          #e8edf6;
    --text-soft:     #c2cbdb;
    --text-muted:    #8d99ad;
    --border:        #252e3e;
    --border-strong: #344054;

    --accent:        #7aa2ff;
    --accent-2:      #4cc9f0;
    --accent-ink:    #cbdcff;
    --accent-soft:   #1a2540;
    --gold:          #e8b866;
    --gold-soft:     #2b2417;
    --green:         #5ecfc0;
    --green-soft:    #13272a;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px -16px rgba(0,0,0,.8);
    --shadow:    0 20px 44px -24px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"]{
  --bg:            #0c1018;
  --bg-grad-1:     #101726;
  --bg-grad-2:     #0c1018;
  --surface:       #141a25;
  --surface-2:     #1b2231;
  --text:          #e8edf6;
  --text-soft:     #c2cbdb;
  --text-muted:    #8d99ad;
  --border:        #252e3e;
  --border-strong: #344054;

  --accent:        #7aa2ff;
  --accent-2:      #4cc9f0;
  --accent-ink:    #cbdcff;
  --accent-soft:   #1a2540;
  --gold:          #e8b866;
  --gold-soft:     #2b2417;
  --green:         #5ecfc0;
  --green-soft:    #13272a;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px -16px rgba(0,0,0,.8);
  --shadow:    0 20px 44px -24px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.35);
}

/* ---------- Base ---------- */
*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h) + 18px);
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  background:var(--bg);
  background-image:
    radial-gradient(1100px 560px at 12% -8%, var(--bg-grad-1) 0%, transparent 60%),
    radial-gradient(900px 500px at 92% 4%, var(--bg-grad-2) 0%, transparent 55%);
  background-attachment:fixed;
  color:var(--text);
  font-family:var(--font-ja);
  font-size:16px;
  line-height:1.85;
  letter-spacing:.015em;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:anywhere;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent); text-decoration:none; transition:color .18s ease, opacity .18s ease; }
a:hover{ color:var(--accent-2); }
h1,h2,h3,h4{ line-height:1.4; letter-spacing:.01em; margin:0; font-weight:700; }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
::selection{ background:var(--accent-soft); color:var(--text); }

.wrap{ width:min(100% - 40px, var(--maxw)); margin-inline:auto; }
@media (max-width:640px){ .wrap{ width:calc(100% - 32px); } }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  height:var(--header-h);
  display:flex; align-items:center;
  background:color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{
  border-bottom-color:var(--border);
  box-shadow:0 6px 24px -20px rgba(16,24,40,.6);
}
.header-inner{
  display:flex; align-items:center; gap:18px;
  width:min(100% - 40px, var(--maxw)); margin-inline:auto;
}
.brand{
  display:flex; align-items:center; gap:11px;
  font-weight:700; color:var(--text); flex:0 0 auto;
}
.brand:hover{ color:var(--text); opacity:.85; }
.brand-mark{
  width:34px; height:34px; border-radius:11px; flex:0 0 auto;
  display:grid; place-items:center;
  background:linear-gradient(140deg, var(--accent), var(--accent-2));
  color:#fff; font-family:var(--font-en); font-weight:700; font-size:14px; letter-spacing:.02em;
  box-shadow:0 6px 16px -8px var(--accent);
}
.brand-name{ font-family:var(--font-en); font-size:1.02rem; letter-spacing:.005em; white-space:nowrap; }
.brand-name small{ display:block; font-family:var(--font-ja); font-size:.66rem; font-weight:500; color:var(--text-muted); letter-spacing:.08em; line-height:1.2; }

.nav{ margin-left:auto; }
.nav ul{ display:flex; align-items:center; gap:4px; }
.nav a{
  display:block; padding:8px 12px; border-radius:var(--radius-pill);
  font-size:.86rem; font-weight:600; color:var(--text-soft); white-space:nowrap;
  transition:background .18s ease, color .18s ease;
}
.nav a:hover{ background:var(--surface-2); color:var(--text); }
.nav a.is-active{ background:var(--accent-soft); color:var(--accent); }

.header-tools{ display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.icon-btn{
  width:38px; height:38px; display:grid; place-items:center;
  border:1px solid var(--border); border-radius:12px;
  background:var(--surface); color:var(--text-soft);
  cursor:pointer; padding:0;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.icon-btn:hover{ color:var(--accent); border-color:var(--border-strong); transform:translateY(-1px); }
.icon-btn svg{ width:18px; height:18px; }
.lang-switch{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:var(--radius-pill);
  border:1px solid var(--border-strong);
  font-family:var(--font-en); font-size:.78rem; font-weight:700; letter-spacing:.06em;
  color:var(--text-soft); background:var(--surface);
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.lang-switch:hover{ background:var(--accent); border-color:var(--accent); color:#fff; }

.theme-icon-sun{ display:none; }
:root[data-theme="dark"] .theme-icon-sun{ display:block; }
:root[data-theme="dark"] .theme-icon-moon{ display:none; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .theme-icon-sun{ display:block; }
  :root:not([data-theme="light"]) .theme-icon-moon{ display:none; }
}

.nav-toggle{ display:none; }
.nav-toggle span{
  position:relative; display:block; width:18px; height:2px; border-radius:2px;
  background:currentColor; transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content:""; position:absolute; left:0; width:18px; height:2px; border-radius:2px;
  background:currentColor; transition:transform .25s ease;
}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }
body.nav-open .nav-toggle span{ background:transparent; }
body.nav-open .nav-toggle span::before{ transform:translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after{ transform:translateY(-6px) rotate(-45deg); }

@media (max-width:980px){
  .nav-toggle{ display:grid; }
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    background:var(--surface);
    border-bottom:1px solid var(--border);
    box-shadow:var(--shadow);
    padding:10px 20px 20px;
    max-height:calc(100dvh - var(--header-h));
    overflow-y:auto;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  body.nav-open .nav{ transform:none; opacity:1; pointer-events:auto; }
  .nav ul{ flex-direction:column; align-items:stretch; gap:2px; }
  .nav a{ padding:12px 14px; border-radius:12px; font-size:.95rem; }
  .brand-name small{ display:none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero{ padding:clamp(28px, 4.5vw, 56px) 0 clamp(18px, 2.5vw, 30px); }
/* 顔写真はプロフィール欄に移したため、ヒーローは1カラム
   （.hero-figure を戻す場合は 2カラム指定に変えてください） */
.hero-grid{
  display:grid; grid-template-columns:minmax(0,1fr);
  gap:clamp(28px, 5vw, 60px); align-items:center;
}
.hero-grid:has(.hero-figure){ grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; margin-bottom:20px;
  border-radius:var(--radius-pill);
  background:var(--accent-soft); color:var(--accent);
  font-size:.78rem; font-weight:700; letter-spacing:.06em;
}
.eyebrow::before{
  content:""; width:7px; height:7px; border-radius:50%;
  background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}
.hero h1{
  font-size:clamp(2.1rem, 5.2vw, 3.5rem);
  font-family:var(--font-en); font-weight:700; letter-spacing:-.02em; line-height:1.12;
  margin-bottom:6px;
  background:linear-gradient(120deg, var(--text) 25%, var(--accent) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero h1 .ja{
  display:block; font-family:var(--font-ja);
  font-size:clamp(1rem, 2.2vw, 1.2rem); font-weight:600; letter-spacing:.22em;
  color:var(--text-muted);
  -webkit-text-fill-color:var(--text-muted);
  margin-top:12px;
}
/* 横幅いっぱいを使って、できるだけ折り返さないようにする */
.hero-lead{
  margin:20px 0 0; max-width:none;
  color:var(--text-soft); font-size:1.02rem;
}
.hero-meta{ margin:16px 0 0; display:flex; flex-direction:column; gap:5px; }
.hero-meta li{
  display:flex; gap:10px; align-items:flex-start;
  font-size:.92rem; color:var(--text-soft);
}
/* 単語の途中や英字の途中で切れないようにする（body の anywhere を打ち消す） */
.hero-lead,
.hero-meta li span{
  word-break:normal; overflow-wrap:break-word; line-break:strict;
}
/* 文節のかたまり。入りきる限り途中で折り返さず、読点などの区切りでのみ改行する
   （画面が狭くて1行に収まらないときだけ内部で折り返すので、スマホでもはみ出さない） */
.hero-lead .nw{ display:inline-block; }
.hero-meta li span{ white-space:nowrap; }
@media (max-width:760px){
  .hero-meta li span{ white-space:normal; }
}
.hero-meta svg{ width:17px; height:17px; flex:0 0 auto; margin-top:5px; color:var(--accent); }

.hero-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px; border-radius:var(--radius-pill);
  font-size:.88rem; font-weight:700; letter-spacing:.02em;
  border:1px solid transparent; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg{ width:16px; height:16px; }
.btn-primary{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff; box-shadow:0 14px 28px -16px var(--accent);
}
.btn-primary:hover{ color:#fff; transform:translateY(-2px); box-shadow:0 18px 32px -14px var(--accent); }
.btn-ghost{
  background:var(--surface); color:var(--text-soft); border-color:var(--border-strong);
}
.btn-ghost:hover{ color:var(--accent); border-color:var(--accent); transform:translateY(-2px); }

.hero-figure{ position:relative; justify-self:center; width:min(100%, 320px); }
.hero-figure::before{
  content:""; position:absolute; inset:-14px -14px 26px 26px;
  border-radius:var(--radius);
  background:linear-gradient(145deg, var(--accent), var(--accent-2));
  opacity:.16; filter:blur(6px);
}
/* 元画像（4024×6048 = 2:3）の比率のまま表示し、トリミングしない */
.hero-figure img{
  position:relative; width:100%; aspect-ratio:2/3; object-fit:cover; object-position:center 22%;
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.hero-badge{
  position:absolute; right:-10px; bottom:-14px; z-index:2;
  display:flex; align-items:center; gap:9px;
  padding:9px 15px; border-radius:var(--radius-pill);
  background:var(--surface); border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  font-size:.76rem; font-weight:700; color:var(--text-soft);
}
.hero-badge svg{ width:15px; height:15px; color:var(--gold); }

@media (max-width:900px){
  .hero-grid,
  .hero-grid:has(.hero-figure){ grid-template-columns:1fr; }
  .hero-figure{ order:-1; width:min(58%, 230px); justify-self:start; }
}

/* ---------- Stats ---------- */
.stats{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px; margin-top:clamp(20px, 3vw, 34px);
}
.stat{
  position:relative; overflow:hidden;
  padding:20px 18px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--border);
  box-shadow:var(--shadow-xs);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.stat::after{
  content:""; position:absolute; inset:auto auto 0 0; height:3px; width:100%;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  transform:scaleX(0); transform-origin:left; transition:transform .3s ease;
}
.stat:hover{ transform:translateY(-3px); box-shadow:var(--shadow-sm); border-color:var(--border-strong); }
.stat:hover::after{ transform:scaleX(1); }
.stat b{
  display:block; font-family:var(--font-en); font-size:2rem; font-weight:700;
  line-height:1.1; letter-spacing:-.02em; color:var(--accent);
}
.stat b .unit{ font-size:.92rem; margin-left:3px; color:var(--text-muted); font-weight:600; }
.stat span{ display:block; margin-top:4px; font-size:.8rem; font-weight:600; color:var(--text-muted); letter-spacing:.04em; }
@media (max-width:760px){ .stats{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* =========================================================================
   Sections
   ========================================================================= */
.section{ padding:clamp(30px, 4vw, 52px) 0; }
.section + .section{ padding-top:0; }
.section-head{ margin-bottom:clamp(16px, 2vw, 24px); }
.section-head .kicker{
  display:block; font-family:var(--font-en); font-size:.76rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--accent); margin-bottom:8px;
}
.section-head h2{
  font-size:clamp(1.4rem, 3vw, 1.9rem); letter-spacing:.02em;
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.section-head h2::after{
  content:""; flex:1 1 60px; height:1px; min-width:40px;
  background:linear-gradient(90deg, var(--border-strong), transparent);
}
.section-head .note{ margin:10px 0 0; font-size:.82rem; color:var(--text-muted); }

.card{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow-xs);
}

/* ---------- News ---------- */
.news-list{ display:flex; flex-direction:column; gap:10px; }
.news-item{
  display:grid; grid-template-columns:104px 84px minmax(0,1fr);
  gap:16px; align-items:start;
  padding:16px 20px; border-radius:var(--radius-sm);
  background:var(--surface); border:1px solid var(--border);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.news-item:hover{ transform:translateX(3px); border-color:var(--border-strong); box-shadow:var(--shadow-xs); }
.news-item time{
  font-family:var(--font-en); font-size:.84rem; font-weight:600;
  color:var(--text-muted); letter-spacing:.02em; padding-top:2px;
}
.tag{
  display:inline-block; text-align:center; width:100%;
  padding:2px 8px; border-radius:var(--radius-pill);
  font-size:.72rem; font-weight:700; letter-spacing:.04em; white-space:nowrap;
}
.tag-research{ background:var(--accent-soft); color:var(--accent); }
.tag-other{ background:var(--green-soft); color:var(--green); }
.tag-award{ background:var(--gold-soft); color:var(--gold); }
.news-item p{ margin:0; font-size:.94rem; color:var(--text-soft); }
.news-item.is-hidden{ display:none; }

/* お知らせ一覧：枠内スクロール（高さは max-height で調整） */
.news-scroll{
  max-height:min(56vh, 460px);
  overflow-y:auto; overscroll-behavior:contain;
  padding:4px 12px 4px 4px; margin:-4px -12px -4px -4px;
  scrollbar-width:thin;
  scrollbar-color:var(--border-strong) transparent;
  /* 上下端をふわっとフェードさせ、続きがあることを示す */
  -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image:linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.news-scroll:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; border-radius:var(--radius-sm); }
.news-scroll::-webkit-scrollbar{ width:8px; }
.news-scroll::-webkit-scrollbar-track{ background:transparent; }
.news-scroll::-webkit-scrollbar-thumb{
  background:var(--border-strong); border-radius:99px;
  border:2px solid transparent; background-clip:content-box;
}
.news-scroll::-webkit-scrollbar-thumb:hover{ background:var(--text-muted); background-clip:content-box; }
/* スクロール中に左へずれないよう、hover の移動は止める */
.news-scroll .news-item:hover{ transform:none; }
@media (max-width:680px){
  .news-scroll{ max-height:min(62vh, 420px); }
}
@media print{
  .news-scroll{ max-height:none; overflow:visible; -webkit-mask-image:none; mask-image:none; }
}
@media (max-width:680px){
  .news-item{ grid-template-columns:1fr; gap:6px; padding:14px 16px; }
  .tag{ width:auto; padding:2px 10px; }
}
.more-wrap{ display:flex; justify-content:center; margin-top:20px; }

/* ---------- Research ---------- */
.research-grid{
  display:grid; grid-template-columns:1fr;
  gap:clamp(16px,2vw,24px); align-items:start;
}

.figure-card{ padding:14px; overflow:hidden; }
/* 透過PNGでもダークモードで潰れないよう、図版は常に白地に置く */
.figure-card img{ border-radius:12px; width:100%; background:#fff; }
.figure-card figcaption{ margin:12px 4px 2px; font-size:.8rem; color:var(--text-muted); }
/* グラフィカルアブストラクト用：横長の図を大きく見せる */
.figure-wide{ width:100%; max-width:1040px; margin-inline:auto; }
.figure-wide a{ display:block; border-radius:12px; }
.figure-wide figcaption{ text-align:center; }
.figure-wide .zoom-hint{
  display:inline-flex; align-items:center; gap:6px; margin-left:8px;
  color:var(--accent); font-weight:600;
}
.figure-wide .zoom-hint svg{ width:13px; height:13px; }

.topic{ padding:26px 26px 22px; }
.topic h3{
  font-size:1.05rem; line-height:1.6; margin-bottom:12px;
  padding-left:14px; border-left:3px solid var(--accent);
}
.topic p{ font-size:.94rem; color:var(--text-soft); margin-bottom:0; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.chip{
  padding:6px 13px; border-radius:var(--radius-pill);
  background:var(--surface-2); border:1px solid var(--border);
  font-size:.8rem; font-weight:600; color:var(--text-soft);
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.chip:hover{ background:var(--accent-soft); color:var(--accent); border-color:transparent; transform:translateY(-2px); }

/* ---------- Grant ---------- */
.grant{
  position:relative; padding:26px 28px;
  border-left:3px solid var(--accent);
  border-radius:0 var(--radius) var(--radius) 0;
}
.grant h3{ font-size:1.02rem; line-height:1.6; margin-bottom:12px; }
.grant dl{
  margin:0; display:grid; grid-template-columns:auto 1fr; gap:6px 18px;
  font-size:.88rem; color:var(--text-soft);
}
.grant dt{ color:var(--text-muted); font-weight:600; white-space:nowrap; }
.grant dd{ margin:0; }

/* ---------- Publications ---------- */
.pub-list{ display:flex; flex-direction:column; gap:14px; counter-reset:pub; }
.pub{
  position:relative; display:block;
  padding:20px 24px 20px 62px;
  border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--border);
  color:var(--text-soft);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pub::before{
  counter-increment:pub; content:counter(pub);
  position:absolute; left:20px; top:20px;
  width:28px; height:28px; border-radius:9px;
  display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent);
  font-family:var(--font-en); font-size:.8rem; font-weight:700;
}
a.pub:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); border-color:var(--border-strong); color:var(--text-soft); }
.pub .authors{ font-size:.86rem; color:var(--text-muted); margin-bottom:4px; font-family:var(--font-en); }
.pub .authors .me{ color:var(--text); font-weight:700; }
.pub .title{ display:block; font-size:.98rem; font-weight:600; color:var(--text); line-height:1.6; margin-bottom:6px; }
.pub .journal{ font-size:.85rem; color:var(--text-muted); font-style:italic; }
.pub .journal em{ font-style:normal; color:var(--accent); font-weight:600; }
.pub-link{
  position:absolute; right:18px; top:18px; width:16px; height:16px; color:var(--text-muted);
  opacity:0; transform:translate(-4px,4px); transition:opacity .2s ease, transform .2s ease;
}
a.pub:hover .pub-link{ opacity:1; transform:none; color:var(--accent); }
@media (max-width:640px){
  .pub{ padding:18px 18px 18px 18px; }
  .pub::before{ position:static; display:inline-grid; margin-bottom:10px; }
}

/* ---------- Awards ---------- */
.award-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:14px; }
.award{
  display:flex; gap:14px; align-items:flex-start;
  padding:18px 20px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--border);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.award:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); border-color:var(--border-strong); }
.award-icon{
  flex:0 0 auto; width:34px; height:34px; border-radius:11px;
  display:grid; place-items:center;
  background:var(--gold-soft); color:var(--gold);
}
.award-icon svg{ width:18px; height:18px; }
.award-body{ min-width:0; }
.award-body .name{ display:block; font-size:.92rem; font-weight:600; color:var(--text); line-height:1.6; }
.award-body .meta{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-top:6px; font-size:.79rem; color:var(--text-muted);
}
.award-body .meta a{ font-weight:600; }

/* ---------- Conference / Talks ---------- */
.year-block + .year-block{ margin-top:22px; }
.year-label{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-en); font-size:.9rem; font-weight:700; letter-spacing:.06em;
  color:var(--text); margin-bottom:14px;
}
.year-label::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
}
.talk-list{ display:flex; flex-direction:column; gap:10px; }
.talk{
  padding:16px 20px; border-radius:var(--radius-sm);
  background:var(--surface); border:1px solid var(--border);
  border-left:3px solid var(--border-strong);
  transition:border-left-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.talk:hover{ border-left-color:var(--accent); transform:translateX(3px); box-shadow:var(--shadow-xs); }
.talk .t-title{ display:block; font-size:.94rem; font-weight:600; color:var(--text); line-height:1.65; }
.talk .t-authors{ margin-top:5px; font-size:.83rem; color:var(--text-muted); }
.talk .t-authors u{ text-decoration:none; color:var(--text-soft); font-weight:700; border-bottom:1.5px solid var(--accent); }
.talk .t-venue{
  margin-top:7px; font-size:.82rem; color:var(--text-muted);
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
}
.pill{
  display:inline-block; padding:1px 9px; border-radius:var(--radius-pill);
  font-size:.7rem; font-weight:700; letter-spacing:.04em;
  background:var(--surface-2); color:var(--text-muted); border:1px solid var(--border);
}
.pill-oral{ background:var(--accent-soft); color:var(--accent); border-color:transparent; }
.pill-poster{ background:var(--green-soft); color:var(--green); border-color:transparent; }

/* Collapsible group */
details.group{ border:0; }
details.group > summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; gap:12px;
  padding:16px 20px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--border);
  font-weight:700; font-size:.98rem; color:var(--text);
  transition:border-color .2s ease, background .2s ease;
}
details.group > summary::-webkit-details-marker{ display:none; }
details.group > summary:hover{ border-color:var(--border-strong); }
details.group > summary .count{
  margin-left:auto; font-family:var(--font-en); font-size:.78rem; font-weight:700;
  color:var(--accent); background:var(--accent-soft);
  padding:2px 11px; border-radius:var(--radius-pill);
}
details.group > summary .caret{
  width:16px; height:16px; color:var(--text-muted); transition:transform .25s ease;
}
details.group[open] > summary .caret{ transform:rotate(180deg); }
details.group[open] > summary{ border-bottom-left-radius:0; border-bottom-right-radius:0; }
.group-body{ padding:16px 4px 4px; }

/* ---------- Timeline ---------- */
.timeline{ position:relative; padding-left:28px; }
.timeline::before{
  content:""; position:absolute; left:6px; top:8px; bottom:8px; width:2px;
  background:linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity:.45; border-radius:2px;
}
.timeline li{ position:relative; padding:0 0 18px; }
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{
  content:""; position:absolute; left:-28px; top:9px;
  width:14px; height:14px; border-radius:50%;
  background:var(--surface); border:3px solid var(--accent);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.timeline .period{
  font-family:var(--font-en); font-size:.8rem; font-weight:700; letter-spacing:.03em;
  color:var(--accent); display:block;
}
.timeline .body{ font-size:.94rem; color:var(--text-soft); }
.timeline .current{
  display:inline-block; margin-left:8px; padding:1px 9px; border-radius:var(--radius-pill);
  font-size:.68rem; font-weight:700; background:var(--accent); color:#fff; vertical-align:2px;
}

/* ---------- Profile / links ---------- */
/* 上段：写真｜About｜Societies（高さを揃える）／下段：Links（横並び） */
.profile-grid{
  display:grid; gap:14px; align-items:stretch;
  grid-template-columns:280px minmax(0,1.15fr) minmax(0,.85fr);
  grid-template-areas:
    "photo about societies"
    "links links links";
}
/* 写真は About と同じ高さに伸縮させる（行の高さに合わせて切り抜く） */
.profile-photo{
  grid-area:photo; margin:0; position:relative;
  min-height:280px; border-radius:var(--radius);
}
.profile-photo::before{
  content:""; position:absolute; inset:-10px -10px 20px 20px;
  border-radius:var(--radius);
  background:linear-gradient(145deg, var(--accent), var(--accent-2));
  opacity:.14; filter:blur(6px);
}
.profile-photo img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover; object-position:center 22%;
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.info-about{ grid-area:about; }
.info-societies{ grid-area:societies; }
.info-links{ grid-area:links; }

@media (max-width:900px){
  .profile-grid{
    grid-template-columns:220px minmax(0,1fr);
    grid-template-areas:
      "photo about"
      "societies societies"
      "links links";
  }
  .profile-photo{ min-height:240px; }
}
@media (max-width:620px){
  .profile-grid{
    grid-template-columns:1fr;
    grid-template-areas:"photo" "about" "societies" "links";
    justify-items:stretch;
  }
  .profile-photo{ width:min(60%, 200px); min-height:0; aspect-ratio:2/3; }
  .profile-photo img{ position:relative; inset:auto; }
}
.info-card{ padding:24px 26px; }
.info-card h3{
  font-size:.82rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); margin-bottom:14px; font-family:var(--font-en);
}
.info-card dl{ margin:0; display:grid; gap:10px; }
.info-card dt{ font-size:.76rem; color:var(--text-muted); font-weight:600; letter-spacing:.05em; }
.info-card dd{ margin:0 0 4px; font-size:.93rem; color:var(--text-soft); }
.link-list{ display:flex; flex-direction:column; gap:2px; }
.link-list a{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; margin-inline:-12px; border-radius:10px;
  font-size:.9rem; font-weight:600; color:var(--text-soft);
  transition:background .18s ease, color .18s ease;
}
.link-list a:hover{ background:var(--surface-2); color:var(--accent); }
.link-list svg{ width:15px; height:15px; opacity:.6; flex:0 0 auto; }
.link-list a:hover svg{ opacity:1; }

/* Links カードは横並び（チップ状） */
.info-links .link-list{ flex-direction:row; flex-wrap:wrap; gap:8px; }
.info-links .link-list a{
  margin-inline:0; padding:8px 15px;
  border:1px solid var(--border); border-radius:var(--radius-pill);
  background:var(--surface-2); font-size:.86rem; white-space:nowrap;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.info-links .link-list a:hover{
  background:var(--accent-soft); color:var(--accent);
  border-color:transparent; transform:translateY(-2px);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer{
  margin-top:clamp(34px,4.5vw,58px);
  border-top:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 60%, transparent);
  padding:36px 0 28px;
}
.footer-inner{
  display:flex; flex-wrap:wrap; gap:18px 30px; align-items:center; justify-content:space-between;
}
.footer-nav{ display:flex; flex-wrap:wrap; gap:6px 18px; }
.footer-nav a{ font-size:.85rem; font-weight:600; color:var(--text-soft); }
.footer-nav a:hover{ color:var(--accent); }
.site-footer small{ display:block; font-size:.78rem; color:var(--text-muted); }
.site-footer .credit{ font-size:.72rem; color:var(--text-muted); opacity:.75; }

/* ---------- Page-top ---------- */
.pagetop{
  position:fixed; right:22px; bottom:22px; z-index:90;
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--border);
  color:var(--text-soft); box-shadow:var(--shadow-sm); cursor:pointer;
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, color .2s ease, border-color .2s ease;
}
.pagetop.is-visible{ opacity:1; transform:none; pointer-events:auto; }
.pagetop:hover{ color:var(--accent); border-color:var(--accent); }
.pagetop svg{ width:18px; height:18px; }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .reveal{ opacity:1; transform:none; }
}

/* ---------- Print ---------- */
@media print{
  .site-header,.pagetop,.hero-actions,.more-wrap{ display:none !important; }
  body{ background:#fff; color:#000; }
  .card,.pub,.talk,.award,.news-item{ box-shadow:none; border-color:#ccc; }
  details.group{ }
  details.group > summary{ border:0; padding-left:0; }
}
