.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 30px 20px;
  }

  .memcard {
    position: relative;
	  width:220px;
    background: var(--body);
    border: 9px solid var(--body);
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  .memcard:hover {
    transform: scale(1.02);
  }

  .memcard img {
    width: 100%;
	  width:240px;
	  height:240px;
    object-fit: cover;
    display: block;
	  filter:grayscale(0.6);
  }

  .memcard h5 {
    font-family: 'Uncial Antiqua', serif;
    font-size: 18px;
    text-align: center;
    padding: 10px 0 0;
    color: #cbb994;
  }

  .spname {
    font-size: 12px;
    text-align: center;
    color: #998a74;
    font-style: italic;
  }

  .memcard p {
    font-size: 13px;
    text-align: center;
    padding: 10px 0 15px;
  }

  .memcard a {
    color: #cbb994;
    text-decoration: none;
    margin: 0 6px;
  }

  .alphabet-nav {
    text-align: center;
    font-size: 13px;
    padding: 10px;
    margin-bottom: 10px;
    color: #cbb994;
  }
  .alphabet-nav a {
    margin: 0 3px;
    padding: 5px 8px;
    color: #cbb994;
    background: rgba(255,255,255,0.02);
    border-radius: 3px;
    text-decoration: none;
  }
  .alphabet-nav a:hover {
    background: rgba(255,255,255,0.08);
  }

.member-item {
  position: relative;
  display: inline-block;
  width: 250px;
  margin: 20px;
}

.note {
  position: absolute;
  top: 10px;
  right: -20px;
  width: 180px;
  height: 290px;
  background: var(--beige);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 6px 6px 10px rgba(0,0,0,0.3);
  transform: rotate(0deg);
  z-index: 0; 
	border-radius:2px;
}

.note-text {
  font-size: 13px;
  color: var(--back);
  padding: 20px 10px 40px 50px;
  line-height: 1.4;
}

.memcard {
  position: relative;
  z-index: 2; 
}

.member-item:nth-child(odd) .note {
  transform: rotate(1deg);
  right: -125px;
  top: -15px;
  background: #f3e6b3;
}

.member-item:nth-child(even) .note {
  transform: rotate(-1deg);
  right: -135px;
  top: -5px;
  background: #f5eac5;
}

.note::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 60px;
  width: 80px;
  height: 18px;
  background: rgba(255, 255, 204, 0.6);
  transform: rotate(-2deg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border-radius: 2px;
}
