/* 共通スタイル（member ページ基盤）。日英すべての member ページで共有。 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --teal:     #1d9e75;
    --teal-lt:  #e1f5ee;
    --teal-mid: #5dcaa5;
    --coral:    #d85a30;
    --coral-lt: #faece7;
    --amber:    #ba7517;
    --amber-lt: #faeeda;
    --purple:   #534ab7;
    --purple-lt:#eeedfe;
    --bg:       #fafaf8;
    --white:    #ffffff;
    --text:     #1a1a18;
    --muted:    #6b6b65;
    --border:   #e4e4de;
    --radius:   16px;
    --radius-sm: 8px;
    --nav-h:    64px;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Noto Sans JP', 'DM Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.75; }

  /* ── NAV ── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-h); display: flex; align-items: center;
  }
  .nav-inner { max-width: 1100px; margin: auto; width: 100%; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
  .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .nav-logo-icon { width: 36px; height: 36px; background: var(--teal); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
  .nav-logo-icon svg { width: 20px; height: 20px; fill: white; }
  .nav-logo-text { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--text); }
  .nav-links { display: flex; gap: 0.25rem; }
  .nav-links a { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 20px; transition: all 0.2s; }
  .nav-links a:hover, .nav-links a.active { background: var(--teal-lt); color: var(--teal); }
  .nav-univ-logo { height: 44px; width: auto; display: block; }
  .nav-univ-logo:hover { opacity: 0.85; }
  @media (max-width: 860px) { .nav-univ-logo { height: 32px; } }

  /* ── PAGE HEADER ── */
  .page-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 60px 2rem 48px;
  }
  .page-header-inner { max-width: 1100px; margin: auto; }
  .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 1.25rem; }
  .breadcrumb a { color: var(--teal); text-decoration: none; }
  .breadcrumb a:hover { text-decoration: underline; }
  .breadcrumb-sep { color: var(--border); }
  .section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); background: var(--teal-lt); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
  .page-title { font-family: 'DM Serif Display', serif; font-size: 2.6rem; line-height: 1.2; margin-bottom: 0.75rem; }
  .page-lead { color: var(--muted); font-size: 15px; max-width: none; }

  /* ── SECTION COMMON ── */
  .content-section { max-width: 1100px; margin: auto; padding: 56px 2rem; }
  .group-label {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
  }
  .group-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }

  /* ── PI CARD ── */
  .pi-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 24px rgba(29,158,117,0.06);
  }
  .pi-photo {
    width: 160px; height: 160px; border-radius: 50%;
    background: var(--teal-lt);
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 56px; color: var(--teal);
    flex-shrink: 0;
    overflow: hidden;
  }
  .pi-photo img { width: 100%; height: 100%; object-fit: cover; }
  .pi-name { font-family: 'DM Serif Display', serif; font-size: 1.8rem; margin-bottom: 2px; }
  .pi-name-en { font-size: 14px; color: var(--muted); margin-bottom: 0.5rem; }
  .pi-pos-badge {
    display: inline-block; font-size: 12px; font-weight: 700;
    background: var(--teal); color: white;
    padding: 3px 12px; border-radius: 20px; margin-bottom: 1.25rem;
  }
  .pi-bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.25rem; }
  .pi-bio-block h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 0.6rem; }
  .pi-bio-list { list-style: none; }
  .pi-bio-list li { font-size: 13px; color: var(--muted); padding: 4px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
  .pi-bio-list li:last-child { border-bottom: none; }
  .pi-bio-year { font-weight: 700; color: var(--text); min-width: 38px; }
  .pi-award-item { font-size: 13px; color: var(--muted); padding: 4px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
  .pi-award-item:last-child { border-bottom: none; }
  .pi-guest { font-size: 13px; color: var(--muted); margin-top: 0.5rem; }

  /* ── MEMBER GRID ── */
  .member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
  .member-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.2s;
  }
  .member-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); transform: translateY(-2px); }
  .member-photo {
    height: 120px; display: flex; align-items: center; justify-content: center;
    font-family: 'DM Serif Display', serif; font-size: 40px; font-weight: 700;
    overflow: hidden;
  }
  .member-photo img { width: 100%; height: 100%; object-fit: cover; }
  .member-info { padding: 1rem; display: flex; flex-direction: column; }
  .member-name-en { font-size: 17px; font-weight: 700; color: var(--text); order: 1; }
  .member-name { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; order: 2; }
  .member-pos { font-size: 12px; color: var(--muted); margin-top: 8px; order: 3; }
  .member-kws { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  .kw { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
  .kw-teal { background: var(--teal-lt); color: #0f6e56; }
  .kw-coral { background: var(--coral-lt); color: #993c1d; }
  .kw-purple { background: var(--purple-lt); color: #3c3489; }
  .kw-amber { background: var(--amber-lt); color: #854f0b; }

  /* ── STAFF ROW (for secretary, tech staff) ── */
  .staff-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }
  .staff-item { background: white; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; transition: background 0.15s; }
  .staff-item:hover { background: var(--teal-lt); }
  .staff-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
  .staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .staff-name { font-size: 14px; font-weight: 700; }
  .staff-name-en { font-size: 11px; color: var(--muted); margin-top: 1px; }
  .staff-pos { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }

  /* ── DIVIDER ── */
  .full-divider { height: 1px; background: var(--border); }

  /* ── FOOTER ── */
  footer { background: #1a1a18; color: #9a9a94; padding: 3rem 2rem; }
  .footer-inner { max-width: 1100px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
  .footer-lab { font-family: 'DM Serif Display', serif; font-size: 18px; color: white; }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-links a { font-size: 13px; color: #9a9a94; text-decoration: none; }
  .footer-links a:hover { color: var(--teal-mid); }
  .footer-copy { font-size: 12px; margin-top: 0.5rem; }

  /* ── RESPONSIVE ── */
  @media (max-width: 860px) {
    .pi-card { grid-template-columns: 1fr; }
    .pi-photo { width: 120px; height: 120px; font-size: 40px; }
    .pi-bio-grid { grid-template-columns: 1fr; }
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .page-title { font-size: 2rem; }
  }
  @media (max-width: 860px) {
    .nav-links a { font-size: 12px; padding: 5px 8px; }
  }
  @media (max-width: 540px) {
    .member-grid { grid-template-columns: repeat(2, 1fr); }
  }
  .nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; line-height: 0; }
  .nav-toggle svg { width: 28px; height: 28px; stroke: currentColor; }
  /* hamburger menu (<=768px only; desktop unchanged) */
  @media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; gap: 0; max-width: none;
      background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    }
    .nav-links.open { max-height: 80vh; }
    .nav-links a { font-size: 15px; padding: 14px 2rem; border-radius: 0; border-bottom: 1px solid var(--border); }
    .nav-links a:last-child { border-bottom: none; }
  }
  .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 1.75rem; }
  .back-link:hover { text-decoration: underline; }
  .pi-placeholder { font-size: 13px; color: var(--muted); font-style: italic; padding: 4px 0; }
