.error-background {
	z-index: 3000;
	background-color: rgba(0, 0, 0, 0.5);
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.error-popup {
	position: fixed;
	z-index: 3001;
	width: 660px;
	height: 190px;
	background-color: white;
	left: 50%;
	top: 25%;
	margin: 0px;
	margin-left: -330px;
	padding: 1rem;
}

.error-popup h2 {
	font-size: 16pt;
}

.error-popup .error-message {
	margin-top: 0.5rem;
	font-weight: bold;
}

.error-popup .error-detail {
	margin-top: 1rem;
}


  /* error modal */
  #errorModal {
    display: none;
    z-index: 3002;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #000000ad;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  body.modal-open-fixed {
    position: fixed;
    overflow: hidden;
    width: 100%;
  }

  #errorModal .modalContets {
    height: 100%;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }

  #errorModal .modalContets .cardWrap {
    border-radius: 15px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    max-width: 600px;
    max-height: 100%;
  }

  #errorModal .modalContets .--image {
    width: 100%;
  }

  #errorModal .modalContets .--message {
    background: #fff;
    padding: 15px;
  }

  #errorModal .modalContets .--title,
  #errorModal .modalContets .--cause,
  #errorModal .modalContets .--solution,
  #errorModal .modalContets .--action {
    font-size: 14px;
    font-weight: bold;
  }

  #errorModal .modalContets .--solution {
    font-size: 18px;
    margin: 15px 0;
  }

  /* end error modal */

  .modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal__container {
    background-color: #fff;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
  }

  @media screen and (max-width: 480px) {
    .modal__container {
      max-height: 90vh;
      max-width: 300px;
    }
  }

  .modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dedede;
    padding: 0 0 20px 0;
  }

  .modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.25;
    box-sizing: border-box;
  }

  .modal__header .--iconWrap {
    padding: 15px;
    border-radius: 4px;
    background: #9d85ff;
  }

  .modal__header span img {
    width: 30px;
  }


  .modal__title .--detail {
    color: var(--color-dark-1);
    font-size: 0.75rem;
    margin: 0 0 0 1rem;
    font-weight: 400;
  }

  .modal__close {
    border: 0;
    font-size: 1.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: #f9f9f9;
  }

  .modal__close:hover {
    color: #f1f1f1;
    background: #6f6969;
  }

  .modal__header .modal__close:before {
    content: "\2715";
  }

  .modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, .8);
  }

  .modal__content .--message {
    font-size: 14px;
    font-weight: bold;
    margin: 15px 0;
  }

  .modal__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0, 0, 0, .8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out, -webkit-transform .25s ease-out;
  }

  .modal__btn:focus,
  .modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }

  .modal__btn-primary {
    background-color: #00449e;
    color: #fff;
  }

  @keyframes mmfadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes mmfadeOut {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }

  @keyframes mmslideIn {
    from {
      transform: translateY(15%);
    }

    to {
      transform: translateY(0);
    }
  }

  @keyframes mmslideOut {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(-10%);
    }
  }

  .micromodal-slide {
    display: none;
  }

  .micromodal-slide.is-open {
    display: contents;
  }

  .micromodal-slide[aria-hidden="false"] .modal__overlay {
    z-index: 2001;
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  }

  .micromodal-slide[aria-hidden="false"] .modal__overlay.--media {
    z-index: 2002;
  }

  .micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
  }

  .micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  }

  .micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
  }

  .micromodal-slide .modal__container,
  .micromodal-slide .modal__overlay {
    will-change: transform;
  }

  .modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    background: #fff;
  }
/** モーダル画面のOK,キャンセルボタンのレイアウトがおかしくなるためコメントアウト
  .modal__footer button {
    margin: 0 0 0 15px;
    width: 120px;
  }
*/
  @media (max-width: 575px) {
    .sm\:btn-mg {
      margin: 0 0 10px 0 !important;
    }
  }

  .modalFooter-fixed {
    position: fixed;
    bottom: 10vh;
    background: #ffffff;
    width: auto;
  }

  .modalPublish .modal__container {
    border: 6px solid var(--color-purple-1);

  }

  .modalUpdate .modal__container {
    border: 6px solid var(--color-purple-1);

  }

  .modalDanger .modal__container {
    border: 6px solid #ff5f5f;

  }

  .modalMedia .modal__header {
    padding: 0px 0 15px 15px;
  }

  .modalMedia .modal__container {
    width: 90%;
    max-width: 90vw;
    will-change: unset;
    padding: 15px 5px 0 5px;
  }

  .modalMedia .side-content__item {
    top: 30%;
    left: 50%;
    width: 150px;
  }

  .modalMedia .modal__content {
    overflow-y: scroll;
    height: 65vh;
    border: 1px solid #dedede;
    margin: 0;
    background: #f1f1f1;
  }

  .modalMedia .coursesCard .relative {
    background: #e0e0e0;
    overflow: hidden;
    height: 100px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
  }

  .modalMedia .coursesCard .selected {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(51, 51, 51) 0px 0px 0px 3px;
  }

  .--modalSmall.modalMedia .modal__container {
    width: 400px;
    padding: 30px;
  }

  .--modalSmall.modalMedia .modal__content {
    height: 100%;
    min-height: 100px;
    padding: 30px 0;
    background: unset;
    border: unset;
  }

  .--modalSmall.modalMedia .modal__header {
    padding: 0;
    border-bottom: unset;
    display: flex;
    align-items: flex-start;
  }

  @media (min-width: 1200px) {
    .modalMedia .coursesCard .relative {
      height: 120px;
    }
  }

  @media (min-width: 768px) and (max-width: 1199px) {
    .modalMedia .coursesCard .relative {
      height: 100px;
    }
  }

  @media (min-width: 576px) and (max-width:767px) {
    .modalMedia .coursesCard .relative {
      height: 150px;
    }
  }

  @media (max-width: 575px) {
    .modalMedia .coursesCard .relative {
      height: 200px;
    }
  }

  .modalMedia .side-content {
    padding: 4px;
  }

  .media-detail {
    overflow-y: scroll;
    height: 63vh;
    background: #fff;
    position: fixed;
    right: 7vw;
    width: 300px;
  }

  .btn-cancel {
    background: #f1f1f1;
    color: #000;
    border: unset;
  }

  .btn-cancel:hover {
    color: #f1f1f1;
    background: #6f6969;
  }

