body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(17, 24, 39, 0.64);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal-backdrop[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(20, 24, 33, 0.24);
  transform: translateY(8px);
  transition: transform 0.18s ease;
}

.modal-backdrop[aria-hidden="false"] .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0 0 -34px auto;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.modal-close:hover {
  border-color: rgba(211, 0, 4, 0.32);
  color: #d30004;
}

.modal-body {
  margin-top: 0;
}

.modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(32vh, 320px);
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #f5f6f8;
  object-fit: contain;
  object-position: center;
}

.modal-image + .voice-card {
  padding-top: clamp(26px, 4vw, 42px);
}

.voice-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 8px;
  background: #ffffff;
}

.quote-mark {
  position: absolute;
  top: 22px;
  right: 38px;
  color: rgba(211, 0, 4, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(92px, 15vw, 150px);
  font-weight: 700;
  line-height: 1;
}

.voice-card .label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff3f3;
  color: #d30004;
  font-size: 13px;
  font-weight: 700;
}

.voice-card h2 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(29px, 4.4vw, 44px);
  line-height: 1.35;
  white-space: pre-line;
}

.voice-copy {
  position: relative;
  z-index: 1;
  max-width: 730px;
}

.voice-copy p {
  margin-bottom: 18px;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 2;
}

.voice-copy p:last-child {
  margin-bottom: 0;
}

.voice-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.voice-company {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.modal-logo {
  width: 96px;
  height: 48px;
  object-fit: contain;
}

.modal-name-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(211, 0, 4, 0.18);
  border-radius: 50%;
  background: #fff3f3;
  color: #d30004;
  font-weight: 800;
  line-height: 1;
}

.voice-name {
  color: #333333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.voice-field {
  color: #666666;
  font-size: 13px;
  line-height: 1.55;
}

.modal-tags {
  justify-content: flex-end;
}

@media (max-width: 680px) {
  .modal-backdrop {
    padding: 12px;
    place-items: end center;
  }

  .modal-dialog {
    max-height: 92vh;
    padding: 10px;
  }

  .modal-image {
    max-height: 180px;
    margin-bottom: 10px;
    border-radius: 6px;
  }

  .modal-close {
    top: 8px;
    margin-bottom: -30px;
  }

  .voice-card {
    padding: 28px 22px;
  }

  .quote-mark {
    top: 18px;
    right: 18px;
  }

  .voice-copy p {
    font-size: 15px;
    line-height: 1.9;
  }

  .voice-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-tags {
    justify-content: flex-start;
  }
}
