@charset "utf-8";

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.wrap {
  flex: 1;
}

footer {
  flex-shrink: 0;
}

header {
  margin-bottom: 0 !important;
}

.wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* background: #f4f5f7; */
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.wrap h2::before {
  all: unset;
}

.wrap h2 {
  font-size: clamp(1.2rem, 1.018rem + 0.91vw, 1.7rem);
  font-weight: 900;
  line-height: 1.45;
  color: #00529f;
  text-align: center;
  margin: clamp(0.625rem, 0.057rem + 2.84vw, 2.188rem) auto 0 auto;
}

.wrap h2 > span {
  font-size: clamp(0.85rem, 0.814rem + 0.18vw, 0.95rem) !important;
  font-weight: 900;
  color: #666;
  display: block;
}

/* -- login-area ------*/

.login-area {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  /* background: #f4f5f7; */
}

form#login-form {
  width: 100%;
  max-width: 700px;
  min-width: 300px;
  height: auto;
  background: #f8f9fa;
  border: 1px solid #cccccc;
  margin: 0 auto;
  padding: clamp(1.25rem, 0.795rem + 2.27vw, 2.5rem) 0;
}

form#login-form div.logo {
  display: flex;
}

form#login-form div.logo img {
  margin: 0 auto;
  width: 20%;
  height: auto;
}

form#login-form p {
  width: 80%;
  margin: 15px 10% 0 10%;
  font-size: 100%;
  text-align: left;
  letter-spacing: 0;
  /* text-shadow: 3px 4px 2px rgba(0, 0, 0, 0.1); */
  line-height: 1.8;
  color: #000;
  font-weight: 500;
}

form#login-form input {
  height: 2.4em;
  padding: 2px 2%;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background: #fff;
}

form#login-form input:focus {
  box-shadow: 0px 0px 5px #55ccff;
  border: 1px solid #55ccff;
  background: #ffffff;
}

form#login-form dl {
  width: 80%;
  margin: 20px auto 0;
  overflow: hidden;
}

form#login-form dl dt,
form#login-form dl dd {
  margin: 0;
}

form#login-form dl dt {
  margin-top: 20px;
}

form#login-form dl dt:first-child {
  margin-top: 0px;
}

form#login-form dl dd input {
  width: 100%;
  margin-top: 5px;
  padding-left: min(5%, 1em);
  -webkit-appearance: none;
  appearance: none;
  font-size: 100%;
}

@keyframes border {
  0% {
    border: medium solid #da3c41;
  }
  100% {
    border: medium solid #da3c4152;
  }
}

div.notinput {
  width: calc(100% - 20px);
  max-width: 500px;
  min-width: 300px;
  color: #da3c41;
  line-height: 1.65;
  padding: 15px 10px !important;
  animation: border 0.5s ease infinite alternate;
  margin: 50px auto 15px;
  background: #ffffff;
}

div.notinput p.blinking {
  text-align: center;
  font-weight: bold;
  padding-bottom: 10px !important;
}

div.notinput ul li {
  text-align: center;
}

/* ワンタイムパスワード */
.otp-wrapper {
  margin: 1em 0;
}
.otp-wrapper dt {
  font-weight: bold;
  margin-bottom: 0.5em;
}
.otp-wrapper dd {
  margin: 0;
}

.otp-inputs {
  display: flex;
  gap: 0.5em;
}

.otp-input {
  width: 2.5em !important;
  height: 2.5em !important;
  padding: 0 !important;
  font-size: 1.5em !important;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input:focus {
  border-color: #66afe9;
  box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

.msg__ {
  width: 80%;
  margin: 0 auto;
}

.btn__gg {
  padding-top: 2.5em;
}

#login-button.submit {
  display: block;
  width: 60%;
  max-width: 300px;
  min-width: 250px;
  height: 60px;
  margin: 0 auto;
  background-color: #4b77be;
  color: #fff;
  font-size: 16px;
  line-height: 44px;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#login-button.submit:hover {
  background-color: #3e69a3;
}

#login-button.submit:focus,
#login-button.submit:active {
  outline: none;
}

.small {
  font-size: 0.8em !important;
  color: #666 !important;
  margin-top: 0 !important;
}

#resend-code {
  background-color: #fff; /* 常時白背景 */
  border-color: #333; /* セカンダリーのまま */
  color: #333; /* セカンダリー文字色 */
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

#resend-code:hover,
#resend-code:focus {
  background-color: #333; /* プライマリー（青）背景 */
  border-color: #333; /* 枠も青 */
  color: #fff; /* 白文字 */
}

/* -- footer ------*/
footer {
  padding: 10px 0 !important;
}

/* --responsive------------------------------------------- */

/* 1000pixel start */
@media screen and (max-width: 1000px) {
  form#login-form {
    width: 95%;
    margin: 15px auto 50px;
    position: static;
    transform: translate(0, 0);
  }
}
/* 1000pixel end */
