@charset "utf-8";

:root {
  --ink: #172235;
  --muted: #637083;
  --navy: #071c37;
  --navy-2: #0d2c52;
  --blue: #116fb3;
  --cyan: #39a5c8;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --line: #dbe3eb;
  --warm: #f6b73c;
  --shadow: 0 18px 50px rgba(16, 38, 65, .10);
  --radius: 22px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, html, #mainimg { width: 100%; height: auto; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #0f66a4; text-underline-offset: .16em; }
a:hover { color: #0b4d7e; }

/* ---------- Header ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: visible;
  background: rgba(7, 28, 55, .96);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}
.home header { background: rgba(7, 28, 55, .88); border-bottom: 1px solid rgba(255,255,255,.14); }
header #logo, header #logo-e {
  float: none;
  margin: 0;
  flex: 0 1 auto;
  line-height: 1;
}
header #logo { width: min(430px, 35vw); }
header #logo-e { width: min(470px, 40vw); }
header #logo img, header #logo-e img { display: block; width: 100%; }
header #news { display: none; }
#menubar {
  float: none;
  margin-left: auto;
  width: auto;
  overflow: visible;
}
#menubar ul { display: flex; align-items: center; gap: 2px; }
#menubar li { float: none; }
#menubar li a,
#menubar li a.headsec {
  display: block;
  padding: 10px 12px;
  color: rgba(255,255,255,.83);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .025em;
  border-radius: 999px;
  transition: .2s ease;
}
#menubar li a:hover,
#menubar li.current a {
  color: #fff;
  background: rgba(255,255,255,.12);
}
header .iconsw {
  float: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}
header .iconsw li { display: inline-flex; align-items: center; }
header .iconsw img { width: 54px; margin: 0; opacity: .88; }
header .iconsw a:hover img { opacity: 1; }

/* ---------- Landing ---------- */
body.modern-landing { background: #fff; }
.landing-shell { min-height: 100vh; background: var(--paper); }
.landing-hero {
  position: relative;
  min-height: 760px;
  padding: 132px clamp(24px, 6vw, 88px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(57,165,200,.20), transparent 32%),
    linear-gradient(135deg, #06172e 0%, #0a2748 55%, #0d345e 100%);
}
.landing-hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  right: -220px;
  bottom: -240px;
  box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.012);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #89d7ed;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: #89d7ed; }
.landing-hero h1 {
  margin: 0 0 24px;
  max-width: 780px;
  color: #fff;
  font-size: clamp(46px, 5.7vw, 82px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 760;
}
.landing-hero h1 .jp-title { font-size: .74em; letter-spacing: -.025em; }
.hero-lead {
  margin: 0 0 32px;
  max-width: 680px;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: .2s ease;
}
.btn-primary { color: #07223d; background: #fff; }
.btn-primary:hover { color: #07223d; transform: translateY(-2px); background: #eef8fc; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.38); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }
.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 560px;
}
.hero-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.hero-panel:first-child { grid-row: 1 / span 2; }
.hero-panel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.hero-panel:hover img { transform: scale(1.035); }
.hero-panel .visual-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(4,18,35,.68);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.landing-section {
  padding: 92px clamp(24px, 6vw, 88px);
}
.landing-section.soft { background: var(--soft); }
.section-inner { max-width: var(--content); margin: 0 auto; }
.section-kicker { margin: 0 0 10px; color: var(--blue); font-weight: 760; font-size: 13px; letter-spacing: .13em; text-transform: uppercase; }
.section-title { margin: 0; color: var(--navy); font-size: clamp(32px, 3.3vw, 48px); line-height: 1.22; letter-spacing: -.025em; }
.section-intro { margin: 20px 0 0; max-width: 800px; color: var(--muted); font-size: 17px; }
.research-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.research-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 20px;
  background: #0b2440;
  box-shadow: 0 14px 35px rgba(16,38,65,.10);
}
.research-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.research-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(4,20,39,.93)); }
.research-card span { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 17px; color: #fff; font-weight: 760; font-size: 15px; line-height: 1.35; }
.research-card:hover img { transform: scale(1.055); }
.people-feature {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.people-photo { overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); }
.people-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.people-copy p { color: var(--muted); font-size: 17px; }
.landing-footer {
  padding: 34px clamp(24px, 6vw, 88px);
  color: rgba(255,255,255,.62);
  background: #06172e;
  font-size: 13px;
}
.landing-footer-inner { max-width: var(--content); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; }

/* ---------- Legacy page modernization ---------- */
body:not(.modern-landing) { padding-top: 76px; }
#contents {
  clear: both;
  width: min(calc(100% - 40px), var(--content));
  max-width: var(--content);
  margin: 56px auto 80px;
  padding: clamp(38px, 5vw, 72px);
  background: #fff;
  border: 1px solid rgba(219,227,235,.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
#contents > section { max-width: 100%; }
#contents h2 {
  position: relative;
  margin: 0 0 44px;
  padding: 0 0 20px;
  color: var(--navy);
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 760;
}
#contents h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
#contents h2 span {
  display: inline-block;
  margin: 0 0 0 14px;
  color: #8090a2;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: middle;
}
#contents h3 {
  margin: 48px 0 16px;
  padding: 0 0 0 17px;
  color: var(--navy-2);
  background: none;
  border-left: 3px solid var(--cyan);
  font-size: 23px;
  line-height: 1.45;
  font-weight: 720;
}
#contents h1:not(#logo):not(#logo-e) {
  margin: 18px 0 28px;
  color: var(--ink);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.82;
}
#contents p {
  margin: 0;
  padding: 0 0 22px;
  color: #2c3748;
  max-width: 100%;
}
#contents h2 + p, #contents h3 + p { margin-top: 0; }
#contents p + p { margin-top: 0; }
#contents ol, #contents ul.disc { padding-left: 1.5em; margin: 0 0 24px; }
#contents ol li, #contents ul.disc li { margin: 6px 0; padding-left: 4px; }
#contents a { font-weight: 560; }
#contents table {
  max-width: 100%;
  margin: 18px auto 34px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line) !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
#contents table[border="0"] { border: 0 !important; background: transparent; }
#contents table td, #contents table th,
.ta1 td, .ta1 th {
  padding: 13px 15px;
  border: 0 !important;
  border-bottom: 1px solid #e5ebf0 !important;
  vertical-align: top;
  word-break: normal;
}
#contents table tr:last-child td, #contents table tr:last-child th { border-bottom: 0 !important; }
#contents table tr:nth-child(even) { background: #f8fafc; }
#contents table[border="0"] tr:nth-child(even) { background: transparent; }
.ta1 { width: 100%; table-layout: auto; }
.ta1 th { width: 180px; color: var(--navy); background: #f3f7fa; text-align: left; font-weight: 700; }
#contents table img { border-radius: 12px; }
#contents > section > table[border="0"] img,
#contents > table[border="0"] img { box-shadow: 0 12px 28px rgba(16,38,65,.08); }

/* Research overview cards */
#contents .list {
  float: none;
  display: inline-block;
  vertical-align: top;
  position: relative;
  width: calc(33.333% - 18px);
  margin: 0 14px 24px 0;
  overflow: hidden;
  background: #0a223d;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(16,38,65,.10);
}
#contents .list:nth-of-type(3n) { margin-right: 0; }
#contents .list a { display: block; color: #fff; text-decoration: none; }
#contents .list figure { margin: 0; aspect-ratio: 1/1; overflow: hidden; }
#contents .list figure img { width: 100%; height: 100%; object-fit: cover; opacity: 1; border-radius: 0; transition: transform .45s ease; }
#contents .list a:hover figure img { transform: scale(1.045); }
#contents .list h4 {
  position: absolute;
  inset: auto 0 0;
  width: auto;
  padding: 42px 18px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(4,18,35,.92));
  font-weight: 720;
  line-height: 1.35;
  text-align: left;
}
#contents .list h4:hover { position: absolute; inset: auto 0 0; width: auto; padding: 42px 18px 16px; background: linear-gradient(transparent, rgba(4,18,35,.92)); text-align: left; }
#contents .list a::after {
  content: "↗";
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  color: #fff;
  background: rgba(4,18,35,.55);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

/* News */
#new dl { padding: 0; border-top: 1px solid var(--line); }
#new dt, #new dd {
  float: none;
  width: auto;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
#new dt {
  display: inline-block;
  width: 170px;
  padding: 17px 0 15px;
  color: #6b7787;
  font-size: 13px;
  letter-spacing: .04em;
  vertical-align: top;
}
#new dd {
  display: inline-block;
  width: calc(100% - 176px);
  padding: 15px 0 15px 22px;
  color: #283446;
}
#new dt span { width: auto; margin-left: 8px; padding: 2px 7px; border-radius: 999px; font-size: 10px; }
.newicon { background: #d84141; border-radius: 999px; padding: 2px 7px; }

/* Publications */
body:has(#contents h2) #contents table[border="2"],
body:has(#contents h2) #contents table[border="1"] { width: 100%; }
#contents h3 + table[border="2"] td:first-child { width: 44px; color: #8793a1; font-weight: 700; }

/* Footer */
footer {
  clear: both;
  padding: 32px 20px 38px;
  color: #7d8998;
  background: transparent;
  text-align: center;
  font-size: 12px;
}
footer a { color: #526174; }
body .nav-fix-pos-pagetop a,
body.is-fixed-pagetop .nav-fix-pos-pagetop a {
  z-index: 120;
  width: 44px;
  line-height: 44px;
  right: 24px;
  bottom: 24px;
  color: #fff;
  background: rgba(7,28,55,.88);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
body.is-fixed-pagetop .nav-fix-pos-pagetop a:hover { background: var(--blue); }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  header #logo-e { width: 360px; }
  header #logo { width: 340px; }
  #menubar li a, #menubar li a.headsec { padding-inline: 8px; font-size: 13px; }
  .research-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  body { font-size: 15px; }
  body:not(.modern-landing) { padding-top: 72px; }
  header {
    min-height: 72px;
    position: fixed;
    padding: 11px 76px 11px 16px;
    text-align: left;
  }
  header #logo, header #logo-e { float: none; width: min(500px, 74vw); margin: 0; }
  header .iconsw, #menubar { display: none; }
  #menubar_hdr {
    display: block;
    position: fixed;
    z-index: 150;
    top: 12px;
    right: 14px;
  }
  #menubar_hdr.close, #menubar_hdr.open {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.35);
    background-size: 46px;
  }
  #menubar-s {
    z-index: 140;
    padding: 88px 24px 24px;
    background: rgba(5,22,43,.97);
    border: 0;
  }
  #menubar-s li a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,.13);
    color: #fff;
    font-size: 16px;
  }
  #contents {
    width: min(calc(100% - 24px), var(--content));
    margin: 28px auto 56px;
    padding: 34px 22px;
    border-radius: 20px;
  }
  #contents h2 { margin-bottom: 32px; }
  #contents h3 { margin-top: 36px; font-size: 20px; }
  #contents p { padding-bottom: 18px; }
  #contents .list { width: calc(50% - 9px); margin: 0 14px 18px 0; }
  #contents .list:nth-of-type(3n) { margin-right: 14px; }
  #contents .list:nth-of-type(2n) { margin-right: 0; }
  #new dt, #new dd { display: block; width: 100%; }
  #new dt { padding-bottom: 3px; border-bottom: 0; }
  #new dd { padding: 0 0 14px; }
  .landing-hero {
    min-height: auto;
    padding: 116px 24px 62px;
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-visual { min-height: 430px; }
  .landing-section { padding: 70px 24px; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .people-feature { grid-template-columns: 1fr; }
  .landing-footer-inner { flex-direction: column; gap: 4px; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .landing-hero h1 { font-size: 42px; }
  .hero-visual { min-height: 390px; gap: 9px; }
  .hero-panel { border-radius: 16px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 280px; }
  #contents .list { width: 100%; margin-right: 0 !important; }
  #contents table { display: block; overflow-x: auto; }
  .ta1 th { width: 125px; }
  header #logo, header #logo-e { width: 70vw; }
}

/* Landing pages load this stylesheet without the legacy navigation defaults. */
.modern-landing #menubar ul,
.modern-landing #menubar-s ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.modern-landing #menubar-s,
.modern-landing #menubar_hdr { display: none; }
@media (max-width: 800px) {
  .modern-landing #menubar-s {
    display: block;
    position: fixed;
    inset: 0;
    overflow-y: auto;
  }
  .modern-landing #menubar-s li a {
    display: block;
    text-decoration: none;
  }
  .modern-landing #menubar_hdr {
    display: block;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(0,0,0,.5) url(../images/icon_menu.png) no-repeat center top / 46px;
  }
  .modern-landing #menubar_hdr.open { background-position: center bottom; }
}
