@charset "UTF-8";

/* ==========================================================
   できたて！ポンッ ガチャ
   beach.jp 公式サークル館（N-KIZUNA-001）のガチャ実装を移植。
   バナー・マシンは当LPのカンプ準拠のrem配置（白カード内）。
   結果モーダルは本家と同じくPC/SPで出し分け
   （768px境界。SPは画像に _s サフィックス・vwベース）。
   ========================================================== */

.cmsGacha {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif !important;
}
.cmsGacha img {
  width: 100%;
  height: auto;
}
.cmsGacha .cmsGachaContainer {
  /* カンプ実測: カード内側606px・バナー高327px＋マシンのはみ出し */
  position: relative;
  height: 37.2rem;
}
.cmsGacha #cmsJsGachaBnr {
  width: 100%;
}
.cmsGacha .cmsClickBoxContainer {
  position: absolute;
  top: 19.8rem;
  left: 31.7rem;
  transform: translate(-50%, -50%);
  width: 21.9rem;
}

.cmsJsModalBtnWrap {
  cursor: pointer;
}
.cmsJsModalBtnWrap.active #cmsJsGachaMainbody {
  animation: cmsAniJiggle 0.5s ease-out;
  animation-iteration-count: 1;
}
@keyframes cmsAniJiggle {
  16.65% { transform: rotate(10deg); }
  33.3% { transform: rotate(-8deg); }
  49.95% { transform: rotate(6deg); }
  66.6% { transform: rotate(-4deg); }
  83.25% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.cmsJsModalWrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.cmsJsModalWrap.active {
  animation: cmsModalOpen 2s ease forwards;
  display: block;
}
.cmsJsModalWrap.active2 {
  animation: cmsModalClose 1s ease forwards;
}
@keyframes cmsModalOpen {
  0% { opacity: 0; }
  100% { opacity: 1; z-index: 1000; }
}
@keyframes cmsModalClose {
  0% { opacity: 1; z-index: 1000; }
  100% { opacity: 0; }
}

.cmsJsModalBG {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.cmsJsModalClose {
  position: absolute;
  z-index: 1;
  border-radius: 9999px;
  cursor: pointer;
}
.cmsJsModalClose::before,
.cmsJsModalClose::after {
  content: "";
  position: absolute;
  background-color: #fff;
}
.cmsJsModalClose::before { transform: rotate(45deg); }
.cmsJsModalClose::after { transform: rotate(-45deg); }
.cmsJsModalClose:hover {
  opacity: 0.8;
}

.cmsJsModalContInner {
  position: relative;
  top: calc(50% - 30px);
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-50%) translateY(-50%);
  border-radius: 8px;
  box-sizing: border-box;
}
.cmsJsModalCont {
  position: relative;
}

.cmsResultWrapper {
  position: absolute;
}
.cmsResult02 {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 9px;
  font-weight: bold;
  box-sizing: border-box;
}
.cmsResult02 > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: #333;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
  box-sizing: border-box;
}
.cmsResult02 > a::after {
  content: "";
  position: absolute;
  background-size: cover;
}
.cmsResult02 > a:hover {
  opacity: 0.7;
}
.cmsResult04 {
  text-align: center;
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
}

.cmsBtnWrapper {
  position: absolute;
}
.cmsBtnRetry:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* ----------------------------------------------------------
   PC版（beachのPC出し分けHTML相当）
   ---------------------------------------------------------- */
@media (min-width: 768px) {
  .cmsJsModalClose {
    top: 62px;
    right: 33px;
    width: 40px;
    height: 40px;
  }
  .cmsJsModalClose::before,
  .cmsJsModalClose::after {
    top: 18px;
    right: 8px;
    width: 26px;
    height: 4px;
  }

  .cmsJsModalContInner {
    width: 600px;
    max-width: 600px;
    height: 333px;
  }
  .cmsJsModalCont {
    width: 600px;
    min-height: 333px;
  }

  .cmsResultWrapper {
    top: 92px;
    left: 100px;
  }
  .cmsResult02 {
    width: 400px;
  }
  .cmsResult02 > a {
    width: 670px;
    min-height: 84px;
    padding: 10px 40px;
    font-size: 18px;
  }
  .cmsResult02 > a::after {
    top: calc(50% - 21px);
    right: -22px;
    width: 42px;
    height: 42px;
    background-image: url("https://www.beach.jp/asset/community/N-KIZUNA-001/images/static/gacha_allow.png");
  }
  .cmsResult04 {
    width: 400px;
    margin-top: 8px;
    font-size: 16px;
  }
  .cmsResult04 span {
    font-size: 20px;
  }

  .cmsBtnWrapper {
    left: 192px;
    bottom: 45px;
  }
  .cmsBtnRetry {
    width: 216px;
    height: 38px;
  }
}

/* ----------------------------------------------------------
   SP版（beachのSP出し分けHTML相当・vwベース）
   ---------------------------------------------------------- */
@media (max-width: 767.98px) {
  .cmsJsModalClose {
    top: 14.5vw;
    right: 8.5vw;
    width: 5.07vw;
    height: 5.07vw;
  }
  .cmsJsModalClose::before,
  .cmsJsModalClose::after {
    top: 0;
    right: 0;
    width: 5.07vw;
    height: 3px;
  }

  .cmsJsModalContInner {
    width: calc(100vw - 15px);
    height: 84.67vw;
  }
  .cmsJsModalCont {
    width: 100%;
    min-height: 84.67vw;
    background-image: url("https://www.beach.jp/asset/community/N-KIZUNA-001/images/static/gacha_bgall_01_s.png");
    background-size: cover;
  }

  .cmsResultWrapper {
    top: 18.7vw;
    left: 10vw;
    width: 76.27vw;
    height: 24.93vw;
  }
  .cmsResult02 {
    height: 24.93vw;
  }
  .cmsResult02 > a {
    width: 100%;
    height: 24.93vw;
    padding: 10px calc(50 / 750 * 100vw);
    font-size: 4.5vw;
  }
  .cmsResult02 > a::after {
    top: calc(50% - (9.73vw / 2));
    right: -3.5vw;
    width: 9.73vw;
    height: 9.73vw;
    background-image: url("https://www.beach.jp/asset/community/N-KIZUNA-001/images/static/gacha_allow_s.png");
  }
  .cmsResult04 {
    margin-top: 2vw;
    font-size: 3.2vw;
  }
  .cmsResult04 span {
    font-size: 4vw;
  }

  .cmsBtnWrapper {
    left: calc((100% - 42.67vw) / 2);
    bottom: 13vw;
  }
  .cmsBtnRetry {
    width: 42.67vw;
    height: 8.8vw;
  }
}
