.staff-section {
    background-color: #fff;
}

/* 等間隔でキャプション付き画像を並べるセクション */
.staff-img-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 45px; /* 画像と画像の間隔 */
}

.image-item:nth-of-type(2)  {
  margin-top: 25px;
}

.image-item:nth-of-type(3)  {
  margin-top: 45px;
}

.staff-img-section .image-item {
  position: relative; /* 相対位置で子要素の絶対位置を基準にする */
  flex: 1 1 calc(33.333% - 45px); /* 3列での表示 */
  box-sizing: border-box;
}

/* オーバーレイ（タイトルとキャプションを含む） */
.staff-overlay {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  background: #fff;
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 20px 0 0 0;
}

/* タイトルのスタイル */
.title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  color: #138a45;
}

/* 文章のスタイル */
.image-item p {
  font-size: 1.6rem;
}


/* 文章中の見出しのスタイル */
.image-item p span {
  display: inline-block;
  border-left: solid 3px #138a45;
  padding: 10px;
  font-weight: bold;
  font-size: 1.9rem;
  margin-bottom: 15px;
}

/* はじめの見出し以外にmargin-topを設定 */
.image-item p span:not(:first-of-type) {
margin-top: 15px;
}

/* キャプションのスタイル */
.caption {
  color: #333;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: right;
}

.caption span {
  font-weight: normal;
  font-size: 1.5rem;
  margin-right: 10px;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
  .staff-img-section .image-item {
      flex: 1 1 100%; /* 1列表示 */
  }

  .image-item p {
    font-size: 1.8rem;
  }
  
  
  /* 文章中の見出しのスタイル */
  .image-item p span {
    font-size: 2.2rem;
  }
  
}