/* Toda Laboratory website
   Slide-updated draft, 2026-10-05
*/
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #d9e0ea;
  --primary: #2a1b68;
  --primary-2: #4e3b91;
  --blue: #1d5c9f;
  --accent: #3f7d37;
  --accent-2: #0f766e;
  --warm: #fff7d7;
  --shadow: 0 12px 34px rgba(35, 25, 80, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic Medium", Meiryo, sans-serif;
  line-height: 1.75;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  color: #fff;
  background:
    radial-gradient(circle at 92% 20%, rgba(137, 110, 255, .35), transparent 26%),
    linear-gradient(135deg, #23145b 0%, #342070 50%, #1a2f73 100%);
  border-bottom: 5px solid rgba(255,255,255,0.18);
}
.header-inner { max-width: 1120px; margin: 0 auto; padding: 26px 22px 20px; }
.brand { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.brand h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: .04em; }
.brand .en { margin-top: 2px; font-size: 1.02rem; opacity: .94; }
.lang-note { font-size: .92rem; opacity: .84; }
.affiliation { margin: 14px 0 0; font-size: .96rem; opacity: .96; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.nav a, .lang-switch a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: #fff;
  font-size: .93rem;
  background: rgba(255,255,255,.08);
}
.nav a:hover, .lang-switch a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 22px 54px; }
.hero { margin: 8px 0 28px; }
.hero-card, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.hero-card { padding: clamp(26px, 5vw, 48px); position: relative; overflow: hidden; }
.hero-card::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: -95px; top: -120px;
  background: radial-gradient(circle, rgba(70, 125, 55, .16), transparent 68%);
  pointer-events: none;
}
.hero-card h2 { margin: 0 0 14px; color: var(--primary); font-size: clamp(1.55rem, 3.2vw, 2.35rem); line-height: 1.35; }
.lead { margin: 0; font-size: 1.08rem; color: #2b3545; }
.notice { margin-top: 18px; padding: 12px 14px; border-left: 5px solid var(--accent); background: #eef8ee; border-radius: 8px; }
.section { margin-top: 38px; }
.section h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line); color: var(--primary); font-size: 1.42rem; }
.section-intro { margin: -6px 0 16px; color: #344154; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 18px 20px; }
.card h3 { margin: 0 0 8px; color: #25306d; }
.card p, .card ul { margin-top: 0; margin-bottom: 0; }
.card ul { padding-left: 1.25em; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 9px; }
.keyword-list span { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #eef3fb; color: #173761; font-weight: 600; font-size: .92rem; }
.vision-box { background: #fff; border: 2px solid #35206c; border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.vision-title { font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.45rem); color: #111827; margin: 0 0 14px; }
.vision-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: stretch; }
.flow-step { position: relative; padding: 14px 12px; border: 1px solid #cbd5e1; border-radius: 14px; background: #f8fafc; min-height: 96px; }
.flow-step strong { display: block; color: var(--primary); margin-bottom: 4px; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 37%; color: var(--primary); font-weight: 800; z-index: 2; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pillar { padding: 14px; border: 1px solid #cfe2c3; border-radius: 14px; background: #f5fbf2; }
.pillar h3 { margin: 0 0 8px; color: #2f612c; }
.interface { background: var(--warm); border: 1px solid #eadba2; border-radius: 16px; padding: 18px 20px; }
.interface .big { font-size: 1.18rem; font-weight: 800; color: #111827; }
.pathway { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.pathway span { padding: 6px 11px; border: 1px solid #d5c98e; border-radius: 999px; background: #fffdf3; font-weight: 700; }
.research-image { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); background: #fff; }
.image-note { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.member-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.member-table th, .member-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.member-table th { background: #eaf0f8; color: #173761; font-weight: 700; }
.member-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; min-width: 3.3em; padding: 2px 8px; border-radius: 999px; background: #edf7ff; color: #174c80; font-weight: 700; text-align: center; font-size: .9rem; }
.update-list { padding-left: 1.3em; }
.small { font-size: .94rem; color: var(--muted); }
.site-footer { background: #111827; color: #fff; padding: 22px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-inner p { margin: 4px 0; }
@media (max-width: 900px) { .vision-flow { grid-template-columns: 1fr; } .flow-step:not(:last-child)::after { display: none; } }
@media (max-width: 760px) { .grid, .grid-2, .two-col, .pillar-grid { grid-template-columns: 1fr; } .member-table { font-size: .92rem; } .member-table th, .member-table td { padding: 9px 8px; } }

@media (max-width: 1000px) { .four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ono-lab-style member list layout */
.member-anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.member-anchor-nav a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}
.member-category { margin-top: 20px; }
.member-category h3 {
  margin: 0 0 10px;
  color: #173761;
  font-size: 1.08rem;
  border-left: 5px solid var(--primary-2);
  padding-left: 10px;
}
.member-list.ono-style {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.member-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.member-role { flex: 0 0 auto; }
.member-body { min-width: 0; }
.member-name-ja {
  font-size: 1.08rem;
  font-weight: 800;
  color: #111827;
}
.member-name-en {
  color: var(--muted);
  margin-top: 2px;
}
.kana { font-weight: 500; color: var(--muted); font-size: .93rem; }
.member-note { color: #344154; margin-top: 4px; font-size: .95rem; }
@media (max-width: 760px) {
  .member-list.ono-style { grid-template-columns: 1fr; }
  .member-item { flex-direction: column; gap: 8px; }
}

/* Grade label colors only: spring admission = green, autumn admission = brown */
.member-role .badge.grade-spring {
  color: #2f7d32;
}

.member-role .badge.grade-autumn {
  color: #8a5a24;
}

/* Member photos */
.member-photo {
  flex: 0 0 auto;
  width: 92px;
  height: 122px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}

button.member-photo {
  cursor: pointer;
}

.member-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease;
}

.member-photo .photo-secondary {
  opacity: 0;
}

.member-photo.swap-photo:active .photo-primary,
.member-photo.swap-photo.is-swapped .photo-primary {
  opacity: 0;
}

.member-photo.swap-photo:active .photo-secondary,
.member-photo.swap-photo.is-swapped .photo-secondary {
  opacity: 1;
}

.member-photo:focus-visible {
  outline: 3px solid rgba(47, 125, 50, .35);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .member-photo {
    width: 110px;
    height: 146px;
  }
}

.lab-title-logo {
  display: block;
  width: auto;
  height: 68px;
  max-width: 100%;
}

.lab-title-logo-small {
  display: block;
  width: auto;
  height: 32px;
  max-width: 100%;
}
.header-logo-area {
  text-align: right;
}

.header-lab-logo {
  display: block;
  width: 200px;
  height: auto;
  margin-left: auto;
  margin-bottom: 5px;
}
@media (max-width: 760px) {
  .header-logo-area {
    text-align: left;
  }

  .header-lab-logo {
    width: 140px;
    margin-left: 0;
  }
}