/* 基本設定 - 背景色をランディングページに合わせる */

body{
    background-color: #e7f2f0;
          font-family:'游ゴシック体', 'Yu Gothic', YuGothic, Meiryo, メイリオ, 'Lucida Grande','Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3',sans-serif;

}

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: #e7f2f0;
  
  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: 300px;
}

@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: #05616B !important;
  border-color: #05616B !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: #38574d !important;
  border-color: #38574d !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;*/ /* ご希望の青色 */
  background-color: #f8f9f6 !important; /* ご希望の青色 */
  margin-bottom: 0;
}

.login-logo img {
  height: 70px;
}

@media (max-width: 768px) {
  .login-logo img {
    height: 60px;
  }  
}

/* サイドバーをヘッダーに合わせて調整 */
.sidebar {
/*  background-color: #e7f2f0 !important;*/ /* ヘッダーよりやや暗め */
  background-color: #f8f9f6 !important; /* ヘッダーよりやや暗め */
  padding-top: 20px;
    width: 320px;   /* 好きな幅 */

}

.sidebar a {
  white-space: normal;       /* 折り返し許可 */
  word-break: break-word;    /* 長い単語も折る */
  display: block;
  color: #05616B;
}

.sidebar a:hover {
  background-color: #05616B !important; /* ヘッダーと同じ色 */
}

/* ハンバーガーメニューの色を更新 */
.hamburger-button {
  background-color: #05616B !important;
}

.hamburger-button,
.hamburger-button i,
.hamburger-button .fa-bars,
.hamburger-button .fa-bars::before {
  color: #fff !important;
}

.hamburger-button svg,
.hamburger-button svg path {
  color: #fff !important;
  fill: #fff !important;
}

/* モバイルフッターメニューも必要に応じて更新 */
.mobile-footer-menu {
  background-color: #05616B !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: 100%;
  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;
}

    .hamburger-button {
      position: fixed;
      top: 13px;
      left: 13px;
      z-index: 1020;
      padding: 10px;
      background-color: #05616B; /* Slightly darker than header */
      border: none;
      border-radius: 5px;
      cursor: pointer;
      display: block;
      color: #fff; /* White color for the icon */
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }