@charset "utf-8";
body{
    background-color: #f5f5f5;
}
.error-message{
    color: red;
    font-weight: bold;
}
.login-container{
    background-color: white;
    width: 550px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
    margin-bottom: 80px;
    border-radius: 30px;
}
.login-contents{
    padding: 50px 80px;
}
.login-logo{
    width: 200px;
    margin-left: auto;
    margin-right: auto;
}
.login-logo img{
    width: 100%;
    height: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.login-method{
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
    width: 100%;
}
.login-property{
    margin-top: 15px;
    margin-bottom: 20px;
}
.login-property label{
    font-size: 14px;
}
.login-input{
    width: 100%;
    height: 7vh;
    border: none;
    outline: solid 3px #e6e6e6;
    border-radius: 1em;
    margin-top: 5px;
}
.login-button{
    color: #fff;
    background:#02ab2f;
    padding:1em 1em;
    border-top: none;
    border-bottom: none;
    border-left: solid 3px #02ab2f;
    border-right: solid 3px #02ab2f;
    font-size: 17px;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    width: 100%;
    border-radius: 1em;
    cursor: pointer;
}
.password-reset{
    text-align: right;
}
.password-reset a{
    color: #02ab2f;
    font-size: 14px;
}
.password-reset a:hover{
    color: #02ab2f;
    text-decoration: none;
}
.password-reset a:visited{
    color: #02ab2f;
}

/* Googleでログイン */
.google-login {
    background-color: #ffffff;
    height: 8vh;
    min-height: 48px;
    margin: 15px auto 0;
    border: 1px solid #dadce0;
    border-radius: 1em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.16);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.google-login:hover {
    background-color: #f8fafd;
    box-shadow: 0 4px 10px rgba(60, 64, 67, 0.2);
}

.google-login:active {
    transform: translateY(1px);
}

.google-login a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: #3c4043;
    font-weight: bold;
    padding: 0 16px;
    box-sizing: border-box;
}

.google-login__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: 32px;
    height: 32px;
}

.google-logo {
    width: 26px;
    height: 26px;
    display: block;
}

.google-login span {
    justify-self: center;
    white-space: nowrap;
}

.google-login a:visited {
    color: #3c4043;
}

/* LINEでログイン */
.line-login{
    background-color: #00B900;
    height: 8vh;
    min-height: 48px;
    margin: 15px auto 0;
    border-radius: 1em;
    cursor: pointer;
}
.line-login a{
    display: grid;                          /* ★ Grid化 */
    grid-template-columns: auto 1fr auto;   /* 左｜中央｜右 */
    align-items: center;                    /* ★ 縦中央 */
    height: 100%;
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 0 16px;
}
/* SVG：左カラム */
.line-logo{
    width: 28px;
    height: auto;
    justify-self: start;                    /* ★ 左寄せ */
    margin-top: 8px;
}
/* テキスト：中央カラム */
.line-login span{
    justify-self: center;                   /* ★ 完全中央 */
    white-space: nowrap;
}
.line-login a:visited{
    color: white;
}

/* Facebookでログイン */
.facebook-login{
    background-color: #1877f2;
    height: 8vh;
    min-height: 48px;
    margin: 15px auto 0;
    border-radius: 1em;
    cursor: pointer;
}
.facebook-login a{
    display: grid;                          /* ★ Grid化 */
    grid-template-columns: auto 1fr auto;   /* 左｜中央｜右 */
    align-items: center;                    /* ★ 縦中央 */
    height: 100%;
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 0 16px;
}
/* SVG：左カラム */
.facebook-logo{
    width: 28px;
    height: auto;
    justify-self: start;                    /* ★ 左寄せ */
    margin-top: 0;
}
/* テキスト：中央カラム */
.facebook-login span{
    justify-self: center;                   /* ★ 完全中央 */
    white-space: nowrap;
}
.facebook-login a:visited{
    color: white;
}
.line-logo path,
.facebook-logo path{
  fill: #fff !important;
}
/* 新規登録リンク */
.registration-button{
    display: block;           /* ★ inlineをやめる */
    box-sizing: border-box;   /* ★ 100%でもはみ出さない */
    
    width: 100%;
    margin: 30px auto 15px;
    padding: 1em;
  
    color: black;
    background: white;
    border: solid 3px black;
    font-size: 17px;
    font-weight: bold;
    border-radius: 1em;
    cursor: pointer;
    text-decoration: none;
  
    text-align: center;       /* ★ 文字も中央に */
  }
/* 退会手続きページ */
.box{
    text-align:left;
    max-width:640px;
    margin:0 auto;
}
.box h2{
    margin-top: 0;
}
.warn{ 
    line-height:1.8;
}
.warn-agenda{
    font-weight: bold;
}
#final-check{
    font-size: 14px;
}
.btn-row{
    display:flex;
    gap:20px;
    justify-content:center;
    margin-top:16px;
    flex-wrap:wrap;
}
.btn{
    padding:12px 18px;
    border-radius:8px;
    border:3px solid #999;
    color: #999;
    background:#fff;
    cursor:pointer;
    font-weight: bold;
}
.btn-danger{
    border-color: #02ab2f;
    color: #02ab2f;
}
.btn:disabled{
    opacity:.5;
    cursor:not-allowed;
}
.check{
    margin-top:16px;
}
.error-message{
    color:red;
    margin:8px 0;
}

/* SNSメール取得説明リンク（Facebookボタン右下） */
.sns-email-permission-link{
    margin: 6px 0 0;
    text-align: right;
}
.sns-email-permission-link a{
    font-size: 12px;
    color: black;
    text-decoration: underline;
}
.sns-email-permission-link a:hover{
    text-decoration: none;
}
.sns-email-permission-link a:visited{
    color: black;
}
@media screen and (max-width: 767px) {

  html,
  body {
    overflow-x: hidden;
  }

  .login-container {
    width: calc(100% - 20px);
    margin: 24px auto;
    border-radius: 24px;
    box-sizing: border-box;
  }

  .login-contents {
    padding: 28px 16px 24px;
    box-sizing: border-box;
  }

  .login-logo {
    width: 160px;
    margin-bottom: 10px;
  }

  .login-method {
    padding-bottom: 18px;
  }

  .login-method h3 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .error-message {
    font-size: 14px;
    line-height: 1.7;
    margin: 8px 0 12px;
  }

  .login-property {
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .login-property label {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .login-input {
    height: 48px;
    min-height: 48px;
    font-size: 16px;
    padding: 0 12px;
    margin-top: 0;
    box-sizing: border-box;
  }

  .login-button {
    margin-top: 12px;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.4;
  }

  .password-reset {
    margin-top: 12px;
    text-align: center;
  }

  .password-reset a {
    font-size: 13px;
    line-height: 1.6;
  }


  .google-login,
  .line-login,
  .facebook-login {
    height: auto;
    min-height: 50px;
    margin-top: 12px;
    border-radius: 14px;
  }

  .google-login a,
  .line-login a,
  .facebook-login a {
    min-height: 50px;
    padding: 0 14px;
    font-size: 14px;
    box-sizing: border-box;
  }

  .google-login span,
  .line-login span,
  .facebook-login span {
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    padding: 0 8px;
  }

  .google-logo,
  .line-logo,
  .facebook-logo {
    width: 24px;
    height: 24px;
  }

  .google-login__icon {
    width: 30px;
    height: 30px;
  }

  .line-logo {
    margin-top: 6px;
  }

  .registration-button {
    margin: 22px auto 8px;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 14px;
  }

  .sns-email-permission-link {
    margin-top: 8px;
    text-align: center;
  }

  .sns-email-permission-link a {
    font-size: 12px;
    line-height: 1.6;
  }

  /* 退会手続き系ページもついでに安定化 */
  .box {
    width: 100%;
    box-sizing: border-box;
  }

  .btn-row {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    box-sizing: border-box;
  }
}