
    :root { --green: #175c4c; --dark-green: #104638; --mint: #eaf3ee; --text: #26342e; --muted: #66746d; --line: #e3eae6; --bg: #f7f9f7; --white: #fff; }
    *, *::before, *::after {box-sizing: border-box;}
    html { scroll-behavior: smooth; scroll-padding-top: 24px; }
    body { margin: 0; color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
    a { color: inherit; }
    a:focus-visible, summary:focus-visible {outline: 3px solid #bb842b; outline-offset: 4px;}
    .container { max-width: 1140px; padding: 0 30px; margin: 0 auto; }
    .skip-link { position: absolute; top: -70px; left: 16px; padding: 12px 18px; color: #fff; background: var(--dark-green); z-index: 20; }
    .skip-link:focus {top: 10px;}
    .site-header { background: #fff; border-bottom: 1px solid var(--line); }
    .topbar {height: 7px; background: var(--green);}
    .header-inner { min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
    .site-identity { display: flex; align-items: center; gap: 15px; text-decoration: none; }
    .symbol{position:relative;isolation:isolate;flex:0 0 80px;width:80px;height:46px;display:grid;place-items:center;overflow:hidden;padding:0 0 3px 3px;background:linear-gradient(125deg,#104638 0%,#1b7460 100%);color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:20px;font-weight:800;letter-spacing:.09em;line-height:1;border-radius:8px 3px 8px 3px;box-shadow:0 3px 12px rgba(16,70,56,.14)}
    .symbol::before{content:"";position:absolute;bottom:6px;left:11px;right:11px;height:2px;background:#b8dfd0;border-radius:3px}
    .symbol::after{content:"";position:absolute;top:0;right:0;width:26px;height:26px;background:linear-gradient(135deg,transparent 49%,rgba(255,255,255,.12) 50%);pointer-events:none}
    .identity-lines { display: flex; flex-direction: column; line-height: 1.45; }
    .identity-sub { color: var(--muted); font-size: 11px; letter-spacing: .035em; }
    .identity-main {font-size: 19px; font-weight: 750; letter-spacing: .035em;}
    .global-nav { display: flex; gap: 27px; align-items: center; font-size: 13px; font-weight: 650; flex-wrap: wrap; }
    .global-nav a { text-decoration: none; padding: 8px 0; color: #46534d; white-space: nowrap; }
    .global-nav a:hover {color: var(--green);}
    .global-nav [aria-current="page"] { color: var(--green); border-bottom: 2px solid var(--green); }
    .page-heading { background: linear-gradient(115deg, #eff6f1 0%, #f7faf8 63%, #edf5f0 100%); border-bottom: 1px solid var(--line); }
    .page-heading .container { padding-top: 45px; padding-bottom: 44px; }
    .breadcrumb {display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 22px;}
    .breadcrumb a {text-decoration: none;}
    .breadcrumb a:hover {text-decoration: underline;}
    .eyebrow {font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--green); margin: 0 0 6px;}
    h1 {font-size: clamp(30px, 4.2vw, 42px); letter-spacing: .04em; line-height: 1.3; margin: 0; font-weight: 760; }
    .heading-lead { margin: 15px 0 0; font-size: 14px; color: #5d6d63; }
    main { padding: 39px 0 75px; }
    .section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 32px 0 20px; }
    .section-head h2 {font-size: 22px; margin: 0; font-weight: 750;}
    .section-head h2::before {content: "";display: inline-block; width: 5px; height: 22px; margin: 0 12px 0 0; border-radius: 2px; background: var(--green); vertical-align: -4px;}
    .jump-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
    .jump-box summary { list-style: none; padding: 15px 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
    .jump-box summary::-webkit-details-marker {display:none;}
    .jump-box summary::before { content: "☷"; color: var(--green); font-size: 20px; font-weight: 500; }
    .jump-box summary::after { content: "⌄"; color: var(--green); font-size: 22px; margin-left: auto; transition: transform .2s; }
    .jump-box[open] summary::after {transform: rotate(180deg);}
    .jump-grid {padding: 15px 18px 19px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .jump-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; border: 1px solid #e2ebe5; background: #f9fbf9; border-radius: 6px; padding: 8px 10px; font-size: 12px; text-decoration: none; }
    .jump-link:hover { background: var(--mint); border-color: #afcbb9; }
    .jump-link span {color: var(--green); flex-shrink: 0;}
    .lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
    .lab-card { border: 1px solid #e1e8e2; border-top: 3px solid var(--green); border-radius: 10px; background: var(--white); box-shadow: 0 4px 18px rgba(18, 58, 40, .035); overflow: hidden; scroll-margin-top: 24px; }
    .lab-card:target { outline: 2px solid #9ac5ac; outline-offset: 3px; }
    .lab-card-heading { padding: 20px 22px 16px; display: flex; align-items: flex-start; gap: 13px; border-bottom: 1px solid var(--line); min-height: 79px; }
    .lab-card h3 {font-size: clamp(15px, 1.45vw, 18px); letter-spacing: -.02em; line-height: 1.55; margin: 0; font-weight: 760; overflow-wrap: anywhere;}
    /* 研究室紹介文（およそ160文字）に合わせて同じ幅では高さを統一。文字拡大時もスクロールで全文を読める。 */
    .lab-description { margin: 0; padding: 14px 22px 15px; height: 168px; overflow-y: auto; color: #51645a; background: #fbfcfb; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #c6d6cb transparent; }
    /* 研究内容をすばやく把握できるキーワードタグ */
    /* 未入力でもキーワード欄を確保。タグが増えた場合は自然に広がる。 */
    .lab-keywords { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 7px; min-height: 86px; padding: 13px 22px 15px; border-bottom: 1px solid var(--line); }
    .lab-keywords-label { flex: 0 0 100%; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
    .lab-keyword { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: var(--dark-green); background: #edf6ef; border: 1px solid #d9e9dc; border-radius: 999px; padding: 4px 10px; font-size: 11px; line-height: 1.45; font-weight: 650; }
    .lab-card-body {padding: 18px 22px 20px;}
    /* 教員：教授→准教授→助教の順に横並び。各人は角丸写真／氏名／職位の縦配置。 */
    .people { list-style: none; padding: 0; margin: 0; display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
    .person { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; text-align: center; }
    .portrait { flex: none; width: 96px; height: 112px; display: block; overflow: hidden; border-radius: 8px; border: 1px solid #e5ebe5; background: #e9f0eb; }
    .portrait img {width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 28%;}
    .portrait img[hidden] {display: none;}
    .portrait-initial {width: 100%; height: 100%; display: grid; place-items: center; font-size: 31px; font-weight: 650; color: #648578; }
    .portrait-initial[hidden] {display: none;}
    .person-info {display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; line-height: 1.45; gap: 2px; }
    .person-name {min-height: 2.9em; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 740; overflow-wrap: anywhere; }
    .person-role {font-size: 12px; color: var(--green); font-weight: 650; }
    .lab-website { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
    .lab-site-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); text-decoration: none; font-size: 13px; font-weight: 700; }
    .lab-site-link[href]:hover { color: var(--dark-green); text-decoration: underline; text-underline-offset: 4px; }
    .lab-site-link:not([href]) { color: #819187; cursor: default; }
    .lab-site-link:not([href])::after { content: "（URL未設定）"; font-size: 11px; font-weight: 400; }
    .page-note {margin: 28px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
    .site-footer {border-top: 1px solid #dfe7e0; background: #eff4f0; padding: 30px 0; font-size: 12px; color: #5c6e62; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 25px; flex-wrap: wrap; }
    .footer-brand { font-weight: 700; color: var(--green); font-size: 14px; margin-bottom: 5px; }
    .footer-inner a {color: var(--green); text-underline-offset: 3px;}
    /* 2列時の文章折り返しに合わせて、見切れず余白を抑える */
    @media (max-width: 1099px) {.lab-description {height: 183px;}}
    @media (max-width: 899px) {.lab-description {height: 209px;}}
    @media (max-width: 970px) {.header-inner {align-items: flex-start; padding-top: 22px; padding-bottom: 20px; flex-direction: column; gap: 12px;} .global-nav {gap: 21px;}}
    @media (max-width: 780px) {.lab-description {height: 165px;} .lab-grid {grid-template-columns: 1fr; gap: 15px;} .jump-grid {grid-template-columns: repeat(2, minmax(0, 1fr));} .lab-card h3 {font-size: 18px;}}
    @media (max-width: 520px) {
      .container {padding-left: 18px; padding-right: 18px;}
      .header-inner {min-height: auto; padding-top: 16px; padding-bottom: 14px; gap: 12px;}
      .symbol{flex-basis:68px;width:68px;height:40px;font-size:17px}
      .identity-main {font-size: 16px;} .identity-sub {font-size: 10px;}
      .global-nav {column-gap: 18px; row-gap: 1px; font-size: 11px; }
      .page-heading .container {padding-top: 27px; padding-bottom: 32px;}
      .breadcrumb {margin-bottom: 18px;}
      h1 {font-size: 31px;} .heading-lead {font-size: 13px;}
      main {padding-top: 19px; padding-bottom: 55px;}
      .section-head {margin-top: 24px; margin-bottom: 15px;}
      .section-head h2 {font-size: 19px;}
      .jump-grid {grid-template-columns: 1fr; padding: 10px;}
      .jump-box summary {padding: 12px 14px;}
      .lab-card-heading {padding: 17px 16px 14px; gap: 9px; min-height: auto;}
      .lab-description {height: 183px; padding: 12px 16px 14px; font-size: 13px;}
      .lab-keywords {padding: 12px 16px 14px; gap: 6px;}
      .lab-keyword {font-size: 11px;}
      .lab-card-body {padding: 16px 17px 19px;}
      .lab-card h3 {font-size: 16px;}
      .people {gap: 8px;}
      .person {gap: 8px;}
      .portrait {width: clamp(64px, 20vw, 82px); height: clamp(75px, 23.333vw, 96px);}
      .portrait-initial {font-size: 25px;}
      .person-name {font-size: 13px;}
    }
    @media (max-width: 435px) {.lab-description {height: 208px;}}
    @media (max-width: 385px) {.lab-description {height: 232px;}}
    @media (max-width: 345px) {.lab-description {height: 256px;}}
    /* 2列/1列への切り替わり直後も長い文章を見切れさせない */
    @media (min-width: 781px) and (max-width: 794px) {.lab-description {height: 233px;}}
    @media (min-width: 521px) and (max-width: 539px) {.lab-description {height: 184px;}}
    @media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;} .jump-box summary::after {transition: none;}}
    .language-link {color:var(--green) !important;border:1px solid #dce8df;border-radius:6px;padding:6px 12px !important;}
  .language-link:hover {background:var(--mint);}
  @media (max-width:600px) {.language-link {padding:3px 9px !important;}}

