/* 新規入会者の声（nyukaisha-voice.html 専用）。絞り込み欄は round-lesson.css の .rl-filter を共用 */

.nv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}
.nv[aria-busy="true"] .nv-grid { opacity: .5; transition: opacity .2s; }

/* ---- カード ---- */
.nv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 0;
  background: #fff;
  border: 1px solid var(--line-color);
  border-top: 4px solid var(--green-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.nv-card::before {
  content: "❝";
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: var(--green-100);
  pointer-events: none;
}

/* お名前・年代・お住まい */
.nv-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
  margin-bottom: 14px;
}
.nv-card__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-050);
  border: 2px solid var(--green-100);
  color: var(--green-700);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.nv-card__person { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; }
.nv-card__person b { font-size: 15px; font-weight: 800; color: var(--ink); }
.nv-card__person span { font-size: 12.5px; color: var(--ink-3); }

/* 本文：文ごとに段落を分けて表示 */
.nv-card__body {
  position: relative;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.nv-card__body p { margin: 0; }
.nv-card__body p + p { margin-top: .7em; }

/* 長文は畳んでおき「続きを読む」で開く（JSが有効なときだけ） */
.nv-card__toggle { display: none; }
.nv--js .nv-card.is-long:not(.is-open) .nv-card__body {
  max-height: calc(1.95em * 5 + .7em);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.nv--js .nv-card.is-long .nv-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin: 6px 0 0;
  padding: 6px 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green-700);
  background: none;
  border: 0;
  cursor: pointer;
}
.nv-card__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.nv-card.is-open .nv-card__toggle::after { transform: translateY(2px) rotate(-135deg); }
.nv-card__toggle:hover { text-decoration: underline; }
.nv-card__toggle:focus-visible { outline: 3px solid var(--green-100); border-radius: 4px; }

/* 入会校・公開日 */
.nv-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin: 16px -22px 0;
  padding: 12px 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--line-color);
  border-radius: 0 0 var(--radius) var(--radius);
}
.nv-card__school {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--green-700);
}
.nv-card__school::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}
/* 旧掲示板の投稿（入会校の記載なし） */
.nv-card__school--none { font-weight: 600; color: var(--ink-3); }
.nv-card__school--none::before { background: var(--line-color); }
.nv-card__school--none:empty::before { display: none; }
.nv-card__foot time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.nv-more { margin-top: 32px; text-align: center; }
.nv-more [hidden] { display: none; }
.nv-more .btn { min-width: 240px; }

@media (max-width: 600px) {
  .nv-grid { grid-template-columns: 1fr; gap: 14px; }
  .nv-card { padding: 18px 18px 0; }
  .nv-card__foot { margin: 14px -18px 0; padding: 11px 18px; }
  .nv-card__body { font-size: 15.5px; }
}
