@charset "utf-8";

:root {
  --bg: #f4f7f6;
  --paper: #ffffff;
  --ink: #17201f;
  --muted: #5f6f6a;
  --brand: #0f8a5f;
  --brand-dark: #07543f;
  --brand-soft: #e4f4ee;
  --line: #dfe8e4;
  --shadow: 0 18px 45px rgba(6, 61, 48, 0.12);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 138, 95, 0.16), transparent 30rem),
    linear-gradient(180deg, #fbfdfc 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 232, 228, 0.85);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #63c38f);
  box-shadow: 0 10px 25px rgba(15, 138, 95, 0.22);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-title {
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.2;
}
.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}
.nav a:hover,
.nav a.current {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

main { max-width: var(--max); margin: 0 auto; padding: 40px 24px 72px; }
.hero {
  margin: 28px 0 34px;
  padding: clamp(32px, 6vw, 70px);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(135deg, rgba(7, 84, 63, 0.92), rgba(15, 138, 95, 0.82)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 20rem);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -180px;
  border-radius: 50%;
  border: 48px solid rgba(255, 255, 255, 0.12);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.9rem;
}
.hero h1 {
  margin: 20px 0 10px;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.hero .lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2.6vw, 1.28rem);
}
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.4);
}
.button.primary { background: #fff; color: var(--brand-dark); }
.button.secondary { color: #fff; }
.button:hover { text-decoration: none; transform: translateY(-1px); }

.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(14, 47, 39, 0.06);
  padding: clamp(22px, 4vw, 36px);
  margin: 24px 0;
}
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  position: relative;
  padding-left: 16px;
}
.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 5px;
  height: 1.2em;
  border-radius: 8px;
  background: var(--brand);
}
.section h3 { margin: 28px 0 10px; color: var(--brand-dark); font-size: 1.18rem; }
.section p { margin: 0 0 16px; }
.muted { color: var(--muted); }

.contact-name-block,
.member-name-block {
  margin: 4px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-affiliation {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  letter-spacing: 0.02em;
}
.contact-name-ja {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
}
.contact-name-en {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.45;
}


.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card img { border-radius: 14px; border: 1px solid var(--line); margin-top: 14px; }

.profile {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.info-list { display: grid; gap: 10px; margin: 0; }
.info-list div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.info-list dt { color: var(--muted); font-weight: 700; }
.info-list dd { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: #fff; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
tr:last-child td { border-bottom: none; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: center;
}
.logo-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.news-list { padding-left: 1.2em; margin: 0; }
.news-list li { margin-bottom: 8px; }

.site-footer {
  background: #0b2d25;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 24px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.footer-title { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.footer-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a { color: rgba(255, 255, 255, 0.88); }
.site-notice { max-width: var(--max); margin: 0 auto; padding: 0 24px 14px; text-align: center; color: rgba(255, 255, 255, 0.72); line-height: 1.7; }
.copyright { border-top: 1px solid rgba(255,255,255,0.14); text-align: center; padding: 14px 24px; font-size: 0.82rem; }


.profile-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(14, 47, 39, 0.12);
  background: #fff;
}
.small-photo {
  max-width: 180px;
  margin: 0 0 18px;
  border-radius: 24px;
}
.profile-detail {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 32px;
  align-items: start;
}
.profile-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.92rem;
}
.coming-soon {
  text-align: center;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(15, 138, 95, 0.09), transparent 18rem),
    linear-gradient(180deg, #fff, #fbfdfc);
}

@media (max-width: 820px) {
  .site-header { position: static; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav a { text-align: center; background: #f4f7f6; padding: 10px 8px; }
  main { padding: 20px 14px 44px; }
  .hero { margin-top: 10px; border-radius: 24px; padding: 30px 22px; }
  .grid.two, .grid.three, .profile, .profile-detail { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .profile-photo { max-width: 260px; }
}

@media (max-width: 480px) {
  .brand-title { font-size: 1rem; }
  .brand-subtitle { font-size: 0.72rem; }
  .nav { grid-template-columns: 1fr; }
  .section { padding: 20px 16px; }
  table { min-width: 560px; }
}

/* v3 additions */
.hero-home {
  background-image: linear-gradient(135deg, rgba(5, 85, 115, 0.90), rgba(40, 142, 105, 0.82)), url("images/TUS.png");
  background-size: cover, min(520px, 70%);
  background-position: center, right 28px center;
  background-repeat: no-repeat;
}
.theme-grid .theme-card { position: relative; overflow: hidden; }
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(26, 104, 137, 0.10);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}
.vision-section .vision-box {
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(137, 207, 64, 0.12), rgba(26, 104, 137, 0.08));
}
.research-topic {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: center;
}
.research-topic.reverse { direction: rtl; }
.research-topic.reverse > * { direction: ltr; }
.section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topic-figure {
  margin: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
}
.topic-figure img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.topic-figure figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 10px;
  text-align: center;
}
.feature-list {
  margin: 20px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.feature-list li {
  position: relative;
  padding-left: 1.5em;
}
.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05em;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .research-topic,
  .research-topic.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .hero-home { background-size: cover, 90%; background-position: center, center bottom 18px; }
}


.topic-figure.wide-figure img {
  border-radius: 18px;
  background: #050505;
}

.activity-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, var(--brand-soft));
  color: var(--muted);
  font-weight: 700;
}

/* Tall research figure for device photos */
.tall-figure img {
  max-height: 900px;
  object-fit: contain;
  background: #fff;
}


/* Two-figure layout for the injection plasma probe section */
.research-topic-full .topic-text {
  max-width: 980px;
}
.plasma-figure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.55fr);
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}
.plasma-figure-layout .topic-figure {
  height: 100%;
}
.plasma-figure-layout img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.plasma-concept img {
  border: 1px solid rgba(223, 232, 228, 0.9);
}
.plasma-device {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.plasma-device img {
  max-height: 520px;
}
@media (max-width: 900px) {
  .plasma-figure-layout {
    grid-template-columns: 1fr;
  }
  .plasma-device img {
    max-height: none;
  }
}

.video-link {
  margin-top: 18px;
}
.video-link a {
  display: inline-block;
  margin-right: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(26, 104, 137, 0.10);
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.video-link a:hover {
  background: rgba(26, 104, 137, 0.18);
}

/* Two-figure layout for the robotic colonoscope section */
.robot-figure-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.robot-figure-layout .topic-figure img {
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}
@media (min-width: 1100px) {
  .robot-figure-layout .topic-figure img {
    max-height: 360px;
  }
}

/* Keep the plasma device detail figure compact */
.plasma-device {
  max-width: 420px;
}
.plasma-device img {
  max-height: 420px;
}
@media (max-width: 900px) {
  .plasma-device {
    max-width: 100%;
  }
  .plasma-device img {
    max-height: 520px;
  }
}

/* Outlook paragraph at the end of each research theme */
.outlook {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: rgba(11, 143, 172, 0.08);
  border-radius: 0 14px 14px 0;
}
.outlook strong {
  color: var(--accent-dark);
}

/* NIR-HSI research figures */
.nirhsi-figure-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}
.nirhsi-figure-layout .topic-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.nirhsi-wide img {
  border: 1px solid rgba(223, 232, 228, 0.9);
}
@media (min-width: 1100px) {
  .nirhsi-figure-layout {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* NIR-HSI three-figure layout */
.nirhsi-figure-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 28px;
}
.nirhsi-overview img {
  max-height: 620px;
  object-fit: contain;
}
.nirhsi-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.nirhsi-two-column .topic-figure img {
  max-height: 430px;
  object-fit: contain;
}
@media (max-width: 900px) {
  .nirhsi-two-column {
    grid-template-columns: 1fr;
  }
  .nirhsi-overview img,
  .nirhsi-two-column .topic-figure img {
    max-height: none;
  }
}

/* v12: balance Theme 01 figures and add clearer text hierarchy */
.research-topic-full .topic-text h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.45rem;
  color: var(--accent-dark);
  font-size: 1.12rem;
}
.nirhsi-figure-layout {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.nirhsi-overview {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.nirhsi-overview img {
  max-height: 390px;
  width: 100%;
  object-fit: contain;
}
.nirhsi-two-column {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.nirhsi-two-column .topic-figure img {
  max-height: 360px;
}
@media (min-width: 1100px) {
  .nirhsi-figure-layout {
    gap: 18px;
  }
  .nirhsi-overview img {
    max-height: 360px;
  }
}
@media (max-width: 900px) {
  .nirhsi-overview {
    max-width: 100%;
  }
  .nirhsi-overview img,
  .nirhsi-two-column .topic-figure img {
    max-height: none;
  }
}

/* Member page: keep the profile block a little more modest than the top highlight */
.member-name-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.member-name-block .contact-affiliation {
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}
.member-name-block .contact-name-ja {
  margin-top: 6px;
  font-size: clamp(1.28rem, 1.9vw, 1.62rem);
  letter-spacing: 0.05em;
}
.member-name-block .contact-name-en {
  font-size: clamp(0.9rem, 1.15vw, 1rem);
}


/* Biography page */
.biography-section {
  display: grid;
  gap: 22px;
}
.biography-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
  padding: 22px;
}
.biography-block h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--brand-dark);
}
.biography-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.biography-list div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.biography-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.biography-list dt {
  color: var(--muted);
  font-weight: 800;
}
.biography-list dd {
  margin: 0;
}
.career-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.career-list li {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.career-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.career-period {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.career-text {
  min-width: 0;
}
@media (max-width: 820px) {
  .biography-list div,
  .career-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .career-period {
    white-space: normal;
  }
}


/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.35);
}
.lang-switch a {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.lang-switch a.current-lang {
  color: var(--brand-dark);
  background: #fff;
  border-radius: 999px;
  padding: 3px 8px;
}
@media (max-width: 820px) {
  .lang-switch {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}


/* Access page */
.access-card h3 { margin-top: 0; }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef5f2;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-top: 0;
}
.caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.access-info dd { margin-bottom: 0; }

/* Activity gallery */
.activity-year-section {
  display: grid;
  gap: 20px;
}
.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 6px;
}
.section-heading-row h2 {
  margin: 0;
}
.activity-entry {
  display: grid;
  gap: 14px;
}
.activity-entry-header {
  display: grid;
  gap: 6px;
}
.activity-entry-header h3 {
  margin: 0;
}
.activity-date {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.activity-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.activity-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.activity-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  margin: 0;
}
.activity-gallery figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .activity-gallery {
    grid-template-columns: 1fr;
  }
}
