/* ----------------------------------------------
学生インタビューカード
---------------------------------------------- */
.p-student-interview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: visible;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.p-student-interview-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: none;
}

.p-student-interview-card__link:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
}

.p-student-interview-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #eef0f2;
}

.p-student-interview-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.18s ease;
}

.p-student-interview-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--white);
  transition: background 0.18s ease;
}

.p-student-interview-card__name {
  margin: 0 0 2px;
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-student-interview-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 8px;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.4;
}

.p-student-interview-card__message {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  padding: 0;
  color: #666;
  font-size: 1.15rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.p-student-interview-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.p-student-interview-card__tag {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 9px;
  border: 1px solid var(--brand);
  border-radius: 14px;
  background: var(--white);
  color: var(--brand-ink);
  font-size: 1.05rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-student-interview-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.p-student-interview-card__link:active ~ .p-student-interview-card__body {
  background: #fafdfe;
}

@media (hover: hover) and (pointer: fine) {
  .p-student-interview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(14, 122, 145, 0.22);
  }

  .p-student-interview-card-list--top .p-student-interview-card:hover {
    box-shadow: 0 10px 26px rgba(14, 122, 145, 0.7);
  }

  .p-student-interview-card:hover .p-student-interview-card__image img {
    filter: brightness(1.03);
  }

  .p-student-interview-card:hover .p-student-interview-card__cta {
    background: var(--brand-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-student-interview-card,
  .p-student-interview-card__image img,
  .p-student-interview-card__body {
    transition: none;
  }
}

/* ----------------------------------------------
学生インタビューカード一覧（TOP専用）
---------------------------------------------- */
.p-student-interview-card-list--top {
  --p-student-interview-card-list-gap: clamp(24px, 1.5vw, 30px);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--p-student-interview-card-list-gap);
  width: 100%;
  max-width: calc(840px + var(--p-student-interview-card-list-gap) + var(--p-student-interview-card-list-gap));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.p-student-interview-card-list--top > .p-student-interview-card-list__item {
  flex: 0 1 calc((100% - var(--p-student-interview-card-list-gap) - var(--p-student-interview-card-list-gap)) / 3);
  width: 100%;
  max-width: 280px;
  margin: 0;
}

/* ----------------------------------------------
学生インタビューカード一覧（/voice/・業界別ページ）
---------------------------------------------- */
.p-student-interview-card-list--archive,
.p-student-interview-card-list--industry {
  --p-student-interview-card-list-gap: clamp(24px, 2vw, 30px);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--p-student-interview-card-list-gap);
  width: 100%;
}

.p-student-interview-card-list--archive {
  margin-bottom: 40px;
}

.p-student-interview-card-list--archive::after,
.p-student-interview-card-list--industry::after {
  content: none;
}

.p-student-interview-card-list--archive > .p-student-interview-card-list__item,
.p-student-interview-card-list--industry > .p-student-interview-card-list__item {
  flex: 0 1 calc((100% - var(--p-student-interview-card-list-gap) - var(--p-student-interview-card-list-gap)) / 3);
  width: 100%;
  margin: 0;
}

@media screen and (max-width: 1023px) {
  .p-student-interview-card-list--top {
    --p-student-interview-card-list-gap: 20px;
    max-width: none;
  }

  .p-student-interview-card-list--top > .p-student-interview-card-list__item {
    flex: 0 1 calc((100% - var(--p-student-interview-card-list-gap)) / 2);
    max-width: none;
  }

  .p-student-interview-card-list--archive,
  .p-student-interview-card-list--industry {
    --p-student-interview-card-list-gap: 20px;
  }

  .p-student-interview-card-list--archive > .p-student-interview-card-list__item,
  .p-student-interview-card-list--industry > .p-student-interview-card-list__item {
    flex-basis: calc((100% - var(--p-student-interview-card-list-gap)) / 2);
  }
}

@media screen and (max-width: 767px) {
  .p-student-interview-card-list--top {
    justify-content: center;
  }

  .p-student-interview-card-list--top > .p-student-interview-card-list__item {
    flex-basis: 100%;
    max-width: 400px;
  }

  .p-student-interview-card-list--archive,
  .p-student-interview-card-list--industry {
    justify-content: center;
  }

  .p-student-interview-card-list--archive > .p-student-interview-card-list__item,
  .p-student-interview-card-list--industry > .p-student-interview-card-list__item {
    flex-basis: 100%;
    max-width: 400px;
  }

  .p-student-interview-card:active {
    transform: translateY(-1px) scale(0.98);
  }
}
