body {
  position: relative;
}

body::before {
  display: none;
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 100vh;
  width: 1px;
  background-color: red;
  transform: translateX(-50%);
  z-index: 9999;
}

.screen {
  background-color: transparent;
  display: block;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  font-size: initial;
}

.screen .div#logicView {
  width: 430px;
  height: 932px;
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--al-qz-5o);
  background-image: url(../img/background.png);
  background-size: cover;
  background-position: 50% 50%;
  border-radius: 28px;
  border: 1px solid #cfd8e3;
}

.screen .text-wrapper {
  height: 2.7%;
  top: 87.2%;
  left: 40%;
  font-family: "Rounded M+ 1c-medium", Helvetica;
  font-weight: 400;
  color: #99bdda;
  font-size: 20px;
  line-height: 2.7%;
  text-decoration: underline;
  white-space: nowrap;
  position: absolute;
  text-align: center;
  letter-spacing: 0;
}

.screen .text-wrapper-2 {
  height: 2.7%;
  top: 84.5%;
  left: 18%;
  font-family: "Rounded M+ 1c-medium", Helvetica;
  font-weight: 400;
  color: var(--zv-jk-3t);
  font-size: 20px;
  line-height: 2.7%;
  white-space: nowrap;
  position: absolute;
  text-align: center;
  letter-spacing: 0;
}

.btn-register {
  position: absolute;
  left: 21.5%;
  top: 64.5%;
  width: 56.4%;
  height: 7.9%;
  background: url("../img/btn_register.png") no-repeat center / contain;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-mask-image: url("../img/btn_register.png");
  mask-image: url("../img/btn_register.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.btn-register:active,
.btn-google-register:active {
  transform: translateY(2px) scale(0.98);
  filter: brightness(0.95);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .20);
}

.btn-register:disabled,
.btn-google-register:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-google-register {
  position: absolute;
  left: 13%;
  top: 74%;
  width: 74%;
  height: 6.2%;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #4f8df7 0%, #2f6fe8 100%);
  color: #fff;
  font-family: "Rounded M+ 1c", "Noto Sans JP", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(47, 111, 232, 0.32);
}

.screen .p {
  height: 2.7%;
  top: 57.6%;
  left: 2%;
  font-family: "Rounded M+ 1c-Regular", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 15.5%;
  line-height: 2.7%;
  white-space: nowrap;
  position: absolute;
  text-align: center;
  letter-spacing: 0;
}

.screen .linklike {
  color: #99bdda;
  text-decoration: underline;
  font-size: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.screen .text-wrapper-4 {
  color: #707070cc;
  font-size: 15px;
}

.checkbox {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 2px solid var(--al-qz-5o);
  position: relative;
  top: 55%;
  left: 0px;
  cursor: pointer;
  appearance: none;
  background-color: white;
}

.checkbox:checked {
  background-color: var(--al-qz-5o);
  border-color: var(--al-qz-5o);
}

.checkbox::after {
  content: '✔';
  position: absolute;
  top: -2px;
  left: 4px;
  font-size: 24px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkbox:checked::after {
  opacity: 1;
}

.screen .view-3 {
  position: absolute;
  width: 75.6%;
  height: 5.05%;
  top: 49%;
  left: 11.9%;
  background-color: var(--s-19z-dg);
  border-radius: 10px;
  border: 1px solid;
  border-color: var(--al-qz-5o);
}

.screen .text-wrapper-5 {
  height: 50%;
  width: 68%;
  top: 22%;
  left: 47px;
  font-family: "Rounded M+ 1c-medium", Helvetica;
  font-weight: 400;
  color: var(--zv-jk-3t);
  font-size: 16px;
  line-height: 23px;
  white-space: nowrap;
  position: absolute;
  text-align: left;
  letter-spacing: 0;
  border: none;
  background: transparent;
  outline: none;
}

.screen .img {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 20%;
  left: 12px;
  object-fit: cover;
}

.screen .text-wrapper-6 {
  height: 2.7%;
  top: 47%;
  left: 13%;
  font-family: "Inter", Helvetica;
  font-weight: 500;
  color: var(--zv-jk-3t);
  font-size: 13px;
  line-height: 2.7%;
  white-space: nowrap;
  position: absolute;
  text-align: center;
  letter-spacing: 0;
}

.screen .view-4 {
  position: absolute;
  width: 75.6%;
  height: 5.05%;
  top: 40%;
  left: 11.9%;
  background-color: var(--s-19z-dg);
  border-radius: 10px;
  border: 1px solid;
  border-color: var(--al-qz-5o);
}

.screen .image {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 20%;
  left: 12px;
}

.screen .element {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 25%;
  left: 85%;
  object-fit: cover;
  cursor: pointer;
}

.screen .mail-deco {
  cursor: default;
}

.screen .view-5 {
  position: absolute;
  width: 75.6%;
  height: 5.1%;
  top: 31.9%;
  left: 11.9%;
  background-color: var(--s-19z-dg);
  border-radius: 10px;
  border: 1px solid;
  border-color: var(--al-qz-5o);
}

.screen .overlap-group-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    rgb(204.39, 227.97, 246.5) 80.5%,
    rgb(255, 250, 253) 100%
  );
}

.header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.register-header {
  width: 100%;
  height: auto;
  display: block;
}

.hidden {
  display: none !important;
}

.ff-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.ff-modal-content {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.ff-modal-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #334155;
}

.ff-modal-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  white-space: pre-wrap;
  word-break: break-word;
}

.ff-modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.ff-modal-close {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #5aa7ff 0%, #2d7df6 100%);
  color: #fff;
  font-family: "Rounded M+ 1c", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.legal-modal__content {
  background: #fff;
  width: 90%;
  max-width: 640px;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
}

.legal-modal__title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  border-bottom: 2px solid #2a7ae4;
  padding-bottom: 8px;
}

#terms-iframe,
#privacy-iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 6px;
}

.legal-modal__back {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background-color: #6192B5;
  border: 1.5px solid #C7D1DC;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}

.legal-modal__back:hover {
  background-color: #1c5dc0;
}

.legal-modal__back:active {
  transform: translateY(1px);
}

.ok-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 34px;
  min-height: 36px;
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background-color: #6192B5;
  border: 1.5px solid #C7D1DC;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
  cursor: pointer;
}

.ok-button:hover {
  background-color: #1c5dc0;
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .modal {
    padding: 0;
  }

  .legal-modal__content {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .legal-modal__title {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    padding: 12px 44px 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 18px;
  }

  #terms-iframe,
  #privacy-iframe {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border: none;
  }

  .legal-modal__back {
    display: none !important;
  }
}

@media (min-width: 601px) {
  .legal-modal__content {
    width: min(96vw, 860px);
    max-height: 90vh;
    padding: 20px 24px;
    border-radius: 12px;
  }

  #terms-iframe,
  #privacy-iframe {
    height: 70vh;
  }
}