/*
  共通css
*/

/* ナビゲーションバーを本田カラーに変更 */
.navbar {
  background: #cb0000;
}

/* HONDAカラー（ナビゲーションバー） */
.custom-nav > li.light-blue > a:focus, .custom-nav > li.light-blue > a:hover, .custom-nav > li.light-blue.open > a{
  background-color: #B74635;
}

/* HONDAカラー（ナビゲーションバー上のメニューボタン） */
.custom-nav > li.light-blue > a{
  background-color: #D15B47;
}

/* assets標準定義の画像URL設定無し上書き */
.light-login {
  background: #DFE0E2;
}

/* 画面幅を狭めた際のユーザーメニュー上部のpaddingエリアを修正 */
@media (min-width: 480px) and (max-width: 540px), (max-width: 360px){
  .navbar:not(.navbar-collapse) .navbar-buttons .user-menu {
  padding-top: 5px!important;
  }
}

/* カスタムレスポンシブ */
@media (min-width: 1200px) and (max-width: 1300px) {
  .col-mlg-7 {
  width:58.333%
  }
}
@media (min-width: 1500px) {
  .col-xlg-5 {
  width:41.666%
  }
}
@media (min-width: 1760px) {
  .col-xxlg-4 {
  width: 33.333%;
  }
}

@media only screen and (max-width: 479px) {
 .navbar:not(.navbar-collapse) .navbar-header {
   float: right!important;
 }
 .navbar-fixed-top+.main-container {
   padding-top: 45px;
 }
}

/* テキスト省略 */
.text-truncate {
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

/* ヘッダータイトル設定 */
a.header-title {
  color: inherit;
  text-decoration: none;
}

/* スクロールバーが画面用に重ならない設定 */
@-ms-viewport
{
  width: auto;
  initial-scale: 1;
}
@viewport
{
  width: device-width;
  initial-scale: 1;
}

/* required属性のStyleを共通化 */
input:required {
  outline-width: 0px;
}
input.hidden-form {
  width: 0!important;
  height: 0!important;
  opacity: 0!important;
}

/* 選択状態にさせたくない領域 */
.unselected-area {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* カーソルが乗ると手の形になる領域 */
.hover-cursor-pointer:hover,
.input-group-addon:hover
 {
  cursor: pointer;
}

/* AceAdmin スイッチUI：OFF の位置を調整 */
input[type=checkbox].ace.ace-switch+.lbl::before {
  content: "ON\a0\a0\a0\a0\a0\a0\a0OFF";
}

.pe-1 {
  padding-right: 0.25rem;
}

/*
* ナビゲーションバーの高さを設定（１）
* Bootstrapデフォルトの高さ指定を解除
* 実際の高さ調整は（２）でおこなう。
*/
.navbar {
  min-height: 0px !important;
}
.navbar-brand{
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

/*
 * ナビゲーションバーの高さを設定（２）
 * 以下のピクセル設定値をすべてに同じ値で指定
 */
.navbar-height {
/*   height: 45px !important; */
  line-height: 45px !important;
}

/*
 * 入力クリアボタン定義
 */
.searchclear {
  right: 20px;
  top: 0;
  bottom: 0;
  height: 80%;
  margin: auto;
  cursor: pointer;
/*   font-size: 14px; */
/*   color: #666; */
}
input[type="text"] + .searchclear {
  position: absolute;
}
.searchclear.clear-badge {
  position: initial;
}

/* 入力フォームの背景 */
.well{
  background-color: #e3e3e3;
}

/* テーブル内アラートメッセージ共通 */
.table-alert-message {
  color: red;
  font-size: smaller;
}

/* Bootstrapのpreタグと同じ見た目でpタグを使えるようにするclass */
p.bootstrap-pre-tag {
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 一覧の背景色 */
tr.no-group-color {
  background-color: #D0D0D0 !important;
}
tr.no-group-color:hover {
  background-color: #C0C0C0 !important;
}

.no-tag-rule-color {
  background-color: #FFDDDD !important;
}
.no-tag-rule-color:hover {
  background-color: #FFCCCC !important;
}

/** お気に入り（☆）ボタン */
.star-button {
  font-size: 20px;
  width: 30px;
  height: 27px;
  cursor: pointer;
  background-color: transparent;
  border: 0px;
  border-radius: 20%;
  display: inline-block;
}

.star-button.off {
  color: #808080;
}

.star-button.on {
  color: #ffbb00;
}

.star-button:hover {
  background-color: rgba(20, 20, 20, .1);
}

.star-button:active {
  background-color: rgba(20, 20, 20, .1);
}

.disabled, .select-lock {
  pointer-events: none;
  opacity: 0.5
}

/** select2の表示タグの定義 */
.favorite-outer .select2.tag-input-style .select2-selection .select2-selection__choice {
  background-color: #d6487e;
  color: white;
}
.favorite-outer .select2.tag-input-style .select2-selection .select2-selection__choice__keyword,
.favorite-outer .select2.tag-input-style .select2-selection .select2-selection__choice:has(>.keyword) {
  background-color: #5e894b;
  color: white;
}
.select2.tag-input-style .select2-selection .select2-selection__choice {
  background-color: #ffc0cb;
  color: #555;
}
.select2.tag-input-style.label-style .select2-selection .select2-selection__choice {
  background-color: #82AF6F;
  color: white;
}
.select2.tag-input-style.label-site .select2-selection .select2-selection__choice {
  background-color: #428BCA;
  color: white;
}
.select2.tag-input-style .select2-selection .select2-selection__choice__keyword,
.select2.tag-input-style .select2-selection .select2-selection__choice:has(>.keyword) {
  background-color: #99cc00;
  color: #333;
}
.select2.tag-input-style .select2-selection .select2-selection__choice:not(:has(>.select2-selection__choice__remove)) {
  padding-right: 9px;
}

/** select2の検索フィールドの定義 */
.select2-search__field {
  min-width: 10em!important;
  max-width: 100%!important;
}
@media all and (min-width: 992px) {
  .select2-search__field{
    width: 420px!important;
  }
}
@media all and (max-width:991px) {
  .select2-search__field{
    width: 370px!important;
  }
}
@media all and (max-width:450px) {
  .select2-search__field{
    width: 265px!important;
  }
}
@media all and (max-width:365px) {
  .select2-search__field{
    width: 200px!important;
  }
}
@media all and (max-width:300px) {
  .select2-search__field{
    width: 150px!important;
  }
}

/* ヘッダー内用境界線 */
.header-divider {
  height: 1px!important;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #e5e5e5;
}
.badge-favorite {
  background-color: #d6487e;
  color: white;
}
.badge-keyword {
  background-color:#99cc00;
  color: #111;
}
.badge-keyword-group {
  background-color: #E7E7E7;
  color: #111;
}
.badge-keyword-favorite {
  background-color:#5e894b;
  color: white;
}
.badge-warning,
.badge.badge-warning,
.label-warning,
.label.label-warning {
  background-color: #ffc0cb;
  color: #111;
}
.label-warning.arrowed:before {
  border-right-color: #ffc0cb;
}
.label-warning.arrowed-in:before {
  border-color: #ffc0cb #ffc0cb #ffc0cb transparent;
}
.label-warning.arrowed-right:after {
  border-left-color: #ffc0cb;
}
li.select2-results__option[aria-selected='true']::after {
  content: ' ★';
}

/* 共通定義 */
.width-0 {
  width: 0!important;
}
.width-30 {
  width: 30px!important;
}
.width-80 {
  width: 80px!important;
}
.width-auto {
  width: auto!important;
}
.w-6 {
  width: 1.5rem;
}
.w-100 {
  width: 100%;
}
.w-70px {
  width: 70px;
}
.w-75px {
  width: 75px;
}
.w-85px {
  width: 85px;
}
.w-100px {
  width: 100px;
}
.w-180px {
  width: 180px;
}
.w-300px {
  width: 300px;
}
.min-w-50px {
  min-width: 50px;
}
.min-w-70px {
  min-width: 70px;
}
.min-w-75px {
  min-width: 75px;
}
.min-w-85px {
  min-width: 85px;
}
.max-w-80 {
  max-width: 80%;
}

.h-100 {
  height: 100%;
}
.max-h-70vh {
  max-height: 70vh;
}
.my-4px {
  margin-top: 4px;
  margin-bottom: 4px;
}
.mt-4px {
  margin-top: 4px;
}
.margin-top-15 {
  margin-top: 15px;
}
.mb-4px {
  margin-bottom: 4px;
}
.margin-bottom-5 {
  margin-bottom: 5px;
}
.margin-bottom-5-imp {
  margin-bottom: 5px!important;
}
.margin-bottom-10 {
  margin-bottom: 10px;
}
.ml-3px {
  margin-left: 3px;
}
.ml-4px {
  margin-left: 4px;
}
.margin-left-15 {
  margin-left: 15px;
}
.p-0 {
  padding: 0!important;
}
.p-4px {
  padding: 4px;
}
.p-8px {
  padding: 8px;
}
.pt-10px {
  padding-top: 10px;
}
.pl-3px {
  padding-left: 3px;
}
.break-word {
  white-space: break-spaces;
  word-wrap:break-word;
  word-break: break-word;
}
.help-block {
  white-space: break-spaces;
  word-wrap:break-word;
}
.float-right {
  float: right!important;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-contents {
  display: contents;
}
.d-inline-block {
  display: inline-block;
}
.d-none {
  display: none;
}
.align-items-center {
  align-items: center;
}
.justify-content-between {
  justify-content: space-between;
}
.overflow-auto {
  overflow: auto;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.border-top-0 {
    border-top-width: 0px !important;
}
.border-bottom-0 {
    border-bottom-width: 0px !important;
}
.table-border-top {
  border-top: 1px solid #ddd;
}
.table-border-bottom {
  border-bottom: 1px solid #ddd;
}
.table-border-left {
  border-left: 1px solid #ddd;
}
.table-border-right {
  border-right: 1px solid #ddd;
}
.bg-transparent {
  background-color: transparent!important;
}

table.dataTable.nowrap th, table.dataTable.nowrap td {
  white-space: nowrap;
  white-space-collapse: collapse;
  text-wrap: nowrap;
}

table table.sub-table {
  table-layout:fixed;
  margin-bottom: 0px;
  background-color:#0000!important;
  height: 100%;
}
table table.sub-table th:not(:last-child),table table.sub-table td:not(:last-child) {
  border-right:1px solid;
  border-color:#ddd;
}

/* select-multi-box-list */
.select-multi-box-list select {
  padding: 0;
}

.select-multi-box-list select.select-list {
  min-height: 250px;
}

.select-multi-box-list select.selected-list {
  min-height: 700px;
}

.select-multi-box-list select option {
  padding: 4px 10px 4px 10px;
}

.select-multi-box-list select option:hover {
  background: #EEEEEE;
}
.btn-onoff {
  width: 50px;
}

/** モーダルのタイトル部 */
.modal-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/** キーワード用のツールチップ */
.selected-tags.topic,.selected-tags.item,.selected-tags.source,.selected-tags.keyword{
  display: flex;
  flex-wrap: wrap;
}

.word-tooltip {
  cursor: pointer;
  position: relative;
}

.copy-message-body {
  position: absolute;
  margin: 5px;
  padding: 8px;
  border-radius: 8px;
  background-color: #99f;
  color: #000;
  top: 80%;
  left: 10%;
  z-index: 1;
  box-shadow: rgba(0,0,0,0.5) 0px 10px 10px;
  width: 150px;
  cursor: context-menu;
}

.panel-scroll {
  overflow: auto;
  max-height: 300px;
}

.tooltip-left + .tooltip > .tooltip-inner {
  text-align: left;
}
.tooltip-right + .tooltip > .tooltip-inner {
  text-align: right;
}

.modal-confirm-message:empty {
  display: none;
}

.widget-area-scroll {
  max-height: 84vh;
  overflow: hidden;
}

.widget-area-scroll .widget-body {
  max-height: 79vh;
  overflow-y: auto;
}

.widget-top-area-scroll .widget-body {
  max-height: 25vh;
  overflow-y: auto;
}