﻿/*
Theme Name: Kanamii for AFFINGER C
Template: affinger4
Author: Kanami
Version: 20171117
*/

* {
	font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", Hiragino Kaku Gothic Pro, "ＭＳ Ｐゴシック", sans-serif;
	margin: 0px;
	padding: 0px;
}

/* Googleフォントの反映箇所
--------------------------------*/
/*.kdate,.kdate time, 更新日・投稿日*/
#st-mobile-logo a, /*モバイルタイトル*/
.sitename a, /*サイトタイトル*/
.descr, /*サイトタイトル下のキャプション*/
.news-ca, /*お知らせタイトル*/
.tagcloud a, /*タグクラウド*/
h5#resp,h3#reply-title,.form-submit, /*コメント欄見出し*/
footer .footerlogo /*フッターのタイトル*/
{
	font-family: Josefin Sans,Julius Sans One,'Meddon',Lobster,Pacifico,Fredericka the Great,Bilbo Swash Caps,PT Sans Caption,Montserrat,"メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", Hiragino Kaku Gothic Pro, "ＭＳ Ｐゴシック", sans-serif!important;
}

/* リンクの色 */
a {
	color: #4682b4;
}

/* リンクにマウスオーバーした時の色 */
a:hover {
	color: #b22222;
}

/*--------------------------------
各フォント設定
---------------------------------*/

/*基本のフォントサイズ*/
p, /* テキスト */
.st-kaiwa-hukidashi, /* ふきだし */
.yellowbox, /* 黄色ボックス */
.graybox, /* グレーボックス */
.redbox, /* 薄赤ボックス */
#topnews .clearfix dd p, /* 一覧文字 */
.post ul li, /* ulリスト */
.post ol li, /* olリスト */
#comments #respond, /* コメント */
#comments h4, /* コメントタイトル */
.post h5, /* H5 */
.post h6 /* H6 */
 {
	font-size: 17px;
	line-height: 28px;
}

/* 基本の文字 */
p,
.post h5 /* H5 */
{
	margin-bottom: 20px;
}

/*ブログタイトル*/
header .sitename {
	font-size: 22px;
	color: #fff;
	line-height: 30px;
	font-family: 'Oswald', sans-serif;
	padding: 10px 0 0;
	margin-bottom: 10px;
}

header .sitename a {
	color: #333;
	text-decoration: none;
	font-weight: bold;
}

header .sitename a:hover {
	-moz-opacity: 0.8;
	opacity: 0.8;
}

/*ブログ名の下のキャプション */
header h1 {
	font-size: 12px;
	font-weight: normal;
}

header .descr {
	font-size: 13px;
	font-weight: normal;
	margin-bottom: 0px;
	line-height: 24px;
	padding-bottom: 0;
}

/*投稿のカテゴリ*/
.post .st-catgroup {
	font-size:12px;
	line-height:18px;
	margin:0;
	padding: 5px 0 10px;
}

.catname {
	font-size: 13px;
	line-height: 1em;
	color: #1a1a1a;
	display: inline-block;
	white-space: nowrap;
	padding: 8px 8px;
	margin-top: 5px;
	border-radius: 2px;
	text-decoration: none;
	background:#f3f3f3;
}


/*カテゴリID別に色を指定できます
例）IDが7の場合
.catname.st-catid7 {
	background:#ff0000;
	color:#fff;
}
*/

.post .st-catgroup a {
	text-decoration:none;
	color:#000;
}

.post .st-catgroup a:hover {
	opacity:0.5;
}

/* ウィジェット見出し 
aside h4,
#side aside h4,
.st-widgets-title {
	color:#000;
}
*/

/* 記事タイトル */
.entry-title, 
.post .entry-title {
	font-size: 22px;
	line-height: 35px;
	color: #333;
	margin-bottom: 10px;
	font-weight:bold;
}

#st-page .entry-title {
	margin-bottom: 20px;
}

.entry-title a:hover {
	text-decoration: underline;
}

.entry-title a {
	color: #333;
	text-decoration: none;
}

h1 {
	margin: 0px;
	padding: 0px;
}

/* 中見出し */
/*h2 {
	background: #f3f3f3;
	color: #1a1a1a;
	font-size: 19px;
	line-height: 27px;
	margin: 20px 0;
	padding-top: 10px;
	padding-right: 20px;
	padding-bottom: 10px;
	padding-left: 20px;
	border-top:2px solid #ccc;
	border-bottom:1px solid #ccc;
}*/

/*-----中見出し（h2）追加カスタマイズ　ここから-----*/

h2 {
  color:#666 !important;
  background-image:url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-2.png")!important;
  background-repeat:repeat;
  font-size:20px;
  line-height:27px;
  margin:40px 0 30px 0 !important;
  padding:10px 20px 10px 20px;
  border:2px dashed #8dbee7 !important;
  border-radius:5px;
  box-shadow: 0 0 0 4px #fbecee, 2px 1px 6px 4px rgba(10, 10, 0, 0.5);
}

/*-----中見出し（h2）追加カスタマイズ　ここまで-----*/

/*小見出し*/
/*.post h3 {
	font-size: 18px;
	line-height: 27px;
	margin: 20px 0;
	padding: 10px 15px;
	color: #1a1a1a;
	line-height: 27px;
	background-repeat: no-repeat;
	background-position: left center;
	border-bottom: 1px #999999 dotted;
}*/

/*-----小見出し（h3）追加カスタマイズ　ここから-----*/

.post h3:not(.rankh3):not(#reply-title) {  
  color:#666 !important;
  background-image:url("/wp-content/themes/affinger4-child-kanamii-c/images/midashi-h3.png") !important;
  background-repeat:no-repeat !important;
  background-position: left center !important;
  border-top:none !important;
  border-bottom:2px #8dbee7 dashed !important;
}

/*-----小見出し（h3）追加カスタマイズ　ここまで-----*/

h3 a {
	color: #333;
	text-decoration: none;
}

dd h3 {
	line-height: 20px;
}

dd h3 a {
	color: #333;
	text-decoration: none;
	font-size: 18px;
    	line-height: 26px;
}

.post h4 {
    color:#666 !important;
	padding: 10px 15px;
	margin: 20px 0;
	background-color: #f3f3f3;
	font-size: 17px;
	line-height: 26px;
}



/*media Queries タブレットサイズ（960px以下）
----------------------------------------------------*/
@media only screen and (max-width: 960x) {


/*-- ここまで --*/
}

/*media Queries タブレットサイズ（600px以上）
----------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*--------------------------------
	各フォント設定
	---------------------------------*/

	/*基本のフォントサイズ*/
	p, /* テキスト */
	.st-kaiwa-hukidashi, /* ふきだし */
	.yellowbox, /* 黄色ボックス */
	.graybox, /* グレーボックス */
	.redbox, /* 薄赤ボックス */
	.post ul li, /* ulリスト */
	.post ol li, /* olリスト */
	.post h5, /* H5 */
	.post h6 /* H6 */
	 {
		font-size: 20px;
		line-height: 30px;
	}

	p,
	.post h5 {
		margin-bottom: 20px;
	}

	dd p {
		margin-bottom: 5px;
	}

	/*記事タイトル*/
	.entry-title,
	.post .entry-title {
		font-size: 27px;
		line-height: 40px;
		color: #333;
		margin-bottom: 10px;
	}

	/*中見出し*/
	h2 {
		font-size: 24px;
		line-height: 35px;
	}

	h2:after {
		bottom: -10px;
		left: 50px;
	}

	h2:before {
		bottom: -10px;
		left: 50px;
	}

	/*小見出し*/
	.post h3 {
		font-size: 22px;
		line-height: 32px;
	}

	.post h4 {
	  background-color: #f3f3f3;
	  font-size: 21px;
	  line-height: 31px;
	}


/*-- ここまで --*/
}

/*media Queries PCサイズ（960px以上）
----------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*--------------------------------
	各フォント設定
	---------------------------------*/

	/*基本のフォントサイズ*/
	p, /* テキスト */
	.st-kaiwa-hukidashi, /* ふきだし */
	.yellowbox, /* 黄色ボックス */
	.graybox, /* グレーボックス */
	.redbox, /* 薄赤ボックス */
	.post ul li, /* ulリスト */
	.post ol li, /* olリスト */
	.post h5, /* H5 */
	.post h6, /* H6 */
	.post table tr td,
	table tr td /* テーブル */
	 {
		font-size: 15px;
		line-height: 25px;
	}

	p,
	.post h5
	{
		margin-bottom: 20px;
	}

	dd p {
		margin-bottom: 5px;
	}

	/*記事タイトル*/
	.entry-title,
	.post .entry-title {
		font-size: 27px;
		line-height: 40px;
		color: #333;
		margin-bottom: 10px;
	}

	/* 記事タイトル下 */
	.blogbox p {
		font-size: 13px;
		margin: 0px;
		color: #ccc;
		line-height: 18px;
	}

	/*中見出し*/
	h2 {
		font-size: 22px;
		line-height: 32px;
	}

	h2:after {
		bottom: -10px;
		left: 50px;
	}


	h2:before {
		bottom: -10px;
		left: 50px;
	}

	/*小見出し*/
	.post h3 {
		font-size: 20px;
		line-height: 30px;
	}

	.post h4 {
	  background-color: #f3f3f3;
	  font-size: 16px;
	  line-height: 26px;
	}

	.post dd h5 {
	  margin-bottom: 5px;
	}

	/* サイドバーの見出し */
	#side h5 {
		font-size:16px;
		line-height:26px;
		margin-bottom:5px;
	}

	/*サイドバー*/
	#side aside h4 {
		font-size: 14px;
		line-height: 24px;             
	}

	#side aside ul li {
		font-size: 14px;
		line-height: 24px;
	}

	#side aside #mybox ul li ul li {
	  font-size: 14px;
	  line-height: 24px;
	}


/*-- ここまで --*/
}


/*-----------------------------------------------追加コード　ここから-----------------------------------------------*/


/*ヘッダーメニュー中央寄せ　ここから
メニューの表示数にあわせて「805px」の部分を変更してください
メニュー数【4】の場合→644px
メニュー数【6】の場合→966px*/

@media print, screen and (min-width: 960px) {
 
#st-menubox nav ul:not(.sub-menu) {
	width:805px; /*メニュー幅の指定（メニュー数×161px）*/
	margin:0 auto;
}
}


/*アイキャッチ画像サイズ　ここから
「0」は左右の余白です
お好みで数値（px）を追加するとアイキャッチ画像の幅を小さくすることができます*/

.st-eyecatch {
  margin: 20px 0 30px !important;
}


/*基本の文字サイズ ここから*/
p {
  font-size: 17px;
  line-height: 30px;
  margin-bottom: 25px;
}


/*サイトの背景画像 ここから*/
#wrapper-in {
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-1.png") !important;    
  background-repeat:
    repeat;
}


/*ヘッダー背景画像　ここから*/
#headbox-bg {
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-2.png") !important;    
  background-repeat:
    repeat;
}


/*ヘッダーメニュー背景画像　ここから*/
#st-menuwide {
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-3.png") !important;    
  background-repeat:
    repeat;
}


/*ヘッダーメニューマウスオーバー色　ここから*/
header .smanone ul.menu li a:hover {
  color:#8dbee7;
}


/*記事エリアの幅変更　ここから*/
/*PCのみ*/
@media print, screen and (min-width: 960px) {
 
main {
  padding: 30px 23px 30px !important;
}
}


/* コメント欄の開閉ボタン　ここから*/
#comments-toggle {
  display: block;
  margin-top: 10px;
  padding: 3px 0px;
  background-color: #8dbee7;
  border-radius: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center; 
}
#comments-toggle:hover {
    cursor: pointer;
    opacity: 0.8;
}


/*サムネイル付きページナビゲーション　ここから*/
#prev_next {
  width:100%;
  margin: 36px 0 24px;
  padding:0;
  display: table;
}
 
#prev_next  #prev, #prev_next  #next {
  width: 50%;
  padding:30px 10px 10px;
  border-top:#ccc 1px solid;
  border-bottom:#ccc 1px solid;
  display: table-cell;
  position:relative;
  text-decoration:none;
}
 
#prev_next #prev p, #prev_next #next p {
  font-size:90%;
  line-height:1.5;
}
 
#prev_next #prev:hover, #prev_next #next:hover {
  background-color: rgba(238,238,238,0.7);
}
 
#prev_next #prev {
border-right:#ccc 1px solid;
}
 
#prev_next #prev_title, #prev_next #next_title {
  font-size:90%;
  top:-1em;
  position:absolute; 
  border: 1px #ccc solid;
  background:#fff; 
  text-align: center;
  padding:3px;
  color:#666;
}
 
#prev_next #next_title {
  right:10px;
}
 
#prev_next #prev img, #prev_next #next img {
  margin:0 auto;
}
 
#prev_next #prev_no, #prev_next #next_no {
  width: 50%;
  height:140px;
  padding:0 10px;
  display: table-cell;
}
 
#prev_next #prev_no {
  border-right:#ccc 1px solid;
}
 
#prev_next_home {
  margin:0 auto;
  background-color: #ccc;
  border: solid 9px #fff;
  width: 100px;
  height:100px;
  -moz-border-radius: 100px;
  -webkit-border-radius: 100px;
  border-radius: 100px;
  box-shadow: 0 0 0 3px #ccc;
  -webkit-box-shadow: 0 0 0 3px #ccc;
  -moz-box-shadow: 0 0 0 3px #ccc;
  text-align:center;	
}
 
#prev_next_home:hover {
  background-color: #ddd;
}
 
#prev_next_home i {
  color:#fff;
  margin:10px auto ;
  font-size:60px;
}

/*PC・タブレット表示*/
@media print, screen and (min-width: 768px) {
 
#prev_next #prev, #prev_next #prev::before, #prev_next #prev::after,
#prev_next #next, #prev_next #next::before, #prev_next #next::after {	
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all .3s;
  transition: all .3s;
}
 
#prev_next #prev_title, #prev_next #next_title {
  padding:3px 10px;
}
 
#prev_next #next_title {
  right:10px;
}
 
#prev_next #prev img {
  float:left;
  margin-right:10px
}
 
#prev_next #next img {
  float:right;
  margin-left: 10px;
}
}
 
/*スマホ表示*/
@media print, screen and (max-width: 767px) {
 
#prev_next #prev img {
  float:left;
}
 
#prev_next #next img {
  float:right;
}
 
#prev_next #prev p, #prev_next #next p {
  clear: both;
  padding-top:10px;
}
 
#prev_next #next p {
  margin-left:10px;
}
}
/*サムネイル付きページナビゲーション　ここまで*/


/*フッター背景画像　ここから*/
#footer {
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-2.png") !important;    
  background-repeat:
    repeat;
}


/*サイドバーメニュー背景画像・マウスオーバー色　ここから*/
#side aside .st-pagelists ul li a {
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-3.png") !important;    
  background-repeat:
    repeat;
}

#side aside .st-pagelists .sub-menu a {
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-2.png") !important;    
  background-repeat:
    repeat;
}

#side aside .st-pagelists .sub-menu a:hover {
  color:#b22222;
}

#side aside .st-pagelists ul .sub-menu .sub-menu li {
  padding:0;
}

#side aside .st-pagelists .sub-menu .sub-menu a {
  padding-left:30px;
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/haikei-1.png") !important;    
  background-repeat:
    repeat;
}

#side aside .st-pagelists .sub-menu .sub-menu a:hover {
  color:#b22222;
}


/*サイドバー見出し背景画像　ここから*/
#side aside h4 {
  color:#666 !important;
  background-image:
    url("/wp-content/themes/affinger4-child-kanamii-c/images/side-midashi.png");    
  background-repeat:
    no-repeat;
  background-position:
    left;
  padding-top:20px;
  padding-bottom:10px;
  padding-left:20px;
  margin-bottom:15px;
  margin-left:-5px;
}


/*サイドバーランキング順位　ここから*/
.number {
  position:relative;
}
 
dl.number:before {
  counter-increment:ranking;
  content:counter(ranking);
  position:absolute;
  top:0;
  left:0;
  padding:2px 8px;
  background:#8dbee7;
  font-size:13px;
  font-weight:bold;
  color:#fff;
}
 
h4 {
  counter-reset:ranking;
}


/*この記事を書いた人 Webフォントカラー　ここから*/
.post .fa-user {
  color:#fff !important;
}


/*スマホ用ミドルメニューリンクカラー　ここから*/
.st-middle-menu .menu li a {
  color:#8dbee7 !important;
}