:root {
  --navy: #0b1220;
  --navy-soft: #111b2e;
  --blue: #2563eb;
  --blue-soft: #60a5fa;
  --cyan: #22d3ee;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0055ff;
  --accent-vivid: #3377ff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --accent-soft: rgba(0, 85, 255, 0.08);
  --accent-glow: rgba(0, 85, 255, 0.15);
  --teal: #00c9a7;
  --teal-soft: rgba(0, 201, 167, 0.1);
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(37, 99, 235, 0.18);
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --radius: 24px;
  --radius-lg: 30px;
  --section-space: 108px;
  --font-display: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1280px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 18%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 55%, #f3f7fb 100%);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 68%, #22d3ee 100%);
  color: var(--white);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.03em;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -42%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(255, 255, 255, 0.72) 74%, transparent 86%);
  animation: orbitGlow 7s linear infinite;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.brand-mark>* {
  position: relative;
  z-index: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand small {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.brand strong {
  font-size: 1.16rem;
  color: var(--navy);
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.section-is-target {
  animation: sectionPulse 0.9s ease;
}

@keyframes sectionPulse {
  0% {
    transform: translateY(14px);
    opacity: 0.72;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 16, 29, 0.78), rgba(16, 33, 61, 0.78)),
    url('../img/hero.png') center/cover no-repeat;

  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(6px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.08);
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 124px 0 108px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 900;
  max-width: 1280px;

}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 .accent-word {
  background: linear-gradient(135deg, var(--accent-vivid), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-quote {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.6);
  animation: fade-in 0.8s ease 0.45s both;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(8px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2, .8, .2, 1), filter 0.75s ease;
  will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes orbitGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes glassFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faculty-photo img,
  .brand-mark::before,
  .feature-card,
  .research-item,
  .research-image-card,
  .achievement-card,
  .social-card,
  .card {
    transition: none;
    animation: none;
  }
}

section {
  padding: var(--section-space) 0;
  scroll-margin-top: 100px;
}

.section-head {
  margin-bottom: 34px;
}

.section-head .label {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.section-head .label::before,
.section-head .label::after {
  content: "";
  display: block;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.46));
}

.section-head .label::before {
  width: 20px;
}

.section-head .label::after {
  width: 72px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.1vw, 3rem);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}


.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 1rem;
}

.section-head.wide-copy p {
  max-width: 1280px;
}

.section-head p:empty {
  display: none;
}

.grid-2,
.features,
.achievement-grid,
.members-layout {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-grid {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.international-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.members-layout {
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
}

.card,
.feature-card,
.research-item,
.achievement-card,
.media-info,
.video-card,
.faculty-card,
.student-card,
.international-card,
.gallery-card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card,
.feature-card,
.research-item,
.achievement-card,
.media-info,
.video-card,
.student-card,
.international-card,
.gallery-card {
  padding: clamp(24px, 2.1vw, 32px);
}

.feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.features .feature-card:nth-child(1) {
  background: var(--card);
  border-color: var(--line);
}

.features .feature-card:nth-child(2) {
  background: var(--card);
  border-color: var(--line);
}

.features .feature-card:nth-child(3) {
  background: var(--card);
  border-color: var(--line);
}

.card h3,
.feature-card h3,
.research-item h3,
.student-card h3,
.video-card h3,
.media-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card p,
.feature-card p,
.research-item p,
.video-card p,
.student-card p,
.media-info p,
.achievement-card p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.grid-2 .card:nth-child(1) {
  background: var(--card);
  border-color: var(--line);
}

.grid-2 .card:nth-child(2) {
  background: var(--card);
  border-color: var(--line);
}

.feature-card,
.research-item,
.achievement-card,
.social-card,
.card,
.research-image-card,
.international-card,
.gallery-card,
.news-card,
.faculty-card,
.student-card {
  transition: transform 0.34s cubic-bezier(.2, .8, .2, 1), box-shadow 0.34s cubic-bezier(.2, .8, .2, 1), border-color 0.34s ease, background 0.34s ease;
}

.feature-card:hover,
.research-item:hover,
.achievement-card:hover,
.social-card:hover,
.card:hover,
.research-image-card:hover,
.international-card:hover,
.gallery-card:hover,
.news-card:hover,
.faculty-card:hover,
.student-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
  border-color: rgba(37, 99, 235, 0.22);
}

#research {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(96, 165, 250, 0.18), transparent 0 26%),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.16), transparent 0 20%),
    linear-gradient(180deg, #07111f 0%, #0b1426 48%, #0c172d 100%);
}

#research::before,
#research::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

#research::before {
  top: calc(-120px + var(--research-shift, 0px) * -0.35);
  left: -90px;
  width: 340px;
  height: 340px;
  background: rgba(37, 99, 235, 0.16);
}

#research::after {
  right: -120px;
  bottom: calc(-120px + var(--research-shift, 0px) * -0.55);
  width: 360px;
  height: 360px;
  background: rgba(34, 211, 238, 0.12);
}

#research .section-head h2,
#research .section-head p,
#research .research-item h3,
#research .research-item p,
#research .detail-link {
  color: #e5eefb;
}

#research .section-head .label {
  color: #93c5fd;
}

#research .section-head .label::before,
#research .section-head .label::after {
  background: linear-gradient(90deg, rgba(147, 197, 253, 0.15), rgba(147, 197, 253, 0.72));
}

#research .research-item,
#research .research-image-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

#research .research-item {
  position: relative;
  overflow: hidden;
}

#research .research-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%, transparent 62%, rgba(34, 211, 238, 0.08));
  pointer-events: none;
}

#research .research-item:hover,
#research .research-image-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(147, 197, 253, 0.38);
  box-shadow: 0 36px 64px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(147, 197, 253, 0.14);
}

#research .research-keywords span {
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(147, 197, 253, 0.22);
}

#research .gallery-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  aspect-ratio: 16 / 9;
}

#research .detail-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(147, 197, 253, 0.22);
}

#research .detail-link:hover,
#research .detail-link:focus-visible {
  background: rgba(147, 197, 253, 0.12);
}

.research-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.research-text-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-photo-column {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.research-keywords span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.06);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.research-item,
.research-photo-column .research-image-card,
.research-photo-column .gallery-item {
  height: 100%;
}

.research-text-stack>.research-item,
.research-photo-column>.research-image-card {
  min-height: 0;
}

.research-image-card {
  border: 3px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  height: 100%;
}


.research-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blue);
  font-weight: 800;
  padding: 20px;
  background: linear-gradient(135deg, rgba(239, 244, 255, 0.95), rgba(220, 230, 248, 0.9));
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(34, 211, 238, 0.12));
  color: var(--blue);
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.value-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.value-cards {
  display: grid;
  gap: 24px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.overview-visual-card {
  width: 100%;
  margin: 0;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}

.overview-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.achievement-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.achievement-card h4 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.achievement-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.04);
  width: fit-content;
  min-height: 44px;
  margin-top: auto;
  align-self: flex-end;
}

.achievement-link:hover,
.achievement-link:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.04);
  width: fit-content;
  min-height: 44px;
  margin-top: 18px;
  font-weight: 700;
}

.detail-link:hover,
.detail-link:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.international-card,
.gallery-card {
  height: 100%;
  padding: clamp(24px, 2.1vw, 32px);
}

.international-card h3,
.gallery-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.international-card p,
.gallery-card p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.international-card.wide-copy p {
  max-width: 1280px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--line);
  background: linear-gradient(135deg, rgba(239, 244, 255, 0.95), rgba(220, 230, 248, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-stack {
  display: grid;
  gap: 24px;
}

.social-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  min-height: 150px;
  backdrop-filter: blur(12px);
  align-items: start;
}

.social-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.social-logo.facebook {
  background: linear-gradient(135deg, #1877f2, #2563eb);
}

.social-logo.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #7c3aed);
}

.social-name {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.social-embed {
  margin-top: 14px;
  border: 3px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.social-embed iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  background: #fff;
}

.social-fallback {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.social-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.04);
  color: var(--blue);
  font-weight: 800;
  width: fit-content;
  min-height: 40px;
}

.social-cta:hover,
.social-cta:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.program-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: -4px;
  margin-bottom: 4px;
}

.program-video-grid .video-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
  .program-video-grid {
    grid-template-columns: 1fr;
  }
}

.faculty-card {
  padding: 30px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  height: 100%;
}

.faculty-photo {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
  border: 3px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(var(--faculty-zoom, 1));
  transition: transform 0.1s linear;
  will-change: transform;
}

.faculty-info {
  max-width: 62ch;
}

.faculty-info h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.faculty-affiliations {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.faculty-affiliations div {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  line-height: 1.8;
  font-size: 0.9rem;
}

.faculty-affiliations .small-meta {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.student-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.member-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.member-slider-nav {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.member-slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.04);
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.member-slider-btn:hover,
.member-slider-btn:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  outline: none;
}

.member-slider-window {
  overflow: hidden;
  border-radius: 20px;
  flex: 1;
}

.member-slider-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
  height: 100%;
}

.member-slide {
  min-width: 100%;
  padding: 2px;
}

.member-slide-card {
  height: 100%;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.member-slide-card h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.member-names {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Visitingは1列 */
.member-slide:last-child .member-names {
  grid-template-columns: 1fr;
}

.member-names li {
  padding: 10px 12px;
  line-height: 1.6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(148, 163, 184, 0.18);
  color: var(--navy);
  font-weight: 700;
}

.news-card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 30px;
}

.news-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.news-scroll {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.news-track {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.7);
}

.news-date {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.news-title {
  color: var(--text);
  font-weight: 600;
  line-height: 1.65;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item:hover,
.news-item:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  color: var(--blue);
  outline: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.22s ease;
  z-index: 60;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  outline: none;
}

footer {
  padding: 34px 0 52px;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 24px;
}

@media (max-width: 980px) {

  .research-text-stack,
  .research-photo-column,
  .value-cards {
    grid-template-rows: none;
  }

  .hero-inner,
  .grid-2,
  .features,
  .achievement-grid,
  .international-layout,
  .members-layout,
  .research-showcase,
  .value-layout {
    grid-template-columns: 1fr;
  }

  .faculty-card {
    grid-template-columns: 1fr;
  }

  .faculty-photo {
    width: 120px;
    height: 120px;
    max-width: 120px;
  }
}

@media (max-width: 720px) {
  .eyebrow {
    font-size: 0.86rem;
    padding: 10px 14px;
    letter-spacing: 0.08em;
  }

  .member-slider-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-slider-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .member-slide-card {
    padding: 16px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .news-date {
    font-size: 0.84rem;
  }

  .news-card {
    padding: 22px;
  }

  .news-scroll {
    max-height: 320px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 0.86rem;
  }

  .brand {
    width: 100%;
    gap: 12px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand small {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .brand strong {
    font-size: 1rem;
    line-height: 1.25;
  }

  .section-head.wide-copy p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .international-card.wide-copy p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  header {
    backdrop-filter: blur(14px);
  }

  .nav {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: auto;
    padding: 12px 0 14px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
    z-index: 55;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.92rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid rgba(148, 163, 184, 0.18);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 76px 0 56px;
    gap: 18px;
    align-items: start;
  }

  .hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.05;
  }

  .hero h1 span {
    white-space: normal;
  }

  .eyebrow {
    margin-bottom: 14px;
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.8;
    max-width: 100%;
  }

  .achievement-link,
  .detail-link,
  .social-cta {
    width: 100%;
  }

  section {
    padding: 74px 0;
  }

  .card,
  .feature-card,
  .research-item,
  .achievement-card,
  .media-info,
  .video-card,
  .faculty-card,
  .student-card,
  .international-card {
    padding: 22px;
    border-radius: 24px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}

/* ===== Kokusai subpage ===== */
.subpage-kokusai .hero.subpage-hero {
  min-height: clamp(560px, 86vh, 840px);
  background:
    linear-gradient(120deg, rgba(10, 15, 28, 0.84) 0%, rgba(11, 24, 48, 0.76) 38%, rgba(0, 85, 255, 0.22) 100%),
    radial-gradient(circle at 78% 22%, rgba(0, 201, 167, 0.16), transparent 20%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.10), transparent 24%),
    linear-gradient(180deg, #0d1528 0%, #13213d 100%);
}

.subpage-kokusai .hero.subpage-hero.kokusai-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 16, 29, 0.78), rgba(16, 33, 61, 0.78)),
    url('../img/kokusai/kokusai-hero.png') center/cover no-repeat;
  color: var(--white);
}

.subpage-kokusai .subpage-hero-inner {
  min-height: inherit;
  align-items: center;
  padding: 132px 0 110px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.kokusai-hero-copy {
  max-width: 960px;
}

.subpage-kokusai .hero h1 {
  max-width: 16ch;
}

.hero-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-quote-card {
  margin-top: 28px;
  max-width: 860px;
  padding: 26px 28px;
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.hero-quote-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 2;
}

.hero-quote-card p+p {
  margin-top: 14px;
}

.narrow-container {
  width: min(100%, 980px);
}

.agreement-band {
  background:
    radial-gradient(circle at 0% 100%, rgba(0, 85, 255, 0.10), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(0, 201, 167, 0.10), transparent 18%),
    linear-gradient(180deg, #0d1528 0%, #13213d 100%);
}

.agreement-band::before {
  display: none;
}

.section-head.inverted h2,
.section-head.inverted h3,
.section-head.inverted p {
  color: #f8fbff;
}

.section-head.inverted .label {
  color: #8cd5ff;
}

.section-head.inverted .label::before,
.section-head.inverted .label::after {
  background: linear-gradient(90deg, rgba(140, 213, 255, 0.15), rgba(140, 213, 255, 0.82));
}

.agreement-card-dark {
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 252, 248, 0.92));
  border: 1px solid rgba(16, 24, 38, 0.10);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.agreement-card-dark p,
.agreement-card-dark .photo-placeholder {
  color: #101826;
}

.detail-link-light {
  color: #101826;
  border-color: rgba(16, 24, 38, 0.14);
  background: rgba(16, 24, 38, 0.04);
  font-weight: 700;
}

.detail-link-light:hover,
.detail-link-light:focus-visible {
  background: rgba(16, 24, 38, 0.08);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.meta-grid.four-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-pill {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 24, 38, 0.08);
  box-shadow: 0 10px 24px rgba(18, 28, 45, 0.04);
}

.meta-pill span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
}

.meta-pill strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
}

.program-card {
  display: grid;
  gap: 24px;
}

.program-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  color: var(--ink);
}

.program-subhead {
  margin: 0;
  font-weight: 800;
  color: var(--ink-soft);
}

.program-copy {
  display: grid;
  gap: 16px;
}

.program-copy p,
.timeline-item p,
.note-panel,
.thai-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.timeline-list {
  display: grid;
  gap: 22px;
  margin-top: 6px;
}

.timeline-item {
  position: relative;
  padding: 0 0 0 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 0 0 5px rgba(0, 85, 255, 0.08);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  bottom: -22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 85, 255, 0.18), rgba(0, 201, 167, 0.10));
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.timeline-item p+p {
  margin-top: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 85, 255, 0.16);
  background: rgba(0, 85, 255, 0.06);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.note-panel {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 85, 255, 0.06), rgba(0, 201, 167, 0.05));
  border: 1px solid rgba(0, 85, 255, 0.10);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid-dark .photo-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(244, 249, 255, 0.72);
}

.photo-placeholder {
  min-height: 150px;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 38, 0.10);
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.92), rgba(243, 233, 221, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 800;
}

.thai-note {
  margin-top: 10px;
  font-style: italic;
  color: #6d7d98;
}

.subpage-kokusai .nav-links a[aria-current="page"] {
  color: var(--blue);
  background: rgba(0, 85, 255, 0.08);
}

@media (max-width: 980px) {

  .meta-grid,
  .meta-grid.four-col,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .subpage-kokusai .subpage-hero-inner {
    padding: 76px 0 56px;
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-quote-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .meta-grid,
  .meta-grid.four-col,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-left: 22px;
  }

  .photo-placeholder {
    min-height: 120px;
  }
}

/* ===== Cleanup for research + program cards ===== */
.full-width-copy p,
.program-card .program-copy p,
.program-card .timeline-item p,
.program-card .note-panel,
.program-card .thai-note {
  max-width: none;
  width: 100%;
}

.program-card .program-copy,
.program-card .timeline-list {
  width: 100%;
}

.program-card .detail-link {
  align-self: flex-start;
}



/* ===== Research page patch ===== */
/* Hero */
.subpage-research .hero.subpage-hero {
  min-height: clamp(560px, 40vh, 860px);
  background:
    linear-gradient(120deg, rgba(10, 15, 28, 0.86) 0%, rgba(11, 24, 48, 0.80) 36%, rgba(0, 85, 255, 0.22) 100%),
    radial-gradient(circle at 78% 22%, rgba(0, 201, 167, 0.16), transparent 20%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.10), transparent 24%),
    linear-gradient(180deg, #0d1528 0%, #13213d 100%);
}

.subpage-research .subpage-hero-inner {
  min-height: inherit;
  align-items: center;
  padding: 132px 0 110px;
}

.research-hero-copy {
  max-width: 980px;
}

.subpage-research .hero h1 {
  max-width: 16ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.subpage-research .hero-actions .detail-link {
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  min-width: 200px;
  justify-content: center;
}

.subpage-research .hero-actions .detail-link:hover,
.subpage-research .hero-actions .detail-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

/* Overview 2カラム */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.overview-grid .card {
  height: 100%;
}

/* 重点研究テーマ 2×2 カード */
.research-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.research-overview-grid .research-item {
  min-height: 100%;
}

.research-overview-grid .section-action {
  justify-content: flex-start;
}

/* 箇条書き */
.theme-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.theme-points li+li {
  margin-top: 10px;
}

/* 共同研究プロセス */
.process-card ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.process-card li+li {
  margin-top: 12px;
}

/* ロボティクス注記 */
.topic-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  border-radius: 0 18px 18px 0;
  background: rgba(0, 85, 255, 0.04);
  color: var(--muted);
}

/* CTAボタン並び */
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* 詳細カード内の文章幅を安定化 */
.full-width-copy p,
.program-card .program-copy p,
.program-card .timeline-item p,
.program-card .note-panel,
.program-card .thai-note {
  max-width: none;
  width: 100%;
}

.program-card .program-copy,
.program-card .timeline-list {
  width: 100%;
}

/* レスポンシブ */
@media (max-width: 980px) {

  .overview-grid,
  .research-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .subpage-research .subpage-hero-inner {
    padding: 76px 0 56px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .subpage-research .hero-actions .detail-link {
    width: 100%;
    min-width: 0;
  }

  .subpage-research .hero h1 {
    max-width: 100%;
  }
}

/* ===== Research page fix ===== */
.subpage-research .nav-links a[aria-current="page"] {
  color: var(--blue);
  background: rgba(0, 85, 255, 0.08);
}

.subpage-research .hero.subpage-hero.research-page-hero {
  min-height: clamp(420px, 40vh, 620px);
  background:
    linear-gradient(120deg, rgba(10, 15, 28, 0.84) 0%, rgba(11, 24, 48, 0.76) 38%, rgba(0, 85, 255, 0.16) 100%),
    radial-gradient(circle at 78% 22%, rgba(0, 201, 167, 0.12), transparent 20%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.08), transparent 24%),
}

.subpage-research .hero.subpage-hero.research-page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 16, 29, 0.78), rgba(16, 33, 61, 0.78)),
    url('../img/research/research-hero.png') center/cover no-repeat;
  color: var(--white);
}

.subpage-research .subpage-hero-inner {
  min-height: inherit;
  align-items: center;
  padding: 132px 0 110px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.research-hero-copy {
  max-width: 960px;
}

.subpage-research .hero h1 {
  max-width: 16ch;
}

.subpage-research .hero-quote {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-actions .detail-link {
  margin-top: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.overview-grid>.card {
  height: 100%;
}

.research-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.research-overview-grid>.research-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-overview-grid .section-action {
  justify-content: flex-start;
  margin-top: auto;
}

.theme-points {
  margin: 4px 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.theme-points li::marker {
  color: var(--blue);
}

.topic-note {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 85, 255, 0.06), rgba(0, 201, 167, 0.05));
  border: 1px solid rgba(0, 85, 255, 0.10);
  color: var(--ink-soft);
}

.process-card ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.cta-actions .detail-link {
  margin-top: 0;
}

.program-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.program-photo-item {
  height: 100%;
  aspect-ratio: 16 / 9;
}

.program-photo-image,
.program-image-fallback {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.program-photo-image {
  object-fit: cover;
}

.program-image-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--blue);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(239, 244, 255, 0.95), rgba(220, 230, 248, 0.9));
}

@media (max-width: 720px) {
  .program-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {

  .overview-grid,
  .research-overview-grid {
    grid-template-columns: 1fr;
  }

  .subpage-research .subpage-hero-inner {
    padding: 76px 0 56px;
  }
}

@media (max-width: 720px) {
  .subpage-research .hero.subpage-hero.research-page-hero {
    min-height: auto;
  }

  .subpage-research .subpage-hero-inner {
    min-height: auto;
    padding: 76px 0 56px;
    gap: 18px;
    align-items: start;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero-actions .detail-link,
  .cta-actions .detail-link {
    width: 100%;
  }
}

/* ===============================
   Mobile Hero unify patch
   index.html と同じ見え方に統一
   追加場所：style.css の一番最後
================================= */
@media (max-width: 720px) {

  /* kokusai / research のHero本体を index と同じ高さの決まり方にする */
  .subpage-kokusai .hero.subpage-hero.kokusai-hero,
  .subpage-research .hero.subpage-hero.research-page-hero,
  .subpage-kokusai .hero.subpage-hero,
  .subpage-research .hero.subpage-hero {
    min-height: auto;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* index の .hero-inner と同じ余白・配置に統一 */
  .subpage-kokusai .subpage-hero-inner,
  .subpage-research .subpage-hero-inner {
    min-height: auto;
    padding: 76px 0 56px;
    gap: 18px;
    align-items: start;
  }

  /* index のモバイル見出しルールに統一 */
  .subpage-kokusai .hero h1,
  .subpage-research .hero h1 {
    max-width: 100%;
    margin: 0 0 14px;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.05;
  }

  .subpage-kokusai .hero h1 span,
  .subpage-research .hero h1 span {
    white-space: normal;
  }

  /* Hero内テキストも index 側に寄せる */
  .subpage-kokusai .hero p,
  .subpage-research .hero p,
  .subpage-kokusai .hero-lead,
  .subpage-research .hero-lead {
    font-size: 0.98rem;
    line-height: 1.8;
    max-width: 100%;
  }

  /* 余白だけ少し揃える */
  .subpage-kokusai .hero-quote-card,
  .subpage-research .hero-quote,
  .subpage-research .hero-quote-card {
    margin-top: 18px;
  }
}

li a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

li a:hover {
  opacity: 0.85;
}