html,
body {
  height: 100%;
}

body {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin: 0;
  /* font-family:"メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    background-color: #ecf0f5; */
}

#login {
  margin-top: calc(var(--base-space) * 2);
  /* width: 360px;
  margin: auto;
  font-size: 14px; */
  color: var(--bs-body-color);
  border-radius: calc(var(--base-space) / 2);
  /* background: transparent;
  color: var(--bs-white); */
}

.wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  height: 100%;
  min-height: 100vh;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.main {
  width: 100%;
}

.main {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 0;
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  order: 1;
}

.card {
  font-size: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.card>hr {
  margin-right: 0;
  margin-left: 0;
}

.card>.list-group {
  border-top: inherit;
  border-bottom: inherit;
}

.card>.list-group:first-child {
  border-top-width: 0;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.card>.list-group:last-child {
  border-bottom-width: 0;
  border-bottom-right-radius: calc(0.25rem - 1px);
  border-bottom-left-radius: calc(0.25rem - 1px);
}

.card>.card-header+.list-group,
.card>.list-group+.card-footer {
  border-top: 0;
}

.card-body {
  flex: 1 1 auto;
  padding: 1rem 1rem;
}

.card-title {
  margin-bottom: 0.5rem;
}

.card-subtitle {
  margin-top: -0.25rem;
  margin-bottom: 0;
}

.card-text:last-child {
  margin-bottom: 0;
}

.card-link+.card-link {
  margin-left: 1rem;
}

.card-header {
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header:first-child {
  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.card-footer {
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.card-footer:last-child {
  border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
}

.card-header-tabs {
  margin-right: -0.5rem;
  margin-bottom: -0.5rem;
  margin-left: -0.5rem;
  border-bottom: 0;
}

.card-header-tabs .nav-link.active {
  background-color: #fff;
  border-bottom-color: #fff;
}

.card-header-pills {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.card-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  border-radius: calc(0.25rem - 1px);
}

.card-img,
.card-img-top,
.card-img-bottom {
  width: 100%;
}

.card-img,
.card-img-top {
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.card-img,
.card-img-bottom {
  border-bottom-right-radius: calc(0.25rem - 1px);
  border-bottom-left-radius: calc(0.25rem - 1px);
}

.card-group>.card {
  margin-bottom: 0.75rem;
}

/* bs-sm */
/* スクリーンサイズが576px以上の場合に適用 */
@media (min-width: 576px) {
  .wrapper {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
  }

  .main {
    -webkit-align-self: flex-start;
    align-self: flex-start;
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
    order: 1;
  }
}

.card-header {
  padding: calc(var(--base-space) * 1) calc(var(--base-space));
  background: var(--header-bg);
  text-align: center;
  font-weight: bold;
  font-family: -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Segoe UI semibold",
    "Helvetica Neue",
    HelveticaNeue,
    YuGothic,
    "Yu Gothic",
    "Segoe UI",
    Verdana,
    Meiryo,
    sans-serif;
  font-size: 1.25rem;
}

.card-body {
  /*  width: 500px;*/
  margin: 0 auto;
  padding: var(--base-space);
}

.form-group {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.form-group+.form-group {
  margin-top: var(--base-space);
}

.form-group label {
  font-weight: bold;
  font-family: -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Segoe UI semibold",
    "Helvetica Neue",
    HelveticaNeue,
    YuGothic,
    "Yu Gothic",
    "Segoe UI",
    Verdana,
    Meiryo,
    sans-serif;
}

.form-control {
  width: 100% !important;
  margin-left: 0 !important;
  max-width: 100%;
}

input[type="text"],
input[type="password"] {
  padding: calc(var(--base-space) / 2) calc(var(--base-space) / 1);
  box-sizing: border-box;
  font-family: -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Segoe UI semibold",
    "Helvetica Neue",
    HelveticaNeue,
    YuGothic,
    "Yu Gothic",
    "Segoe UI",
    Verdana,
    Meiryo,
    sans-serif !important;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  color: #212529;
  background-color: #f8fafc;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#pwforgot {
  padding: 0 24px;
  font-size: 12px;
}

.btn-position {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  /* justify-content: flex-end; */
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin: 10px 0px;
}

.btn-position>*:nth-of-type(1) {
  width: 100%;
}

.btn-position>*:nth-of-type(2) {
  width: 100%;
}

.form-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}

.form-control {
  width: 240px;
  margin-left: 10px;
}

.form-group label {
  text-align: left;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center
}

.check-group {
  display: inline-block;
}

.check-group input {
  display: inline-block;
}

.check-group label {
  display: inline-block;
}

.btn-position {
  margin-top: calc(var(--base-space) * 2);
}

.btn-position .btn {
  padding-top: calc(var(--base-space) / 2);
  padding-bottom: calc(var(--base-space) / 2);
}

.btn-position .btn+.btn {
  margin-top: calc(var(--base-space) * 1);
  margin-left: 0;
  padding-top: calc(var(--base-space) * 1);
  padding-bottom: calc(var(--base-space) * 1);
}

.btn {
  font-weight: bold;
  font-family: -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Segoe UI semibold",
    "Helvetica Neue",
    HelveticaNeue,
    YuGothic,
    "Yu Gothic",
    "Segoe UI",
    Verdana,
    Meiryo,
    sans-serif;
}

.btn-primary {
  background: rgb(var(--main-color-rgb));
  border: 0;
}

.btn-primary:hover {
  background: rgb(var(--active-color-rgb));
}

.btn i {
  font-size: 1.25rem;
  margin-right: 0.25rem;
  opacity: 0.5;
  vertical-align: text-bottom;
}

/* bs-sm */
/* スクリーンサイズが576px以上の場合に適用 */
@media (min-width: 576px) {
  .btn-position {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
  }

  .btn-position>*:nth-of-type(1) {
    width: 100%;
  }

  /*
  .btn-position>*:nth-of-type(1) {
    width: 30%;
  }

  .btn-position>*:nth-of-type(2) {
    width: 70%;
  } */

  .btn-position .btn+.btn {
    margin-top: 0;
    margin-left: calc(var(--base-space) * 1);
  }

  .btn i {
    font-size: 1.5rem;
    font-weight: normal;
    margin-right: 0.25rem;
    opacity: 0.5;
    vertical-align: middle;
  }
}
