:root {
  --primary: #0089df;
  --accent: #c85554;
  --bg: #f7f4ed;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    /* 追加↓ */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* 画面中央に寄せる */
    padding-top: 0;    /* 必要に応じて調整 */
}


body {
  background: var(--bg);
  min-height: 100vh;
  font-family: 'Noto Sans JP', sans-serif;
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

.login-card {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 160px;
  margin-bottom: 1.5rem;
}

.login-title {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.input-group {
  width: 100%;
  margin-bottom: 1.2rem;
}

.input-group label {
  display: block;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.3em;
  font-size: 1.05em;
}

.textbox {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.textbox:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,79,84,0.1);
}

.login-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,79,84,0.18);
}

.forgot-password {
  margin-top: 1.7rem;
  text-align: center;
}

.forgot-password a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.98em;
  position: relative;
}

.forgot-password a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -2px;
}

.forgot-password a:hover::after {
  width: 100%;
}
.register-btn-wrap {
  margin-top: 18px;
  text-align: center;
}
.register-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #f0f4f8;
  color: #007b8e;
  border-radius: 4px;
  font-size: 1em;
  text-decoration: none;
  border: 1px solid #c9e0e6;
  transition: background 0.2s, color 0.2s;
}
.register-btn:hover, .register-btn:focus {
  background: #e0f6ff;
  color: #005f6b;
  text-decoration: underline;
}

@media (max-width: 800px) {
    body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
  }
    .login-card {
        max-width: 99vw;
        width: 99vw;
        margin: 10px auto; /* 左右をautoに変更 */
        padding: 12px 4vw; 
        border-radius: 0;
        box-shadow: none;
        min-height: 98vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
  .logo {
    width: 110px;
  }
  .textbox {
    font-size: 1.2rem;    /* 入力欄の文字を大きく */
    padding: 1.2rem;       /* 入力欄自体も大きく */
  }
  .login-btn {
    font-size: 1.2rem;
    padding: 1.2rem;
  }
  .input-group label {
    font-size: 1.1em;
  }
}
