
body {
  font-family: "Noto Sans JP", sans-serif;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px;
  border-radius: 12px;
}

header .logo {
  max-width: 200px;
  object-fit: contain;
}

header .box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 10px 20px 10px 0;
}

header .fullname {
  margin: 0;
  font-size: 14px;
  color: #333;
  border: none;
  padding: 8px 12px;
  font-weight: 500;
}

header .fullname span {
  font-size: 1.5em;
}

header .box a {
  display: inline-block;
  text-align: center;
  padding: 8px 16px;
  background-color: white;
  border-radius: 6px;
  text-decoration: none;
  color: #666;
  font-size: 13px;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

header .box a:hover {
  background-color: #f5f5f5;
}

header .user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

header .btn-password-change {
  background-color: transparent !important;
  border: none !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  color: #2563eb !important;
  text-decoration: underline;
}

header .btn-password-change:hover {
  background-color: transparent !important;
  color: #1d4ed8 !important;
}


/*-------------------------------

  ログインページ用CSS

-------------------------------*/
.loginpage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loginpage h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

.loginpage .error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.loginpage .loginform {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  margin: 2em 20px;
}

.loginpage .loginform label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  margin-top: 16px;
}

.loginpage .loginform input[type="text"],
.loginpage .loginform input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.loginpage .loginform input[type="submit"] {
  width: 100%;
  background-color: #2563eb;
  color: white;
  font-weight: 600;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}