@charset "UTF-8";
/* =========================================================
  page.css — 下層ページ（メンバー・研究・ニュース）共通
========================================================= */

/* ---------- ページの見出し帯 ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px);
  background: #0c1916 url("../images/SGHP/hero-aerial.jpg") center 62% / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 17, 15, .88) 0%, rgba(8, 17, 15, .72) 60%, rgba(8, 17, 15, .64) 100%);
}
.page-hero__inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 64px; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 30px; font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: .14em; color: rgba(255, 255, 255, .62); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: var(--lime); }
.page-hero__eyebrow { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .78); }
.page-hero__title { font-size: clamp(56px, 9vw, 128px); color: #eef2ec; }
.page-hero__lead { max-width: 380px; font-size: 13px; line-height: 2.1; color: rgba(255, 255, 255, .78); }

.site-nav__list a[aria-current="page"] { color: var(--lime); }

.page-section { padding: clamp(80px, 10vw, 150px) 0; }
.page-section--tint { background: var(--paper-2); }
.page-section:not(.page-section--tint) + .page-section:not(.page-section--tint) { padding-top: 0; }

/* =========================================================
  メンバー
========================================================= */
.member-group + .member-group { margin-top: clamp(72px, 9vw, 120px); }
.member-group__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  padding-bottom: 18px; margin-bottom: 36px; border-bottom: 1px solid var(--line);
}
.member-group__en { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.member-group__jp { font-size: 13px; font-weight: 700; }
.member-group__count { margin-left: auto; font-family: var(--font-en); font-size: 11px; color: var(--muted); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 44px 20px; }
.member-grid .member-card { width: 100%; }

.alumni {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  margin-top: clamp(72px, 9vw, 120px); padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.alumni__label { font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--ink); padding: 3px 8px; border: 1px solid #9aa6a1; }

/* =========================================================
  研究
========================================================= */
.research-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px 72px; align-items: center; }
.research-intro__title { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; line-height: 1.6; }
.research-intro__text { margin-top: 28px; font-size: 14px; line-height: 2.15; color: var(--muted); }
.research-intro__map { background: var(--white); padding: 14px; border: 1px solid var(--line); }
.research-intro__map figcaption { margin-top: 10px; font-family: var(--font-en); font-size: 9px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }

.theme-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.theme-nav a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); background: var(--white); font-size: 12px; font-weight: 600; text-decoration: none;
}
.theme-nav a:hover { border-color: var(--ink); }
.theme-nav span { font-family: var(--font-en); font-size: 10px; color: var(--muted); }

.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; scroll-margin-top: 40px; }
.theme + .theme { margin-top: clamp(88px, 11vw, 160px); }
.theme:nth-child(even) .theme__media { order: 2; }
.theme__media { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: clamp(20px, 3vw, 40px); background: var(--card-1); }
.theme__media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; background: var(--white); }
.theme__media .tag { position: absolute; left: 18px; top: 18px; }
.theme--2 .theme__media { background: var(--card-2); }
.theme--3 .theme__media { background: var(--card-3); }
.theme--4 .theme__media { background: var(--card-4); }
.theme--5 .theme__media { background: var(--card-5); }
.theme__meta { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.theme__num { font-family: var(--font-display); font-size: 64px; font-weight: 300; line-height: 1; color: var(--green); }
.theme__en { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.theme__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.55; }
.theme__text { margin-top: 26px; font-size: 14px; line-height: 2.15; color: #3c4944; }
.theme__text p + p { margin-top: 14px; }

/* =========================================================
  ニュース
========================================================= */
.news-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
.news-side { position: sticky; top: 32px; }
.news-side__label { margin-bottom: 14px; font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.news-filter { display: flex; flex-direction: column; gap: 4px; }
.news-filter button {
  display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 14px;
  background: transparent; border: 1px solid transparent; text-align: left; cursor: pointer; font-size: 13px;
}
.news-filter button:hover { border-color: var(--line); }
.news-filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.news-filter button span { font-family: var(--font-en); font-size: 10px; opacity: .7; }
.news-side__label--archive { margin-top: 36px; }
.news-years { display: flex; flex-wrap: wrap; gap: 6px; }
.news-years a { padding: 6px 12px; border: 1px solid var(--line); font-family: var(--font-en); font-size: 12px; text-decoration: none; }
.news-years a:hover { border-color: var(--ink); }

.news-year { scroll-margin-top: 24px; }
.news-year + .news-year { margin-top: 72px; }
.news-year__title { margin-bottom: 8px; font-family: var(--font-display); font-size: 40px; font-weight: 400; letter-spacing: -.03em; }
.news-year[hidden] { display: none; }

.news-entry { border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.news-entry:first-of-type { border-top: 1px solid var(--ink); }
.news-entry[hidden] { display: none; }
.news-entry summary {
  display: grid; grid-template-columns: 112px 108px minmax(0, 1fr) 24px; align-items: center; gap: 6px 22px;
  padding: 26px 6px; cursor: pointer; list-style: none;
}
.news-entry summary::-webkit-details-marker { display: none; }
.news-entry__date { font-family: var(--font-en); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-entry__tag { padding: 4px 0; background: var(--tag); text-align: center; font-family: var(--font-en); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.news-entry__title { font-size: 15px; font-weight: 500; line-height: 1.7; }
.news-entry summary:hover .news-entry__title { color: var(--green); }
.news-entry__toggle { position: relative; width: 16px; height: 16px; justify-self: end; }
.news-entry__toggle::before, .news-entry__toggle::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1.4px; background: currentColor; transition: transform .25s; }
.news-entry__toggle::after { transform: rotate(90deg); }
.news-entry[open] .news-entry__toggle::after { transform: rotate(0deg); }
.news-entry__body { padding: 4px 6px 40px calc(112px + 108px + 44px + 6px); font-size: 13.5px; line-height: 2.05; color: #33403b; }
.news-entry__body a { color: var(--green); text-underline-offset: 3px; }
.news-entry__body table { border-collapse: collapse; margin: 12px 0; }
.news-entry__body td { padding: 6px 12px; border: 1px solid var(--line); vertical-align: top; }
.news-entry__images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; margin-top: 22px; }
.news-entry__images img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.news-entry__video { position: relative; aspect-ratio: 16 / 9; margin-top: 22px; max-width: 640px; background: #000; }
.news-entry__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-empty { padding: 40px 0; color: var(--muted); }

/* =========================================================
  ギャラリー
========================================================= */
.gallery-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-bottom: 40px; }
.gallery-filter { flex-direction: row; flex-wrap: wrap; }
.gallery-filter button { border-color: var(--line); }
.gallery-bar__note { font-size: 11px; color: var(--muted); }
.gallery-grid { columns: 3 300px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin: 0 0 14px; position: relative; background: var(--ink); overflow: hidden; }
.gallery-item[hidden] { display: none; }
.gallery-item__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-item__btn img { display: block; width: 100%; height: auto; transition: transform .5s, opacity .3s; }
.gallery-item[data-gallery-cat="research"] .gallery-item__btn { background: var(--white); padding: 18px; }
.gallery-item__cap {
  position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 40px 16px 14px; color: var(--white); pointer-events: none;
  background: linear-gradient(transparent, rgba(8, 17, 15, .86));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-item__cap, .gallery-item:focus-within .gallery-item__cap { opacity: 1; transform: none; }
.gallery-item:hover .gallery-item__btn img { transform: scale(1.03); }
.gallery-item__cat { padding: 2px 7px; background: var(--lime); color: var(--ink); font-family: var(--font-en); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.gallery-item__date { font-family: var(--font-en); font-size: 10px; opacity: .8; }
.gallery-item__title { flex-basis: 100%; font-size: 12px; font-weight: 500; line-height: 1.6; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px;
  padding: 72px 20px 24px; background: rgba(5, 12, 10, .94); color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__close {
  position: absolute; right: 20px; top: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  background: none; border: 0; color: var(--white); cursor: pointer; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .14em;
}
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: none; color: var(--white); cursor: pointer; }
.lightbox__nav:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.lightbox__nav--prev .icon-arrow { transform: rotate(180deg); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; max-height: 100%; margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; background: #fff; }
.lightbox__cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; max-width: 760px; text-align: center; }
.lightbox__count, .lightbox__date { font-family: var(--font-en); font-size: 11px; color: rgba(255, 255, 255, .6); }
.lightbox__title { font-size: 14px; font-weight: 500; }
.lightbox__link { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); font-size: 12px; font-weight: 700; text-decoration: none; }
.lightbox__link[hidden] { display: none; }

/* =========================================================
  お問い合わせ
========================================================= */
.contact-lab { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.contact-lab__title { margin-top: 16px; font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.4; }
.contact-lab__text { margin-top: 24px; font-size: 13px; line-height: 2; color: var(--muted); }
.contact-list { border-top: 1px solid var(--ink); }
.contact-list__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { padding-top: 6px; font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 14px; line-height: 2; }
.contact-list__big { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-list__big:hover { color: var(--green); }
.contact-list__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-list__en { margin-top: 6px; font-family: var(--font-en); font-size: 12px; color: var(--muted); }
.contact-list__link { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 600; text-decoration: none; }
.contact-list__link:hover { color: var(--green); }
.btn-outline {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 700;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.contact-students__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 48px; }
.contact-students__lead { max-width: 520px; font-size: 13px; line-height: 2.05; color: var(--muted); }
.student-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; padding: 0; list-style: none; }
.student-contact { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 18px; background: var(--white); }
.student-contact__photo { display: block; width: 84px; aspect-ratio: 1; background: var(--paper-2) url("../images/SGHP/logo.png") center / 40% no-repeat; overflow: hidden; }
.student-contact__photo img { width: 100%; height: 100%; object-fit: cover; }
.student-contact__role { font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--green); }
.student-contact__name { margin-top: 2px; font-size: 16px; font-weight: 700; }
.student-contact__theme { margin-top: 6px; font-size: 11.5px; line-height: 1.75; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.student-contact__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.student-contact__mail:hover { color: var(--green); }

/* =========================================================
  レスポンシブ
========================================================= */
@media (max-width: 1000px) {
  .research-intro { grid-template-columns: minmax(0, 1fr); }
  .theme { grid-template-columns: minmax(0, 1fr); }
  .theme:nth-child(even) .theme__media { order: 0; }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-side { position: static; }
  .news-filter { flex-direction: row; flex-wrap: wrap; }
  .news-filter button { border-color: var(--line); }
  .news-entry__body { padding-left: 6px; }
  .contact-lab { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .news-entry summary { grid-template-columns: auto 1fr 20px; padding: 20px 0; }
  .news-entry__date { grid-column: 1; }
  .news-entry__tag { grid-column: 2; justify-self: start; padding: 3px 10px; }
  .news-entry__title { grid-column: 1 / 3; }
  .news-entry__toggle { grid-column: 3; grid-row: 1 / 3; }
  .news-entry__body { padding: 0 0 32px; }
  .theme__num { font-size: 48px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .gallery-grid { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .gallery-item__cap { display: none; }
  .gallery-item[data-gallery-cat="research"] .gallery-item__btn { padding: 8px; }
  .lightbox { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 64px 12px 20px; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav { grid-row: 2; justify-self: center; }
  .lightbox__figure img { max-height: calc(100vh - 260px); }
  .contact-list__row { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
  .contact-list dt { padding-top: 0; }
  .student-contact { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .student-contact__photo { width: 64px; }
}
