  #formWrapper{
    background: #f5f5f5;
    width:100%;
    height:100%;
    position: absolute;
    top:0;
    left:0;
    transition:all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

 .darken-bg{
    background: rgba(0,0,0,.3) !important;
    transition:all .3s ease;
  }

  div#form{
    position: relative;
    width:480px;
    height:auto;
    background-color: #fff;
    margin:auto;
    border-radius: 10px;
    padding:20px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .form-logo {
    position: absolute;
    width: 180px;
    height: auto;
    pointer-events: none;
  }

  .form-logo.top-left {
    top: -50px;
    left: -40px;
  }

 .form-logo.bottom-right {
    bottom: -50px;
    right: -40px;
  }

  div.logo{
    h1 {
      font-size: 3rem;
      font-family: 'Exo 2', sans-serif;
      font-weight: 800;
      margin-top: 0.67em;
      margin-bottom: 0;
    }

    .logo-subtext {
      font-size: 0.75rem;
      color: #888888;
      margin-top: 0.25em;
      line-height: 1;
      font-weight: normal;
    }
    text-align: center;
    margin-bottom: 30px;
  }

  .logo h1 .text-sche {
    color: #D959BF;    /* ※6桁に直すと #D959BF になります */
    display: inline-block;
    /* 先頭文字（S）だけ大きく */
    &::first-letter {
      font-size: 1.3em;   /* 通常の 2rem の 2.5 倍 */
    }
  }

  .logo h1 .text-full {
    color: #85C801;    /* ※6桁に直すと #85C801 になります */
    display: inline-block;
    &::first-letter {
      font-size: 1.3em; 
    }
  }

  #formWrapper form {
    margin-bottom: 60px;
  }

  div.form-item{
    position: relative;
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }


  input{
    transition: all .2s ease;
  }

  input.form-style{
    color:#8a8a8a;
    display: block;
    margin: 0 auto;
    width: 80%;
    height: 44px;
    padding: 5px 5%;
    border:1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    letter-spacing: .8px;
  }

  div.form-item .form-style:focus{
    outline: none;
    border:2px solid #58bff6;
    color:#58bff6;
    font-size: 0.90rem;
    letter-spacing: 0.1em;
  }

  .password-wrapper .input-with-icon {
    position: relative;
  }

  /* アイコンを入力欄の右端に重ねる */
  .password-wrapper .input-with-icon .password-toggle {
    position: absolute;
    top: 50%;
    right: 2em;         /* お好みで微調整 */
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 1.1em;
    pointer-events: auto;
  }

 input[type="submit"].login{
   width: 70%;
   height: 40px;
   border-radius: 5px;
   background-color: #55b1df;
   border:none;
   color: #fff;
   font-weight: bold;
   margin-top: 30px;
   margin-bottom: 15px;
 }

  input[type="submit"].login:hover{
    background-color: #fff;
    border:1px solid #55b1df;
    color:#55b1df;
    cursor:pointer;
  }

  .terms_privacy {
    display: flex;
    justify-content: center;
    .btn {
      color: #55b1df;
      font-size: 0.9rem;
      font-weight: 600;
      text-decoration: none;
      position: relative;
      cursor: pointer;
      &:hover {
        opacity: 0.8;
      }
    }

    .btn-terms {
      margin-right: 2rem;
    }
  }

  input[type="submit"].login:focus{outline: none;}

  .form-error {
    font-size: 12px;
    font-weight: bold;
    color: #ff4d75;
    margin-left: 5%;
    margin-bottom: 10px;
  }

/* 小型デバイス（スマートフォン） */
@media (max-width: 480px) {
  .form-logo {
    position: absolute;
    width: 140px;
    height: auto;
    pointer-events: none;
  }

  input.form-style {
    height: 30px;
    border-radius: 5px;
  }

  div#form {
      width: 300px;
      padding: 10px;
  }


  input[type="submit"].login {
      width: 70%;
      margin-top: 10px;
  }

  .terms_privacy {
    .btn {
      font-size: 0.7rem;
      font-weight: bold;
      .btn-terms {
        margin-right: 2rem;
      }
    }
  }
}

/* 中型デバイス（タブレット、スマートフォン横向き） */
@media (min-width: 481px) and (max-width: 768px) {

  .form-logo {
    position: absolute;
    width: 160px;
    height: auto;
    pointer-events: none;
  }

  input.form-style {
    height: 30px;
    border-radius: 5px;
  }

  div#form {
    width: 400px;
    padding: 15px;
  }

  input[type="submit"].login {
      width: 70%;
      margin-top: 25px;
  }

  .terms_privacy {
    .btn {
      font-size: 0.7rem;
      font-weight: bold;
      .btn-terms {
        margin-right: 2rem;
      }
    }
  }
}
