/* -----------------------------------------
   ログイン画面全体のスタイル
----------------------------------------- */
body {
  margin: 0;
  padding: 0;
  /* 背景を斜めグラデーションで #e8f3fc から白へ */
  background: linear-gradient(135deg, #e8f3fc, #ffffff);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
}

/* -----------------------------------------
   ログインコンテナの配置スタイル
----------------------------------------- */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* 画面中央に表示するため body に対してセンタリング */
}

.login-box {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 5px solid #699FBD;  /* ヘッダーライン */
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------
   ロゴ部分
----------------------------------------- */
.service-name-title{
  text-align: right;
  font-size: 1em;
  color: #2567ab;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.brand-logo {
  text-align: center;
  margin-bottom: 20px;
}

.brand-logo-img {
  max-width: 170px;
  height: auto;
    transform: scale(1.3);
}

/* -----------------------------------------
   ヘッダーリンク（言語・バージョンなど）
----------------------------------------- */
.top-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* 言語選択ドロップダウン */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-btn {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.language-btn:hover {
  background-color: #f2f2f2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.language-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.language-text {
  margin: 0 4px;
}

.caret {
  font-size: 12px;
}

/* ドロップダウンメニュー */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background-color: #ffffff;
  min-width: 140px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f7f7f7;
}

.language-dropdown.active .dropdown-menu {
  display: block;
}

/* デバイス別リンク */
.device-version-links {
  font-size: 14px;
}

.device-version-links a {
  color: #2567ab;
  text-decoration: none;
  padding: 4px 8px;
  transition: background-color 0.2s, color 0.2s;
}

.device-version-links a:hover {
  background-color: #f2f2f2;
  color: #2567ab;
}

.separator {
  margin: 0 5px;
  color: #666;
}

/* -----------------------------------------
   フォームエリア
----------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 8px;
  color: #2567ab;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

/* ボタン */
.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background-color: #2567ab;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-login:hover {
  background-color: #1e5086;
}

/* -----------------------------------------
   リンク集
----------------------------------------- */
.login-links {
  margin-top: 20px;
  text-align: center;
}

.login-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #2567ab;
  transition: color 0.3s;
}

.login-links a:hover {
  color: #1e5086;
  text-decoration: underline;
}

/* -----------------------------------------
   エラーメッセージ
----------------------------------------- */
.error {
  color: #D8000C;
  background-color: #FFD2D2;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 20px;
}

/* メンテナンスメッセージ */
.maintenance-message {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #699FBD;
  background-color: #eaf3fa;
  color: #2567ab;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

/* ブラウザツールチップ */
.tooltip-icon {
  display: inline-block;
  margin-left: 5px;
  background-color: #2567ab;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  line-height: 18px;
}

.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: pre-line;
  white-space: nowrap;
  z-index: 10;
  font-size: 12px;
  opacity: 1;
  display: block;
}

/* 注釈 */
.asterisk {
  color: #2567ab;
}

