/* -------------------------------
ans_chat style file



------------------------------- */


:root {
    --header-color:#026bad;
    --talkArea-color:#ffffff;
    --fukidashi-color:#3292ce;
    --avatorBack-color:#d4d4d4;

    --ans_chat_choiceBtn-color:#9fcbe6;
    --ans_chat_choiceHover-color:#b2d8ef;
    --ans_chat_choiceFont-color:#1f1f1f;

    --inactiveans_chat_choice-color:#4aa1d6;
    --inactiveFont-color:#ffffff;

    --selectedans_chat_choice-color:#026bad;
   
}

/* -------------------------------
common
------------------------------- */
#ans_chat {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 40px;
    background-color: #aaa;
    box-shadow: 0px 0px 10px #ddd;
    font-size: 14px;
    font-family: "Hiragino Kaku Gothic ProN", "メイリオ", Helvetica, Arial,
        sans-serif;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-sizing: border-box;
    line-height: 20px;
    text-size-adjust:100%;
    color: #aaa;
    overflow-wrap:break-word;
}

#ans_chat a {
    text-decoration: none;
}

/* -------------------------------
header
------------------------------- */
#ans_chat #chat_header {
    background-color:var(--header-color,#026bad) ;
    height: 40px;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#ans_chat #chat_header #chat_title {
    color: white;
    display: inline-block;
    padding: 10px;
}


#ans_chat #chat_close_btn {
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 13px;
}

#ans_chat #chat_close_btn::before,
#ans_chat #chat_close_btn::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: 0% 50%;
    position: absolute;
    top: calc(14% - 5px);
    left: 14%;
}

#ans_chat #chat_close_btn::after {
    transform: rotate(-45deg);
    transform-origin: 100% 50%;
    left: auto;
    right: 14%;
}



/* -------------------------------
talk area
------------------------------- */
#ans_chat #chat_talk_area {
    width: 100%;
    height: 500px;
    /* min-height: 100%; */
    overflow-y: scroll;
    background-color: var(--talkArea-color,#ffffff);
    padding: 10px;
    box-sizing: border-box;
}

#ans_chat .chat_row {
    padding: 10px;
    clear: both;
}

#ans_chat .cl_talk {
    color: white;
    background-color: var(--fukidashi-color,#3292ce);
    display: inline-block;
    padding: 0.5rem;
    border-radius: 15px;
    float: right;
}

#ans_chat .host_talk {
    color: white;
    background-color: var(--fukidashi-color,#3292ce);
    display: inline-block;
    padding: 0.5rem;
    margin-left: 50px;
    border-radius: 15px;
    position: relative;
    max-width: 70%;
}

#ans_chat .host_talk::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: -50px;
    width: 40px;
    height: 40px;
    background-color: var(--avatorBack-color,#d4d4d4);
    border-radius: 20px;
    background-image: url(avator.png);
    background-size: contain;
}

#ans_chat .host_talk::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 30%;
    left: -18px;
    border: 10px solid transparent;
    border-right: 15px solid var(--fukidashi-color,#3292ce);
}

#ans_chat .ans_chat_choice {
    display: block;
    background-color: var(--ans_chat_choiceBtn-color,#9fcbe6);
    border-radius: 3px;
    color: var(--ans_chat_choiceFont-color,#1f1f1f);
    padding: 4px 5px;
    margin: 5px 0;
    cursor: pointer;
}

#ans_chat .ans_chat_choice img,
#ans_chat .inactive_ans_chat_choice img {
    max-width: 100%;
}

#ans_chat .ans_chat_choice img.icon,
#ans_chat .inactive_ans_chat_choice img.icon {
    max-width: 30px;
    margin-right: 5px;
    vertical-align: middle;
}

#ans_chat .ans_chat_choice a {
    text-decoration: none;
    color: var(--ans_chat_choiceFont-color,#1f1f1f);
}

#ans_chat .inactive_ans_chat_choice {
    display: block;
    background-color: var(--inactiveans_chat_choice-color,#3a90c5);
    border-radius: 5px;
    border: 1px solid var(--inactiveans_chat_choice-color,#3a90c5);
    color: var(--inactiveFont-color,#fff);
    padding: 4px 5px;
    margin: 5px 0;
    cursor: default;
}

#ans_chat .inactive_ans_chat_choice a {
    color: var(--inactiveFont-color,#fff);
    text-decoration: none;
}

#ans_chat .inactive_ans_chat_choice.selected_ans_chat_choice {
    background-color: var(--selectedans_chat_choice-color,#026bad);
}

#ans_chat .ans_chat_choice:hover {
    background-color: var(--ans_chat_choiceHover-color,#b2d8ef);
}


#ans_chat .ans_chat_tel_number {
    display: inline-block;
    margin: 0 5px;
    font-size: 12px;
}

@media only screen and (max-width: 400px) {



    /* -------------------------------
    MOBILE:common
    ------------------------------- */
    #ans_chat {
        width: 90%;
        height: 0;
        margin: 0 auto;
        z-index: 101;
    }

    #ans_chat_mb_btn {
        position: fixed;
        bottom: 50px;
        left: 10px;
        background-color: var(--header-color,#026bad) ;
        width: 50px;
        height: 50px;
        border-radius: 25px;
        background-image: url(icon_bubble.svg);
        background-size: 60%;
        background-repeat: no-repeat;
        background-position: 50%;
        box-shadow: 2px 2px 2px #aaa;
    }


}