.btn {
  border-radius: 0 !important;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.box-footer > .pagination {
  margin: 0;
}

/* ローディングオーバーレイ */
.tab-content .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
}

.tab-content .overlay > .fa {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -15px;
  margin-top: -15px;
  color: #000;
  font-size: 30px;
}

.thumbnail-sm > img {
  max-height: 240px;
}

h3 ~ h3 {
  margin-top: 40px;
}

fieldset + fieldset {
  margin-top: 40px;
}

.table-hover tr[data-link] {
  cursor: pointer;
}

.table-sortable tr {
  cursor: move;
}

.list-group-sortable {
  cursor: move;
}

body {
  overflow: initial;
}

/* ローディングオーバーレイ */
.loading {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 60000;
  animation: loading-fade-in 250ms;
}

.loading > .fa {
  font-size: 40px;
  color: #000;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
}

@keyframes loading-fade-in {
  0% {
    opacity: 0
  }
  100% {
    opacity: 1;
  }
}

.box-annotations {
  display: inline-block;
  padding: 4px;
}

.event-schedule-task {
  cursor: pointer;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a {
  white-space: normal;
}

li:not(.time-label) + .timeline-chain {
  margin-top: -15px;
}

th,
td {
  word-break: break-all;
}

.duplicated-entry-list-item {
  color: #aaa;
}

.duplicated-entry-key {
  color: #dd4b39;
}

.list-group-sm > .list-group-item {
  padding: 5px 10px;
}

.to-top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: block;
  margin: 0;
  padding: 0.6em 2em;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(210, 214, 222, 0.8);
  transition: transform 400ms;
  color: #222 !important;
  border-radius: 2em;
  transform: translateY(0);
  z-index: 1045;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}

.to-top-button.hide {
  display: block !important;
  transform: translateY(250px);
}

.small-xs {
  font-size: 75%;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu, .navbar-nav > .messages-menu > .dropdown-menu > li .menu, .navbar-nav > .tasks-menu > .dropdown-menu > li .menu {
  max-height: 100vh;
  max-height: calc(100vh - 100px);
}

.margin-top {
  margin-top: 10px;
}

.service-logo {
  max-width: 100%;
}

.service-logo-small {
  max-width: 64px;
  max-height: 64px;
}

.service-label {
  display: inline;
  font-size: 10px;
  font-weight: normal;
  line-height: 1;
  color: #444;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border: 0 solid #000;
  border-radius: .25em;
}

.sidebar-menu > li .service-label {
  position: relative;
  top: -0.4em;
  padding: .1em .2em;
}

.form-error {
  display: block;
  margin: 5px 0;
  padding: 0;
  list-style-type: none;
  color: #dd4b39;
}

.has-error .form-control {
  background-color: #fff8f7;
}

.error-page {
  margin-top: 100px;
}

.icon-xs {
  width: auto;
  height: auto;
  max-width: 16px;
  max-height: 16px;
}

.icon-sm {
  width: auto;
  height: auto;
  max-width: 32px;
  max-height: 32px;
}

.icon-md {
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
}

.icon-lg {
  width: auto;
  height: auto;
  max-width: 64px;
  max-height: 64px;
}

.icon-xl {
  width: auto;
  height: auto;
  max-width: 128px;
  max-height: 128px;
}

.icon-inline {
  display: inline-block;
  width: auto;
  height: 1em;
}

.icon-disabled {
  opacity: 0.4;
}

.list-group-item-disabled {
  color: #aaa;
  background-color: #f8f8f8;
}

@media screen and (min-width: 764px) {
  .sticky-submit-controls {
    position: fixed;
    display: block;
    width: 180px;
    right: 10px;
    top: 60px;
    z-index: 1040;
    opacity: 1;
    transition: all 200ms;
    /*transform: translateX(40%);*/
  }

  .sticky-submit-controls:hover {
    opacity: 1;
    /*transform: translateX(0);*/
  }

  .sticky-submit-controls:hover {
    opacity: 1;
  }

  .shop-edit-form-main {
    padding-right: 200px;
  }
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 800px;
}

#shop-page-update-form [data-shop-page-field] .thumbnail > img {
  max-width: 100%;
  max-height: 200px;
}

.check-list {
  display: block;
  margin: 0 0 10px 0;
  padding: 0;
  -moz-column-width: 15em;
  -webkit-column-width: 15em;
  column-width: 15em;
}

.check-list-item {
  display: block;
  color: #dd4b39;
  margin: 2px;
  padding: 0.1em 0.4em;
  font-size: 12px;
}

.check-list-item:before {
  display: inline-block;
  padding: 0 4px;
  margin: 0;
  content: "✖";
  background-color: #dd4b39;
  border-radius: 3px;
  color: #fff;
}

.callout-default a {
  color: #000;
}

.callout-default a:hover {
  color: #666;
}

.callout-default {
  background-color: #fff;
  border-color: #d2d6de;
}

.callout-default .btn {
  color: #000;
  text-decoration: none;
}

.callout-bordered {
  border: 1px solid #d2d6de;
  border-left-width: 5px;
}

.callout-danger a.btn {
  color: #fff;
  background-color: #dd4b39 !important;
  text-decoration: none;
}

[data-shop-page-field] {
  position: relative;
}

[data-shop-page-field].disabled .form-group {
  opacity: 0.6;
}

.shop-option-disabled {
  position: absolute;
  top: 1.5em;
  bottom: 0;
  left: 0;
  right: 0;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  align-items: center;
}

.shop-option-disabled > p {
  padding: 0 2em;
  width: 100%;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4), -1px -1px 2px rgb(255, 255, 255);
}

.product-category-list {
  display: block;
  margin: 0;
  padding: 0;
}

.product-category-list-item {
  display: inline-block;
  margin: 0 0 1em 0;
  padding: 0;
}

.product-category-list .product-category-list .product-category-list-item {
  margin: 0;
  flex: 1;
  min-width: 15em;
}

.product-category-list-item > .product-category-list {
  padding-left: 0;
}

.product-category-list-item .product-category-list {
  display: flex;
  flex-wrap: wrap;
}

.product-category-list .checkbox {
  margin: 0 1em 0.2em 0;
}

.product-category-list-item .product-category-icon {
  margin: 0 5px 0 0;
  position: absolute;
  width: 32px;
  height: 32px;
}

.product-category-list .product-category-list .checkbox {
  margin: 0;
  padding: 0;
  min-height: 22px;
}

.product-category-list .checkbox > label {
  font-weight: bold;
  font-size: 18px;
  margin-left: 44px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.product-category-list .product-category-list .checkbox > label {
  font-weight: normal;
  font-size: inherit;
  margin-bottom: 0;
  border: none;
}

.selected-product-category {
  display: block;
  margin: 0;
  padding: 0 0 0 12px;
  flex-basis: 15em;
  font-size: 12px;
}

.selected-product-categories {
  display: block;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.selected-product-category:before {
  display: inline-block;
  content: "●";
  color: #999;
}

.product-category-modal .modal-dialog {
  overflow-y: initial;
}

.product-category-modal .modal-body {
  height: 75vh;
  overflow-y: auto;
}

.help-block {
  font-size: 12px;
}

.well-sm {
  padding: 10px;
}

.timeline-user {
  position: absolute;
  top: -8px;
  left: 0;
  background-color: #fff;
  display: block;
  font-size: 10px;
  padding: 4px 10px 0;
}

.dl-spaced > dt,
.dl-spaced > dd {
  margin-bottom: 5px;
}

.treeview > .treeview-menu > .header {
  padding: 10px 25px 5px 15px;
  color: #d2d6de;
  font-size: 10px;
}

#shop-banner-edit-form [data-shop-banner-field] .thumbnail > img {
  max-width: 100%;
  max-height: 200px;
}

.select2-selection__clear {
  position: relative;
  padding: 0 5px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  background-color: #f4f4f4;
  font-weight: normal;
}

.select2-selection__clear:after {
  display: inline-block;
  margin-inline-start: 4px;
  content: "解除";
}

.label-disabled {
  background-color: #f0f0f0;
  color: #aaa;
}

.label-disabled::before {
  display: inline;
  content: " ︎";
}

.label-selected {
  background-color: #00a65a;
  color: #fff;
}

.label-selected::before {
  display: inline;
  content: "✔︎";
  margin-right: 0.3em;
}

.progress-bar {
  text-shadow: 1px 1px 0 #888888;
}


@media screen and (min-width: 1024px) {
  .event-edit-form-main {
    margin: 0 200px 0 0;
  }
}

.item {
  display: inline-block;
  color: #333;
  font-size: 12px;
}

.item::before {
  display: inline;
  content: "▸";
  margin: 0 0.2em 0;
}

.item + .item {
  margin: 0 0 0 0.5em;
}

.item-danger {
  color: #dd4b39 !important;
}



/* step guide */
.step {
  position: relative;
  margin: 0;
  padding: 0;
  counter-reset: step-progress;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.step-list-item {
  display: block;
  position: relative;
  margin-bottom: 20px;
  /* min-height: 120px; */
  max-width: 20vw;
  color: #222222;
}

.step-title {
  margin-top: 40px;
  display: block;
  padding: 0.2em;
  text-align: center;
  counter-increment: step-progress;
  color: #333;
  font-weight: bold;
}

.step-title:before {
  position: absolute;
  display: block;
  content: counter(step-progress);
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 18px;
  width: 32px;
  height: 32px;
  line-height: 28px;
  font-size: 20px;
  color: #dddddd;
  background-color: #ffffff;
  border: 2px solid #cccccc;
  z-index: 10;
}

.step-list-item.active {
  color: #000000;
}

.step-list-item.active > .step-title:before {
  border-color: #8bc34a;
  background-color: #8bc34a;
  color: #ffffff;
}

.step-list-item.done {
  /*color: #aaaaaa;*/
}

.step-list-item.done > .step-title:before {
  /*content: "✔";*/
  border-color: #8bc34a;
  background-color: #8bc34a;
  color: #ffffff;
}

.step-description {
  display: block;
  padding: 0 10px;
  text-align: center;
  z-index: 10;
  font-size: 12px;
}

.step-description:before,
.step-description:after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 4px;
  left: -50%;
  top: 20px;
  background-color: #dddddd;
}

.step-description:after {
  left: 50%;
}

.step-list-item:first-child > .step-description:before {
  display: none;
}

.step-list-item:last-child > .step-description:after {
  display: none;
}

.step-list-item.done > .step-description:before,
.step-list-item.active > .step-description:before {
  background-color: #8bc34a;
}

.step-list-item.active + .step-list-item > .step-description:before {
  background-image: -webkit-linear-gradient(top left, #8bc34a, #ddd 75%);
  background-image: -moz-linear-gradient(top left, #8bc34a, #ddd 75%);
  background-image: linear-gradient(top left, #8bc34a, #ddd 75%);
}

.step.canceled > .step-list > .step-list-item {
  color: #aaaaaa;
}

.event-edit-form-main .step-list-item {
  max-width: 25%;
}

@media screen and (max-width: 1023px) {
  .event-edit-form-main .step-list-item {
    max-width: 33%;
  }
}


#event-list-form .info-box {
  min-height: 40px;
}

#event-list-form .info-box {
  min-height: 40px;
}

.design-template-list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
}

.design-template-list-item {
  display: block;
  margin: 0 15px 15px 0;
  padding: 0;
  width: calc(25% - 15px);
}

.design-template-list-item:nth-child(4n) {
  margin-right: 0;
}

.design-template-list-item > .box {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f5f5f5 !important;
}

.design-template-list-item > .box > .box-footer {
  margin: auto 0 0 0;
}

@media screen and (max-width: 767px) {
  .design-template-list-item {
    width: 100%;
    margin: 0 0 15px 0;
  }
}

.well {
  overflow-wrap: break-word;
}

.well .btn-default {
  background-color: #fff;
}


.media-library-search-form-controls {
  display: flex;
  flex-wrap: wrap;
  margin: 15px 0 15px 0;
}

.media-library-search-form-controls > .input-group,
.media-library-search-form-controls > .form-control,
.media-library-search-form-controls > .btn-group {
  flex-grow: 1;
  margin: 0 10px 0 0;
}

.media-library-search-form-controls > select.form-control,
.media-library-search-form-controls > .btn-group {
  flex-grow: 0;
  width: auto;
}

.media-library .modal-body {
  max-height: 80vh;
  overflow: auto;
}

.media-library-file-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px 0 0;
}

.media-library-file-list-item {
  display: block;
  padding: 0 15px 15px 0;
  width: 25%;
}

.media-library-file-list-item-link {
  position: relative;
  display: block;
  color: inherit;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.media-library-file-list-item-link:hover {
  background-color: #f8f8f8;
}

.media-library-file-list-item-link:hover {
  color: inherit;
}

.media-library-file-list-item-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.media-library-file-list-item-link:hover:hover .media-library-file-list-item-image {
  filter: brightness(110%);
}

.media-library-file-list-item-detail {
  width: 100%;
  padding: 5px;
}

.media-library-file-list-item-name {
  display: block;
  word-wrap: break-word;
  font-size: 12px;
}

.media-library-file-list-item-date {
  display: block;
  word-wrap: break-word;
  color: #666;
  font-size: 12px;
}

.media-library-file-list-pagination {
  margin: 10px 0;
}

.media-library-file-list-detail .media-library-file-list {
  display: block;
  margin: 0;
}

.media-library-file-list-detail .media-library-file-list-item {
  display: block;
  margin: 0;
  padding: 0;
  border-bottom: none;
  width: 100%;
}

.media-library-file-list-detail .media-library-file-list-item-link {
  display: flex;
  width: 100%;
  padding: 5px;
}

.media-library-file-list-detail .media-library-file-list-item-image {
  width: 150px;
  max-height: 40px;
  object-fit: cover;
  margin-right: 10px;
}

.media-library-file-list-detail .media-library-file-list-item-detail {
  position: relative;
  bottom: 0;
  background-color: transparent;
  color: inherit;
  width: 100%;
}

.media-library-file-list-detail .media-library-file-list-item-date {
  color: #666;
}

@media screen and (max-width: 767px) {
  .media-library-file-list-thumbnail .media-library-file-list-item {
    width: 50%;
  }
}

.event-page-template-fieldset {
  margin: 0 0 30px;
  padding: 15px;
  border: 1px solid #ccc;
}

.event-page-template-fieldset > legend {
  width: auto;
  margin: 0;
}

.sortable {
  cursor: move;
}
