

/* stylelint-disable */
/************************** \
  Basic Modal Styles
\ **************************/

.modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  background: rgba(0, 0, 0, 0.8);


}

.modal__container {
  display: grid;
  place-content: center;
  place-items: center;
  box-sizing: border-box;
  min-height: 100vh;
  color: var(--primary-color);
  text-align: center;

}

.modal__title {
  width: max-content;
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(#134084, 0.5);
  font-weight: bold;
  display: flex;
  align-items: center;
  border: 1px solid #000;
  @media (max-width: 767px) {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
    .tag{
    display: grid;
    place-content: center;
    place-items: center;
    width: 25px;
    height: 52px;
    padding: 4px;
    background: #000;
      @media (max-width: 767px) {
        height: 40px;
      }
    p{
      font-family: var(--font-en);
      font-size: 1.2rem;
      font-weight: bold;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0;
      line-height: 1;
      writing-mode: sideways-lr;
    }
  }
  .title{
    margin-left: 1.2rem;
    padding-right: 2rem;
    font-size: 3rem;
    font-weight: bold;
    color: #000;
      @media (max-width: 767px) {
        font-size: 2rem;
      }
  }
}

.modal__close {
  width: 5rem;
  height: 5rem;
  border-radius: 3px;
  position: absolute;
  top: 2rem;
  right: 2rem;
  outline: none;

}

.modal__close::before {
  position: absolute;
  top: 3%;
  left: 4rem;
  display: block;
  width: 2rem;
  height: 2px;
  content: "";
  background: #000;
  transform: rotate(45deg);

}

.modal__close::after {
  position: absolute;
  top: 3%;
  right: -1rem;
  display: block;
  width: 2rem;
  height: 2px;
  content: "";
  background: #000;
  transform: rotate(-45deg);

}

.modal-content-title{
  margin-top: 3rem;
  margin-bottom: 1.6rem;
  padding-left: 25px  ;
  font-size: 2.4rem;
  font-weight: bold;
  position: relative;
  @media (max-width: 767px) {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }
  &:before{
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background: #e70012;
    position: absolute;
    left: 2px;
    top: 11px;
    transform: rotate(45deg);
    z-index: 1000;
    @media (max-width: 767px) {
      width: 10px;
      height: 10px;
      top:  10px;
    }
  }
}

.modal__content {
  width: 100%;
  max-width: 70rem;
  max-height: 95%;
  padding: 7rem 4rem;
  background: #fff;
  border-radius: 0;
  line-height: 1.5;
  position: relative;
  overflow-y: auto;
  @media (max-width: 767px) {
    width: 95%;
    max-height: 90%;
    padding: 4rem 2rem 3rem;
  }

}

.modal-item-wrap {
  gap: 5rem;
  text-align: left;
  overflow-y: auto;


  .content-text {
    .desc {
      margin-bottom: 1rem;
      line-height: 1.8;
    }
    img {
      width: 4rem;
      height: 5rem;
    }
  }
}

/* Animation */
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

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

  to {
    transform: translateY(0);
  }
}

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

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

.micromodal-slide {
  display: none;
}

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

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmfadeIn 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmfadeOut 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

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