div#chat-header {
    background: #3397D9;
    height: 45px;
    padding: 15px 0 0 15px;
    color: #FFF;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}
div#chat-header .chat-howto {
    font-size: 13px;
    font-weight: normal;
    margin: 3px 15px 0 0;
}
div#chat-header .chat-howto a {
    color: #FFF;
}
div#chat-header .chat-howto a:hover {
    opacity: 0.7;
    text-decoration: none;
}
div#chat-header .chat-howto span {
    margin: 0 5px 0 0;
}
div#chat-section{
    background-color:#EBF1F1;
    font-size: 14px;
    border: 1px solid #3397D9;
}
div#chat-log-view {
    background-color:#EBF1F1;
    padding: 8px;
    overflow-y: scroll;
}

.chat-left {
    float:left;
}
.chat-right {
    float:right;
}

.chat-clearfix::after {
    content: "";
    display: block;
    clear: both;
    align-items: center;
    width: 100%;
}

div#chat-log-view input[type=radio] {
    display: none;
}
div#chat-log-view label {
    position: relative;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.3;
    margin: 3px 0;
    background-color:#EBF1F1;
    border-radius: 4px;
    padding: 8px 30px 8px 10px;
}
div#chat-log-view label:before {
    position: absolute;
    top: calc(50% - 9px);
    right: 10px;
}
div#chat-log-view label:not(.chat-disabled):hover,
div#chat-log-view label.checked {
    background-color: #ff503d;
    color: #fff;
}
div#chat-log-view label.checked:before,
div#chat-log-view label:not(.chat-disabled):not(.checked):hover:before {
    color: #fff;
}

div#chat-log-view label.chat-disabled {
    cursor: default;
}
div#chat-log-view label.chat-disabled:not(.checked) {
    opacity: 0.7;
}

#chat-input-area {
    background-color:#EBF1F1;
    height: 150px;
}
#chat-message {
    position: relative;
    display: flex;
    flex-direction: row;
}
#chat-message div.chat-message-button {
    position: absolute;
    cursor: pointer;
    width: 36px;
    height: 36px;
    color: #FFF;
    background-color: #3397D9;
    bottom: 10px;
    right: 14px;
    border-radius: 20px;
}
#chat-message div.chat-message-button span.fa {
    padding: 8px 8px 8px 6px;
    font-size: 20px;
}
#chat-message div.chat-message-text {
    padding: 10px;
}
#chat-message div.chat-message-text div.chat-message-text-bg {
    border-radius: 14px;
    border: 1px solid #C1C1C1;
    background-color:#FFF;
    padding: 0 8px 0 0;
}
textarea#chat-content {
    resize: none;
    height: 100px;
    max-height: 150px;
    width: 270px;
    padding: 10px;
    margin: 0 8px 0 0;
    font-size: 14px;
    line-height: 20px;
    border: none;
    border-radius: 14px 0 0 14px;
}
textarea#chat-content:focus {
    box-shadow: none;
    outline: none;
}

#chat-option {
    display: flex;
    flex-direction: row;
}
#chat-option > div {
    margin: 0 0 0 20px;
}
#chat-option input {
    display: none;
}
#chat-option label {
    font-weight: normal;
}
#chat-option > div.chat-disabled {
    color: #A1A1A1;
}
#chat-option > div {
    color: #3397D9;
}
#chat-option > div.chat-disabled label {
    cursor: default;
}
#chat-option > div label {
    cursor: pointer;
}
#chat-option div span.fa {
    padding: 0 10px 0 0;
}


log {
    word-wrap: break-word;
    min-width: auto;
    line-height: 1.3;
}

.chat-icon-01 {
    background-image: url(/assets/common/img/common/icon_chat_01.png?20200413);
    background-size: 40px;
    background-repeat: no-repeat;
}
.chat-icon-02 {
    background-image: url(/assets/common/img/common/icon_chat_02.png?20200326);
    background-size: 40px;
    background-repeat: no-repeat;
}

.chat-messenger-info {
    display: flex;
    flex-direction: column;
    padding: 8px 0px 5px 50px;
}
.chat-messenger-info > div.chat-messenger-name {
    font-weight: bold;
    font-size: 15px;
    margin: 0 0 5px 0;
}
.chat-messenger-time {
    font-size: 12px;
    color: #a1a1a1;
}
div.chat-messenger.chat-right.chat-messenger-time {
    margin: 8px 0 2px 0;
}

.chat-res {
    margin: 4px 4px 4px 40px;
    padding: 10px 20px 10px 10px;
    max-width: 290px;
    background-color:white;
    border-radius: 0 8px 8px 8px;
}
.chat-res a span {
    display: none;
}

.chat-res-select {
    margin: 4px 4px 4px 40px;
    padding: 8px;
    width: 290px;
    background-color:white;
    border-radius: 0 8px 8px 8px;
}

.chat-req {
    margin: 4px;
    padding: 10px;
    max-width: 290px;
    background-color: #3397D9;
    color: #FFF;
    border-radius: 8px 0 8px 8px;
}

.chat-container-select {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
}

.chat-support-border {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #7e7e7e;
    margin: 12px;
}
.chat-support-border:before,
.chat-support-border:after {
    border-top: 1px solid #7e7e7e;
    content: "";
    flex-grow: 1;
}
.chat-support-border:before {
    margin: 0 10px 0 0;
}
.chat-support-border:after {
    margin: 0 0 0 10px;
}

/* チャット読み込み中のスピナー関連 */
#chat-overlay {
    -webkit-transform: translate3d(0, 0, 9999px);
    transform: translate3d(0, 0, 9999px);
    width: 360px;
    top: 46px;
    position: fixed;
    background: #EBF1F1;
    display: none;
    background-image: url(/assets/common/img/common/loading_ralko_01.gif);
    background-size: 250px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/* 入力中のアイコン関連 */
.chat-loader-typing,
.chat-loader-typing:before,
.chat-loader-typing:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}
.chat-loader-typing {
    color: #333;
    font-size: 4px;
    top: -10px;
    margin: 0 7px 0 14px;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
.chat-loader-typing:before,
.chat-loader-typing:after {
    content: '';
    position: absolute;
    top: 0;
}
.chat-loader-typing:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.chat-loader-typing:after {
    left: 3.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

/* チャットをIEで開いた際に出すモーダル */
#chat-ie {
    width: 360px;
    top: 40px;
    position: fixed;
    background: rgba(0,0,0, 0.5);
    z-index: 3000;
}

#chat-ie .chat-ie-content {
    position: relative;
    width: 300px;
    height: 328px;
    top: 35%;
    right: -30px;
    background: #FFF;
    border-radius: 10px;
    padding: 15px 15px 10px 15px;
}

#chat-ie .chat-ie-content a:hover {
    text-decoration: none;
}

#chat-ie .chat-ie-content .chat-ie-content-01 {
    color: #7DA444;
    font-weight: bold;
    line-height: 1.5;
}

#chat-ie .chat-ie-content .chat-ie-content-02 {
    margin: 8px 0 0 0;
}
#chat-ie .chat-ie-content .chat-ie-content-02 a {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    color: #34495E;
}
#chat-ie .chat-ie-content .chat-ie-content-02 a:hover {
    color: #EE572D;
}
#chat-ie .chat-ie-content .chat-ie-content-02 a div {
    padding: 0 10px 0 0;
    margin: 0 0 0 7px;
}
#chat-ie .chat-ie-content .chat-ie-content-02 .fa {
    font-size: 11px;
    position: relative;
    line-height: 17px;
}

#chat-ie .chat-ie-content .chat-ie-content-03 {
    font-size: 14px;
    margin: 10px 0 0 0;
    padding: 0 5px 0 0;
    line-height: 1.5;
}

#chat-ie .chat-ie-content .chat-ie-content-04 {
    height: 80px;
    font-size: 15px;
    font-weight: bold;
    color: #2C7CBA;
    line-height: 1.3;
    padding: 20px 0;
    margin: 15px 0 0 0;
    background: transparent linear-gradient(180deg, #FFFFFF 0%, #F7F7F7 100%) 0% 0% no-repeat padding-box;
    border: 1px solid #B2B2B2;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}
#chat-ie .chat-ie-content .chat-ie-content-04:hover {
    opacity: 0.7;
}
#chat-ie .chat-ie-content .chat-ie-content-04 span {
    font-size: 14px;
    color: #000;
}

/* チャットのメンテナンスモード時に出すオーバーレイ */
#chat-maintenance {
    -webkit-transform: translate3d(0, 0, 9999px);
    transform: translate3d(0, 0, 9999px);
    width: 360px;
    top: 0px;
    position: fixed;
    background: rgba(0,0,0, 0.5);
    z-index: 3000;
}
#chat-maintenance .chat-maintenance-content {
    position: relative;
    width: 300px;
    top: 35%;
    right: -30px;
    background: #FFF;
    border-radius: 10px;
    padding: 15px 15px 10px 15px;
    line-height: 1.5;
}
#chat-maintenance .chat-maintenance-content .chat-maintenance-content-img {
    height: 80px;
    background-image: url(/assets/common/img/common/icon_chat_maintenance.png);
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
#chat-maintenance .chat-maintenance-content .chat-maintenance-content-01 {
    color: #7DA444;
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0 0 0;
}
#chat-maintenance .chat-maintenance-content .chat-maintenance-content-02 {
    font-size: 14px;
    margin: 10px 0 0 0;
}
