/* 基本設定 - 背景色をランディングページに合わせる */
body.login-page {
  background: #f8f7f6; /* 薄いベージュ色の背景 */
  font-family: grandam,sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  word-spacing: 1px;
  line-height: 1;
  color: #303030;
  transition: .3s cubic-bezier(.4,.4,0,1);
}

/* ログインボックス - 白背景に設定 */
.login-box-ex, .login-box {
  width: 90%;
  max-width: 450px;
  margin: 5% auto;
  border: none; /* 枠線を削除 */
  background-color: #fff; /* 白背景 */
  border-radius: 8px; /* 角丸を追加 - ランディングページのカードと同様 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 薄い影を追加 */
  overflow: hidden; /* 角丸内に内容を収める */
}

/* ロゴエリア */
.login-logo-ex {
  background-color: #2c5282;
  
  padding: 20px;
  text-align: center;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #f0f0f0; /* この線のみ残す - 薄い色 */
  border-radius: 12px 12px 0 0; /* 上部の角のみ丸く */

}

.login-logo-ex img {
  max-width: 400px;
}

@media (max-width: 768px) {
  .login-logo-ex img {
  max-width: 320px;
  }  
}



/* ログインフォームエリア - 白背景 */
.login-box-body {
  background: #fff;
  padding: 30px;  
  border: none; /* 枠線を削除 */
  box-shadow: none; /* 影を削除 */
  border-radius: 0 0 12px 12px; /* 下部の角のみ丸く */

}

/* ログインメッセージ */
.login-box-msg {
  color: #1e50a2;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
  line-height: 160%;
}

/* グラデーションラインをより細く */
.login-box-msg:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #f6ce00; /* 黄色のみのシンプルなライン */
}

/* フォームコントロール */
.form-control {
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 12px 15px;
  height: auto;
  font-size: 15px;
  margin-bottom: 15px;
  transition: .3s cubic-bezier(.4,.4,0,1);
  border-radius: 4px; /* 入力フィールドにも角丸を追加 */
}

.form-control:focus {
  border-color: #1e50a2;
  box-shadow: none; /* フォーカス時の影も削除 */
  outline: none;
}

/* ログインボタン */
.btn-success {
/*  background-color: #1e50a2 !important;
  border-color: #1e50a2 !important;
*/
  background-color: #2c5282 !important;
  border-color: #2c5282 !important;
  border-radius: 0; /* 角丸を削除 */
  padding: 12px;
  transition: .3s cubic-bezier(.4,.4,0,1);
  border-radius: 4px; /* 入力フィールドにも角丸を追加 */
}

.btn-success:hover, 
.btn-success:active, 
.btn-success:focus {
/*  background-color: #164082 !important;
  border-color: #164082 !important;
*/  
  background-color: #1e50a2 !important;
  border-color: #1e50a2 !important;
  box-shadow: none !important; /* ホバー時の影も削除 */
}

/* ログインボタンスタイル */
#login-btn {
  cursor: pointer;
  font-weight: 600;
  padding: 12px;
  font-size: 16px;
  letter-spacing: 0.5px;
  width: 100%;
}

#login-btn.btn-flat {
  border-radius: 14px !important; /* !importantで他のスタイルを上書き */
}

.btn-success.btn-flat {
  border-radius: 14px !important;
}

/* もしくは btn-flat クラスの効果を打ち消す */
.btn-flat {
  border-radius: 14px !important;
}

/* リンクスタイル */
.login-box-body a {
  color: #1e50a2;
  transition: color 0.2s ease;
  font-size: 14px;
}

.login-box-body a:hover {
  color: #164082;
  text-decoration: none;
}

/* アイコン */
.login-box-body .fa {
  color: #1e50a2;
  margin-right: 5px;
}

/* チェックボックススタイル */
.checkbox-inline {
  font-size: 14px;
  color: #555;
  padding-left: 25px;
}

.checkbox-inline input[type="checkbox"] {
  margin-left: -25px;
}

/* エラーメッセージ */
.text-red {
  color: #e53935 !important;
  font-size: 14px;
  padding: 8px 0;
}

/* ローディング画面 */
.waitMe {
  background: rgba(255, 255, 255, 0.9);
}

.waitMe .waitMe_content {
  color: #1e50a2;
  font-size: 16px;
}

/* フォームアイコン */
.form-control-feedback {
  color: #1e50a2;
  line-height: 44px;
}

p.forget-pass {
  line-height: 160%;
}

.text-18{
  font-size: 18px;
}

/* ヘッダーの背景色変更 */
.login-logo {
  background-color: #2c5282 !important; /* ご希望の青色 */
  margin-bottom: 0;
}

.login-logo img {
  height: 83px;
}

@media (max-width: 768px) {
  .login-logo img {
    height: 60px;
  }  
}

/* サイドバーをヘッダーに合わせて調整 */
.sidebar {
  background-color: #184d8a !important; /* ヘッダーよりやや暗め */
  padding-top: 20px;
    width: 320px;   /* 好きな幅 */

}


.sidebar a:hover {
  background-color: #2c5282 !important; /* ヘッダーと同じ色 */
}

/* ハンバーガーメニューの色を更新 */
.hamburger-button {
  background-color: #184d8a !important;
}

/* モバイルフッターメニューも必要に応じて更新 */
.mobile-footer-menu {
  background-color: #2c5282 !important;
}

a.tips,
a.tips:hover,
a.tips:active,
a.tips:focus {
  color: #2c5282 !important;
}

a.tips,
a.tips:hover {
  border-bottom: dashed 1px #2c5282 !important;
}

.sidebar-divider {
  margin: 12px 0;
  border-top: 1px solid #ccc;
  opacity: 0.5;
}

.guidance-text{
  line-height: 160%;
}

/* 画像ダイアログのプレビューを枠内に縮小表示 */
/* 画像ダイアログのプレビューを確実に箱に収める */
.cke_dialog_image .ImagePreviewArea { padding: 0 !important; }
.cke_dialog_image .ImagePreviewBox {
  width: 320px !important;   /* 適宜調整 */
  height: 200px !important;  /* 適宜調整 */
  background: #fff;
  overflow: hidden;
  display: flex;              /* 画像を中央寄せ */
  align-items: center;
  justify-content: center;
}
.cke_dialog_image .ImagePreviewBox img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* 余白なしにしたければ cover に変更 */
  background: #fff;
}

html, body {
  font-size: 15px !important;
  color: #334155;;
}

/* ===== はじめての方へ（メインメニュー） ===== */

.first-guide {
  margin-bottom: 16px;
}

/* 本文＋ボタンのレイアウト */
.first-guide-body {
  display: flex;
  flex-direction: column; /* スマホは縦 */
  gap: 10px;
}

/* テキスト */
.first-guide-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* ボタン */
.first-guide-action {
  flex-shrink: 0;
}

.first-guide-btn {
  border-radius: 20px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* PC以上は横並び */
@media (min-width: 768px) {
  .first-guide-body {
    flex-direction: row;
    align-items: center;
  }

  .first-guide-text {
    margin-right: 12px;
  }
}
/* ×ボタン */
.first-guide {
  position: relative;
}

.first-guide-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.first-guide-close:hover {
  color: #000;
}
.first-guide-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.first-guide-close-text {
  font-size: 12px;
}

.first-guide-close:hover {
  color: #000;
}

.sidebar {
  width: 325px;
  position: fixed;
  top: 70px;
  left: -325px;  /* ← 初期は隠す */
  height: calc(100vh - 70px);
  overflow-y: auto;
  transition: 0.3s;
  z-index: 9999;
}
.sidebar.open {
  left: 0;
}

.sidebar a {
  white-space: normal;       /* 折り返し許可 */
  word-break: break-word;    /* 長い単語も折る */
  display: block;
}

.main-sidebar,
.left-side {
  transform: none !important;
}

.content-wrapper,
.right-side,
.main-footer,
.footer-menu-ex {
  transform: none !important;
  margin-left: 0 !important;
}

.main-sidebar,
.left-side {
  transform: none !important;
}

/* AdminLTEの移動を完全無効化 */
.content-wrapper,
.right-side,
.main-footer,
.footer-menu-ex {
  transform: none !important;
}

/* ===== AdminLTE のレイアウト移動を完全停止 ===== */

.content-wrapper,
.right-side,
.main-footer,
.footer-menu-ex,
.main-header > .navbar {
  transform: none !important;
  margin-left: 0 !important;
}

/* body に何が付いても動かさない */
.sidebar-open .content-wrapper,
.sidebar-open .right-side,
.sidebar-open .main-footer,
.sidebar-open .footer-menu-ex,
.sidebar-collapse .content-wrapper,
.sidebar-collapse .right-side,
.sidebar-collapse .main-footer,
.sidebar-collapse .footer-menu-ex {
  transform: none !important;
  margin-left: 0 !important;
}

{literal}
<style>
/* ===== 固定フッター・ナビ（2行対応・タイポ不干渉） ===== */
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:1000;
  display:flex;justify-content:space-around;align-items:center;
  height:68px;background:#2c5282;color:#fff;box-shadow:0 -2px 8px rgba(0,0,0,.12);
}

/* 均等幅。ここではサイズ指定しない（既存テーマを継承） */
.bottom-nav > a,
.bottom-nav > .nav-item-wrapper{
  flex:1 1 20%;
  position:relative;
}

/* タイポは継承。2行対応だけする */
.bottom-nav a{
  display:block;
  text-align:center;
  color:#fff;
  text-decoration:none;
  /* ↓ 文字サイズ/行高は一切指定しない */
/*  font-size: inherit;*/
  font-size: 10.5px;
  line-height: inherit;
  padding-top:6px; /* 余白のみ調整 */
  white-space: normal;        /* 2行折り返し可 */
  word-break: keep-all;
}

.bottom-nav a i{
  display:block;
  /* ↓ アイコンサイズも継承（必要なら 1.1em など最小調整を） */
  font-size: inherit;
  line-height: inherit;
  margin-bottom:2px;
}

.bottom-nav a.active,
.bottom-nav a:focus{ color:#ffd54d; }

/* 学ぶドロップダウン（初期非表示）—タイポ指定なし */
.nav-dropdown{
  position:absolute;left:50%;bottom:70px;transform:translateX(-50%);
  min-width:190px;background:#fff;color:#004080;border-radius:10px;
  box-shadow:0 6px 20px rgba(0,0,0,.2);padding:8px 0;display:none;z-index:1100;
}
.nav-dropdown a{display:block;padding:10px 14px;color:#004080;text-decoration:none;font-size: 13px;}
.nav-dropdown a:hover{background:#e7f1ff}

.nav-dropdown-my{
/*  position:absolute;right:-10%;bottom:70px;transform:translateX(-5%);*/
  position:absolute;right:20%;bottom:70px;transform:translateX(-5%);
  min-width:190px;background:#fff;color:#004080;border-radius:10px;
  box-shadow:0 6px 20px rgba(0,0,0,.2);padding:8px 0;display:none;z-index:1100;
}
.nav-dropdown-my a{display:block;padding:10px 14px;color:#004080;text-decoration:none;font-size: 13px;}
.nav-dropdown-my a:hover{background:#e7f1ff}

</style>
{/literal}