/* ── Reset & Base ─────────────────────────────────────────────── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --navy:#0f172a;
  --navy2:#1e293b;
  --navy3:#334155;
  --cyan:#22d3ee;
  --cyan2:#06b6d4;
  --white:#f8fafc;
  --gray:#94a3b8;
  --light:#f1f5f9;
  --border:#e2e8f0;
  --radius:12px;
  --shadow:0 4px 24px rgba(0,0,0,.08);
}
html{scroll-behavior:smooth}
body{font-family:'Inter','Noto Sans JP',sans-serif;background:#fff;color:#1e293b;line-height:1.7}

/* ── Nav ──────────────────────────────────────────────────────── */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 5vw;height:64px;
  background:rgba(15,23,42,.95);backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav-logo{color:var(--white);font-weight:600;font-size:1rem;letter-spacing:-.02em;text-decoration:none}
.nav-logo span{color:var(--cyan)}
.nav-links{display:flex;align-items:center;gap:1.6rem;list-style:none}
.nav-links a{color:var(--gray);text-decoration:none;font-size:.88rem;transition:color .2s}
.nav-links a:hover{color:var(--white)}
.nav-links a.active{color:var(--white)}
.lang-btn{
  padding:.3rem .85rem;border-radius:6px;border:1px solid rgba(34,211,238,.4);
  background:transparent;color:var(--cyan);font-size:.8rem;font-family:inherit;
  cursor:pointer;transition:all .2s;text-decoration:none;
}
.lang-btn:hover{background:rgba(34,211,238,.1)}
.nav-menu-btn{display:none;background:none;border:none;color:var(--white);cursor:pointer;font-size:1.4rem}

/* ── Page header (non-hero pages) ─────────────────────────────── */
.page-header{
  padding:120px 5vw 64px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 60%,#0f2744 100%);
  position:relative;overflow:hidden;
}
.page-header::before{
  content:'';position:absolute;top:-30%;right:-10%;
  width:60%;height:130%;
  background:radial-gradient(ellipse at center,rgba(34,211,238,.07) 0%,transparent 70%);
  pointer-events:none;
}
.page-header-inner{max-width:1100px;margin:0 auto;position:relative;z-index:1}
.page-header-tag{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.75rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--cyan);margin-bottom:.8rem;
}
.page-header-tag::before{content:'';width:24px;height:2px;background:var(--cyan)}
.page-header h1{
  font-size:clamp(2rem,4vw,3rem);font-weight:700;color:var(--white);
  letter-spacing:-.03em;line-height:1.2;margin-bottom:.5rem;
}
.page-header p{font-size:1rem;color:#94a3b8;max-width:640px}

/* ── Sections common ──────────────────────────────────────────── */
section{padding:80px 5vw}
.section-inner{max-width:1100px;margin:0 auto}
.section-tag{
  font-size:.75rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--cyan2);margin-bottom:.8rem;display:flex;align-items:center;gap:.5rem;
}
.section-tag::before{content:'';width:24px;height:2px;background:var(--cyan2)}
.section-title{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;letter-spacing:-.03em;margin-bottom:.5rem}
.section-sub{font-size:.95rem;color:#64748b;max-width:640px;margin-bottom:2.5rem}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary{
  display:inline-block;padding:.7rem 1.6rem;
  background:var(--cyan);color:var(--navy);
  font-weight:600;font-size:.9rem;border-radius:8px;
  text-decoration:none;transition:all .2s;
}
.btn-primary:hover{background:#67e8f9;transform:translateY(-1px)}
.btn-outline{
  display:inline-block;padding:.7rem 1.6rem;
  border:1px solid rgba(148,163,184,.4);color:var(--gray);
  font-weight:500;font-size:.9rem;border-radius:8px;
  text-decoration:none;transition:all .2s;
}
.btn-outline:hover{border-color:var(--gray);color:var(--white)}

/* ── Publications ─────────────────────────────────────────────── */
.pub-controls{
  display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-bottom:1.5rem;
}
.pub-search{
  flex:1;min-width:220px;max-width:360px;
  padding:.6rem 1rem;border:1px solid var(--border);border-radius:8px;
  font-family:inherit;font-size:.88rem;outline:none;transition:border-color .2s;
}
.pub-search:focus{border-color:var(--cyan2)}
.tag-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.tag-btn{
  padding:.3rem .85rem;border-radius:20px;border:1px solid var(--border);
  background:#fff;font-size:.78rem;font-weight:500;cursor:pointer;
  transition:all .2s;color:#64748b;font-family:inherit;
}
.tag-btn:hover{border-color:currentColor}
.tag-btn.active{color:#fff;border-color:transparent}
.first-author-toggle{
  display:flex;align-items:center;gap:.5rem;cursor:pointer;
  font-size:.85rem;color:#64748b;user-select:none;
}
.first-author-toggle input{width:16px;height:16px;accent-color:var(--cyan2);cursor:pointer}
.pub-count{font-size:.85rem;color:#94a3b8;margin-bottom:1rem}
.pub-list{display:flex;flex-direction:column;gap:1rem}
.pub-item{
  padding:1.4rem 1.6rem;border-radius:var(--radius);
  border:1px solid var(--border);transition:border-color .2s;
  display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:start;
}
.pub-item:hover{border-color:rgba(6,182,212,.3)}
.pub-item.role-first{border-left:4px solid #0f766e}
.pub-item.role-corr{border-left:4px solid #7c3aed}
.pub-item.role-last{border-left:4px solid #b45309}
.pub-item.role-first.role-corr{border-left:4px solid #0f766e}
.role-badge{
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.15rem .55rem;border-radius:10px;font-size:.68rem;font-weight:700;
  letter-spacing:.02em;color:#fff;
}
.pub-title{font-size:.92rem;font-weight:600;margin-bottom:.4rem;line-height:1.5;color:#1e293b}
.pub-title a{color:inherit;text-decoration:none}
.pub-title a:hover{color:var(--cyan2)}
.pub-authors{font-size:.8rem;color:#64748b;margin-bottom:.4rem;line-height:1.5}
.pub-authors .highlight{color:var(--navy);font-weight:600}
.pub-journal{font-size:.8rem;color:#94a3b8;font-family:'JetBrains Mono',monospace}
.pub-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.6rem}
.pub-tag{
  padding:.18rem .6rem;border-radius:12px;font-size:.7rem;font-weight:600;
  color:#fff;letter-spacing:.02em;
}
.pub-year{
  font-size:.8rem;font-weight:600;color:#94a3b8;white-space:nowrap;
  font-family:'JetBrains Mono',monospace;
}
.pub-doi{font-size:.75rem;color:#94a3b8;margin-top:.3rem}
.pub-doi a{color:var(--cyan2);text-decoration:none}
.pub-doi a:hover{text-decoration:underline}
.no-results{text-align:center;padding:3rem;color:#94a3b8;font-size:.95rem}

/* ── Footer ───────────────────────────────────────────────────── */
footer{
  background:#0a1628;color:#475569;
  padding:2rem 5vw;text-align:center;font-size:.8rem;
}
footer a{color:#64748b;text-decoration:none}
footer a:hover{color:#94a3b8}
.footer-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:.6rem;align-items:center}
.footer-links{display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:center}

/* ── Responsive ───────────────────────────────────────────────── */
@media(max-width:768px){
  nav{padding:0 4vw}
  .nav-links{display:none}
  .nav-menu-btn{display:block}
  section{padding:56px 4vw}
  .page-header{padding:100px 4vw 48px}
  .pub-item{grid-template-columns:1fr}
  .pub-year{display:none}
}
