.toast {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 20px);

    border-left: 4px solid #4af2f3;
    background: #4af2f380;
    color: white;

    line-height: 1.6;
    padding: 12px 14px;
    box-sizing: border-box;
    font-family: "DotGothic16", sans-serif;
    margin: 0;
    left: -100px;
    opacity: 0;
    transition:
        top 0.2s ease,
        left 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
    z-index: 90000;
}

.toast * {
    font-family: inherit;
}

.toast .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* info */
.info {
    border-color: #4af2f3;
    background-color: #26808ebb;
    color: white;
}

/* warn */
.warn {
    border-color: #f2d449;
    background-color: #7a7139bb;
    color: white;
}

/* danger */
.danger {
    border-color: #ff3b4e;
    background-color: #81253bbb;
    color: white;
}

/* success */
.success {
    border-color: #58f249;
    background-color: #2d8039bb;
    color: white;
}

.toast-close-btn {
    margin: 5px;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    background-image: url("/assets/close-btn.png");
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    image-rendering: -webkit-optimize-contrast; /* Safari用 */
    image-rendering: crisp-edges; /* Chrome, Firefox用 */
    image-rendering: pixelated;
}
