/* ============================================
   top0511.css — TOPページ 合格者の声セクション
   ============================================ */

/* ---------- セクション全体 ---------- */
.p-top-voice {
  padding: 80px 8.35vw;
}

@media (max-width: 575.98px) {
  .p-top-voice {
    padding: 50px 17px;
  }
}

/* ---------- カードリスト ---------- */
.p-top-voice__list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .p-top-voice__list ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .p-top-voice__list ul {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- 各カード ---------- */
.p-top-voice__list li {
  display: flex;
}

.p-top-voice__list li a {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: #231f20;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.p-top-voice__list li a:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  opacity: 1;
  text-decoration: none;
}

/* ---------- 画像エリア ---------- */
.p-top-voice__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e8e8;
}

.p-top-voice__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- テキストエリア ---------- */
.p-top-voice__text {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-top-voice__name {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 8px;
}

.p-top-voice__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: #00267f;
  flex: 1;
}

@media (max-width: 575.98px) {
  .p-top-voice__text {
    padding: 12px 15px 16px;
  }

  .p-top-voice__title {
    font-size: 1.4rem;
  }
}

/* ---------- もっと見るボタン ---------- */
.p-top-voice__btn {
  text-align: center;
  margin-top: 10px;
}

.p-top-voice__btn a.c-btn01 {
  max-width: 360px;
  margin: 0 auto;
}
