@charset "UTF-8";

/*
========================================

	common modal.css
    
========================================*/

  header.under_modal {
    z-index: 1;
  }

.item {
    list-style: none;
    position: relative;
    width: 200px;
    border-radius: 2px;
    margin: 0 auto;
    background-color: #F2F2F2;
}
.modal_open {
    /*height: 100px;*/
    height: fit-content;
    text-align: center;
}
.image_mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.6s ease;
    transition: all 0.6s ease;
    cursor: pointer;
}
.mask_text {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
}
.modal_content{
    text-align: center;
}
.image:hover .image_mask {
    opacity: 1;
    padding-top: 13%;
}
/* ------modal css------ */

.modal_wrapper {
    position: fixed;
    display: flex;
    align-items: center;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: none;
    opacity: 0;
    z-index: -1;
}
.modal_window {
    width: 96vw;
    height: fit-content;
    max-width: 1536px;
    min-height: 50vh;
    max-height: 96vh;
    margin: auto;
    padding: 24px 8px 16px 8px;
    background: #fff;
    z-index: 1;
    overflow-y: auto;
}

.modal_content {
    margin: 16px auto;
    width: 96%;
    height: calc(100% - 32px);
    /*border:1px dotted #c33;★ガイド
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;*/
}

.modal_content div.inner {
    /*border:1px dotted #c33;★ガイド*/
    width: 100%;
    height: fit-content;
}

.modal_content p.title {
  font-size:clamp(1.125rem, 1.025rem + 0.5vw, 1.625rem);/*-----18px-26px*/
  font-weight: 500;
  margin-bottom: 1rem;
}

.modal_mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}
.modal_close {
    z-index: 300;
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background:#f5f7fb;
    opacity: 1;
}

.modal_close img {/*close icon*/
  width: 28px;
  height: 28px;
}
.modal_close:hover {
    opacity: 0.2;
    color: #000;
    transition: all .5s;
}
html.is_open, body.is_open {
    overflow: hidden;
}
.modal_wrapper.is_open {
    animation: modal_wrapper_open .5s ease forwards;
}
.modal_wrapper.is_open .modal_window {
    animation: modal_window_open .5s ease forwards;
}
.modal_wrapper.is_close {
    animation: modal_wrapper_close .5s ease forwards;
}
.modal_wrapper.is_close .modal_window {
    animation: modal_window_close .5s ease forwards;
}

@keyframes modal_wrapper_open {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
      z-index: 300;
    }
  }
  @keyframes modal_window_open {
    0% {
      opacity: 0;
      transform: translateY(-30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes modal_wrapper_close {
    0% {
      z-index: 300;
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  @keyframes modal_window_close {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      transform: translateY(-30px);
      opacity: 0;
    }
  }
