:root {
  --bg: #f5f2ec;
  --bg-soft: #ebe7df;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #1f2328;
  --muted: #5c6670;
  --line: rgba(31, 35, 40, 0.12);
  --accent: #0f4c81;
  --accent-strong: #0a355a;
  --accent-soft: #dfeaf5;
  --heading: #15202b;
  --shadow: 0 24px 60px rgba(20, 34, 51, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.12), transparent 30%),
    radial-gradient(circle at right 20%, rgba(130, 158, 183, 0.10), transparent 24%),
    linear-gradient(180deg, #f8f6f1 0%, var(--bg) 100%);
}

a {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

iframe {
  border: 0;
}

.container {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(248, 246, 241, 0.88);
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-brand {
  color: var(--heading);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 35, 40, 0.08);
  padding: 4px;
}

.site-brand-text {
  display: grid;
  gap: 2px;
}

.site-brand small {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-brand strong {
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  color: var(--heading);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.current {
  background: rgba(15, 76, 129, 0.10);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

main {
  padding-bottom: 72px;
}

.hero {
  padding: 56px 0 28px;
}

.hero-panel,
.page-hero,
.section-card,
.news-card,
.member-card,
.staff-card,
.paper-group,
.access-grid > *,
.placeholder-card,
.footer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.home-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0.72) 100%),
    url("photo/260128_campus.jpg") center center / cover no-repeat;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.68fr);
  gap: 28px;
  align-items: center;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.16), transparent 68%);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.1;
  color: var(--heading);
}

.hero h1 {
  font-size: clamp(2.5rem, 2.5vw, 3.6rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 2vw, 2.8rem);
}

.hero-copy {
  max-width: 100%;
}

.home-hero .hero-copy {
  max-width: 50rem;
  position: relative;
  z-index: 1;
}

.home-hero .lead {
  color: #2a2f35;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.96),
    0 0 4px rgba(255, 255, 255, 0.98),
    0 0 10px rgba(255, 255, 255, 0.78),
    0 0 18px rgba(255, 255, 255, 0.52);
}

.hero-visual {
  position: relative;
  z-index: 1;
  max-width: 320px;
  justify-self: center;
  width: 100%;
}

.hero-visual-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(20, 34, 51, 0.12);
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-visual-frame figcaption {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(31, 35, 40, 0.08);
}

.hero-copy p:last-child,
.page-hero p:last-child,
.news-card li:last-child,
.member-card p:last-child,
.staff-card p:last-child,
.paper-group li:last-child,
.access-grid p:last-child,
.placeholder-card p:last-child {
  margin-bottom: 0;
}

.lead {
  margin: 20px 0 0;
  max-width: 44rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 76, 129, 0.10);
  color: var(--accent-strong);
}

.section {
  padding: 20px 0 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.section-heading p,
.page-description,
.note {
  margin: 0;
  color: var(--muted);
}

.photo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  object-fit: cover;
}

.photo-caption {
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid var(--line);
}

.news-card,
.section-card,
.page-hero,
.staff-card,
.paper-group,
.placeholder-card,
.access-grid > *,
.member-card,
.footer-card {
  border-radius: var(--radius-lg);
}

.page-hero,
.news-card,
.section-card,
.staff-card,
.paper-group,
.placeholder-card,
.member-card,
.access-grid > *,
.footer-card {
  padding: 28px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(31, 35, 40, 0.08);
}

.news-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-date {
  color: var(--accent-strong);
  font-weight: 700;
}

.news-body {
  margin: 0;
}

.page-hero {
  margin-top: 34px;
}

.page-hero .lead {
  margin-top: 16px;
}

.research-grid {
  display: grid;
  gap: 22px;
}

.placeholder-card {
  display: grid;
  gap: 18px;
}

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.research-header h2,
.staff-card h2,
.member-card h3,
.paper-group h2,
.access-grid h2 {
  margin: 0;
  line-height: 1.3;
}

.research-number {
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.10em;
}

.figure-placeholder {
  min-height: 280px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(15, 76, 129, 0.30);
  background:
    linear-gradient(135deg, rgba(15, 76, 129, 0.07), rgba(255, 255, 255, 0.60)),
    repeating-linear-gradient(
      -45deg,
      rgba(15, 76, 129, 0.05),
      rgba(15, 76, 129, 0.05) 14px,
      rgba(255, 255, 255, 0.70) 14px,
      rgba(255, 255, 255, 0.70) 28px
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--accent-strong);
  font-weight: 700;
}

.placeholder-text {
  color: var(--muted);
}

.split-section {
  display: grid;
  gap: 24px;
}

.staff-card .person-name {
  font-size: 1.55rem;
  color: var(--heading);
}

.staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.staff-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.staff-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.staff-photo figcaption {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.profile-links {
  display: grid;
  gap: 8px;
}

.profile-links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.profile-links a:hover {
  text-decoration: underline;
}

.staff-card .person-role {
  margin: 4px 0 18px;
  color: var(--accent-strong);
  font-weight: 700;
}

.career-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.career-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 35, 40, 0.08);
}

.career-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.career-date {
  font-weight: 700;
  color: var(--accent-strong);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.member-card {
  min-height: 100%;
}

.member-card h3 {
  font-size: 1.08rem;
}

.member-role {
  margin: 6px 0 10px;
  color: var(--accent-strong);
  font-weight: 700;
}

.member-roman {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.paper-group + .paper-group {
  margin-top: 20px;
}

.paper-list {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.paper-list li {
  margin-bottom: 18px;
}

.paper-list a {
  text-decoration: none;
  font-weight: 700;
}

.paper-list a:hover {
  text-decoration: underline;
}

.paper-list h3 {
  display: inline;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.paper-list p {
  margin: 4px 0 0;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
}

.map_container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.map {
  display: block;
  width: 100%;
  min-height: 420px;
}

.access-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.access-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(31, 35, 40, 0.08);
}

.access-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.access-list dt {
  font-weight: 700;
  color: var(--accent-strong);
}

.access-list dd {
  margin: 4px 0 0;
}

.footer {
  padding: 0 0 42px;
}

.footer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-card p {
  margin: 0;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .header-inner,
  .section-heading,
  .footer-card,
  .access-grid,
  .hero-layout,
  .staff-layout,
  .career-item,
  .news-item,
  .research-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-inner {
    justify-content: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .career-item,
  .news-item {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--content), calc(100% - 28px));
  }

  .hero {
    padding-top: 40px;
  }

  .hero-panel,
  .page-hero,
  .section-card,
  .news-card,
  .member-card,
  .staff-card,
  .paper-group,
  .access-grid > *,
  .placeholder-card,
  .footer-card {
    padding: 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .page-hero h1 {
    font-size: 1.95rem;
  }

  .figure-placeholder {
    min-height: 220px;
  }
}
