body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', '游ゴシック体', YuGothic, sans-serif;
  background-color: #fff;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
}

/* コンテナ本体 */
.login-container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 上部画像 */
.utility-header {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 40px;
}

/* ログインUIの中身：カラムを左寄せで縦並び */
.login-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 280px;
}

/* Welcomeテキスト */
.login-form h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
}

/* 入力欄たち */
.login-form input[type="email"],
.login-form input[type="password"] {
  padding: 10px 12px;
  width: 100%;
  border: 1px solid #ccc;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.login-form input:focus {
  border-color: #555;
  outline: none;
}

/* ログインボタン */
.login-form button {
  background-color: #000;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-form button:hover {
  opacity: 0.85;
}

/* パスワード忘れリンク */
.login-form .forgot {
  margin-top: 15px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
}

.login-form h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  text-align: left;
}

.form-fields input[type="email"],
.form-fields input[type="password"] {
  margin-bottom: 10px;
}

/* パスワード忘れリンクを洗練 */
.forgot {
  margin-top: 15px;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.forgot:hover {
  opacity: 0.6;
}

.form-fields {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* メッセージ系共通スタイル */
.feedback {
  margin-top: 12px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  min-height: 36px;
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s ease-in-out forwards;
  transition: all 0.3s ease;
}

.feedback.show {
  display: block;
  animation: fadeIn 0.4s ease-in-out forwards;
}

/* 成功メッセージ（緑） */
.message {
  background-color: #f0fdf4;
  color: #156a3a;
  border: 1px solid #b6e2c4;
}

/* エラーメッセージ（赤） */
.error {
  background-color: #fff5f5;
  color: #a33a3a;
  border: 1px solid #e5bcbc;
}

/* アニメーション */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.login-form a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  transition: border-bottom 0.2s ease;
  border-bottom: 1px solid transparent;
  display: inline-block;
  margin-bottom: 10px;
}

.login-form a:hover {
  border-bottom: 1px solid #111;
}

/* index.html専用の幅拡張クラス */
.login-form.portal-wide {
  width: 500px;
  max-width: 90%;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.feedback:empty {
  display: none;
}

body {
  background-color: #f4f4f4 !important;
}

