/* 卒業生の声アーカイブページのスタイル */
.voice-archive {
  background: var(--baseblack-50);
}

.voice-filter-buttons {
  justify-content: center;
  max-width: 800px;
  margin: 80px auto 64px;
  background-color: #fff;
  padding: 16px;
}

.voice-filter-buttons .wp-block-buttons {
  width: 100%;
  flex-wrap: nowrap;
  gap: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  /* gap: 20px; */
}

.voice-filter-buttons .wp-block-button {
  width: 50%;
  margin: 0;
}

.voice-filter-buttons .wp-block-button:not(:first-child) {
  border-left: solid 1px var(--baseblack-200);
  padding-left: 24px;
}

.voice-filter-buttons .wp-block-button__link {
  padding: 0;
  border: none;
}

.voice-filter-button.active {
  border-color: #148F72;
  color: #148F72;
}

.voice-filter-category-list {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.voice-filter-category-list p {
  margin: 0;
  white-space: nowrap;
}

.voice-filter-category-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: #148F72;
}


.voice-filter-label {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 16px;
}

.voice-filter-button {
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  padding: 10px 8px;
  border: solid 1px var(--baseblack-800);
  color: var(--baseblack-800);
  border-radius: 4px;
  background-color: #fff;
  width: 100%;
  text-align: left;
}

.voice-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.voice-archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0;
  list-style: none;
}

.voice-archive-list > .wp-block-post {
  width: 246px;
  flex-grow: 1;
  margin-top: 0;
}

@media screen and (min-width: 960px) {
  .voice-archive-list > .wp-block-post {
    max-width: 246px;
  }
}

.voice-card-article {
  height: 100%;
}

.voice-card {
  background-color: #fff;
  border-radius: 4px;
  border: solid 1px var(--baseblack-200);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.voice-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.voice-card-content {
  padding: 16px;
}

.voice-card-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
  font-size: 12px;
}

.voice-card-meta p {
  margin: 0;
}

.voice-card-image {
  line-height: 0;
  margin-top: auto;
}

.voice-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.voice-card-image img:hover {
  opacity: 1;
}

.voice-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  height: auto;
  line-height: 1.5;
  border-bottom: solid 1px var(--baseblack-300);
  padding-bottom: 16px;
}

.voice-card-name {
  font-weight: 700;
  font-size: 18px;
}

.voice-excerpt {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
}

/* ページネーション */
.wp-block-query-pagination {
  margin-top: 40px;
}

.wp-block-query-pagination .page-numbers {
  padding: 8px 12px;
  margin: 0 4px;
  border: 1px solid #ddd;
  text-decoration: none;
}

.wp-block-query-pagination .current {
  background-color: #1A1A1A;
  color: #FFFFFF;
  border-color: #1A1A1A;
}

/* 卒業生の声詳細ページのスタイル */
.voice-profile-container {
  margin-bottom: 40px;
}

.voice-profile-row {
  display: flex;
  gap: 8px;
  background-color: var(--baseblack-50);
}

.voice-profile-image {
  flex: 0 1 50%;
}

.voice-profile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.voice-profile-info {
  flex: 0 1 50%;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

body.single .voice-single-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.75;
  margin: 0;
  position: initial;
}

body.single .voice-single-name::before {
  display: none;
}

.voice-single-graduation,
.voice-single-company,
.voice-single-position {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.voice-single-graduation {
  font-weight: bold;
}

.voice-profile-info-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-profile-info-job {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voice-single-position {
  font-size: 12px;
}

.voice-back-button {
  width: 320px;
}

@media screen and (max-width: 768px) {
  /* フィルターボタン */
  .voice-filter-buttons {
    margin: 12px 0 24px;
    padding: 0 16px;
    justify-content: flex-end;
    background-color: transparent;
  }

  .voice-filter-buttons .wp-block-buttons {
    gap: 8px;
    justify-content: flex-end;
  }

  .voice-filter-buttons .is-style-outline.is-style-outline.wp-block-button {
    width: auto;
    background-color: transparent;
  }

  .voice-filter-buttons .wp-block-button:not(:first-child) {
    border-left: none;
    padding-left: 0;
  }

  .voice-filter-button {
    padding: 8px;
    text-align: center;
    white-space: nowrap;
  }

  .voice-filter-label {
    display: none;
  }

  /* プロフィール */
  .voice-profile-row {
    flex-direction: column;
  }
  
  .voice-profile-image,
  .voice-profile-info {
    flex: 0 0 100%;
  }
  
  .voice-profile-info {
    padding: 16px 16px 20px;
    gap: 16px;
  }
  
  .voice-single-name {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .voice-profile-info-header {
    gap: 2px;
  }

  .voice-profile-info-job {
    gap: 4px;
  }
  
  .voice-single-graduation,
  .voice-single-company,
  .voice-single-position {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .voice-back-button {
    width: 240px;
  }

  /* カードのサイズ */
  .voice-card-image img {
    aspect-ratio: 335 / 169;
  }
}

@media screen and (max-width: 414px) {

  
  .voice-card-title {
    font-size: 16px;
  }
  
  .voice-excerpt {
    font-size: 13px;
  }
}
