/* ページタイトル */
.page-title {
  text-align: center;
  padding: 30px 0;
  font-size: 32px;
  color: #5c3d2e;
  letter-spacing: 1px;
}

/* ===== スタッフカード ===== */
.staff-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 769px) {
  .staff-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.staff-card {
  background: #fff8f2;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  text-align: center;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.staff-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.staff-card h3 {
  margin: 10px 0 5px;
  font-size: 20px;
  color: #5c3d2e;
  font-weight: 600;
}

.staff-card .desc {
  font-size: 14px;
  color: #5c3d2e;
  padding: 0 15px 15px;
}

/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.modal-content {
  background: #fff8f2;
  border-radius: 25px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 25px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: fadeIn .3s;
}

/* モーダル内部余白 */
.modal-inner {
  text-align: center;
  overflow-y: scroll;        /* 内部スクロール可能 */
  padding-right: 10px;     /* スクロールバーを避ける余白 */
}

/* 下向きスクロール矢印 */
.scroll-indicator {
  position: absolute;
    bottom: 10px;       /* modal-content の下端に配置 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(184,147,106,0.6); /* ゴールド系薄め */
    pointer-events: none;
    transition: opacity 0.5s;
    opacity: 1;
    animation: bounce 1.5s infinite;

}

/* 上下バウンスアニメーション */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* スクロール中は矢印を消す */
.modal-inner.scrolled ~ .scroll-indicator {
  opacity: 0;
}

/* モーダル画像 */
.modal-img {
  width: 100%;
  height: auto;
  max-height: 45vh;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* 閉じるボタン */
.close-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px;
  width: 100%;
  background: #b8936a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.close-btn:hover {
  background: #a37c52;
}

/* 上の × ボタン */
.close {
  cursor: pointer;
  font-size: 28px;
  position: absolute;
  top: 12px;
  right: 20px;
  color: #5c3d2e;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px;
    padding: 15px 20px;
  }

  .modal-img {
    max-height: 40vh;
  }
}
