@charset "UTF-8";

/* -------------------------------------------------------------------
   結果画面：「結果を画像でダウンロード」のポップアップ（js/results_download.js）
   共栄ワークスで作成した見本
   download 属性が使えないため、画像をポップアップで見せて長押し・右クリックで保存してもらう。
   KONAMI の既存サイト（戦国コレクションの壁紙ダウンロード）に合わせた見本。
   見た目は仮。制作会社でデザインを決めて差し替える前提。
   ------------------------------------------------------------------- */
.wc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.8);
}

.wc-lightbox[hidden] {
  display: none;
}

.wc-lightbox__inner {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 8px 8px 12px;
  border-radius: 4px;
  background: #fff;
}

.wc-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  /* iPhone で長押ししたときに保存メニューが出るようにする */
  -webkit-touch-callout: default;
  user-select: auto;
}

.wc-lightbox__note {
  margin: 10px 0 0;
  color: #333;
  font-family: "Kazesawa", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.wc-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ポップアップ表示中は後ろのページをスクロールさせない */
.wc-lightbox-open,
.wc-lightbox-open body {
  overflow: hidden;
}
