/* Google font
-------------------------------------------------- */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 80px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #9fa09e;
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

.container .text-muted {
  color: #fff;
  margin: 20px 0;
}


/* datepickerのpaddingをform_controlと同じにする
-------------------------------------------------- */
.datepicker {
    padding: .375rem .75rem;
}


/* home画面のメニューcard
-------------------------------------------------- */
.dashboard__card {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
}

.dashboard__card:hover {
    opacity: 0.1;
}

/* pタグのmargin-bottomを消す */
.list-group-item > p {
    margin-bottom: 0;
}

/* サイドバーを固定（スクロール追従）する
-------------------------------------------------- */
.sidebar_fixed {
    position: sticky;
    top: 72px;
}

/* checkboxのサイズを大きくする
-------------------------------------------------- */
input[type=checkbox] {
    transform: scale(1.3);
}

/* list-group-itemのアクティブ網掛けを薄くする
-------------------------------------------------- */
.list-group-item.active {
    color: #495057;
    background-color: #dae0e5;
    border-color: #dae0e5;
}

/* list-group-itemのborderを背景色と同じにして消えてる風にする
-------------------------------------------------- */
.list-group-item {
    border: 5px solid #FFFFFF;
}

/* FullCalendarの日付を中央に配置
-------------------------------------------------- */
.fc .fc-daygrid-day-number {
    margin: 0 auto;
}

/* イベント毎のアイコン表示
-------------------------------------------------- */
.fc-event-title {
    font-weight: normal !important;
}

/* イベント文言の余白を削除
-------------------------------------------------- */
.fc .fc-daygrid-event {
    margin-top: 0px !important;
}

/* カレンダーヘッダーの配置変更
-------------------------------------------------- */
.fc-toolbar h2 {
    display: inline;
}
.fc .fc-button-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #212529;
}

/* タグのプルダウンリスト選択時の色を変更
-------------------------------------------------- */
.dropdown-item.active, .dropdown-item:active {
    color: #212529;
    background-color: #eeeeee;
}

/* Ajaxローディング（スピナー）
 * 参考→https://pinkmonky.net/detail/?id=100
-------------------------------------------------- */
#overlay{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height:100%;
    display: none;
    background: rgba(0,0,0,0.6);
}
.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner {
    width: 80px;
    height: 80px;
    border: 4px #ddd solid;
    border-top: 4px #999 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}
@keyframes sp-anime {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}
.is-hide{
    display:none;
}

/* 入力エリアの背景色
-------------------------------------------------- */
.error-background {
    background-color: #F8D7DA;
}
.edit-background {
    background-color: #CFE2FF;
}

/* placeholder薄く
-------------------------------------------------- */
.form-control::placeholder {
    color: #999;
}

/* cardを加工
-------------------------------------------------- */
.card-body {
    padding: 0.75rem;
}
.card-text {
    white-space:pre-wrap;
    word-wrap:break-word;
    margin-bottom: 0;
}
.card-footer {
    border-top: 0px;
}

/* box-shadow を無効化
-------------------------------------------------- */
.no-shadow {
  box-shadow: none !important;
}

/* お気に入り
-------------------------------------------------- */
.heart-red {
  color: #F4511E !important;
  font-size: 24px;
  line-height: 1;
}
.heart-none {
  color: #D3D3D8 !important;
  font-size: 24px;
  line-height: 1;
}
.heart-gary {
  color: #978C81 !important;
  font-size: 24px;
  line-height: 1;
}

/* 評価
-------------------------------------------------- */
.star-yellow {
  color: #F7CB51 !important;
  font-size: 24px;
  line-height:1;
}
.star-none {
  color: #D3D3D8 !important;
  font-size: 24px;
  line-height: 1;
}
.star-gray {
  color: #978C81 !important;
  line-height: 1;
}
/* 評価の消しゴムの表示
-------------------------------------------------- */
.star-eraser {
  color: #D3D3D8 !important;
  font-size: 24px;
  line-height:1;
}


/* 引用見出し
-------------------------------------------------- */
.quote-border {
  border-left: 5px solid #DAE0E5 !important;
  padding-left: 15px;
  margin-bottom: 5px;
}


/* カラーピッカー
-------------------------------------------------- */
.color-picker input{
  display: none;
}
.color-picker label{
  display: block;
  float: left;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 2px;
  text-align: center;
  line-height: 30px;
  transition: .2s;
}
.color-picker input[type="radio"]:checked + label {
  color: #FFFFFF !important;
}

/* タグモーダルのチェックボックスの間隔
-------------------------------------------------- */
.check-tag {
  padding-left: 25px;
  margin-bottom: 5px;
}
.check-tag label{
  padding-left: 10px;
}

/* タグボタンとタグの表示
-------------------------------------------------- */
.tag-button {
  font-size: 18px;
}
/* マークダウンのH1、H2、H3のスタイル
-------------------------------------------------- */
.markdown h1 {
  font-size: 24px;
}
.markdown h2 {
  font-size: 22px;
}
.markdown h3 {
  font-size: 20px;
}
.markdown h4 {
  font-size: 18px;
}

/* チャット選択cardのacticeカラー
-------------------------------------------------- */
.qanda-active {
  background-color: #dae0e5 !important; /* 好きな色 */
}

/* Q&A チャットリストスライダー
-------------------------------------------------- */
.qanda-slider-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: stretch;
}
.qanda-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}
.qanda-slider-viewport {
  overflow: hidden;
}
.qanda-slider-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  width: 100%;
}
.qanda-slider-item {
  flex: 0 0 25%;
  width: 25%;
  max-width: 25%;
}
.qanda-slider-card {
  padding: 0 0.75rem 1.5rem;
  height: 100%;
}
.qanda-slider-card .card {
  height: 100%;
}
.qanda-slider-nav .btn {
  width: 40px;
  height: 40px;
  padding: 0;
}
.qanda-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: -0.25rem 0 1.5rem;
}
.qanda-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ced4da;
}
.qanda-slider-dot.active {
  background-color: #212529;
}

@media (max-width: 575.98px) {
  .qanda-slider-shell {
    display: block;
  }
  .qanda-slider-nav {
    display: none;
  }
  .qanda-slider-viewport {
    overflow: visible;
  }
  .qanda-slider-track {
    display: block;
    transform: none !important;
  }
  .qanda-slider-item {
    display: block;
  }
  .qanda-slider-card {
    padding: 0 0 1.5rem;
  }
  .qanda-slider-dots {
    display: none;
  }
}

/* APIKeyの入力エリア
-------------------------------------------------- */
.api-key-input {
    width: 100%;
    resize: none;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* アイコンの大きさを変える
-------------------------------------------------- */
.icon-lg {
  font-size: 24px;
}
.icon-xl {
  font-size: 32px;
}
.icon-xxl {
  font-size: 40px;
}

/* アイコンのの向きを180度回転
-------------------------------------------------- */
.rotate-180 {
  display: inline-block;
  transform: rotate(180deg);
}

/* selectのドロップダウンボタン
-------------------------------------------------- */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;

  padding-right: 30px;
}

/* タグの表示CSS
-------------------------------------------------- */
.tag-font {
  font-weight: bold;
  color: #6c757d;
  margin: 0 4px;
  padding: 2px 6px;
  background: linear-gradient(
    transparent 10%,
    #6c757d33 10%
  );
}
