@charset "UTF-8";
/*  c-modal
--------------------------------------------- */
.c-modal {
    display: none;
}
.c-modal.is-open {
    display: block;
}
.c-modal__overlay {
    position: fixed;
    inset: 0;
}
.c-modal__inner {
    display: grid;
    place-items: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.c-modal__container {
    position: relative;
    width: min(100%, 500px);
    max-height: 100vh;
    box-sizing: border-box;
    padding: 2rem;
    border-radius: 4px;
    background-color: #fff;
    overflow-y: auto;
}
.c-modal__close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}
.c-modal__close-btn::before {
    content: "✕";
}

/* Modal Animation Style　(アニメーション不要の場合は削除)
--------------------------------------------- */
.c-modal[aria-hidden=false] .c-modal__overlay {
    animation: mmfadeIn 0.5s cubic-bezier(0, 0, 0.2, 1);
}
.c-modal[aria-hidden=false] .c-modal__container {
    animation: mmfadeIn 0.5s cubic-bezier(0, 0, 0.2, 1);
}
.c-modal[aria-hidden=true] .c-modal__overlay {
    animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.c-modal[aria-hidden=true] .c-modal__container {
    animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.c-modal__overlay, .c-modal__container {
    will-change: transform;
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}