.c-chatbot {
    position: fixed;
    right: 20px;
    bottom: -100vh;
    background: #FBE5D6;
    box-shadow: 3px 5px 7px 2px rgb(100 100 100 / 50%);
    border-radius: 10px 10px 0 0;
    font-size: 1.5rem;
    width: 100%;
    z-index: 1000;
    transition: 0.2s;
}

.c-chatbot.is-open {
    overflow: hidden
}

.c-chatbot.is-open {
    bottom: 0
}

.c-chatbot__title {
    transition: 0.3s
}

.is-close .c-chatbot__title {
    background: linear-gradient(135deg, #C40000, #FA5F00);
    margin: 0;
    padding: 10px 7px 15px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    border-radius: 15px 0 0 15px;
    position: fixed;
    top: 40%;
    writing-mode: vertical-rl;
    right: -40px;
    animation: titleShow 0.2s ease-out forwards
}

@keyframes titleShow {
    0% {
        right: -40px
    }

    100% {
        right: 0
    }
}

.is-open .c-chatbot__title {
    background: linear-gradient(180deg, #C40000, #FA5F00);
    margin: 0;
    padding: 10.5px 0;
    text-align: center;
    font-weight: 700;
    color: #fff;
    position: relative;
    font-size: 1.6rem;
    line-height: 1;
}

.c-chatbot__title:hover {
    cursor: pointer
}

.c-chatbot__title__controll {
    display: none
}

.is-open .c-chatbot__title__controll {
    position: absolute;
    display: inline-block;
    top: 45%;
    right: 0px;
    vertical-align: middle;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px 0 0 0px;
    transition: 0.2s
}

.is-open .c-chatbot__title__controll:hover {
    background: #c40000;
}

.is-open .c-chatbot__title__controll::before,
.is-open .c-chatbot__title__controll::after {
    content: "";
    display: inline-block;
    border: solid 1px #fff;
    width: 16px;
    vertical-align: middle;
    position: absolute;
    left: 13px;
    top: 22px
}

.is-open .c-chatbot__title__controll::before {
    transform: rotate(45deg) translateY(-50%);
    left: 12px;
}

.is-open .c-chatbot__title__controll::after {
    transform: rotate(-45deg) translateY(-50%)
}

.c-chatbot__field {
    height: 60vh;
    overflow-x: hidden;
    overflow-y: scroll;
    border-top: solid 1px #ccc;
    padding: 0 15px 20px;
}

.c-chatbot__chat {
    margin-top: 25px
}

.c-chatbot__chat__group {
    margin-bottom: 40px;
}

.c-chatbot__chat--o+.c-chatbot__chat--o {
    margin-top: 15px;
}

.c-chatbot__chat__inner {
    position: relative;
    border-radius: 10px;
    padding: 15px 20px;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.c-chatbot__chat--topread .c-chatbot__chat__inner {
    padding: 15px;
}

.c-chatbot__chat__inner__image {
    width: 56px;
    margin-right: 10px;
}

.c-chatbot__chat__inner__img_name {
    font-size: 1rem;
}

.c-chatbot__chat__inner__text {
    letter-spacing: 0;
    margin: 0;
}

.c-chatbot__chat--topread .c-chatbot__chat__inner {
    display: flex;
    align-items: center;
}

.c-chatbot__chat--u .c-chatbot__chat__inner {
    background: #C40000;
    position: relative;
    left: 140%;
    transform: translateX(-100%);
    animation: chatUserShow 0.3s ease-out forwards
}

.c-chatbot__chat--o.c-chatbot__chat--new {
    animation: chatOperatorShow 0.3s ease-out forwards
}

.c-chatbot__chat--o.c-chatbot__chat--new .c-chatbot__choice__item {
    animation: chatOperatorItemShow 0.3s ease-out forwards;
    animation-delay: 0.2s;
    position: relative;
    left: -120%
}

.c-chatbot__chat--o.c-chatbot__chat--new .c-chatbot__choice__item:hover {
    text-decoration: none;
}

.c-chatbot__choice {
    margin-top: 13px;
}

.c-chatbot__choice__group.isLast {
    margin-bottom: 40px;
    transition: 0.3s;
}

.c-chatbot__choice__group.isLast:last-of-type {
    margin-bottom: 0;
}

.c-chatbot__choice__item:last-of-type {
    margin-bottom: 0;
}

.c-chatbot__choice__item {
    font-size: 1.3rem
}

.c-chatbot__choice__item.c-chatbot__fixed--retunrs {
    margin: 0;
}

.c-chatbot__chat--o:not(.c-chatbot__chat--topread) .c-chatbot__text:not(.isLast)::before {
    content: "";
    background: url(https://www.shopjapan.co.jp/files/user/images/wow_kun_right.png);
    width: 42px;
    height: 47px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.c-chatbot__chat--o:not(.c-chatbot__chat--topread) .c-chatbot__text.isChoice::before {
    background-image: url(https://www.shopjapan.co.jp/files/user/images/wow_kun_front.png);
    width: 54px;
    height: 46px;
    position: absolute;
    right: 10px;
    top: 20px;
    z-index: 1;
}

.c-chatbot__text {
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.3rem;
}

.c-chatbot__text.isLast {
    margin: 0 0 13px;
    display: block;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.c-chatbot__text.isChoice,
.isChoice .c-chatbot__text__pre_choice {
    text-align: center;
    display: block;
}

.c-chatbot__text__operator_text {
    display: block;
    margin-top: 1em;
    letter-spacing: 0;
    white-space: nowrap;
    font-size: 1.5rem;
}

.c-chatbot__text__pre_choice {
    color: #c40000;
    font-weight: bold;
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0;
}

.isLast .c-chatbot__text__pre_choice {
    font-size: 1.5rem;
}

.c-chatbot__text__text_group {
    text-align: center;
}

.c-chatbot__text__img__group {
    text-align: center;
}

.c-chatbot__text__img {
    display: block;
    margin: 0 auto;
    width: 100px;
}

.c-chatbot__text__ichioshi {
    display: inline-block;
    margin: 13px 0;
    background: #ED7D31;
    color: #fff;
    font-weight: bold;
    width: 100px;
    font-size: 1.2rem;
}

.c-chatbot__text__inner {
    width: 80%;
    margin-left: 10px;
    letter-spacing: 0;
    font-size: 1.5rem;
}

@keyframes chatOperatorShow {
    0% {
        left: -100%
    }

    100% {
        left: 0%
    }
}

@keyframes chatOperatorItemShow {
    0% {
        left: -120%
    }

    100% {
        left: 0%
    }
}

@keyframes chatUserShow {
    0% {
        left: 140%
    }

    100% {
        left: 100%
    }
}

.c-chatbot__chat--o>*:not(.c-chatbot__img) {
    order: 2
}

.c-chatbot__chat--o .c-chatbot__img {
    order: 1
}

.c-chatbot__choice__group.isLast:hover {
    filter: brightness(115%);
}

.c-chatbot__choice__item:hover,
.c-chatbot__choice__group:hover {
    text-decoration: none;
}

.c-chatbot__choice__item--image {
    width: 100%;
    border-radius: 20px;
    max-width: 260px;
    margin: 0 auto 10px;
    display: block;
}

.c-chatbot__choice__item--button {
    -webkit-appearance: none;
    appearance: none
}

.c-chatbot__choice__item {
    color: #C40000;
    background: #fff;
    border: solid #C40000 1px;
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 30px;
    margin: 10px auto;
    transition: 0.4s;
    text-align: center
}

.isLast.c-chatbot__choice__item {
    padding: 7px 10px;
}

.c-chatbot__choice__item:hover {
    background: #C40000;
    color: #fff;
    cursor: pointer;
    border-color: #C40000
}

.c-chatbot__choice__item.isLast {
    color: #fff;
    background: #C40000;

}

.c-chatbot__choice__item:last-of-child {
    margin-bottom: 0
}

.c-chatbot__choice__item:first-of-child {
    margin-top: 0
}

.c-chatbot__chat--u .c-chatbot__text {
    color: #fff;
    border: none
}

.c-chatbot__img {
    display: inline-block;
    width: 100%;
    height: 40px;
    background: #999;
    border-radius: 50%;
    max-width: 40px
}

.c-chatbot__aside_menu {
    padding: 23px 10px;
    display: flex;
    justify-content: center
}

.c-chatbot__aside_menu .c-chatbot__choice__item {
    width: 200px
}

@media screen and (max-width:768px) {
    .c-chatbot {
        width: 90%
    }

    .c-chatbot::after {
        width: 80%
    }

    .is-close .c-chatbot__title {
        top: 47%
    }

    .c-chatbot {
        max-width: 350px;
    }

    .c-chatbot__chat__inner {
        max-width: 320px;
    }

    .c-chatbot__choice__item {
        max-width: 260px;
    }
}

@media screen and (max-width:500px) {
    .c-chatbot__choice {
        width: 100%
    }

    .c-chatbot__choice__item {
        width: 100%
    }
}

@media screen and (max-width:350px) {
    .c-chatbot__text__operator_text {
        white-space: wrap;
    }
}

@media screen and (min-width: 769px) {
    .c-chatbot {
        max-width: calc(350px + 17px);
    }

    .c-chatbot__chat__inner {
        max-width: calc(320px + 17px);
    }

    .c-chatbot__choice__item {
        max-width: calc(260px + 17px);
    }
}