@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.1.0
*/

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


/**目次**/
.toc {
  display: block;
  padding: 0px;
  max-width: 600px;
  border: 1.2px #606060 solid !important;
  font-family: 'Verdana', sans-serif;
}
.toc-title {
  position: relative;
  padding: 10px 0;
  background: #606060;
  color: #fff;
  font-weight: bold;
}
.toc .toc-content {
  padding: 15px 20px;
  background-color: #fff;
}
.toc-list > li li a {
  font-weight: normal;
  font-size: 95%;
  color: #708090;
  margin-left: 5px;
}

.article .toc-list > li li {
  list-style: none;
}

/**引用**/
blockquote {
    position: relative;
    padding: 10px 12px;
    box-sizing: border-box;
    font-style: italic;
    color: #464646;
    border: solid 3px #3ca5d4;
    border-left-width: 50px;
}

blockquote:before{
    display: inline-block;
    position: absolute;
    top: 50%;
    left: -37px;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    content: "\f10d";
    font-family: FontAwesome;
    color: #FFF;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

blockquote p {
    position: relative;
    padding: 0;
    margin: 10px 0;
    z-index: 3;
    line-height: 1.7;
}

blockquote cite {
    display: block;
    text-align: right;
    color: #888888;
    font-size: 0.9em;
}

/**Hタグデザイン変更**/

.article h1 {
  position: relative;
  color:#FFF;
  padding: 1rem 2rem calc(1rem + 10px);
  margin-left:-1%;
  background: #1e73be;
}

.article h1:before {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  content: '';
  border: 4px solid #000;
}

.article h2{
  position: relative;
  padding: 0.7em;
  margin-bottom:3%;
  background: #1e73be;
  color: white;
}

.article h2::before {
  position: absolute;
  content: '';
  top: 100%;
  left: 0;
  border: none;
  border-bottom: solid 15px transparent;
  border-right: solid 20px rgb(149, 158, 155);
}

.article h3 {
  position: relative;
  padding: 0.5rem 0.5rem;
  border-bottom: 10px solid #6595bf;
  border-left:none;
  border-top:none;
  border-right:none;
}

.article h3:before {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30%;
  height: 10px;
  content: '';
  background:#1e73be;
}

#sidebar .widget-sidebar-title,
#sidebar .widget-sidebar-scroll-title{
	border-bottom: 5px solid #1e73be;
	background: #fff;
	color:black;
	padding-bottom:0;
}

/************************************
** SNSボタン変更
************************************/
#main .button-caption {
  display: none;
}
#main .sns-share a {
  width: 2.5em;
  margin-left: 0.2em;
}
.sns-share-buttons {
  justify-content: center;
}
#main .social-icon {
  font-size: 25px;
}


/************************************
** タイトル文字数制限
************************************/
add_filter('cocoon_blogcard_title', function ($title){
  if (mb_strlen($title) > 32) {
    $title = mb_substr($title, 0, 32).'...';
  }
  return $title;
});
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1240px以下*/
@media screen and (max-width: 1240px){
  /*必要ならばここにコードを書く*/
}

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

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

@media screen and (max-width: 750px){
/*目次スマホ用*/
.toc {
  margin: 10px 5px;
}
.toc-list > li a {
  font-size:13px;
}
.toc-list > li li a {
  margin-left: -3px;
}
.toc-list > li li ::before {
  margin-left:-5px;
}
}

/* h1タグ*/
.article h1 {
  color:#FFF;
  position: relative;
  padding: 1rem 2rem calc(1rem + 10px);
  margin-left:3%;
  background: #1e73be;
}
/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
