.popup {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
}

.popup.hidden {
  display: none;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
}

.popup-content {
  position: relative;
  background: #EBE2D4;
  padding: 24px;
  width: min(100%, 420px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 1;
  display: grid;
  gap: 10px;
}


/* スクロール全体 */
.popup-content::-webkit-scrollbar {
  width: 5px;
}

/* スクロールバーのつまみｂ */
.popup-content::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 3px;
}

/* スクロールバー背景 */
.popup-content::-webkit-scrollbar-track {
  background: transparent;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  color: #334155;
  font-size: 1.5rem;
  padding: 6px 10px;
}

.popup-actions {
  display: grid;
  gap: 12px;
}

.share-popup-content .popup-actions a {
  text-decoration: none;
}

.share-popup-content {
  width: min(100%, 480px);
  max-width: 480px;
}

.share-preview-image {
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
  background: #f4f2ef;
}

.share-preview-image-error {
  margin: 0;
  color: #9f1239;
}

.manual-icon {
  display: flex;
  margin-bottom: 10px;
}

.manual-icon img {
  width: 20px;
  margin-right: 4px;
}
