/* イケメン幕末 ドリモワ クラウドファンディング告知モーダル（issue #1217） */
html.is-kakumei-cf-modal-open {
  overflow: hidden;
}

.kakumei-cf-modal {
  width: calc(100% - 30px);
  max-width: 560px;
  max-height: calc(100% - 40px);
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  outline: none;
}
.kakumei-cf-modal[open] {
  animation: kakumeiCfScaleIn 0.4s ease-out;
}
.kakumei-cf-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
@keyframes kakumeiCfScaleIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.kakumei-cf-modal__inner {
  position: relative;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  border-radius: 6px;
  text-align: center;
}

.kakumei-cf-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #7a1c1c;
  cursor: pointer;
}
.kakumei-cf-modal__close::before,
.kakumei-cf-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #fff;
}
.kakumei-cf-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.kakumei-cf-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.kakumei-cf-modal__img {
  display: block;
}
.kakumei-cf-modal__img img {
  display: block;
  width: 100%;
  height: auto;
}

.kakumei-cf-modal__text {
  margin: 16px 0 0;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.7;
}
.kakumei-cf-modal__text strong {
  color: #b3122a;
  font-size: 18px;
}

.kakumei-cf-modal__btn,
.kakumei-cf-modal__btn:link,
.kakumei-cf-modal__btn:visited {
  display: block;
  max-width: 360px;
  margin: 16px auto 0;
  padding: 14px 20px;
  border-radius: 999px;
  background: #7a1c1c;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.2s;
}
.kakumei-cf-modal__btn:hover,
.kakumei-cf-modal__btn:focus-visible {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

@media screen and (max-width: 767px) {
  .kakumei-cf-modal__inner {
    padding: 14px;
  }
  .kakumei-cf-modal__close {
    top: -12px;
    right: -8px;
    width: 32px;
    height: 32px;
  }
  .kakumei-cf-modal__text {
    margin-top: 12px;
    font-size: 14px;
  }
  .kakumei-cf-modal__text strong {
    font-size: 16px;
  }
  .kakumei-cf-modal__btn {
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 15px;
  }
}
