.join-page {
  width: 100%;
  min-height: 100%;
}
.join-page__wrap {
  position: relative;
  width: 100%;
  padding: 0 3rem;
  background: #fff;
}
.join-page__back {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: absolute;
  top: 3rem;
  left: 3rem;
  z-index: 5;
  color: #666;
}
.join-page__back:focus-visible {
  outline: 2px solid rgba(232, 72, 90, 0.28);
  outline-offset: 2px;
  border-radius: 50%;
}
@media (hover: hover) and (pointer: fine) {
  .join-page__back:hover {
    color: #e8485a;
  }
}
.join-page__back-icon {
  font-size: 2.4rem;
}
.join-page .join-form {
  width: 100%;
  min-height: 100dvh;
}
.join-page .join-form__panel {
  display: none;
  min-height: 100dvh;
  padding-top: 80px;
  flex-direction: column;
}
.join-page .join-form__panel.is-active {
  display: flex;
}
.join-page .join-form__panel.is-sheet-background {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.join-page .join-form__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.join-page .join-form__header {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.join-page .join-form__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #333;
  word-break: keep-all;
}
.join-page .join-form__description {
  color: #666;
}
.join-page .join-form__mascot {
  width: min(100%, 18.8rem);
  object-fit: contain;
}
.join-page .join-form__figure {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 2rem;
}
.join-page .join-form__field-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.2rem;
}
.join-page .join-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.join-page .join-form__label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
}
.join-page .join-form__input, .join-page .join-form__select, .join-page .join-form__identity-input {
  width: 100%;
  height: 4.8rem;
  border: 1px solid #cfcfcf;
  border-radius: 0.8rem;
  background: #fff;
  padding: 0 1.4rem;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.join-page .join-form__input::placeholder, .join-page .join-form__select::placeholder, .join-page .join-form__identity-input::placeholder {
  color: #aaa;
}
.join-page .join-form__input:focus-visible, .join-page .join-form__select:focus-visible, .join-page .join-form__identity-input:focus-visible {
  border-color: #e8485a;
  box-shadow: 0 0 0 0.3rem rgba(232, 72, 90, 0.12);
  outline: none;
}
.join-page .join-form__input[readonly], .join-page .join-form__select[readonly], .join-page .join-form__identity-input[readonly] {
  color: #666;
  background: #fff;
}
.join-page .join-form__select-wrap {
  position: relative;
  display: block;
}
.join-page .join-form__select {
  appearance: none;
  padding-right: 4.4rem;
}
.join-page .join-form__select-icon {
  position: absolute;
  top: 50%;
  right: 1.6rem;
  color: #666;
  font-size: 1.8rem;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
}
.join-page .join-form__text-button {
  padding: 0.6rem 0 0;
  font-size: 1.4rem;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  align-self: center;
}
.join-page .join-form__text-button:focus-visible, .join-page .join-form__text-button:active {
  color: #e8485a;
}
@media (hover: hover) and (pointer: fine) {
  .join-page .join-form__text-button:hover {
    color: #e8485a;
  }
}
.join-page .join-form__identity-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 0 1.2rem 0 1.4rem;
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  background: #fff;
}
.join-page .join-form__identity-input {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.join-page .join-form__identity-input:focus-visible {
  border: 0;
  box-shadow: none;
}
.join-page .join-form__identity-divider {
  width: 1rem;
  height: 0.2rem;
  border-radius: 99.9rem;
  background: #aaaaaa;
}
.join-page .join-form__gender {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.join-page .join-form__gender-digit {
  width: 1.8rem;
  min-width: 1.8rem;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #000;
}
.join-page .join-form__gender-digit:focus-visible {
  border: 0;
  box-shadow: none;
  outline: none;
}
.join-page .join-form__gender-mask {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.join-page .join-form__gender-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #000;
  flex-shrink: 0;
}
.join-page .join-form__footer {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 3rem);
}
.join-page .join-form__button {
  width: 100%;
  height: 5rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.join-page .join-form__button--primary {
  background: #e8485a;
  color: #fff;
}
.join-page .join-form__button:disabled {
  background: #aaaaaa;
  color: rgba(255, 255, 255, 0.88);
  cursor: not-allowed;
}
.join-page .join-form__button:not(:disabled):focus-visible {
  box-shadow: 0 0 0 0.3rem rgba(232, 72, 90, 0.18);
  outline: none;
}
.join-page .join-form__button:not(:disabled):active {
  transform: translateY(1px);
}
.join-page .join-form__button:active {
  transform: scale(0.985);
}
@media (hover: hover) and (pointer: fine) {
  .join-page .join-form__button:hover {
    box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.12);
  }
}
.join-page .join-form__sheet {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: none;
}
.join-page .join-form__sheet.is-active {
  display: block;
}
.join-page .join-form__sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}
.join-page .join-form__sheet-dialog {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  padding: 2rem 2rem calc(env(safe-area-inset-bottom, 0px) + 1.2rem);
  border-radius: 1rem 1rem 0 0;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 -1.2rem 2.4rem rgba(0, 0, 0, 0.12);
}
.join-page .join-form__sheet-title {
  font-size: 2rem;
  font-weight: 700;
}
.join-page .join-form__sheet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.join-page .join-form__agreement-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid #aaaaaa;
}
.join-page .join-form__agreement {
  display: flex;
  align-items: center;
  height: 5rem;
  gap: 1rem;
  color: #666;
  cursor: pointer;
}
.join-page .join-form__agreement em {
  color: #e8485a;
  font-style: normal;
}
.join-page .join-form__agreement input[type=checkbox] {
  position: relative;
  flex-shrink: 0;
  appearance: none;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0.1rem;
  border: 1px solid #aaaaaa;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.join-page .join-form__agreement input[type=checkbox]:checked {
  border-color: #e8485a;
  background: #e8485a;
}
.join-page .join-form__agreement input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6rem;
  height: 1rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}
.join-page .join-form__agreement input[type=checkbox]:focus-visible {
  outline: 2px solid rgba(232, 72, 90, 0.22);
  outline-offset: 2px;
}
.join-page .join-form__detail-button {
  width: 100%;
  height: 5rem;
  border: 1px solid rgba(232, 72, 90, 0.75);
  border-radius: 1rem;
  background: #fff;
  color: #e8485a;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.join-page .join-form__detail-button:focus-visible {
  box-shadow: 0 0 0 0.3rem rgba(232, 72, 90, 0.12);
  outline: none;
}
.join-page .join-form__detail-button:active {
  transform: scale(0.985);
}
@media (hover: hover) and (pointer: fine) {
  .join-page .join-form__detail-button:hover {
    box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.12);
  }
}
.join-page .join-form__button--confirm {
  margin-top: 1.8rem;
}
.join-page .join-form__code-box {
  position: relative;
}
.join-page .join-form__input--code {
  padding-right: 7.2rem;
}
.join-page .join-form__timer {
  position: absolute;
  top: 50%;
  right: 1.4rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: #666;
  transform: translateY(-50%);
}
.join-page .join-form__panel--complete {
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 2.4rem;
}
.join-page .join-form__complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex: 1;
  text-align: center;
}
.join-page .join-form__complete-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
}
.join-page .join-form__complete-text {
  font-size: 1.4rem;
  color: #666;
}
.join-page .join-form__complete-image {
  width: min(100%, 18rem);
  margin: 1rem auto 3.4rem;
  object-fit: contain;
}
.join-page .join-form__link-button {
  font-size: 1.4rem;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  margin-bottom: 1rem;
}
.join-page .join-form__link-button:focus-visible, .join-page .join-form__link-button:active {
  color: #e8485a;
}
@media (hover: hover) and (pointer: fine) {
  .join-page .join-form__link-button:hover {
    color: #e8485a;
  }
}

@media screen and (min-width: 768px) {
  .join-page {
    min-height: auto;
    padding-top: 9rem;
  }
  .join-page__wrap {
    max-width: 42rem;
    padding: 3rem;
    margin: auto;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 0rem 3rem rgba(0, 0, 0, 0.1);
  }
  .join-page .join-form {
    min-height: 100%;
  }
  .join-page .join-form__panel {
    min-height: 100%;
    padding-top: 50px;
  }
  .join-page .join-form__sheet-dialog {
    width: min(100%, 42rem);
  }
  .join-page .join-form__footer {
    padding-top: 5rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0rem);
  }
}
@media screen and (max-width: 767px) {
  body[data-page=join] #site-header,
  body[data-page=join] #site-footer,
  body[data-page=join] #page-back-button {
    display: none;
  }
  .join-page {
    min-height: 100dvh;
  }
  .join-page__wrap {
    max-width: none;
    min-height: 100dvh;
  }
}
