chat #chat-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 250px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    text-align: center;
    cursor: pointer;
    z-index: 99999;
}

chat #chat-banner span {
    color: white;
    font-size: 15px;
    padding: 3px;
    border-radius: 10px 10px;
}

chat .point-circle {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    padding: 0 !important;
    background-color: yellow;
    border-radius: 50%;
}

chat #chat-modal {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 320px;
    height: 420px;
    max-height: 90%;
    background-color: lightgray;
    box-shadow: -5px -5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 99999;
}



chat #chat-line1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    height: 40px;
    background-color: #000000;
    color: white;
    font-size: 16px;
}

chat #chat-line1 div {
    cursor: pointer;
}

chat #chat-line1 #close {
    position: absolute;
    right: 38px;
    width: 55px;
    text-align: right;
    font-size: 37px;
}

chat #chat-line1 #end {
    position: absolute;
    right: 18px;
    font-size: 22px;
}

chat #chat-history {
    height: 100%;
    max-height: 320px;
    background-color: lightgray;
    ;
    padding: 10px;
    overflow-y: auto;
}

chat #chat-history span {

    display: block;
    margin-bottom: 15px;
    clear: both;
    font-size: 14px;
    padding: 10px;
    border-radius: 3%;
    border: 1px solid;
}

chat #chat-history span.chat-service {
    background-color: white;
}

chat #chat-history span.chat-user {
    background-color: lightgoldenrodyellow;
    float: right;
    text-align: right;
}

chat #chat-history button {
    margin: 5px;
}

chat #user-input {
    bottom: 0;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

chat #user-input textarea {
    flex-grow: 1;
    height: 32px;
    padding: 6px;
    margin: 3px 5px;
    font-size: 15px;
}

chat #user-input button {
    width: 15%;
    margin-right: 5px;
    background-color: #000000;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

chat #close {
    float: right;
    cursor: pointer;
}


@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

.chat-service.loading {
    display: inline-block;
    animation: bounce 2s infinite;
}


/*スマホ、タブレット*/
@media screen and (max-width: 500px) {
    chat #chat-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 400px;
        height: 450px;
        max-height: 90%;
        overflow: auto;
        box-sizing: border-box;
    }

    chat #chat-history {
        height: 370px;
    }

    chat #user-input {
        position: absolute;
        bottom: 0;
        width: 100%;
    }

    chat #chat-line1 {
        font-size: 13px;
    }

    chat #chat-line1 #close {
        text-align: right;
        width: 30px;
        margin-right: 10px;
    }

}