@charset "utf-8";

h2 {
  font-size: 1.3rem;
  color: #ffffff;          /* 白文字 */
  background-color: #005D48; /* 緑背景 */
  display: block;
  padding: 0.4rem 0.8rem;  /* 内側余白で帯っぽく */
  margin: 0 auto;
  margin-bottom: 1rem;
  position: relative;      /* 疑似要素打ち消しに必要 */
}

h2::after {
  content: none !important; /* 下線を無効化 */
}
.kaigyou {
display:none;
}

  .hero {
    position: relative;
    background: url('https://via.placeholder.com/1200x600?text=文化の継承') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
  }

  .hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
  }

  .hero-content {
    position: relative;
    z-index: 1;
  }

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

  .hero-content p {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.team-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  width: 32%;
  text-align: center;
}

.team-photo {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.team-card h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.2rem;
}

.role {
  font-weight: bold;
  color:#fff;
  background: #005D48;
  margin-bottom: 0.5rem;
  display:inline-block;
  padding:0 1rem;
}

.profile {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}


    .link-button {
      display: inline-block;
      padding: 0.5rem 1rem;
      background-color: #005D48;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      margin-top: 1rem;
    }

@media (max-width: 768px) {
.team-card {
width:100%;
}
.kaigyou {
display:inline;
}

}