@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.2
*/

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

/* ヘッダロゴ */
.logo {
  text-align:left;
}

.logo-image {
  padding: 0px;
}

/* 本文の行間 */
.entry-content p {
  margin: 0.7em 0;
}

/* ヘッダ背景色 */
.header-container {
  background: #e6e6e6;
}

/* フッターリンクホバー背景色 */
.footer-container a:hover {
  background: #a5a5a5;
}

/* サイドバー背景色 */
.sidebar {
  background-color: #e6e6e6;
}

/* h2 見出しのリセット */
.article h2,
.article h2::before,
.article h2::after {
  content: none;
  background: none;
  border: none;
  border-radius: 0;
}

/* h2 見出しのカスタマイズ */
.article h2 {
  background: #323282;
  color: #ffffff;
  margin: 0;
  padding: 0.4em;
  border-radius: 4px;
  font-size: 20px;
}

/* h3 見出しのリセット */
.article h3,
.article h3::before,
.article h3::after {
  content: none;
  background: none;
  border: none;
  border-radius: 0;
}

/* h3 見出しのカスタマイズ */
.article h3 {
  font-size: 18px;
  position: relative;
  padding: 0.3em 0.3em 0.3em 1.5em;
  line-height: 1.4;
  color: #000000;
  border-bottom: 3px solid #323282;
  background: #ffffff;
}

.article h3:before {
  font-family: FontAwesome;
  content: "\f138";
  position: absolute;
  font-size: 1.1em;
  left: 0.05em;
  top: 0.2em;
  color: #323282;
}

/* h4 見出しのリセット */
.article h4,
.article h4::before,
.article h4::after {
  content: none;
  background: none;
  border: none;
  border-radius: 0;
}

/* h4 見出しのカスタマイズ */
.article h4 {
  padding: 0.25em 0.5em;
  font-size: 16px;
  color: #000000;
  background: transparent;
  border-left: 5px solid #323282;
  border-top: 1px solid #323282;
  border-bottom: 1px solid #323282;
}

/* サイドバーの見出しカスタマイズ */
#sidebar h3 {
  text-align: center;
  line-height: 24px;
  font-size: 16px;
  color: #ffffff;
  background: #323282;
  border-radius: 5px;
  padding: 5px 10px;
}

/* 目次のカスタマイズ */
#toc_container.toc_white {
  background: #fefded;
}
#toc_container {
  margin-top: 30px;
  border: 1px solid #a3a3a3 !important;
  font-size: 14px !important;
  padding-right: 30px !important;
  padding-left: 30px !important;
  background-color: #fcfcfc !important;
}
#toc_container .toc_title {
  color: #3a3a3a;
}
#toc_container .toc_title:before {
  content: "\f0f6";
  font-family: FontAwesome;
  padding-right: 6px;
  font-weight: normal;
  color: #999;
}
#toc_container .toc_toggle a {
  color: #3d3d3d;
}
#toc_container ul {
  counter-reset: number;
  list-style: none;
}
#toc_container ul li {
  line-height: 16px;
  margin-bottom: 10px;
  margin-left: 1px;
}
#toc_container ul li:before {
  font-weight: normal;
  color: #4c4b4b;
  padding-right: 10px;
  margin-left: 10px;
}
#toc_container ul li a {
  color: #4c4b4b;
}
#toc_container ul ul {
  margin-top: 10px;
}
#toc_container ul ul li {
  font-weight: normal;
  line-height: 20px;
  margin-bottom: 10px;
  margin-left: 1px;
}
#toc_container ul ul li:before {
  content: "\f0da";
  font-family: FontAwesome;
  padding-right: 6px;
  color: #ccc;
  font-weight: normal;
  margin-left: 5px;
}
#toc_container ul ul li a {
  color: #3d3d3d;
  font-weight: normal;
  padding-right: 6px;
}

/* リストのカスタマイズ */
#the-content > ul,
#the-content > ol {
  padding: 0.5em 1em 0.5em 2.3em;
  position: relative;
  background: #fcf8e3;
}
#the-content > ul li,
#the-content > ol li {
  line-height: 1.1;
  padding: 0.5em 0;
}

/* テーブルのカスタマイズ */
table {
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 auto;
}
table tr:nth-child(odd) {
  background: #fcf8e3;
}
table td,
th {
  line-height: 1.1;
  padding: 6px;
}
table th {
  color: #ffffff;
  font-weight: bold;
  background: #323282;
  text-align: center;
  padding: 6px;
}
.scrollable-table td,
th {
  line-height: 1.1;
  padding: 6px;
}
.scrollable-table th {
  color: #ffffff;
  font-weight: bold;
  background: #323282 !important;
  text-align: center;
  padding: 6px;	
}

/* ブログカードのカスタマイズ */
.blogcard {
  background: #f7f7f7;
}
.blogcard-wrap {
  margin-left: 0px;
}

/* カテゴリーのカスタマイズ */
.widget_categories ul li a::before {
  font-family: FontAwesome;
  content: "\f0da";
  color: #323282;
  padding-right: 6px;
  line-height: 1;
}

/* コメント不要項目非表示 */
.comment-notes,
.comment-form-email,
.comment-form-url,
.form-allowed-tags {
  display: none;
}

/* コメント本文のサイズ・行間調整 */
.st-comment-content p {
  font-size: 14px;
  line-height: 20px;
}

/* 投稿者の斜体解除 */
.fn {
  font-style: normal;
  font-size: 14px;
  font-weight: bold;
  color: #323282;
}

/* 投稿者の「より」を非表示 */
span.says {
  display: none;
}

/* 入れ子コメントの左側に線を表示 */
.commets-list .children {
  margin-left: 10px;
  padding-left: 6px !important;
  border-left: 2px solid #eee;
} 

/* コメントの間隔を狭める */
.commets-list,
.comment-body,
.commets-list,
.st-comment-body {
  margin-bottom: .5em;
}

/* 「返信」ボタンを小さく */
.comment-reply-link {
  font-size: .5em;
}

/* 楽天アフィリエイト背景色 */
.side-widget-ad {
  background: #e6e6e6;
  text-align: center;
}

/* スマホでtableタグをスクロールする */
@media screen and (max-width:480px) {
  table {
    display: block;
    overflow-x: scroll;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

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

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

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