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

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

/* 文字サイズ10pxにする　16pxが基準であるらしく、それの62.5% */
html{
	font-size: 62.5%;
}



/*ヘッダーフッター非表示に*/
.header,.footer {
	display: none;
}

/*上の謎空白を消す*/
.content {
  margin-top: 0;
}


/*カテゴリー・タグページ見出しカスタマイズ*/
.archive-title {
  text-align: center !important;
  font-size: 1.8rem;
  margin-left: -10px;
}
.archive-title :before {
  display: none;
}


/*見出しのリセット*/
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
	padding: 0;
	border: none;
	font-size: medium;
	font-weight: normal;
	background: none;
	border-radius: 0;
}

/*h2見出しのカスタマイズ*/

/* 左右に横線 */
.article h2 {
  display: flex;
  align-items: center;/* 縦位置の調整 */
  justify-content: center;/* 横位置の調整 */
  font-size: 2.4rem;
}

.article h2::before,
.article h2::after {
  content: '';
  flex-grow: 0.1;/* 少数にする */
  height: 2px;
  background: #eee;
}

.article h2::before {
  margin-right: 20px; /* 文字との余白 */
}
.article h2::after {
  margin-left: 20px; /* 文字との余白 */
}

/*h4見出しのカスタム*/
.article h4 {
  display: inline-block; /* 文字幅にフィット */
  padding: .5em .7em; /* 余白 */
  margin-left: -10px;
  background-color: #eee; /* 背景色 */
  border-radius: 2px; /* 少し丸く */
  font-size: 1.6rem; /* 文字の大きさ */
}


/*小見出し用にバッジカスタマイズ　まずはバッジ全体適用*/
.badge {
  border-radius: 2px; /* 角丸にする */
  padding: 5px; /* 余白を調整 */
}

/*バッジ灰色を変えてる*/
.badge-grey {
	background-color: #eee; /* 背景色 */
    color: #555; /* 文字色 */
	font-size: 1.4rem;
	border: solid 8px #eee;
	margin-left: -10px;
}



/*固定ページの投稿日を非表示に*/
.page .date-tags {
	display: none;
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
	/*文字大きさ指定*/
	p {
		font-size: 1.4rem;
}

	/*記事タイトルなんか左に余白あったので*/
	.entry-title {
		margin-left: -16px;
	}
}
	

