/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: #f7f7f7;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #1f4e79;
  padding: 1rem 0;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  position: relative;
}

nav li {
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #aad4ff;
}

nav li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1f4e79;
  padding: 0.5rem 0;
  border-radius: 0 0 4px 4px;
  min-width: 200px;
  z-index: 1001;
}

nav li:hover .dropdown {
  display: block;
}

nav li .dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.slider {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero {
  background-color: #1f4e79;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.news-scroll {
  max-height: 150px;
  overflow-y: auto;
  background: #fff;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: left;
  margin: 0 auto;
  max-width: 800px;
  color: #333;
}

.news-scroll ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.news-scroll li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.publication-preview {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.pub-item {
  flex: 1 1 45%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pub-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 4px;
}

.more-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #1f4e79;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.more-button:hover {
  background-color: #163a5c;
}

.section {
  padding: 4rem 0;
  background: white;
}

.section:nth-of-type(even) {
  background: #eef3f7;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f4e79;
}

footer {
  background: #1f4e79;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* メンバー表示の追加 */
.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.member-card {
  flex: 0 1 160px;
  text-align: center;
}

.member-card img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  max-width: 160px;
}

.member-card p {
  margin-top: 0.5rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .slider {
    height: 200px;
  }

  .news-scroll {
    max-height: 120px;
    padding: 0.75rem;
  }

  .publication-preview {
    flex-direction: column;
  }

  .pub-item {
    flex: 1 1 100%;
  }
  
} 


.pub-entry {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.pub-entry a {
  color: #1f4e79;
  text-decoration: none;
}
.pub-entry a:hover {
  text-decoration: underline;
}


.pub-section {
  margin-bottom: 1rem;
}

.pub-year-toggle {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: #1f4e79;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pub-year-content {
  padding: 0.5rem 1rem 1rem 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.pub-year-content.hidden {
  display: none;
}
.hidden {
  display: none;
}
