/* メッセージ機能 v2 共通 CSS（サーバーレンダリング前提、 動的クラス依存なし） */

/* === L1-1 ヘッダ（背景・文字色は BootstrapChanger のテーマ CSS に委譲。navbar 既定の余白のみ打ち消す） === */
.tool-window-bar { padding: 14px 16px; }
.tool-window-bar.navbar { min-height: 0; margin-bottom: 0; border-width: 0 0 1px; border-radius: 0; }
.tool-window-bar .navbar-brand { float: none; height: auto; padding: 0; margin: 0; font-size: inherit; line-height: 1.4; }
.tool-window-bar .brand { font-weight: bold; font-size: 16px; }
.tool-window-bar .sep { margin: 0 10px; opacity: 0.6; }
.tool-window-bar .title { font-size: 14px; }
.tool-window-bar .close-link { float: right; text-decoration: underline; font-size: 12px; line-height: 1.8; }

/* === コンテキストバー === */
.ctx-bar { background: #fafafa; border-bottom: 1px solid #ddd; padding: 8px 16px; font-size: 13px; }
.ctx-bar .ctx-label { color: #333; margin-right: 8px; }
.ctx-bar .ctx-name { color: #333; font-weight: bold; margin-right: 12px; }
.ctx-bar.unselected .ctx-name { color: #666; font-weight: normal; }
.ctx-bar .ctx-switch { padding: 3px 10px; border: 1px solid #aaa; background: #fff; border-radius: 3px; font-size: 12px; color: #333; cursor: pointer; }
.ctx-bar .ctx-switch:hover { background: #eee; }
.ctx-bar .ctx-reset { color: #555; font-size: 12px; margin-left: 10px; text-decoration: underline; cursor: pointer; }
.ctx-bar .ctx-reset:hover { color: #333; }
.ctx-bar.unselected .ctx-reset { display: none; }

.ctx-bar .role-tag { display: inline-block; margin-right: 10px; font-size: 12px; padding: 1px 8px; border-radius: 3px; vertical-align: middle; }
.ctx-bar .role-tag.role-observer { background: #d9edf7; color: #31708f; border: 1px solid #bce8f1; }
.ctx-bar .role-tag.role-admin    { background: #f2dede; color: #a94442; border: 1px solid #ebccd1; }

/* === サイドナビ === */
.side-nav { padding-top: 12px; border-right: 1px solid #eee; min-height: 400px; }
.side-nav h5 { margin: 12px 12px 6px; color: #333; font-size: 14px; }
.side-nav .nav-pills > li > a { padding: 6px 12px; }
.side-nav .nav-pills > li.active > a { background: #555; }

.toolbar { padding: 10px 0; border-bottom: 1px solid #eee; }
.toolbar .form-control { display: inline-block; width: 240px; }

.empty { padding: 60px 20px; text-align: center; }

/* === 時間割オーバーレイ === */
.tt-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; padding: 30px 16px; overflow-y: auto; }
.tt-overlay.open { display: block; }
.tt-modal { background: #fff; border: 1px solid #888; max-width: 900px; margin: 0 auto; }
.tt-head { padding: 12px 16px; border-bottom: 1px solid #ddd; background: #f5f5f5; }
.tt-head h4 { margin: 0; font-size: 16px; display: inline-block; }
.tt-head .tt-close { float: right; color: #555; background: transparent; border: none; font-size: 18px; line-height: 1; cursor: pointer; }
.tt-toolbar { padding: 8px 16px; border-bottom: 1px solid #eee; background: #fff; }
.tt-toolbar .tt-select { padding: 4px 8px; border: 1px solid #aaa; background: #fff; font-size: 12px; margin-right: 8px; }
.tt-toolbar .tt-search { float: right; padding: 4px 8px; border: 1px solid #aaa; font-size: 12px; width: 200px; }
.tt-body { padding: 12px 16px; }

.course-list { list-style: none; padding: 0; margin: 0; }
.course-list li > a { display: block; padding: 8px 12px; border-bottom: 1px solid #eee; color: #333; text-decoration: none; font-size: 13px; }
.course-list li > a:hover { background: #f5f5f5; }
.course-list li > a.active { background: #555; color: #fff; }
.course-list li.course-list-section-head { padding: 14px 12px 4px; color: #888; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid #eee; }

/* === スマホ用パンくずバー === */
.msg-breadcrumb { display: none; background: #fafafa; border-bottom: 1px solid #ddd; padding: 8px 12px; font-size: 13px; }
.msg-breadcrumb .breadcrumb-toggle { display: inline-block; vertical-align: middle; margin-right: 10px; background: transparent; border: 1px solid #aaa; padding: 4px 10px; font-size: 16px; line-height: 1; color: #333; cursor: pointer; }
.msg-breadcrumb .breadcrumb-text { color: #333; font-weight: bold; }
.msg-breadcrumb .breadcrumb-text .sep { color: #999; margin: 0 6px; font-weight: normal; }

/* === スマホ用 上から drawer === */
.top-drawer { display: none; position: fixed; top: -100%; left: 0; right: 0; z-index: 900;
              background: #fff; border-bottom: 1px solid #888; max-height: 80vh; overflow-y: auto;
              transition: top .25s ease-out; }
.top-drawer.open { top: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.top-drawer .drawer-head { padding: 10px 16px; border-bottom: 1px solid #ddd; background: #f5f5f5; display: flex; align-items: center; }
.top-drawer .drawer-title { font-weight: bold; font-size: 14px; color: #333; flex: 1; }
.top-drawer .drawer-close { border: none; background: transparent; padding: 4px 8px; font-size: 22px; line-height: 1; cursor: pointer; color: #555; }
.top-drawer .drawer-close:hover { color: #000; }
.top-drawer .drawer-body { padding: 8px 0; }
.top-drawer h5 { margin: 12px 16px 6px; color: #888; font-size: 0.85em; text-transform: uppercase; }
.top-drawer .nav-pills > li > a { padding: 10px 24px; }
.top-drawer .nav-pills > li.active > a { background: #555; color: #fff; }
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 800; }
.drawer-overlay.open { display: block; }

.public-info .side-nav h5 { color: #333; font-size: 14px; text-transform: none; }
.info-screen .infopkg ul.info-list { border: none; padding-left: 0; margin: 0; }
.info-screen .infopkg ul.info-manage-list li { padding-right: 130px; }
.info-screen .infopkg ul.info-manage-list li .operations { right: 8px; top: 6px; }
.info-screen .infopkg .info-detail-foot { border-width: 0; }
.info-screen .info-edit fieldset legend { display: inline; width: auto; font-size: inherit; color: inherit; border: 0; margin-bottom: 0; }
.info-screen .infopkg table[bgcolor="#e6e6fa"] { background-color: #e6e6fa; }
.info-screen .infopkg .dark_blue { color: #333366; }
.info-screen .infopkg .mark1 { color: #c00 !important; }
.info-screen .infopkg span.mark1 { display: inline-block; font-weight: bold; margin-right: 6px; }
.info-screen .infopkg .closedAt { color: #c00; }

/* === 詳細画面 === */
.detail-meta { color: #999; font-size: 13px; margin-bottom: 12px; }
.detail-body { white-space: pre-wrap; padding: 12px 0; line-height: 1.7; }

/* === お知らせ管理（publisher/index）table 列定義 === */

/* === （旧）お知らせ管理 リスト見た目（publisher/show 等の残り） === */
.info-manage-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #ddd; }
.info-manage-list > li { padding: 12px 8px; border-bottom: 1px solid #eee; }
.info-manage-list > li.head { background: #f5f5f5; color: #666; font-size: 12px; padding: 6px 8px; }
.info-manage-list > li a.title { display: inline-block; color: #06c; text-decoration: none; font-size: 14px; font-weight: normal; margin-bottom: 4px; }
.info-manage-list > li a.title.mark1 { color: #c00; }
.info-manage-list > li a.title:hover { text-decoration: underline; }
.info-manage-list > li .data { font-size: 12px; color: #666; margin-top: 2px; }
.info-manage-list > li .data .exhibitionInfo { display: inline-block; margin-right: 12px; }
.info-manage-list > li .data .date { display: inline-block; margin-right: 12px; }
.info-manage-list > li .data .issureInfo { display: inline-block; }
.info-manage-list > li .data .issureInfo .postBy,
.info-manage-list > li .data .issureInfo .modifiedBy { display: inline-block; margin-right: 8px; }
.info-manage-list > li .operations { margin-top: 6px; }
.info-manage-list > li .operations button { margin-right: 4px; padding: 3px 12px; font-size: 12px; }
.infopkg .operations { margin: 8px 0 12px; }
.infopkg .operations button { padding: 4px 14px; font-size: 13px; margin-right: 6px; }
.infopkg ol.pager { list-style: none; padding: 0; margin: 8px 0; text-align: right; font-size: 13px; }
.infopkg ol.pager li { display: inline-block; padding: 0 4px; color: #06c; }
.infopkg ol.pager li a { color: #06c; text-decoration: none; padding: 0 4px; }
.infopkg ol.pager li a:hover { text-decoration: underline; }
.infopkg ol.pager li b { color: #333; padding: 0 6px; }

/* === お知らせ詳細（publisher/show、 編集と同じ見た目に揃える） === */
.infopkg .info-detail-head { border: 0; padding: 12px 16px; margin-bottom: 16px; background: transparent; }
.infopkg .info-detail-head h4 { margin: 0 0 8px; padding: 0 0 8px; background: transparent; color: #333; font-size: 16px; font-weight: bold; border-bottom: 1px solid #ddd; }
.infopkg .info-detail-head .data { font-size: 13px; line-height: 1.8; color: #333; }
.infopkg .info-detail-head .exhibitionInfo { display: inline-block; font-size: 12px; margin-right: 8px; }
.infopkg .info-detail-head .issureInfo { margin-top: 4px; }
.infopkg .info-detail-head .issureInfo > div { display: inline-block; margin-right: 12px; }
.infopkg .info-detail-body { border: 1px solid #ddd; border-radius: 3px; padding: 16px; background: #fff; min-height: 100px; margin-bottom: 16px; line-height: 1.7; }
.infopkg .info-detail-foot { margin-top: 16px; }
.infopkg .info-detail-foot .operations { margin-bottom: 12px; }

/* === 作成/編集画面の調整 === */
.info-screen .info-edit .info-detail-head .exhibitionInfo { background: transparent; padding: 0; margin-right: 0; }
.info-screen .info-edit .info-detail-head .data { color: #333; }
.info-screen .info-edit .info-detail-body-outer { background: transparent; padding: 0; border: 1px solid #ddd; border-radius: 3px; }
.info-screen .info-edit .info-detail-body-outer textarea.info-detail-body { border: 0; }
.info-screen .info-edit .exhibitionInfo fieldset { padding-top: 1px; padding-bottom: 1px; }
.info-screen .info-edit .exhibitionInfo fieldset p { margin-bottom: 2px; }

.info-screen .infopkg div.info-detail-body { border: 1px solid #ddd; border-radius: 3px; background: #fff; }
.info-screen .infopkg .state-ready { background-color: #770; border-color: #770; }

/* === レスポンシブ（PC ⇄ スマホ） === */
@media (max-width: 767px) {
  .tool-window-bar .close-link { display: none; }
  .tool-window-bar { padding: 10px 12px; }
  .ctx-bar { padding: 8px 12px; }
  .ctx-bar .ctx-switch { float: right; }

  .msg-breadcrumb { display: block; }
  .top-drawer { display: block; }
  .side-nav { display: none; }
  .top-drawer .side-nav { display: block; width: 100%; padding: 0; }

  .ctx-bar .ctx-reset { white-space: nowrap; }
  .info-screen .infopkg p.operations { flex-wrap: wrap; }
  .info-screen .infopkg .operations button { white-space: nowrap; }
  .info-screen .info-edit .exhibitionInfo fieldset { margin-left: 0; padding-left: 0; }
  .info-screen .info-edit .exhibitionInfo fieldset legend { float: none; display: block; margin-left: 0; margin-bottom: 4px; }
  .info-screen .info-edit .exhibitionInfo ul li { white-space: nowrap; }
  .info-screen .info-edit .exhibitionInfo label { white-space: nowrap; }
  .info-screen .info-edit .exhibitionInfo .choice { white-space: nowrap; }
  .info-screen .info-edit .info-detail-head .data { padding-left: 0; }
  .info-screen .info-edit .info-detail-head .exhibitionInfo { width: fit-content; margin: 0 auto; }
  .info-screen .info-edit .info-detail-head h4 input[type="text"] { display: block; margin: 0 auto; }

  .info-screen .infopkg ul.info-manage-list li { padding-right: 8px; }
  .info-screen .infopkg ul.info-manage-list li .operations { position: static; margin-top: 6px; text-align: right; }
  .info-screen .infopkg ul.info-manage-list li .data { padding-left: 0.5em; }
  .info-screen .infopkg ul.info-manage-list li .data .issureInfo { position: static; text-align: left; display: block; }

  .info-screen .infopkg table:not([bgcolor]) { display: block; overflow-x: auto; white-space: nowrap; }
  .info-screen .infopkg table:not([bgcolor]) td { padding: 4px 12px; }

  .col-sm-10 { padding-top: 8px; }
  .toolbar .form-control { width: 100%; margin-top: 6px; float: none !important; }


  .tt-overlay { padding: 0; }
  .tt-modal { max-width: none; min-height: 100vh; border: none; }
  .tt-toolbar .tt-search { float: none; width: 100%; margin-top: 6px; }
}

/* === コース選択の時間割風リスト === */
.tt-schedule li.tt-day-head { background: #e8f1fa; color: #333; font-size: 13px; font-weight: bold; text-transform: none; padding: 10px 12px; border-bottom: 1px solid #ddd; }
.tt-schedule li.tt-period-head { background: #f5f5f5; color: #333; font-size: 13px; font-weight: bold; text-transform: none; padding: 8px 12px; border-bottom: 1px solid #ddd; }
.tt-schedule .course-list-item a { padding-left: 24px; }
