/* プロフィール一覧 */
.archivePageWrapper {
  --profile-card-border: #dff2fb;
  --profile-card-shadow: 0 6px 10px rgba(27, 67, 71, 0.12);
  --profile-card-shadow-sp: 0 3px 5px rgba(27, 67, 71, 0.094);
  --profile-card-accent: #66c9ff;
  --profile-card-accent-dark: #3f8bc9;
  --profile-card-text: #1f2c2c;
  --profile-card-muted: #4c5757;
}

.archivePageWrapper .gridWrapper {
  width: 100%;
  display: grid;
}

.archivePageWrapper .gridWrapper.col3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 1024px) {
  .archivePageWrapper .gridWrapper.col3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .archivePageWrapper .gridWrapper.col3 {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px 0 32px 0;
  }
}

/* プロフィールカード */
.archivePageWrapper .profileCard {
  width: 100%;
  border-radius: 20px;
  padding: 20px 20px 24px;
  box-shadow: var(--profile-card-shadow);
  background: linear-gradient(180deg, #ffffff 0%, #e1faf3c2 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin-top: 110px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .archivePageWrapper .profileCard {
    padding: 16px;
    border-radius: 18px;
    margin-top: 0px;
    background: linear-gradient(180deg, #ebf9f5 0%, #ebfbf6 100%);
    border-radius: 8px;
    box-shadow: var(--profile-card-shadow-sp);
  }
}

/* カードタイトルのラッパー */
.archivePageWrapper .profileCard .cardTitleWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .archivePageWrapper .profileCard .cardTitleWrapper {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 16px;
    gap: 14px;
  }
}

/* カードテキストのラッパー（タイトル+説明） */
.archivePageWrapper .profileCard .cardTextWrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 640px) {
  .archivePageWrapper .profileCard .cardTextWrapper {}
}

/* プロフィールカードのサムネイル */
.archivePageWrapper .profileCardThumbnail {
  position: relative;
  width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: visible;
  background: linear-gradient(135deg, #f8fdfd, #e8f6f6);
  border: 5px solid #fff;
  box-shadow:
    0 8px 24px rgba(53, 167, 171, 0.4),
    0 0 0 3px rgba(56, 196, 174, 0.5);
  margin: -110px 0 24px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 640px) {
  .archivePageWrapper .profileCardThumbnail {
    width: 88px;
    margin: 0;
    flex-shrink: 0;
  }
}

.archivePageWrapper .profileCardThumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* カードタイトル */
.archivePageWrapper .profileCard .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--profile-card-text);
  line-height: 1.4;
  margin: 0 0 16px 0;
  padding: 0;
}

@media (max-width: 640px) {
  .archivePageWrapper .profileCard .card-title {
    font-size: 16px;
    margin: 0 0 8px 0;
    padding: 8px 0 0 0;
  }
}

/* カードディスクリプション（肩書き） */
.archivePageWrapper .profileCard .card-description {
  font-size: 14px;
  font-weight: 400;
  color: var(--profile-card-muted);
  line-height: 1.6;
  margin: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .archivePageWrapper .profileCard .card-description {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* プロフィールボタン */
.archivePageWrapper .profileCard .profileButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: auto auto 0 auto;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #38c4ae 0%, #30b0b5 100%);
  box-shadow: 0 10px 20px rgba(90, 170, 244, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archivePageWrapper .profileCard .profileButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(90, 170, 244, 0.4);
}

@media (max-width: 640px) {
  .archivePageWrapper .profileCard .profileButton {
    width: 100%;
    padding: 12px 16px;
  }
}