/* -----------------------------------------------------------
モーダル
-------------------------------------------------------------- */
.modal-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 2%;
    margin: 0 0 0;
}

/* モーダルを開くボタン */
.modal_trigger {
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: .5s;
}

.modal_trigger:hover {
    /*transform: translateY(-10px);
    border-color: #ddd;*/
}
    
/* モーダル本体 */
.modal_wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 501;
    width: 100%;
    height: 100%;
}

.modal_layer {
    height: 100%;
    background: rgba(50, 50, 50, .85);
    cursor: pointer;
}

.modal_container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100% - 40px), 1100px);
    height: calc(100% - 40px);
    padding: 20px;
    background: var(--bg-blue);
    z-index: 99999;
}

.modal_inner {
    position: relative;
    overflow-y: scroll;
    height: 100%;
    padding: 20px;
}

/* モーダルを閉じるボタン */
.modal_close {
    position: fixed;
    top: 20px;
    right: 50px;
    width: 44px;
    height: 44px;
    background: rgba(50, 50, 50, 1);
    cursor: pointer;
    transition: opacity .6s;
}

.modal_close:hover {
    opacity: .6;
}

.modal_close:before, .modal_close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1px;
    background: #fff;
    content: '';
}

.modal_close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal_close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル内のコンテンツ */
.modal_content {

}
.modal_content .modal-ttl {
    font-size: 2.5rem;
    color: var(--blue);
    text-align: center;
}
.modal_content .modal-img {
    width: 600px;
    margin: 20px auto 20px;
}
.modal_content .modal-img img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.modal_content .modal-txt {
    width: 600px;
    margin: 0 auto 0;
}
.modal_content .modal-txt p {
    font-size: 1.8rem;
    list-style: 1.6;
}
.modal_content .modal-txt p a {
    opacity: 1;
}
.modal_content .modal-txt span.txt-blue {
    color: var(--blue);
    font-weight: bold;;
}

.modal_content .modal-txt .txt-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 40px;
    margin-bottom: 20px;
}

.txt-outline {
    padding-top: 20px;
    border-top: solid 1px var(--blue);
}

/*ボタン 卒業サイトへ遷移*/
.button-move {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 280px;
  margin: 30px auto 30px;
  padding: 15px 0;
  border-radius: 70px;
  background: #ff9c2f;
  color: #fff;
  font-size: 1.5rem;
}
.button-move::after {
  position: absolute;
  right: 2em;
  transform: translateY(-50%);
  transform-origin: left;
  width: 2em;
  height: .5em;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 70% 40%, 70% 90%, 0% 90%);
  content: '';
  transition: transform .3s;
}
.button-move:hover::after {
  transform: translateY(-50%) scaleX(1.4);
}

@media screen and (max-width: 768px) {
    .modal-wrap {
        display: block;
        margin: 0 0 0;
    }
	
    .modal_trigger {
        width: 100%;
        margin: 0 0 20px;
        padding: 10px;
    }
	
    .modal-wrap .modal_trigger:last-of-type {
        margin: 0;
    }
	
    .modal_container {
        width: calc(100% - 40px);
        padding: 40px 10px 20px;
    }
	
    .modal_inner {
        padding: 0 13px;
    }
	
    .modal_close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }
	
    /* モーダル内のコンテンツ */
    .modal_content .modal-ttl {
        font-size: 1.8rem;
    }
    .modal_content .modal-img {
        width: 100%;
        margin: 20px 0 20px;
    }
    .modal_content .modal-txt {
        width: 100%;
        margin: 0 0 0;
    }
    .modal_content .modal-txt p {
        font-size: 1.6rem;
    }
    .modal_content .modal-txt .txt-flex {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }

    /*ボタン 卒業サイトへ遷移*/
    .button-move {
        width: 100%;
        margin: 20px auto 20px;
        font-size: 1.5rem;
    }

}