@charset "utf-8";

.shake-modal {
  box-sizing: border-box;
  width: 900px;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 2px solid #4b0000;
  border-radius: 24px;
  background: #fff;
}
.shake-modal:focus {
  outline: none;
}
.shake-modal[open],
.shake-modal[open]::backdrop {
  animation: shake-modal-fade-in .3s ease;
}
.shake-modal.is-closing,
.shake-modal.is-closing::backdrop {
  animation: shake-modal-fade-out .3s ease forwards;
}
.shake-modal *,
.shake-modal *::before,
.shake-modal *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.shake-modal img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: top;
  border: 0;
}
.shake-modal__inner {
  padding: 35px 38px 18px 42px;
  text-align: center;
}
.shake-modal__ttl {
  font-size: 0;
  line-height: 0;
}
.shake-modal__ttl img {
  width: 671px;
}
.shake-modal__body {
  display: flex;
  align-items: flex-start;
  margin-top: 29px;
  text-align: left;
}
.shake-modal__figure {
  flex: 0 1 403px;
  max-width: 50%;
}
.shake-modal__img img {
  width: 100%;
}
.shake-modal__content {
  flex: 1 1 0;
  margin: 55px 0 0 32px;
}
.shake-modal__txt {
  font-size: 18px;
  line-height: 1.78;
}
.shake-modal__note {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}
.shake-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 190px;
  min-height: 50px;
  margin: 42px auto 0;
  border: 1px solid #4b0000;
  border-radius: 25px;
  background: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .25s ease;
  color: #000;
}
.shake-modal__close::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(45deg, transparent calc(50% - .5px), currentColor calc(50% - .5px), currentColor calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(-45deg, transparent calc(50% - .5px), currentColor calc(50% - .5px), currentColor calc(50% + .5px), transparent calc(50% + .5px));
}
.shake-modal__close:hover {
  opacity: .7;
}
.shake-modal__close:focus-visible {
  outline: 2px solid #4b0000;
  outline-offset: 3px;
}

@keyframes shake-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shake-modal-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shake-modal[open],
  .shake-modal[open]::backdrop,
  .shake-modal.is-closing,
  .shake-modal.is-closing::backdrop {
    animation: none;
  }
}

/* ---------- SP（640px ビューポート） ---------- */
@media screen and (max-width: 640px) {
  .shake-modal {
    width: 589px;
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    border-width: 3px;
    border-radius: 20px;
  }
  .shake-modal__inner {
    padding: 40px 32px;
  }
  .shake-modal__ttl img {
    width: 375px;
  }
  .shake-modal__body {
    display: block;
    margin-top: 37px;
  }
  .shake-modal__figure {
    width: 395px;
    max-width: 100%;
    margin: 0 auto;
  }
  .shake-modal__content {
    margin: 43px 0 0;
  }
  .shake-modal__txt {
    font-size: 24px;
    line-height: 1.6;
  }
  .shake-modal__br-pc {
    display: none;
  }
  .shake-modal__note {
    margin-top: 20px;
    font-size: 20px;
  }
  .shake-modal__close {
    gap: 15px;
    width: 256px;
    min-height: 68px;
    margin-top: 30px;
    border-width: 2px;
    border-radius: 34px;
    font-size: 24px;
  }
  .shake-modal__close::before {
    width: 19px;
    height: 19px;
    background:
      linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
  }
}
