@charset "utf-8";
body{
    font-size: 1.2rem;
}
.nav-sidebar>.nav-item{
margin-bottom: 10px;
}
.input-area{
  display: none;
}
.input-area.is-active{
  display: block;
}
.nav-link:hover{
  background: #f3f3f3;
}
.nav-link.is-active{
  background: #e2e2e2;
}
[name="category-name"].is-decision{
  background: inherit;
  border: none;
  color: inherit;
  width: 90%;
}
[name="category-name"].is-decision:hover{
  background: inherit;
  cursor: pointer;
}
.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}
.category{
  height: 715px;
}
.category-label-area{
  overflow-y: scroll;
  height: 715px;
}
.nav-link-label{
  position: relative;
}
.nav-link-label::after{
  content: "";
  width: 30px;
  height: 30px;
  display: block;
  background: url(../assets/img/sort.svg) no-repeat;
  background-size: 30px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.category-list.is-selected{
  background: #cccccc;
}
.category-list:hover{
  background: #cccccc;
}
.list-group-item:hover{
  background: #e2e2e2;
}

.panel-collapse{
  background: #fff;
}

/* UI調整 */
 .btn {
   width: 200px;
 }

 .btn-sm {
   width: 100px;
   max-width: 100%;
   font-size: 15px;
 }

 .total p,
 .pagination {
   margin-bottom: 0;
 }

 .page-link {
   padding: 0.5rem 1rem;
 }

 .modal-header,
 .modal-body {
   padding: 1rem 2rem;
 }

 .table td,
 .table th{
  vertical-align: middle;
 }
 .table-header-first {
   width: 15%;
 }

 .table-header-center {
   width: 50%;
 }
 .table-header-half {
   width: 25%;
 }

 .table-header-last {
   width: 35%;
 }

.card-title{
  line-height: 2;
}
.card-header.card-header--flex {
  display: flex;
  justify-content: space-between;
}

.card-header.card-header--flex:after {
  display: none;
}

.btn.btn-tool{
  text-align: right;
  padding-right: 15px;
}
.category-edit-area {
  height: 100%;
  position: relative;
}

.upload-reset {
  width: initial;
}

.category-edit-area .js-delete-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  width: auto;
}

.file-preview {
  max-width: 300px;
}

.file-preview img,
.file-preview video,
.file-preview iframe {
  max-width: 300px;
  width: 100%;
  object-fit: contain;
}

/* form */
.optionContents {
  padding: 22px 20px 30px;
  background-color: #FAFAFA;
  text-align: center;
}
.optionContents__title {
  font-weight: 700;
}
.optionContents__buttons {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 12px;
}
.optionContents__button {
  flex: 0 0 calc(14.3% - 12px);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 99px;
  font-size: 14px;
  line-height: (16/14);
  font-weight: 700;
  border-radius: 10px;
}
#optionModal .optionContents__button {
flex: 0 0 calc(20% - 12px);
}
.add_button {
  background-color: #007BFF;
  border: none;
  border-radius: 0.4rem;
  color: #FFFFFF;
  padding: 0.05rem 2.5rem;
  float: right;
  margin-top: 0.7rem; 
  margin-right: 1.4rem;
}
.non-question {
  color: #588F00;
  border-color: #588F00;
}

.addFormWrapper__options {
  margin-top: 3rem;
}
.addFormWrapper__form{
  margin-top: 2rem;
}

.formBox{
  background-color: #FAFAFA;
}
.formBox__header {
  padding: 1rem;
  background-color: #EAEAEA;
  font-weight: 700;
}
.formBox__contents {
  padding: 1.4rem;
}
.formBox__trashIcon {
  background: transparent;
  border: none;
  padding: 0 1rem;
  transition: opacity .15s ease-in-out;
}
.formBox__trashIcon:hover {
  opacity: 0.5;
  transition: opacity .15s ease-in-out;
}
.errorText {
  width: 100%;
  margin-bottom: 0.2rem;
  color: red;
  font-size: 1rem;
}

/* フォーム用 テーブルレイアウト */
.table-scroll>table {
  margin: 0 0.5rem;
  width: 100%;
  table-layout: fixed;
}

.table-scroll th,
.table-scroll td {
  width: 250px;
}
.dateForm .form-group{
  margin-bottom: 0;
}

.table.table--line thead th {
  vertical-align: middle;
}
.table.table--line .table-header,
.table.table--line .table-header-first {
  line-height: 1;
}

.publication-status--before {
  background-color: #007bff;
  color: #ffffff;
}
.publication-status--active {
  background-color: #f6820c;
  color: #ffffff;
}
.publication-status--end {
  background-color: #6c757d;
  color: #ffffff;
}
/* --- スマホ表示用のボタンスタイル (画面幅が767px以下で適用) --- */
  @media (max-width: 767px) {
    /*
      ボタン全体を囲むコンテナ(.d-flex)のスタイル
    */
    .content-btn-wrap.justify-content-between {
      /* アイテムを縦積みにし、上下の並び順を逆にする */
      flex-direction: column-reverse;
      /* 縦積みになった要素間の余白を設定 */
      gap: 1rem;
    }

    /*
      「戻る」「保存」ボタンを囲む親要素(2番目のdiv)のスタイル
    */
    .content-btn-wrap.justify-content-between > div:nth-child(2) {
      display: flex;
      justify-content: space-between; /* 中の要素を両端に配置 */
      align-items: center; /* ボタンの縦位置を中央揃えに */
      width: 100%;
      text-align: initial; /* PC用のtext-rightをリセット */
    }

    /*
      「削除」ボタンを囲む親要素(1番目のdiv)のスタイル
    */
    .content-btn-wrap.justify-content-between > div:nth-child(1) {
      width: 100%;
    }

    /* 削除ボタンのフォームとボタン自体を100%幅にする */
    .content-btn-wrap.justify-content-between > div:nth-child(1) form,
    .content-btn-wrap.justify-content-between > div:nth-child(1) .btn {
      width: 55%;
    }

    /*
      「戻る」「削除」ボタンを小さくするためのスタイル
      (Bootstrapの .btn-sm クラスのスタイルを再現)
    */
    .content-btn-wrap.justify-content-between .btn.btn-secondary,
    .content-btn-wrap.justify-content-between .btn.btn-danger {
      padding: 0.25rem 0.5rem;
      font-size: 0.875rem;
      border-radius: 0.2rem;
      width: 30%;
    }
    .content-btn-wrap{
      display: flex;
      justify-content: space-between;
    }
    .content-btn-wrap .btn.btn-secondary{
      display: flex;
      width: 30%;
      padding: 0.25rem 0.5rem;
      font-size: 0.875rem;
      border-radius: 0.2rem;
      margin: 3px;
      justify-content: center;
    }
  }

.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected="true"]{
  color: #ffffff;
  background-color: #007bff;
}
.select2-container--bootstrap4 .select2-results__option--highlighted{
  color: #212529;
  background-color: #f2f2f2;
}