/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonts and Body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fdfdfd;
}

/* Container */
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Header */
header {
  background: #477dc4;
  color: white;
  padding: 20px 0 0 0; /* 上20px、下0に変更して隙間削除 */
}

header h1 {
  margin-bottom: 10px;
}

header h2 {
  font-size: 1.2em;
  font-weight: normal;
  margin-top: -10px;
  margin-bottom: 30px;
}


/* === Navigation (Desktop + Mobile unified) === */
nav {
  position: relative; /* required for absolute hamburger positioning */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
  color: #ff9500;
}

nav a.active {
  text-decoration: underline;
  color: #ff9500;
  pointer-events: none;
}

.menu-toggle {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  /* Hamburger button */
  .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    color: white;
  }

  /* Mobile menu */
  nav ul {
    display: none; /* hidden by default */
    flex-direction: column;
	background-color: rgba(71, 125, 196, 0.9); /* 0.9 = 90% opacity */
    position: fixed;
    top: 10px;       /* just below header */
    right: 10px;
    width: 180px;
    padding: 10px;
    border-radius: 4px;
    z-index: 1000;
  }

  /* Show menu when active */
  nav ul.active {
    display: flex;
  }

  /* Make links vertical */
  nav ul li {
    margin: 10px 0;
  }
}


/* === Slick Slider === */
.slider {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
}

.slider img {
  width: 100%;
  height: 30vh;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}


/* Main Section */
.intro {
  margin-top: 0;
}

.intro h2 {
  margin-top: 20px;
}

.intro ul {
  padding-left: 2em;
}

.news {
  margin-top: 40px;
  padding: 15px;
  background-color: #f7f9fc;
  border-left: 5px solid #477dc4;
  border-radius: 4px;
}

.news h2 {
  margin-bottom: 15px;
  color: #477dc4;
}

.news ul {
  max-height: 200px;  /* adjust height */
  overflow-y: auto;
  padding-left: 1rem;
  border: 0px solid #ddd;
  border-radius: 5px;
}


.news li {
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.4;
}

.research h2 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.research h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.research ul {
  padding-left: 2em;
}

.research a {
  color: #0a1df5;
  text-decoration: none;
}

.research a:hover {
  text-decoration: underline;
}

.members h2 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.members h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.members p {
  margin-bottom: 10px;
}

.publication h2 {
  margin-top: 20px;
}

.publication p {
  margin-bottom: 10px;
}

.publication a {
  color: #0a1df5;
  text-decoration: none;
}

.publication a:hover {
  text-decoration: underline;
}

.contact h2 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.contact h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.contact p {
  margin-bottom: 10px;
}

.contact a {
  color: #0a1df5;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}


/* Footer */
footer {
  background: #eee;
  color: #333;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

/* Responsi*
