/* 会員登録画面（pcnext/regist.php 相当）— login.css と併用 */
body#login.regist-page {
  --regist-form-width: 600px;
}

body#login.regist-page .login-page {
  padding-top: 2em;
  padding-bottom: 2em;
}

body#login.regist-page .wrapperLogin {
  max-width: var(--regist-form-width);
  margin-top: 0;
}

body#login.regist-page .regist-card {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 1em;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

body#login.regist-page .regist-card__header {
  border-bottom: 3px solid #e9ecef;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

body#login.regist-page .regist-card__header img {
  display: block;
  height: 28px;
  width: auto;
}

body#login.regist-page .regist-card__title-wrap {
  padding: 2em 3em 0;
}

body#login.regist-page .regist-card__title {
  margin: 0;
  padding-top: 0;
  font-size: calc(var(--pc-body-font-size) * 1.5);
  font-weight: 700;
  text-align: center;
}

body#login.regist-page .regist-card__messages {
  padding: 1em 3em 0;
}

body#login.regist-page .regist-card .bg-red-50,
body#login.regist-page .regist-card #error_block {
  color: #dc3545;
  font-weight: 700;
  font-size: 1em;
  line-height: inherit;
  background-color: #f8d7da;
  border: 1px solid #dc3545;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

body#login.regist-page .regist-card .bg-red-50 .flex {
  display: flex;
  align-items: flex-start;
}

body#login.regist-page .regist-card .bg-red-50 .flex-shrink-0 {
  display: none;
}

body#login.regist-page .regist-card .bg-red-50 .ml-3 {
  margin-left: 0;
}

body#login.regist-page .regist-card .bg-red-50 p,
body#login.regist-page .regist-card .bg-red-50 .text-red-700,
body#login.regist-page .regist-card .bg-red-50 .text-sm {
  color: #dc3545;
  font-weight: 700;
  font-size: 1em;
  line-height: inherit;
  margin: 0;
}

body#login.regist-page .regist-card .bg-blue-50 {
  color: #0d6efd;
  font-size: 1em;
  line-height: inherit;
  background-color: #cfe2ff;
  border: 1px solid #0d6efd;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

body#login.regist-page .regist-card .bg-blue-50 p,
body#login.regist-page .regist-card .bg-blue-50 .text-blue-700,
body#login.regist-page .regist-card .bg-blue-50 .text-sm {
  color: #0d6efd;
  font-size: 1em;
  margin: 0;
}

body#login.regist-page .regist-tabs-area {
  position: relative;
  margin-top: 1.5em;
}

body#login.regist-page .regist-tabs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1em;
  border-bottom: 1px solid #dee2e6;
}

body#login.regist-page .regist-tabs .nav-item {
  margin: 0;
}

body#login.regist-page .regist-tabs .nav-link {
  display: block;
  margin-bottom: -1px;
  margin-left: 0.75em;
  padding: 0.5em 1.5em;
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-bottom-color: transparent;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  cursor: pointer;
}

body#login.regist-page .regist-tabs .nav-link:hover:not(.active) {
  background: #c9caca;
}

body#login.regist-page .regist-tabs .nav-link.active {
  background: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
  cursor: default;
}

body#login.regist-page .regist-tabs-guide {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 3em;
  transform: translateY(50%);
}

body#login.regist-page .regist-tabs-guide a {
  font-size: 1em;
  color: #5c94d5;
  text-decoration: none;
  white-space: nowrap;
}

body#login.regist-page .regist-tabs-guide a:hover {
  color: #4e7db5;
}

body#login.regist-page .regist-tabs-guide .fa-circle-question {
  margin-right: 0.25em;
}

body#login.regist-page .regist-fields {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  padding: 3em;
  border-bottom: 3px solid #e9ecef;
}

body#login.regist-page .regist-field .form-label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5em;
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
}

body#login.regist-page .regist-field .form-label .formBadge {
  margin-top: 0.15em;
  margin-left: 3em;
}

/* header.css の .formBadge { display: inline-block } より優先して非表示にする */
body#login.regist-page .regist-required-badge.is-hidden {
  display: none !important;
}

body#login.regist-page .regist-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em 1em;
}

body#login.regist-page .regist-field-row .col-form-label {
  margin: 0;
  font-size: 1em;
  font-weight: inherit;
  white-space: nowrap;
}

body#login.regist-page .regist-field-row .col-form-label.ms-5 {
  margin-left: 3em;
}

body#login.regist-page .regist-field-row .form-control {
  width: auto;
}

body#login.regist-page .regist-field-row .form-control--name {
  width: 12.5em;
  max-width: 100%;
}

body#login.regist-page .regist-field-row .form-control--tel {
  width: 5em;
  max-width: 100%;
}

body#login.regist-page .regist-field-row .form-control--tel-mid {
  width: 7.5em;
  max-width: 100%;
}

body#login.regist-page .regist-field-row .form-control--zip1 {
  width: 5em;
  max-width: 100%;
}

body#login.regist-page .regist-field-row .form-control--zip2 {
  width: 7.5em;
  max-width: 100%;
}

body#login.regist-page .regist-footer {
  padding: 3em;
}

body#login.regist-page .itemTitle {
  position: relative;
  margin: 0 0 0.25em;
  padding: 0 0 0.25em 1em;
  font-size: 1.2em;
  font-weight: 700;
}

body#login.regist-page .itemTitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.5em;
  background: #74b5b6;
  border-radius: 99px;
}

body#login.regist-page .regist-terms-frame {
  margin-top: 1em;
  border: 1px solid #dee2e6;
  overflow: hidden;
}

body#login.regist-page .regist-terms-frame iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
}

body#login.regist-page .form-check {
  display: flex;
  justify-content: center;
  margin: 3em 0;
}

body#login.regist-page .form-check-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 1em;
}

body#login.regist-page .form-check-input {
  width: 1em;
  height: 1em;
  margin: 0 0.5em 0 0;
  cursor: pointer;
}

body#login.regist-page .regist-submit {
  text-align: center;
}

body#login.regist-page .btn-brand {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.6em 3em;
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
  color: #fff;
  background-color: #74b5b6;
  border: 1px solid #74b5b6;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

body#login.regist-page .btn-brand:hover:not(:disabled) {
  background-color: #629a9b;
  border-color: #5c9091;
}

body#login.regist-page .btn-brand:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body#login.regist-page--confirm {
  --regist-form-width: 600px;
}

body#login.regist-page .regist-confirm-intro {
  margin: 0 0 1.5em;
  font-size: 1em;
  line-height: inherit;
}

body#login.regist-page .regist-confirm-section-title {
  margin: 0 0 1em;
  font-size: 1em;
  font-weight: 700;
}

body#login.regist-page .regist-confirm-rows {
  padding: 0 3em 1em;
  border-bottom: 3px solid #e9ecef;
}

body#login.regist-page .regist-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 0.75em 0;
  border-bottom: 1px solid #dee2e6;
}

body#login.regist-page .regist-confirm-row:last-child {
  border-bottom: 0;
}

body#login.regist-page .regist-confirm-row__label {
  width: 12em;
  flex-shrink: 0;
  font-size: 1em;
  font-weight: 700;
}

body#login.regist-page .regist-confirm-row__value {
  flex: 1;
  min-width: 0;
  font-size: 1em;
  word-break: break-word;
}

body#login.regist-page .regist-confirm-footer {
  border-top: 0;
}

body#login.regist-page .regist-complete-body {
  padding: 0 3em 3em;
}

body#login.regist-page .regist-complete-message {
  margin: 0 0 2em;
  padding: 1.5em;
  color: #198754;
  font-size: 1em;
  line-height: inherit;
  background-color: #d1e7dd;
  border: 1px solid #198754;
  border-radius: 0.375rem;
}

body#login.regist-page .regist-complete-message p {
  margin: 0;
  line-height: inherit;
}

body#login.regist-page a.btn-brand {
  text-decoration: none;
}

@media (max-width: 767px) {
  body#login.regist-page .regist-card__title-wrap,
  body#login.regist-page .regist-card__messages,
  body#login.regist-page .regist-fields,
  body#login.regist-page .regist-footer,
  body#login.regist-page .regist-confirm-rows,
  body#login.regist-page .regist-complete-body {
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  body#login.regist-page .regist-confirm-row {
    flex-direction: column;
    gap: 0.25em;
  }

  body#login.regist-page .regist-confirm-row__label {
    width: auto;
  }

  body#login.regist-page .regist-tabs-guide {
    position: static;
    transform: none;
    margin: 0.75em 1.5em 0;
    text-align: right;
  }

  body#login.regist-page .regist-tabs {
    padding-left: 0.5em;
  }

  /* 姓名・セイメイ: ラベル＋入力を2行のグリッドに揃える */
  body#login.regist-page .regist-field-row--name {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75em 1em;
    align-items: center;
  }

  body#login.regist-page .regist-field-row--name .col-form-label.ms-5 {
    margin-left: 0;
  }

  body#login.regist-page .regist-field-row--name .form-control--name {
    width: 100%;
    max-width: none;
  }

  /* 連絡先・電話番号: 折り返しせず1行グリッドで揃える */
  body#login.regist-page .regist-field-row--tel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1.2fr);
    gap: 0.5em;
    align-items: center;
  }

  body#login.regist-page .regist-field-row--tel .form-control {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}
