.devise {
  width: 100%;
  padding: 60px 0;
}

.devise__inner {
  margin: auto;
  width: 100%;
  max-width: 720px;
}

.devise__inner .form-box {
  margin: auto;
  padding: 60px;
  width: 100%;
  background-image: url("/assets/devise/bg03-650971eb.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

.devise__inner .form-box .title {
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 48px */
  letter-spacing: -1.2px;
  color: #fff;
  text-align: center;
}

.devise__inner .form-box .title rt {
  margin-bottom: 4px;
  font-size: 14px;
}

.devise__inner .form-box .title-text {
  margin-top: 32px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 190%; /* 48px */
  letter-spacing: -1.2px;
  color: #fff;
  text-align: center;
}

.devise__inner .form-box .text {
  margin-top: 32px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 190%; /* 48px */
  letter-spacing: -1.2px;
  color: #fff;
  text-align: left;
}

.devise__inner .form-box .new_user {
  margin: 72px 0 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.devise__inner .form-box .new_user .field {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.devise__inner .form-box .new_user .field label {
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 22.4px */
}
.devise__inner .form-box .new_user .field .input-text {
  width: 100%;
  padding: 16px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  outline: none;
}

.devise__inner .form-box .new_user .field .input-select-wrapper {
  width: 100%;
  display: flex;
  column-gap: 16px;
}

.devise__inner
  .form-box
  .new_user
  .field
  .input-select-wrapper
  > .field_with_errors {
  width: 100%;
  display: flex;
  column-gap: 16px;
}

.devise__inner .form-box .new_user .field .input-select-wrapper select {
  width: 100%;
  padding: 16px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  outline: none;
}
.devise__inner .form-box .new_user .field em {
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
}
.devise__inner .form-box .new_user .checkbox {
  display: flex;
  column-gap: 8px;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 22.4px */
}
.devise__inner .form-box .new_user .checkbox span[data-ruby]::before {
  text-align: center;
  top: -1.8em;
}

input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid #fff;
  border-radius: 2px;
  cursor: pointer;
}
input[type="checkbox"]:checked {
  background-color: #fff;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 3px;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid #000;
  border-left: 2px solid #000;
  transform: rotate(-45deg);
}

.devise__inner .form-box .new_user .checkbox .link {
  text-decoration: underline;
}

.devise__inner .form-box .new_user .actions {
  margin: 48px 0 0 0;
}

.devise__inner .form-box .new_user .sub-title {
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 48px */
  letter-spacing: -1.2px;
  color: #fff;
  text-align: center;
}
.devise__inner .form-box .new_user .description-box {
  margin: 32px 0 0 0;
  padding: 32px;
  background-color: #fff;
  border-radius: 8px;
}

.devise__inner .form-box .new_user .description-box .title {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 48px */
  letter-spacing: -1.2px;
  color: #333;
  text-align: center;
}
.devise__inner .form-box .new_user .description-box .text {
  margin-top: 24px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 190%; /* 48px */
  letter-spacing: -1.2px;
  color: #333;
  text-align: left;
}

.devise__inner .form-box .new_user .description-box .flow-box {
  margin-top: 32px;
}

.devise__inner
  .form-box
  .new_user
  .description-box
  .flow-box
  > .title
  > ruby
  > rt {
  font-size: 8px;
}

.devise__inner .form-box .new_user .description-box .flow-box > ol {
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  list-style-type: decimal;
}
.devise__inner .form-box .new_user .description-box .flow-box > ol > li {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 190%; /* 48px */
  letter-spacing: -1.2px;
  color: #333;
  text-align: left;
}

.devise__inner .links-box {
  margin: 48px auto 0 auto;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}
.devise__inner .links-box a {
  display: block;
  color: #000;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
  text-decoration: underline;
}

.devise__inner .buttons-box {
  margin: 48px auto 0 auto;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.devise__inner .form-box .selections-box {
  margin: 40px 0 0 0;
  display: flex;
  column-gap: 32px;
}

.devise__inner .form-box .selections-box .link {
  padding: 24px;
  display: block;
  flex: 1;
  border-radius: 8px;
  background: #fff;
}
.devise__inner .form-box .selections-box .link .image-box {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.devise__inner .form-box .selections-box .link .image-box .image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.devise__inner .form-box .selections-box .link > .title-box {
  margin-top: 36px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.devise__inner .form-box .selections-box .link > .title-box > .title {
  color: #000;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%; /* 28.8px */
  letter-spacing: -0.48px;
}

.devise__inner .form-box .selections-box .link > .title-box > .sub-text {
  margin-top: 1em;
  color: #000;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
  text-align: center;
}

.new_user > #error_explanation {
  margin: 0;
  padding: 16px;
  width: 100%;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
  text-align: left;
  border-radius: 8px;
}

.new_user > #error_explanation > ul {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  list-style-type: disc;
  padding-left: 1em;
}
.new_user > #error_explanation > ul > li {
  font-size: 16px;
}

.new_user > .actions > .image-button {
  margin: auto;
  display: block;
  width: 360px;
  height: auto;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  .devise {
    width: 100%;
    padding: 24px;
  }

  .devise__inner {
    margin: auto;
    width: 100%;
    max-width: 720px;
  }

  .devise__inner .form-box {
    margin: auto;
    padding: 24px;
    width: 100%;
    background-image: url("/assets/devise/bg03-650971eb.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
  }
  .devise__inner .form-box .title {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 48px */
    letter-spacing: -1.2px;
    color: #fff;
    text-align: center;
  }

  .devise__inner .form-box .title rt {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .devise__inner .form-box .title-text {
    margin-top: 16px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 190%; /* 48px */
    letter-spacing: -1.2px;
    color: #fff;
    text-align: left;
  }

  .devise__inner .form-box .text {
    margin-top: 16px;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 190%; /* 48px */
    letter-spacing: -1.2px;
    color: #fff;
    text-align: left;
  }

  .devise__inner .form-box .new_user {
    margin: 24px 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
  }

  .devise__inner .form-box .new_user .field {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
  }
  .devise__inner .form-box .new_user .field label {
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 22.4px */
  }
  .devise__inner .form-box .new_user .field .input-text {
    width: 100%;
    padding: 14px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    outline: none;
  }
  .devise__inner .form-box .new_user .field em {
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
  }
  .devise__inner .form-box .new_user .checkbox {
    display: flex;
    column-gap: 8px;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 22.4px */
  }

  .devise__inner .form-box .new_user .actions {
    margin: 48px 0 0 0;
  }

  .devise__inner .form-box .new_user .sub-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 48px */
    letter-spacing: -1.2px;
    color: #fff;
    text-align: center;
  }
  .devise__inner .form-box .new_user .description-box {
    margin: 32px 0 0 0;
    padding: 24px;
    background-color: #fff;
    border-radius: 8px;
  }

  .devise__inner .form-box .new_user .description-box .title {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 48px */
    letter-spacing: -1.2px;
    color: #333;
    text-align: center;
  }
  .devise__inner .form-box .new_user .description-box .text {
    margin-top: 24px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 190%; /* 48px */
    letter-spacing: -1.2px;
    color: #333;
    text-align: left;
  }

  .devise__inner .form-box .new_user .description-box .flow-box {
    margin-top: 24px;
  }

  .devise__inner .form-box .new_user .description-box .flow-box > ol {
    margin-top: 8px;
  }
  .devise__inner .form-box .new_user .description-box .flow-box > ol > li {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 190%; /* 48px */
    letter-spacing: -1.2px;
    color: #333;
    text-align: left;
  }

  .devise__inner .links-box {
    margin: 48px auto 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
  }
  .devise__inner .links-box a {
    display: block;
    color: #000;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    text-decoration: underline;
  }

  .devise__inner .buttons-box {
    margin: 48px auto 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
  }

  .devise__inner .form-box .selections-box {
    margin: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
  }

  .devise__inner .form-box .selections-box .link {
    padding: 24px;
    display: block;
    flex: 1;
    border-radius: 8px;
    background: #fff;
  }
  .devise__inner .form-box .selections-box .link .image-box {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    overflow: hidden;
  }
  .devise__inner .form-box .selections-box .link .image-box .image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .devise__inner .form-box .selections-box .link > .title-box {
    margin-top: 36px;
    min-height: 0;
  }
  .devise__inner .form-box .selections-box .link .title {
    color: #000;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 28.8px */
    letter-spacing: -0.48px;
  }

  .new_user > #error_explanation {
    margin: 0;
    padding: 16px;
    width: 100%;
    background-color: #fff;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    text-align: left;
    border-radius: 8px;
  }

  .new_user > #error_explanation > ul {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    list-style-type: disc;
    padding-left: 1em;
  }
  .new_user > #error_explanation > ul > li {
    font-size: 16px;
  }

  .new_user > .actions > .image-button {
    margin: auto;
    display: block;
    width: calc(360px * 0.8);
    height: auto;
    cursor: pointer;
  }
}
