﻿/**
 * Material Modal CSS
 */
.modal {
    will-change: visibility, opacity;
    display: flex; /*スマホサイズでダイアログが小さくならない👇*/
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

/*    margin: 0 auto;
    padding: 0;*/
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: $modal-delay;
}

.modal--active {
    visibility: visible;
    opacity: 1;
}

.modal--align-top {
    align-items: flex-start;
}

.modal__bg {
    background: transparent;
}

/*PC*/
@media screen and (min-width: 835px) {
    .modal__dialog {
        max-width: 700px;
        padding: 1.2rem;
    }
}

/*Tablet*/
@media screen and (max-width: 834px) {
    .modal__dialog {
        max-width: 600px;
        padding: 1.2rem;
    }
}

/*iPhone Pro Max: 428(w) */
@media screen and (max-width: 600px) {
    .modal__dialog {
        max-width: 100%; /*400px;*/
        padding: 1.2rem;
    }
}


.modal__content {
    will-change: transform, opacity;
    position: relative;
    padding: 2.4rem;
    background: #d1d0d0;
    background-clip: padding-box;
    box-shadow: 0 12px 15px 0 rgba(0,0,0,0.25);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    color: #000000;
    line-height: 1.3;
}

.modal__content--active {
    opacity: 1;
}

.modal__close {
    z-index: 1100;
    cursor: pointer;
}

.modal__trigger {
    position: relative;
    display: inline-block;
    /*color: rgba(0,0,0,0.7);*/
    color: white;
    line-height: 1;
    cursor: pointer;
    /*background: #ffebee;*/
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal__trigger--active {
    z-index: 10;
}

.modal__trigger:hover {
    /*background: #e5d3d6;*/
}

#modal__temp {
    will-change: transform, opacity;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d0d0;
    transform: none;
    opacity: 1;
    transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}


.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1.2rem;
    padding: 0.6rem;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-close svg {
    width: 24px;
    fill: #fff;
    pointer-events: none;
    vertical-align: top;
}

.modal-close:hover {
    background: rgba(0,0,0,0.6);
}
