@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* 吹き出しとアイコンの横並び解除 */
.bottom.speech-wrap {
  display:block;
}

/* 右の人を右寄せ */
.bottom.sbp-r * {
  margin-left:auto;
}

/* 吹き出し */
.bottom .speech-balloon {
  margin-top:12px;  /* 三角部分の余白 */
  max-width:100%;   /* 画面幅にする */
  border:2px solid;
}

.bottom.sbp-r .speech-balloon {
  margin-right:0;
}
.bottom.sbp-l .speech-balloon {
  margin-left:0;
}

/* 右の人の吹き出し三角の位置 */
.bottom.sbp-r .speech-balloon:before,
.bottom.sbp-r .speech-balloon:after {
  right: 36px;
}

/* 左の人の吹き出し三角の位置 */
.bottom.sbp-l .speech-balloon:before,
.bottom.sbp-l .speech-balloon:after {
  left: 36px;
}

/* 吹き出しの三角(大きい三角の上にに、小さい三角を重ね吹き出しを作る) */
/* 大きい三角 */
.bottom .speech-balloon:before {
  border: 12px solid transparent;
  border-bottom: 12px solid;
  top: -24px;
}

/* 小さい三角 */
.bottom .speech-balloon:after {
  border: 10px solid transparent;
  border-bottom: 10px solid;
  margin: 0 2px;
  top: -19px;
}

/* 名前の位置をアイコン横 */
.bottom .speech-person {
  position: relative;
}

.bottom .speech-name {
  display: block;
  position: absolute;
  top: 0;
  width: 150px; /* 名前の幅 */
}

.bottom.sbp-r .speech-name {
  right: 100%;
  text-align: right;
}

.bottom.sbp-l .speech-name {
  left: 100%;
  text-align: left;
}


/* 色指定 */
/* コメント欄 */
.bottom .speech-balloon {
  border:2px solid #ccc;  /* 枠色 */
  background-color:#feeeed; /* 背景色 */
}

/* 大きい三角 */
.bottom .speech-balloon:before {
  border-bottom-color:#ccc; /* 吹き出し枠色 */
}

/* 小さい三角 */
.bottom .speech-balloon:after {
  border-bottom-color:#feeeed; /* 吹き出し背景色 */
}

