/* ===== ログインページ ===== */
.login-page {
  width: 360px;
  padding: 8% 0 0;
  margin: auto;
}

.form h1 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333; /* 背景に映える濃い色 */
}

.form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2),
              0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.form h1 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.form input {
  font-family: "Roboto", sans-serif;
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  margin: 0 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* ✅ フォーカス効果 */
.form input:focus {
  background: #fff;
  border: 1px solid #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.form button {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: #4CAF50;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ✅ ホバー効果 */
.form button:hover {
  background: #45a049;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ✅ レスポンシブ対応 */
@media (max-width: 400px) {
  .form {
    padding: 30px;
    margin: 0 10px 50px;
  }
  .login-page {
    width: 100%;
    padding: 5% 0 0;
  }
}

.form button:hover,
.form button:active,
.form button:focus {
  background: #43A047;
}

.form .message {
  margin: 15px 0 0;
  color: #b3b3b3;
  font-size: 12px;
}

.form .message a {
  color: #4CAF50;
  text-decoration: none;
}

body {
  background: linear-gradient(
    90deg,
    rgba(141,194,111,1) 0%,
    rgba(118,184,82,1) 50%
  );
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== パスワード入力欄 ===== */
.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding-right: 2.5rem; /* アイコン分の余白 */
}

.toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;               /* 縦方向中央 */
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

.password-box label,
.password-wrapper label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* 注釈・補助説明 */
.hint {
  font-size: 11px;      /* 小さめフォント */
  line-height: 1.4;     /* 行間広めで読みやすく */
  color: #666;          /* 薄めのグレー */
  display: block;
  margin-top: 4px;
}

#helpText {
  font-size: 11px;
  line-height: 1.4;
  color: #666;
}

/* ===== ポータル画面 サイドバー ===== */
.portal-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background-color: #2c3e50;
  color: #fff;
  padding: 20px;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #ecf0f1;
  text-decoration: none;
  display: block;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s;
}

.sidebar ul li a:hover {
  background-color: #34495e;
}

/* ===== サバナス サブメニュー ===== */
.submenu {
  display: none;           /* 初期は非表示 */
  margin-left: 15px;
  list-style-type: circle;
}

.submenu li a {
  font-size: 0.9em;
  padding: 6px;
  color: #bdc3c7;
}

.submenu li a:hover {
  background-color: #3d566e;
  color: #fff;
}
