@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 縦スクロールを防止 */
}

.content {
  flex: 1;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 0; /* flexコンテナの最小高を設定 */
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 300px;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.form-group input {
  width: 200px;
  height: 36px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.login-button {
  width: 120px;
  height: 36px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
}

.login-button:hover {
  background-color: #e0e0e0;
}

.footer {
  background-color: white;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: #666;
  flex-shrink: 0; /* フッターが縮まないようにする */
}

/* スマホサイズでの追加調整 */
@media (max-height: 600px) {
  .title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .content {
    padding: 15px;
  }
  
  .login-form {
    gap: 12px;
  }
  
  .form-group label {
    margin-bottom: 4px;
  }
  
  .footer {
    padding: 6px;
  }
}

@media (max-height: 500px) {
  .title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .content {
    padding: 10px;
  }
  
  .login-form {
    gap: 10px;
  }
  
  .form-group input {
    height: 32px;
  }
  
  .login-button {
    height: 32px;
    margin-top: 5px;
  }
}
