/*
# 吹き出し
*/

.chat_l,
.chat_r {
  position: relative;
  margin: 0 0 2em;
  overflow: hidden;
}

.bubble {
  display: inline-block;
  position: relative;
  min-height: 60px;
  min-width: 60px;
  padding: 0.75em;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background: #fff;
  font-size: 1.4rem;
}

.rc8 {
  border-radius: 8px;
}

.chat_l .bubble {
  float: left;
}

.chat_r .bubble {
  float: right;
}

.bubble .bubble_in {
  border-color: #fff;
  line-height: 1.8;
}

.talker {
  display: block;
  width: 100px;
  height: auto;
  text-align: center;
}

.talker b {
  display: inline-block;
  height: auto;
  line-height: 1.6;
  font-weight: normal;
  font-size: 1rem;
  text-align: left;
  vertical-align: top;
}

.talker img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: auto;
  height: auto;
}

.chat_l .talker {
  float: left;
}

.chat_r .talker {
  float: right;
}

.chat_l .bubble_wrap {
  float: right;
  width: 100%;
  padding-left: 30px;
}

.chat_r .bubble_wrap {
  float: left;
  width: 100%;
  padding-right: 30px;
}

.bubble .bubble_in::after,
.bubble .bubble_in::before {
  position: absolute;
  top: 55px;
  width: 0;
  height: 0;
  border: solid transparent;
  content: "";
}

@media screen and (max-width: 767px) {
  .bubble .bubble_in::after,
  .bubble .bubble_in::before {
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: solid transparent;
    content: "";
  }
}

.wp-admin .bubble .bubble_in::after,
.wp-admin .bubble .bubble_in::before {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: solid transparent;
  content: "";
}

.chat_l .bubble .bubble_in::after,
.chat_l .bubble .bubble_in::before {
  right: 100%;
}

.chat_r .bubble div::after,
.chat_r .bubble div::before {
  left: 100%;
}

.chat_l .bubble .bubble_in::after {
  margin-top: -4px;
  border-width: 4px 6px;
  border-color: transparent;
  border-right-color: inherit;
  border-top-color: inherit;
}

.chat_l .bubble .bubble_in::before {
  margin-top: -5px;
  border-width: 5px 8px;
  border-color: transparent;
  border-right-color: #ccc;
  border-top-color: #ccc;
}

.chat_r .bubble .bubble_in::after {
  margin-top: -4px;
  border-width: 4px 6px;
  border-color: transparent;
  border-left-color: inherit;
  border-top-color: inherit;
}

.chat_r .bubble .bubble_in::before {
  margin-top: -5px;
  border-width: 5px 8px;
  border-color: transparent;
  border-left-color: #ccc;
  border-top-color: #ccc;
}

.bubble p:last-child {
  margin-bottom: 0;
}

.chat_style02 .bubble {
  border-top: 0;
  border-left: 0;
  background-color: #05a5ab;
  color: #fff;
}

.chat_style02 .bubble .bubble_in {
  border-color: #05a5ab;
}

.chat_l.chat_style02 .bubble .bubble_in::before {
  border-right-color: inherit;
  border-top-color: inherit;
}

.chat_r.chat_style02 .bubble .bubble_in::before {
  border-left-color: inherit;
  border-top-color: inherit;
}

.chat_style03 .bubble {
  background-color: #eee;
  border-color: #d6d6d6;
  border-top: 0;
  border-left: 0;
}

.chat_style03 .bubble .bubble_in {
  border-color: #eee;
}

.chat_r.chat_style03 .bubble .bubble_in::before {
  border-left-color: #d6d6d6;
  border-top-color: #d6d6d6;
}

.chat_l.chat_style03 .bubble .bubble_in::before {
  border-right-color: #d6d6d6;
  border-top-color: #d6d6d6;
}

.chat_style03 .bubble .bubble_in::after {
  margin-top: -5px;
}

/*吹き出し 会話者が複数人の場合*/
.together .talker {
  width: 100%;
}

.together .bubble_wrap {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.together .talker b {
  display: inline-block;
  max-width: 100px;
  margin-right: 10px;
  text-align: left;
  vertical-align: top;
}

.together.chat_l .talker,
.together.chat_r .talker {
  float: none;
  margin: 0 0 10px;
}

.together.chat_l .talker {
  text-align: left;
}

.together.chat_r .talker {
  text-align: right;
}

.together .bubble .bubble_in::after,
.together .bubble .bubble_in::before {
  top: auto;
  bottom: 100%;
}

.together.chat_l .bubble .bubble_in::after,
.together.chat_l .bubble .bubble_in::before {
  right: auto;
  left: 50px;
}

.together.chat_r .bubble .bubble_in::after,
.together.chat_r .bubble .bubble_in::before {
  right: 50px;
  left: auto;
}

.together.chat_l .bubble .bubble_in::after {
  margin-top: -20px;
  margin-left: -6px;
  border-width: 6px 4px;
  border-color: transparent;
  border-bottom-color: inherit;
  border-left-color: inherit;
}

.together.chat_l .bubble .bubble_in::before {
  margin-top: -21px;
  margin-left: -7px;
  border-width: 8px 5px;
  border-color: transparent;
  border-bottom-color: #ccc;
  border-left-color: #ccc;
}

.together.chat_r .bubble .bubble_in::after {
  margin-top: -20px;
  margin-right: -8px;
  border-width: 6px 4px;
  border-color: transparent;
  border-right-color: inherit;
  border-bottom-color: inherit;
}

.together.chat_r .bubble .bubble_in::before {
  margin-top: -21px;
  margin-right: -9px;
  border-width: 8px 5px;
  border-color: transparent;
  border-right-color: #ccc;
  border-bottom-color: #ccc;
}

.bubble_in p:last-child {
  margin-bottom: 0;
}

.chat_l {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.chat_r {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-flow: row-reverse;
  flex-flow: row-reverse;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

/*円*/
.talker .circle {
  border-radius: 50%;
}

/*角丸*/
.bubble_wrap .rc4 {
  border-radius: 4px;
}
.bubble_wrap .rc4-tl {
  border-top-left-radius: 4px;
}
.bubble_wrap .rc4-tr {
  border-top-right-radius: 4px;
}
.bubble_wrap .rc4-bl {
  border-bottom-left-radius: 4px;
}
.bubble_wrap .rc4-br {
  border-bottom-right-radius: 4px;
}

.bubble_wrap .rc8 {
  border-radius: 8px;
}
.bubble_wrap .rc8-tl {
  border-top-left-radius: 8px;
}
.bubble_wrap .rc8-tr {
  border-top-right-radius: 8px;
}
.bubble_wrap .rc8-bl {
  border-bottom-left-radius: 8px;
}
.bubble_wrap .rc8-br {
  border-bottom-right-radius: 8px;
}

.bubble_wrap .rc12 {
  border-radius: 12px;
}
.bubble_wrap .rc12-tl {
  border-top-left-radius: 12px;
}
.bubble_wrap .rc12-tr {
  border-top-right-radius: 12px;
}
.bubble_wrap .rc12-bl {
  border-bottom-left-radius: 12px;
}
.bubble_wrap .rc12-br {
  border-bottom-right-radius: 12px;
}

/*角丸長方形
※高さ100pxまで*/
.bubble_wrap .rc50 {
  border-radius: 50px;
}
