@charset "UTF-8";

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}

.modal__card {
  position: relative;
  display: flow-root;
  width: 335px;
  margin: 67px auto 40px;
  padding-bottom: 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 7.75px rgba(0, 0, 0, .4);
}
.modal__cloud { position: absolute; top: 23px; }
.modal__cloud--left  { left: 30px;  width: 86px; height: 36px; }
.modal__cloud--right { left: 241px; width: 83px; height: 33px; }

.modal__label {
  margin-top: 29px;
  width: 100%;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
}
.modal__title {
  margin-top: 19px;
  width: 100%;
  font-family: var(--font-mincho);
  font-weight: 900;
  font-size: 34px;
  line-height: 32px;
  text-align: center;
}

.modal__goods { display: block; height: auto; margin: 11px auto 0; }
.modal__goods--q1 { width: 206px; }
.modal__goods--q2 { width: 180px; margin-top: 15px; }
.modal__goods--q3 { width: 241px; margin-top: 20px; }

.modal__desc {
  width: 315px;
  margin: 10px auto 0;
  font-family: "Hiragino Mincho ProN", var(--font-mincho);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.modal__input {
  display: block;
  width: 315px;
  height: 50px;
  margin: 8px auto 0;
  padding: 0 14px;
  border: 4px solid var(--c-form);
  border-radius: 4px;
  background: #feffe9;
  font-family: var(--font-gothic);
  font-size: 18px;
  color: var(--c-text);
}
.modal__input::placeholder { color: #c3c3c3; }
.modal__input:focus { outline: 2px solid var(--c-teal); outline-offset: 1px; }

.modal__submit {
  display: block;
  width: 315px;
  height: 50px;
  margin: 12px auto 0;
  position: relative;
  border: 4px solid var(--c-gold);
  border-radius: 4px;
  background: var(--c-red);
  box-shadow: 0 2px 7px 2px rgba(0, 0, 0, .25);
  font-family: var(--font-mincho);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}
.modal__submit .btn__arrow { right: 12px; }

.modal__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 335px;
  min-height: 67px;
  margin-top: 16px;
  background: #b03a3a;
}
.modal--q3 .modal__notice { margin-top: 25px; }

.modal__notice-mark {
  position: relative;
  flex: 0 0 auto;
  width: 0; height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 30px solid #f9ff48;
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  color: #000;
}
.modal__notice-mark::after {
  content: "！";
  position: absolute;
  left: 50%; top: 9px;
  transform: translateX(-50%);
}

.modal.is-open .modal__notice-mark { animation: notice-blink 1.2s ease-in-out infinite; }
@keyframes notice-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .modal.is-open .modal__notice-mark { animation: none; }
}
.modal__notice-text {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  color: #fff;
}

.modal--q1 .modal__label,
.modal--q1 .modal__title { color: var(--c-q1); }
.modal--q1 .modal__desc  { color: #41696d; }

.modal--q2 .modal__label,
.modal--q2 .modal__title { color: var(--c-q2); }
.modal--q2 .modal__desc  { color: var(--c-q2); }
.modal--q2 .modal__title { margin-top: 21px; }
.modal--q2 .modal__desc  { margin-top: 6px; }

.modal--q3 .modal__label,
.modal--q3 .modal__title { color: var(--c-q1); }
.modal--q3 .modal__desc  { color: var(--c-q1); }
.modal--q3 .modal__card  { padding-bottom: 29px; }
.modal--q3 .modal__cloud--left { top: 13px; }
.modal--q3 .modal__title { margin-top: 9px; }
.modal--q3 .modal__desc  { margin-top: 4px; }
.modal--q3 .modal__submit { font-size: 26px; }

.modal--final .modal__title { color: var(--c-final); }
.modal--final .modal__desc  { color: var(--c-final); }
.modal--final .modal__cloud--left { top: 13px; }

.modal__card--final { padding-bottom: 45px; }
.modal__card--final .modal__title { margin-top: 60px; }

.modal__certs {
  display: block;
  width: 293px;
  height: auto;
  margin: 34px auto 0;
}
.modal__card--final .modal__desc { margin-top: 23px; }
.modal__card--final .modal__input--serial { margin-top: 17px; }
.modal__card--final .modal__submit { margin-top: 11px; font-size: 26px; }

.modal__close {
  position: absolute;
  top: -11px;
  right: -9px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c-text);
  cursor: pointer;
}
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.4px;
  height: 22px;
  margin: -11px 0 0 -1.7px;
  border-radius: 2px;
  background: #fff;
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after  { transform: rotate(-45deg); }
.modal__close:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
