/* カートのbox-sizingリセット用 */
.floaterBoxSizing * {
    box-sizing: content-box;
}

/* フローターバナー */
#floaterBanner,
#botFloaterBanner {
    position: fixed;
    bottom: 0;
    z-index: 300;
    width: 100%;
    height: auto;
}
#botFloaterBanner {
    z-index: 310;
}
#floaterBannerRelative,
#botFloaterBannerRelative {
    position: relative;
}

/* スクロールボタン */
.scrollBtn {
    position: absolute;
    right: 35px;
    bottom: 20px;
    z-index: 305;
    float: right;
    margin: 15px;
}
#footer {
    position: relative;
}
.scrollBtnIcon {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    box-shadow: 3px 3px 8px 1px #d8d8d8;
    cursor: pointer;
}
.scrollBtn:hover {
    opacity: 0.8;
}
.scrollBtnIcon img {
    min-width: 50px;
    min-height: 50px;
    overflow: hidden;
    border-radius: 20px;
}
@media screen and (max-width: 767px) {
    .scrollBtn {
        right: 25px;
        bottom: 0px;
    }
}
@media screen and (max-width: 500px) {
    .scrollBtn {
        right: 15px;
    }
}
@media screen and (max-width: 400px) {
    .scrollBtn {
        right: 10px;
    }
}

/* チャット・ボット表示制御 */
#chatContainer,
.btnMaxChat,
.btnMaxBot {
    visibility: hidden;
}
#botGuideContainer {
    display: none;
}

/* 共通ボットバナー */
#botPurchaseGuide {
    position: fixed;
    right: 0px;
    bottom: 10px;
    z-index: 1800;
    width: 41px;
    height: 350px;
    padding: 9px;
    border-radius: 5px;
}
#botGuideBanner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 41px;
    height: 180px;
    margin-bottom: -1px;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.075);
    cursor: pointer;
    left: 0;
}
#closeBotGuideButton {
    position: absolute;
    width: 14px;
    height: 14px;
    padding: 8px;
    cursor: pointer;
}
.whiteCloseButton::before,
.whiteCloseButton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    width: 2px;
    height: 16px;
    background: #fff;
    border-radius: 2.5px;
}
.whiteCloseButton::before {
    transform: translate(-50%,-50%) rotate(45deg);
}
.whiteCloseButton::after {
    transform: translate(-50%,-50%) rotate(-45deg);
}
#botGuideDetail {
    position: relative;
    display: none;
    width: 358px;
    text-align: center;
}
#botGuideDetail a.linkPopupAfter > img {
    display: none;
}
#botGuideDetailText {
    margin-top: 15px;
    line-height: 20px;
}
#videotalkText {
    padding: 5px;
    color: #cc0033;
    line-height: 1.4em;
}
.chatlinkOls {
    position: absolute;
    top: 320px;
    left: 247px;
    cursor: pointer;
}
#botStart,
#callToOperator,
#reserveCallToOperator,
#videotalkToOperator {
    height: 40px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #efefef;
    box-shadow: 2px 2px 3px #afafaf;
    line-height: 1.6em;
}
#botGuideDetail span {
    display: inline-block;
}
.botImageWrap {
    overflow: hidden;
}
@media screen and (min-width: 768px) {
    #botGuideBanner .pc.tab,
    #botGuideDetailSp .pc.tab {
        display: block;
    }
    #botGuideBanner .sp.tab,
    #botGuideDetailSp .sp.tab {
        display: none;
    }
    #closeBotGuideButton {
        bottom: 2px;
        left: 2px;
        padding: 5px 11px;
        line-height: 1;
    }
    #botGuideDetail {
        position: absolute;
        top: 6px;
        left: 53px;
        width: 720px;
        font-size: 11px;
    }
    #botGuideDetailText {
        font-size: 14px;
        margin-bottom: 20px;
    }
    #botGuideDetailSp {
        position: relative;
        height: 360px;
        padding: 10px;
        line-height: 18px;
        background-color: #eff8ff;
        border-radius: 6px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    }
    #botStart,
    #callToOperator,
    #reserveCallToOperator,
    #videotalkToOperator {
        width: 180px;
        height: 220px;
        font-size: 18px;
        padding: 10px;
        margin-left: 15px;
        float: left;
        line-height: 1.6em;
    }
    #botStart span,
    #callToOperator span,
    #reserveCallToOperator span,
    #videotalkToOperator span {
        font-size: 16px;
    }
    #botStart span {
        padding: 0 20px;
    }
    #botGuideDetailSp .menuTimeDisp,
    #videotalkToOperator span.red {
        font-size: 14px;
        font-weight: normal;
    }
    #videotalkToOperator span.red {
        font-size: 12px;
    }
    #videotalkText {
        position: absolute;
        top: 320px;
        left: 29px;
        font-size: 14px;
    }
    #botGuideDetail #videotalkToOperator img {
        top: 0;
        max-height: 150%;
    }
    #videotalkToOperator a::after,
    #reserveCallToOperator a::after {
        display: block;
        position: relative;
        content: '';
        background: url(https://d2tfhz5takygeh.cloudfront.net/contents/img/common/icon_blank.png) 100% 100% / cover;
        transform: none;
        border: none;
        top: 205px;
        left: 85px;
        width: 1.2em;
        height: 1.2em;
    }
    #videotalkToOperator a,
    #botStart div.pc.tab,
    #callToOperator a,
    #reserveCallToOperator a {
        display: flex;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: relative;
    }
    #videotalkToOperator .upperMsg,
    #botStart .upperMsg,
    #callToOperator .upperMsg,
    #reserveCallToOperator .upperMsg {
        position: absolute;
        top: 5px;
    }
    #videotalkToOperator .MenuTitle,
    #botStart .MenuTitle,
    #callToOperator .MenuTitle,
    #reserveCallToOperator .MenuTitle {
        position: absolute;
        top: 30px;
        line-height: 1.3;
    }
    #videotalkToOperator .botImageWrap,
    #botStart .botImageWrap,
    #callToOperator .botImageWrap,
    #reserveCallToOperator .botImageWrap {
        position: absolute;
        top: 88px;
        height: 100px;
    }
    #botStart .botImageWrap,
    #callToOperator .botImageWrap,
    #reserveCallToOperator .botImageWrap {
        display: flex;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
    }
    #videotalkToOperator .menuTimeDisp,
    #botStart .menuTimeDisp,
    #callToOperator .menuTimeDisp,
    #reserveCallToOperator .menuTimeDisp {
        position: absolute;
        top: 198px;
    }
}
@media screen and (max-width: 767px) {
    #botPurchaseGuide {
        right: 0;
        bottom: 10px;
        width: 40px;
        height: 420px;
        padding: 6px;
        border-radius: 0px;
    }
    #botGuideBanner {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 40px;
        height: 163px;
        border-radius: 5px;
        transition: all 300ms ease 0s;
    }
    #botGuideBanner.drawIn {
        left: 60px;
    }
    #closeBotGuideButton {
        bottom: 0px;
        left: 0px;
        padding: 5px 11px;
        line-height: 1;
    }
    #botGuideDetail {
        position: absolute;
        top: 6px;
        left: 46px;
        box-sizing: border-box;
        width: 317px;
        font-size: 11px;
    }
    #botGuideDetailSp {
        position: relative;
        height: 395px;
        padding: 15px;
        line-height: 18px;
        background-color: #eff8ff;
        border-radius: 6px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    }
    #botGuideDetailText {
        margin-top: 0;
        top: 7px;
        padding: 5px;
        font-size: 13px;
        line-height: 1.6em;
    }
    #botGuideDetailText span {
        font-size: 100%;
    }
    .chatlinkOls {
        top: 395px;
        left: 85px;
        padding-left: 0px !important;
        font-size: 100%;
        text-align: left;
        background: none !important;
    }
    #videotalkText {
        font-size: 12px;
    }
    #botStart,
    #videotalkToOperator {
        margin-top: 10px;
    }
    #botStart,
    #callToOperator,
    #reserveCallToOperator,
    #videotalkToOperator {
        height: 60px;
        padding: 10px 10px;
        margin-bottom: 10px;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: flex-end;
    }
    #botStart span,
    #callToOperator span,
    #reserveCallToOperator span,
    #videotalkToOperator span {
        font-size: 14px;
    }
    #botGuideDetailSp .menuTimeDisp,
    #videotalkToOperator span.red {
        font-size: 13px;
        font-weight: normal;
    }
    #videotalkToOperator span.red {
        font-size: 11px;
        line-height: 1.4;
    }
    #videotalkToOperator a > span > span:nth-child(1) {
        margin-top: 4px;
    }
    #videotalkToOperator div.sp,
    #botStart div.sp,
    #callToOperator div.sp,
    #reserveCallToOperator div.sp {
        width: 100%;
    }
    #callToOperator a,
    #videotalkToOperator a,
    #botStart div.sp,
    #reserveCallToOperator a {
        display: flex;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        position: relative;
    }
    #videotalkToOperator a .botImageWrap + div,
    #botStart div.sp .botImageWrap + div,
    #callToOperator a .botImageWrap + div,
    #reserveCallToOperator a .botImageWrap + div {
        width: calc(100% - 60px);
        position: absolute;
        left: 60px;
        display: flex;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 60px;
    }
    #videotalkToOperator a .botImageWrap,
    #botStart div.sp .botImageWrap,
    #callToOperator a .botImageWrap,
    #reserveCallToOperator a .botImageWrap {
        position: absolute;
        left: 10px;
        width: 50px;
        height: 62px;
    }
    #botStart .botImageWrap,
    #callToOperator .botImageWrap,
    #reserveCallToOperator .botImageWrap {
        display: flex;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
    }
    #botStart img,
    #callToOperator img,
    #reserveCallToOperator img,
    #videotalkToOperator img {
        max-width: 50px;
        min-width: 50px;
    }
    #botGuideDetail .botImageWrap img {
        top: 0;
        max-height: 150%;
    }
    #videotalkToOperator .upperMsg,
    #botStart .upperMsg,
    #callToOperator .upperMsg,
    #reserveCallToOperator .upperMsg {
        position: absolute;
        top: -5px;
    }
    #videotalkToOperator .MenuTitle,
    #botStart .MenuTitle,
    #callToOperator .MenuTitle,
    #reserveCallToOperator .MenuTitle {
        position: absolute;
        top: 20px;
        font-size: 14px;
        line-height: 1.3;
    }
    #reserveCallToOperator .MenuTitle {
        top: 10px; /* 2行なのでずらし */
    }
    #videotalkToOperator .menuTimeDisp,
    #botStart .menuTimeDisp,
    #callToOperator .menuTimeDisp,
    #reserveCallToOperator .menuTimeDisp {
        position: absolute;
        top: 45px;
    }
    #reserveCallToOperator a::before,
    #videotalkToOperator a::before {
        position: relative;
        content: '';
        background: url(https://d2tfhz5takygeh.cloudfront.net/contents/img/common/icon_blank.png) 100% 100% / cover;
        transform: none;
        border: none;
        left: 130px;
        top: 30px;
        width: 15px;
        height: 15px;
        flex-direction: row;
    }
}

/* SPメニューを開いているときは表示しない */
.spMenuOpened #botPurchaseGuide {
    display: none !important;
}
.spMenuOpened #chatContainer,
.spMenuOpened #botContainer {
    display: none !important;
}
.spMenuOpened .btnMaxChat,
.spMenuOpened .btnMaxBot {
    display: none !important;
}

/* チャット・ボット画面 */
#chatContainer,
#botContainer {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 2000;
    width: 880px;
    max-width: 100%;
    height: 576px;
    margin: 0px;
    padding: 9px;
    overflow: hidden;
    font-size: 100%;
    text-align: left;
}
#botContainer {
    height: 541px;
}
#chatContainer.onFaq,
#botContainer.onFaq {
    bottom: 50px;
}
#chatHeader,
#botHeader {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 246px;
    height: 50px;
    margin-bottom: -1px;
    overflow: hidden;
    background: -webkit-linear-gradient(
        left,
        #cc0033 0px,
        #cc0033 50px,
        #ffffff 50px,
        #ffffff 100%
    );
    background: linear-gradient(
        to right,
        #cc0033 0px,
        #cc0033 50px,
        #ffffff 50px,
        #ffffff 100%
    );
    border: 2px solid #cc0033;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}
#chatHeader {
    background: -webkit-linear-gradient(
        left,
        #0080ff 0px,
        #0080ff 50px,
        #ffffff 50px,
        #ffffff 100%
    );
    background: linear-gradient(
        to right,
        #0080ff 0px,
        #0080ff 50px,
        #ffffff 50px,
        #ffffff 100%
    );
    border: 2px solid #0080ff;
}
#chatHeader.animate,
#botHeader.animate {
    animation: 0.7s linear 0s infinite alternate notify;
}
#chatHeader #chatTitle,
#botHeader #botTitle {
    position: absolute;
    top: 11px;
    left: 100px;
    max-width: 84px;
    outline: none;
}
#chatHeader #btnMinChat img,
#botHeader #btnMinBot img {
    position: absolute;
    top: 3px;
    left: 4px;
    outline: none;
    cursor: pointer;
}
#chatHeader #btnDisconChat,
#botHeader #btnDisconBot {
    position: absolute;
    top: 10px;
    right: 1px;
    max-width: 14px;
    padding: 6px;
    outline: none;
    cursor: pointer;
}
#chatMain,
#botMain {
    position: relative;
    clear: both;
    min-width: 768px;
    color: #333;
    font-size: 14px;
    background-color: #f8f8f8;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}
#chatMain {
    border: 1px solid #d8d8d8;
}
#chatMain:before,
#botMain:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 260px;
    content: '';
    pointer-events: none;
}
#chatMain:before {
    height: 10px;
    background-color: #f8f8f8;
}
#botMain:before {
    height: 8px;
    background-color: #c03;
}
#chatArea,
#botArea {
    clear: both;
    color: #333;
}
#areaGetMsg,
#botAreaGetMsg {
    height: 330px;
    overflow: scroll;
    overflow-x: hidden;
}
#areaGetMsg {
    z-index: 2;
    border: 15px solid #F8F8F8;
    border-top-width: 20px;
}
#botAreaGetMsg {
    height: 320px;
    margin-bottom: 0;
    padding-bottom: 10px;
}
#botAreaGetMsg .message:first-child {
    margin-top: 10px;
}
#areaType {
    height: 15px;
    font-size: 80%;
}
#btnSendMsg,
#btnBotSendMsg {
    max-width: 100%;
}
#btnSendMsg:disabled,
#btnBotSendMsg:disabled {
    cursor: default;
    opacity: 0.2;
}
#sendArea,
#botSendArea {
    display: table;
    clear: both;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #d8d8d8;
}
#sendArea div,
#botSendArea div {
    display: table-cell;
    padding: 15px;
}
#botSendArea div {
    padding-bottom: 8px;
}
#sendArea .btnArea,
#botSendArea .btnArea {
    width: 90px;
    padding-left: 0;
    line-height: 0;
    vertical-align: bottom;
}
#botSendArea .btnArea {
    padding: 10px 15px 8px 0;
}
#areaSendMsg,
#botAreaSendMsg {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    margin: 0;
    background-color: #ffffff;
}
#areaSendMsg {
    height: 86px;
    font-size: 16px;
}
#chatBotIconArea {
    position: relative;
    z-index: 2;
    display: table;
    clear: both;
    width: 100%;
    height: 60px;
    background: #c03;
}
#chatBotIconArea .icon {
    position: absolute;
    top: 10px;
    left: 6px;
    z-index: 1;
    display: table-cell;
    width: 72px;
    height: 72px;
    background: url(https://d2tfhz5takygeh.cloudfront.net/contents/img/component/bot/faq_bot_character_pc.png)
        no-repeat 0 0;
    background-size: 72px 72px;
}
#chatBotIconArea .notice {
    display: table-cell;
    padding-left: 100px;
    color: #ffffff;
    font-size: 14px;
    vertical-align: middle;
}
#botFooter {
    padding: 10px 15px;
    padding-top: 0;
}
#botContainer button {
    color: white;
    font-size: 120%;
    vertical-align: middle;
    background-color: #337ab7;
    border: 1px solid #ccc;
    border-color: #2e6da4;
    border-radius: 4px;
    cursor: pointer;
}
#botContainer button :hover {
    background-color: #286090;
    border-color: #204d74;
}
@media screen and (max-width: 959px) {
    #chatContainer,
    #botContainer {
        right: 0px;
        bottom: 0px;
        width: 100%;
        height: auto;
        padding: 6px 0;
    }
    #chatHeader,
    #botHeader {
        width: 204px;
        height: 40px;
        background: -webkit-linear-gradient(
            left,
            #0080ff 0px,
            #0080ff 40px,
            #ffffff 40px,
            #ffffff 100%
        );
        background: linear-gradient(
            to right,
            #0080ff 0px,
            #0080ff 40px,
            #ffffff 40px,
            #ffffff 100%
        );
        border-radius: 5px 5px 0 0;
    }
    #botHeader {
        background: -webkit-linear-gradient(
            left,
            #c03 0px,
            #c03 40px,
            #ffffff 40px,
            #ffffff 100%
        );
        background: linear-gradient(
            to right,
            #c03 0px,
            #c03 40px,
            #ffffff 40px,
            #ffffff 100%
        );
    }
    #chatHeader #btnMinChat img,
    #botHeader #btnMinBot img {
        top: 9px;
        left: 11px;
        max-width: 18px;
    }
    #chatHeader #chatTitle,
    #botHeader #botTitle {
        top: 6px;
        left: 75px;
    }
    #chatHeader #btnDisconChat,
    #botHeader #btnDisconBot {
        top: 6px;
        right: 0px;
    }
    #chatMain,
    #botMain {
        min-width: 318px;
    }
    #areaGetMsg {
        height: 300px;
        border: none;
    }
    #areaSendMsg {
        height: 80px;
        padding: 10px;
    }
    #sendArea .btnArea {
        width: 80px;
    }
}
@media screen and (min-width: 768px) {
    #botContainer #botAreaGetMsg {
        color: #000000;
    }
}
@media screen and (max-width: 767px) {
    #botContainer #chatBotIconArea {
        height: 46px;
    }
    #botContainer #chatBotIconArea .icon {
        width: 50px;
        height: 50px;
        background-size: 50px 50px;
    }
    #botContainer #chatBotIconArea .notice {
        padding-right: 5px;
        padding-left: 65px;
        font-size: 70%;
    }
    #botContainer #botAreaGetMsg {
        height: 350px;
    }
    #botContainer #botAreaGetMsg a.tel {
        font-size: 100% !important;
        text-decoration: none;
    }
    #botContainer #botSendArea .btnArea {
        width: 80px;
    }
    #botSendArea div {
        padding: 5px 15px;
    }
    #botContainer #botAreaSendMsg {
        padding: 10px;
        font-size: 14px;
        line-height: 1.13;
        height: 80px;
    }
    #botSendArea .btnArea {
        padding-bottom: 5px;
    }
    
}
/************* 高さ：581px～680px *************/
@media screen and (max-height: 680px) and (min-height: 581px) {
    #botContainer #botAreaGetMsg {
        height: 340px;
    }
}
/************* 高さ：481px～580px *************/
@media screen and (max-height: 580px) and (min-height: 481px) {
    #botContainer #botAreaGetMsg {
        height: 260px;
    }
}
/************* 高さ：381px～480px *************/
@media screen and (max-height: 480px) and (min-height: 381px) {
    #botContainer #botAreaGetMsg {
        height: 180px;
    }
}
/************* 高さ：～380px *************/
@media screen and (max-height: 380px) {
    #botContainer #botAreaGetMsg {
        height: 120px;
    }
}

/* チャット・ボット最小化 */
.btnMaxChat,
.btnMaxBot {
    position: fixed;
    right: 8px;
    bottom: 8px;
    z-index: 1800;
    margin: 0px;
    font-size: 100%;
}
.btnMaxChat.pc.onFaq,
.btnMaxBot.pc.onFaq {
    bottom: 48px;
}
.btnMaxChat *,
.btnMaxBot * {
    max-width: 100%;
    outline: none;
}
.btnMaxChat.animate,
.btnMaxBot.animate {
    -webkit-animation: blink 0.7s ease-in-out infinite alternate;
    -moz-animation: blink 0.7s ease-in-out infinite alternate;
    animation: blink 0.7s ease-in-out infinite alternate;
}
.btnMaxChat .chatConnect,
.btnMaxBot .botConnect {
    display: inline-block;
}
.btnMaxChat.animate .chatConnect,
.btnMaxBot.animate .botConnect {
    display: none;
}
.btnMaxChat .chatResponse,
.btnMaxBot .botResponse {
    display: none;
}
.btnMaxChat.animate .chatResponse,
.btnMaxBot.animate .botResponse {
    display: inline-block;
}
@media screen and (max-width: 959px) {
    .btnMaxChat,
    .btnMaxBot {
        right: 0;
        bottom: calc(50vh - 100px);
        width: 57px;
    }
}

/* チャット・ボット会話画面内 */
.guest,
.agent {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    padding: 20px 5px;
}
.guest {
    text-align: right;
}
#botContainer .guest,
#botContainer .agent {
    padding: 24px 10px 0;
}
.guest .from,
.agent .from {
    float: left;
    width: 80%;
}
.guest .from {
    color: #888888;
    font-weight: bold;
    font-size: 120%;
}
.agent .from {
    color: #f06986;
    font-weight: bold;
    font-size: 120%;
}
.time {
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #888888;
    font-size: 85%;
    vertical-align: bottom;
}
.agent .time {
    padding-left: 10px;
    text-align: left;
}
.guest .time {
    padding-right: 10px;
    text-align: right;
}
.message {
    position: relative;
    box-sizing: border-box;
    width: auto;
    max-width: 80%;
    margin: 0;
    padding: 12px 15px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 3px;
}
#botContainer .message {
    width: 80%;
    min-width: 260px;
    line-height: 1.4em;
}
#botContainer .message.talk_message {
    width: auto;
}
.guest .message {
    display: inline-block;
    margin-right: 10px;
    background-color: #ffffff;
    border: 1px solid #d8d8d8;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
}
.agent .message {
    display: inline-block;
    margin-left: 10px;
    background-color: #ffffff;
    border: 1px solid #0080ff;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
}
#botContainer .agent .message {
    border: 1px solid #c03;
}
.guest .message:after {
    position: absolute;
    top: 50%;
    right: -6px;
    display: block;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-top: 1px solid transparent;
    border-right: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    border-left: 1px solid transparent;
    -webkit-transform: translateY(-50%) rotate(-45deg) skew(7.5deg, 7.5deg);
    transform: translateY(-50%) rotate(-45deg) skew(7.5deg, 7.5deg);
    content: '';
}
.agent .message:after {
    position: absolute;
    top: 50%;
    left: -6px;
    display: block;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-top: 1px solid #0080ff;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-left: 1px solid #0080ff;
    -webkit-transform: translateY(-50%) rotate(-45deg) skew(7.5deg, 7.5deg);
    transform: translateY(-50%) rotate(-45deg) skew(7.5deg, 7.5deg);
    content: '';
}
#botContainer .agent .message:after {
    border-top: 1px solid #c03;
    border-left: 1px solid #c03;
}
.system .message {
    display: inline-block;
    padding: 2px 5px;
    font-size: 85%;
}
#botContainer .system .message,
#botContainer .system .message {
    padding-top: 15px;
    padding-left: 15px;
}
.message a {
    color: #0080ff;
}
.message a:hover {
    text-decoration: none;
}
#botContainer .agent .message_urlBtn a,
#botContainer .agent .message_telBtn a {
    position: relative;
    box-sizing: border-box;
    width: 80%;
    min-width: 260px;
    line-height: 1.4em;
    margin: 0;
    padding: 12px 15px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    margin-left: 10px;
    background-color: #efefef;
    border: 1px solid #979797;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width:959px) {
    #chatMain:before {
        width: 100%;
    }
    #chatContainer .system,
    #chatContainer .guest,
    #chatContainer .agent {
        padding-left: 20px;
        padding-right: 20px;
    }
    #chatContainer #areaGetMsg .system {
        padding-top: 10px;
    }
}
@media screen and (max-width: 767px) {
    #botContainer .message,
    #botContainer .message.talk_message {
        width: auto;
    }
}

/* ボット用ボタン */
.message.message_red {
    color: white;
    background-color: #c03;
}
.message.message_red:after {
    background-color: #c03;
}
.botQuestion,
.botAnswer {
    margin: 8px;
    padding: 0px 6px;
    font-weight: bold;
}
.botQuestion {
    color: #c03;
    background: white;
}
.botAnswer {
    color: white;
    background: #c03;
}
.botBtnArea,
.talkMenuArea,
.urlBtnArea {
    background: #f8f8f8;
}
.botBtnArea,
.talkMenuArea {
    display: block;
}
.botBtnArea > .btnTable > span.botBtn,
.talkMenuArea > .talkMenuTable > span.talkMenuBtn {
    color: #c03;
    line-height: 1;
    text-align: center;
    background: #ffffff;
    border: 2px solid #c03;
    /* safariの改行対策 */
    font-variant-ligatures: no-common-ligatures;
}
.botBtnArea > .btnTable > span.carouselBtn {
    display: flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}
.botBtnArea > .btnTable > span.carouselBtn img {
    margin-bottom: 1em;
}
.talkMenuArea > .talkMenuTable > span.colorQuestion {
    background-color: #fbe5d6;
}
.botBtnArea > .btnTable > span.botBtn.emphasize,
.talkMenuArea > .talkMenuTable > span.talkMenuBtn.emphasize {
    border-width: 4px;
}
.botBtnArea > .btnTable > span.botBtn.on,
.talkMenuArea > .talkMenuTable > span.talkMenuBtn.on {
    color: #ffffff;
    background: #c03;
    border: 2px solid #c03;
    pointer-events: none;
}
.talkMenuArea > .talkMenuTable > span.talkMenuBtn.on.postback {
    pointer-events: auto;
}
.botBtnArea > .btnTable > .botBtn.disabled,
.talkMenuArea > .talkMenuTable > .talkMenuBtn.disabled,
.urlBtnArea > .btnTable > a.urlBtn.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.urlBtnArea > .btnTable > a.urlBtn {
    position: relative;
    height: auto;
    min-height: 40px;
    color: #c03 !important;
    background: #ffffff;
    border: 2px solid #c03;
}
.urlBtnArea > .btnTable > a.urlBtn:before {
    position: absolute;
    right: 10px;
    display: block;
    width: 15px;
    height: 15px;
    background: url(https://d2tfhz5takygeh.cloudfront.net/contents/img/common/icon_blank.png)
        no-repeat 0 0;
    background-size: 15px 15px;
    content: '';
    top: 50%;
    transform: translateY(-50%);
}
.bot_character {
    position: absolute;
    left: 0;
}
.includeImg {
    position: relative;
}
.btnTable > span.botBtn:hover,
.talkMenuTable > span.talkMenuBtn:hover,
.talkMenuTable > span.talkMenuBtn.on.postback:hover {
    color: #ffffff;
    background: #f06986;
    cursor: pointer;
}
@media screen and (min-width: 768px) {
    .botBtnArea {
        display: inline-block;
        width: 100%;
        padding: 10px 0;
    }
    .talkMenuArea {
        width: fit-content;
        min-width: 50%;
        padding: 10px;
    }
    .urlBtnArea {
        margin: 10px 0;
    }
    .btnTable {
        display: flex;
        vertical-align: middle;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 40px);
        padding: 10px 20px;
    }
    .btn_message {
        min-width: 80% !important;
    }
    .talkMenuTable {
        display: block;
    }
    .btnTable > span.botBtn,
    .talkMenuTable > span.talkMenuBtn {
        -ms-user-select: none;
        user-select: none;
    }
    .btnTable > span.botBtn {
        display: flex;
        width: calc((100% - 20px) / 2);
        height: 44px;
        padding: 4px 20px;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
    }
    .btnTable > span.botBtn:nth-child(2n) {
        margin-left: 20px;
    }
    .botBtnArea > .btnTable > span.botBtn.emphasize {
        height: 40px;
        width: calc(((100% - 20px) / 2) - 4px);
    }
    .botBtnArea > .btnTable > span.botBtn.emphasize.on {
        height: 44px;
        width: calc(((100% - 20px) / 2));
    }
    .talkMenuTable > span.talkMenuBtn {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 30px;
        margin-top: 6px;
        padding: 4px 20px;
        vertical-align: middle;
    }
    .botBtnArea > .btnTable > span.botBtn.on,
    .talkMenuArea > .talkMenuTable > span.talkMenuBtn.on {
        cursor: default;
    }
    .botBtnArea > .btnTable > span.botBtn.break,
    .talkMenuArea > .talkMenuTable > span.talkMenuBtn.break {
        color: #f8f8f8;
        background: #f8f8f8;
        border: none;
        cursor: default;
        pointer-events: none;
    }
    .botBtnArea > .btnTable > .botBtn.disabled:hover,
    .talkMenuArea > .talkMenuTable > .talkMenuBtn.disabled:hover {
        color: #c03;
        background: #ffffff;
        cursor: default;
    }
    .urlBtnArea > .btnTable > a.urlBtn {
        display: flex;
        width: 100%;
        padding: 4px 28px 4px 16px;
        text-align: center;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    .urlBtnArea > .btnTable > a.urlBtn:hover {
        color: #ffffff !important;
        background: #f06986;
    }
    .bot_character {
        top: 0;
        height: calc(100% - 10px) !important;
        min-height: 40px;
        margin: 5px;
    }
}
@media screen and (-ms-high-contrast: none) and (min-width: 768px) {
    .urlBtnArea > .btnTable > a.urlBtn::before {
        top: 16px;
        transform: inherit;
    }
}
@media screen and (max-width: 767px) {
    .botBtnArea,
    .talkMenuArea {
        margin: 10px 0;
        padding: 5px 0;
    }
    .urlBtnArea {
        padding: 5px 0;
    }
    .botBtnArea > .btnTable,
    .talkMenuArea > .talkMenuTable {
        display: block;
        width: 100%;
    }
    .botBtnArea > .btnTable > span.botBtn,
    .talkMenuArea > .talkMenuTable > span.talkMenuBtn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        max-width: 260px;
        min-height: 26px;
        margin: 5px auto;
        padding: 4px 14px;
        line-height: 1.2;
    }
    .botBtnArea > .btnTable.carouselBtnTable {
        display: inline-flex;
    }
    .botBtnArea > .btnTable > span.carouselBtn {
        width: 33%;
    }
    .botBtnArea > .btnTable > span.botBtn.break,
    .talkMenuArea > .talkMenuTable > span.talkMenuBtn.break {
        display: none;
    }
    .urlBtnArea > .btnTable > a.urlBtn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
        max-width: 260px;
        margin: 10px auto;
        padding: 6px 26px 6px 14px;
        font-size: 100% !important;
        text-align: left;
        text-decoration: none;
    }
    .bot_character {
        max-width: 35px;
        max-height: 100%;
        margin-left: 5px;
    }
}
@media screen and (max-width: 360px) {
    .botBtnArea > .btnTable > span.botBtn.includeImg {
        padding-left: 20px;
        padding-right: 8px;
    }
}

/* チャットアンケート */
#chatQst {
    padding: 10px;
    color: #333;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}
#chatQst label {
    display: inline-block;
    text-align: center;
    background-color: #eee;
    cursor: pointer;
}
#chatQst label:hover {
    color: #31708f;
    background-color: #d9edf7;
}
#chatQst label.toggleLeft {
    width: 50px;
    height: 20px;
    padding: 5px;
    border-radius: 7px 0 0 7px;
}
#chatQst label.toggleRight {
    width: 50px;
    height: 20px;
    margin-left: -5px;
    padding: 5px;
    border-radius: 0 7px 7px 0;
}
#chatQst input[type='radio']:checked + label {
    color: #d9edf7;
    background-color: #31708f;
}
#chatQst label.scoreNum {
    width: 20px;
    height: 20px;
    padding: 5px;
    border-radius: 100%;
}
#chatQst dt {
    margin-top: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #31708f;
}
#chatQst dd {
    margin-left: 10px;
}
#areaQstMsg {
    width: 400px;
    height: 50px;
}
#btnSendQst {
    width: 100%;
    height: 50px;
    margin-top: 10px;
}

/* チャット・ボット共通 textarea */
textarea {
    padding: 15px;
    font-size: 14px;
    vertical-align: middle;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.275);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    resize: none;
}
textarea:focus {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
        0 0 8px rgba(102, 175, 233, 0.6);
}
textarea:placeholder-shown,
textarea::-webkit-input-placeholder {
    color: #979797;
}
textarea:disabled {
    opacity: 0.4;
}

/* リンクエリア */
#botContainer #linkarea {
    padding: 0 15px 15px 15px;
    background: #ffffff;
}
#botContainer #linkarea a {
    margin-left: 4px;
    font-size: 12px !important;
}
@media screen and (max-width: 767px) {
    #botContainer #linkarea {
        padding: 0 5px 5px 15px;
        font-size: 12px !important;
    }
    #botContainer #linkarea > p {
        margin: 0;
    }
}

/* チャット・ボットコントローラ */
#chatControllers,
#botControllers {
    float: right;
    margin-top: -22px;
    margin-left: 250px;
    line-height: 40px;
    white-space: nowrap;
}
#botControllers {
    margin-top: -20px;
}
#chatControllers span,
#botControllers span {
    margin: 5px 5px 5px auto;
    color: white;
    text-decoration: underline;
    border: 0px solid gray;
    border-radius: 3px;
    cursor: pointer;
}
#chatControllers span:hover,
#botControllers span:hover {
    text-decoration: none;
}

/************* 縦画面表示：iPhone6 plusより小さい場合：高さ180px *************/
@media screen and (max-height: 735px) and (orientation: portrait) {
    #areaGetMsg {
        height: 180px;
    }
    #botContainer #botAreaGetMsg {
        height: 350px;
    }
}
@media screen and (max-height: 640px) and (orientation: portrait) {
    #botContainer #botAreaGetMsg {
        height: 250px;
    }
}

/************* 横画面表示：iPhone6 plus以下且つiPhone6より大きい場合：高さ180px *************/
@media screen and (max-height: 414px) and (min-height: 376px) and (orientation: landscape) {
    #areaGetMsg {
        height: 180px;
    }
    #botContainer #botAreaGetMsg {
        max-height: 180px;
    }
}

/************* 横画面表示：iPhone6以下の場合：高さ100px *************/
@media screen and (max-height: 375px) and (orientation: landscape) {
    #areaGetMsg {
        height: 100px;
    }
    #botContainer #botAreaGetMsg {
        max-height: 100px;
    }
}

/*== ↓IE11用↓ ==*/
@media screen and (-ms-high-contrast: none) and (min-width: 768px) {
    .message.talk_message {
        display: block !important;
        width: auto !important;
    }
    .talkMenuArea {
        max-width: 50%;
    }
}
/*== ↑IE11用↑ ==*/

@keyframes notify {
    0% {
        background-color: #337ab7;
    }
    100% {
        background-color: #cccccc;
    }
}

@-webkit-keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-moz-keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
