/* 合格者の声：達成スコアのリザルトをポップアップで見せる（/testimonial/ とトップで共有）。
   動きは /testimonial/js/proof-modal.js。 */

.voice-proof-pending {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-muted);
}

.voice-proof-modal {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--neutral-0, #fff);
  color: var(--ink);
}

.voice-proof-modal::backdrop {
  background: var(--scrim, rgba(4, 26, 43, 0.6));
}

html:has(.voice-proof-modal[open]) {
  overflow: hidden;
}

.voice-proof-modal__inner {
  padding: var(--space-4);
}

.voice-proof-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.voice-proof-modal__title {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink-strong);
}

.voice-proof-modal__close {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}

.voice-proof-modal__close:hover {
  color: var(--ink-strong);
}

.voice-proof-modal .score-proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

/* 切り抜きの横幅が画像ごとに違うので、同じ大きさの枠に中央で収める */
.voice-proof-modal .score-image {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  aspect-ratio: 5 / 2;
  margin: 0;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.voice-proof-modal .score-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.voice-proof-modal .voice-proof-pending {
  margin: 0 0 var(--space-2);
}
