:root{
  --bg:#f6f7f3;
  --panel:#ffffff;
  --fg:#18211b;
  --muted:#5e6a61;
  --line:#dde3da;
  --line-strong:#ccd6cb;
  --accent:#4caf50;
  --accent-soft:#eef7ee;
  --shadow:0 10px 22px rgba(24,33,27,.05);
  --radius:22px;
  --container:1160px;
}
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--fg);
  background:var(--bg);
  font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%; display:block}
.container{width:min(var(--container), calc(100% - 32px)); margin:0 auto}
a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline; text-underline-offset:.18em}
:focus-visible{outline:3px solid rgba(76,175,80,.28); outline-offset:2px; border-radius:12px}

/* header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(246,247,243,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:74px;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brandmark{
  width:38px;
  height:38px;
  flex:0 0 auto;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line-strong);
  background:#fff;
  box-shadow:var(--shadow);
}
.brandmark img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}
.brandtext{
  display:flex;
  flex-direction:column;
}
.brand strong{
  font-size:22px;
  line-height:1.05;
  letter-spacing:.01em;
}
.brand span{
  font-size:13px;
  line-height:1.1;
  color:var(--muted);
  margin-top:3px;
}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
}
.nav a{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:14px;
  transition:background .16s ease, border-color .16s ease;
}
.nav a:hover{
  text-decoration:none;
  background:#fff;
  border-color:var(--line);
}
.nav a[aria-current="page"]{
  background:var(--accent-soft);
  border-color:#cfe3cf;
}
.menu-btn{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--line-strong);
  background:#fff;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after{
  display:block;
  content:"";
  width:18px;
  height:2px;
  background:var(--fg);
  border-radius:99px;
}
.menu-btn span{
  position:relative;
  margin:0 auto;
}
.menu-btn span::before{
  position:absolute;
  top:-6px;
  left:0;
}
.menu-btn span::after{
  position:absolute;
  top:6px;
  left:0;
}
@media (max-width:920px){
  .menu-btn{display:block}
  .nav{
    display:none;
    position:fixed;
    top:74px;
    left:16px;
    right:16px;
    flex-direction:column;
    align-items:stretch;
    padding:12px;
    background:#fff;
    border:1px solid var(--line-strong);
    border-radius:18px;
    box-shadow:0 16px 32px rgba(24,33,27,.08);
  }
  body.nav-open .nav{display:flex}
}

/* generic */
.kicker{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.section{padding:28px 0}
.section h2{
  margin:0 0 10px;
  font-size:30px;
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:800;
}
.small-note{
  font-size:13px;
  color:var(--muted);
}

.panel,
.card,
.quick-card,
.group,
.rh,
.research-topic-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 18px 0;
}
.panel-head h2{
  margin:0;
  font-size:24px;
  line-height:1.25;
  letter-spacing:-.02em;
  font-weight:760;
  color:var(--fg);
}
.panel-body{padding:18px}
.panel-body > *:first-child{margin-top:0}
.panel-body > *:last-child{margin-bottom:0}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  background:#fff;
  color:var(--fg);
  font-size:14px;
  font-weight:650;
  box-shadow:var(--shadow);
  transition:transform .16s ease, background .16s ease;
}
.btn:hover{
  text-decoration:none;
  transform:translateY(-1px);
}
.btn.primary{
  background:var(--accent-soft);
  border-color:#cfe3cf;
}
.btn.primary:hover{background:#e6f2e6}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid #d8e5d8;
  background:#f7fbf7;
  font-size:12px;
}

/* hero */
.hero{padding:34px 0 20px}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(360px, 500px);
  gap:16px;
  align-items:start;
}
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr}
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero h1{
  margin:0;
  font-size:clamp(40px, 6vw, 62px);
  line-height:1.08;
  letter-spacing:-.03em;
}
.hero p{
  margin:16px 0 0;
  color:var(--muted);
  font-size:16px;
  max-width:52em;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.rh{
  overflow:hidden;
  min-width:0;
}
.rh-inner{padding:14px}
.rh-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.rh-title{
  margin:0;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.16em;
  text-transform:uppercase;
}
.rh-stage{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#e8ebe6;
}
.rh-slide{
  position:absolute;
  inset:0;
  display:none;
}
.rh-slide.is-active{display:block}
.rh-media{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e8ebe6;
}
.rh-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  background:transparent;
}
.rh-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
}
.rh-dots{
  display:flex;
  gap:8px;
}
.rh-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  border:1px solid #b9c9b9;
  background:#eef3ee;
  padding:0;
}
.rh-dot[aria-current="true"]{
  background:var(--accent);
  border-color:var(--accent);
}
.rh-btn{
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid var(--line-strong);
  background:#fff;
  box-shadow:var(--shadow);
}

/* home */
.home-about-title{
  margin:0 0 12px;
  font-size:32px;
  line-height:1.25;
  letter-spacing:-.02em;
}
.home-about-text{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}
.home-links-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width:900px){
  .home-links-row{grid-template-columns:1fr}
}
.quick-card{
  padding:18px;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.quick-card h3{margin:0 0 8px; font-size:18px}
.quick-card p{margin:0 0 14px; color:var(--muted)}
.quick-card .btn{
  margin-top:auto;
  align-self:flex-start;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width:900px){
  .cards{grid-template-columns:1fr}
}
.card{overflow:hidden}
.card .thumb{
  aspect-ratio:16/9;
  background:#f0f2ef;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
}
.card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.card .body{padding:16px}
.card .body h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
}
.card .body p{
  margin:0;
  color:var(--muted);
}

/* lab */
.research-fields-title{
  margin:0 0 12px;
  font-size:22px;
  line-height:1.3;
  letter-spacing:-.01em;
  font-weight:750;
}
.research-fields-list{
  margin:0;
  padding-left:22px;
}
.research-fields-list li{
  margin:8px 0;
  font-size:16px;
}
.research-refresh-panel{max-width:980px}
.research-welcome{
  margin:0;
  font-size:clamp(40px, 5.4vw, 64px);
  line-height:1.08;
  letter-spacing:-.035em;
  font-weight:800;
}
.research-welcome-sub{
  margin:12px 0 0;
  font-size:16px;
  color:var(--muted);
  line-height:1.8;
}

/* people */
.members-lead{
  margin:0 0 18px;
  font-size:20px;
  line-height:1.65;
  font-weight:600;
}
.members-lead a{
  text-decoration:underline;
  text-underline-offset:.18em;
}
.members-panel{overflow:hidden}
.member-row{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:18px;
  padding:16px 18px;
  border-top:1px solid var(--line);
}
.member-row:first-child{border-top:0}
@media (max-width:760px){
  .member-row{
    grid-template-columns:1fr;
    gap:10px;
  }
}
.member-role{
  font-size:15px;
  font-weight:700;
}
.member-list{
  margin:0;
  padding-left:18px;
}
.member-list li{margin:4px 0}

.employment-list{display:grid; gap:12px}
.employment-major{padding:18px}
.employment-major > h3{
  margin:0 0 14px;
  font-size:20px;
}
.employment-subsection{
  border-top:1px solid var(--line);
  padding-top:14px;
  margin-top:14px;
}
.employment-subsection:first-of-type{
  border-top:0;
  margin-top:0;
  padding-top:0;
}
.employment-subsection h4{
  margin:0 0 10px;
  font-size:16px;
}
.employment-subsection ul{
  margin:0;
  padding-left:18px;
}
.employment-subsection li{margin:6px 0}

/* access */
.info-title{
  margin:0 0 12px;
  font-size:22px;
  line-height:1.25;
  letter-spacing:-.01em;
  font-weight:750;
}
.access-page-stack,
.link-groups{display:grid; gap:12px}
.link-group-list{
  margin:0;
  padding-left:18px;
}
.link-group-list li{
  margin:8px 0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.link-group-list a{line-height:1.7}

/* research intro */
.research-topic-stack{display:grid; gap:12px}
.research-topic-card{
  display:grid;
  grid-template-columns:minmax(340px, 460px) minmax(0, 1fr);
  gap:16px;
  overflow:hidden;
}
.research-topic-media{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef1ec;
  border-right:1px solid var(--line);
}
.research-topic-media img{
  width:100%;
  height:100%;
  min-height:280px;
  object-fit:contain;
  background:#eef1ec;
}
.research-topic-body{padding:18px}
.research-topic-body h3{
  margin:0 0 12px;
  font-size:26px;
  line-height:1.28;
  letter-spacing:-.02em;
}
.research-topic-body p{
  margin:0;
  color:var(--muted);
}
@media (max-width:920px){
  .research-topic-card{grid-template-columns:1fr}
  .research-topic-media{
    border-right:0;
    border-bottom:1px solid var(--line);
  }
}

footer{
  padding:24px 0 40px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

/* Home main research cards: show full image without cropping */
.cards .card .thumb{background:#eef1ec}
.cards .card .thumb img{
  object-fit:contain;
  background:#eef1ec;
}

/* Pictogram buttons on home */
.home-picto-buttons{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.picto-button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:220px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow);
  text-decoration:none;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.picto-button:hover{
  text-decoration:none;
  transform:translateY(-1px);
  border-color:var(--line-strong);
  background:#fbfcfa;
}
.picto-icon{
  width:88px;
  height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.picto-icon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:var(--fg);
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.picto-label{
  font-size:22px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--fg);
}
@media (max-width:900px){
  .home-picto-buttons{grid-template-columns:1fr}
  .picto-button{min-height:160px}
}
