/*
Theme Name: AFFINGER5 JET-Child
Template: affinger5
Description:EX対応（WING対応β）
Version: 20180302
*/

/*カテゴリID別に色を指定できます
例）IDが7の場合
.catname.st-catid7 {
	background:#ff0000;
	color:#fff;
}
*/

body {
	background:#fff;
}

/*トップの基本部分*/
.home .post {
	padding-bottom: 0px;
}

.home main {
	padding-left:10px;
	padding-right:10px;
	padding-bottom:0px;
}

aside .kanren {
	margin-top: 0;
	margin-bottom:20px;
	padding-top: 0;
}

/*メニュー*/
header .smanone ul.menu li li a{
  z-index:99999;
}

/*ブログカード風マガジン*/
#st-magazine .kanren {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
}

#st-magazine .kanren dl:last-child {
	margin-bottom: 0px;
	padding-bottom: 0px;
}


/*ブログカード風マガジン*/
#st-magazine:not(.st-magazine-k) .kanren .st-top-box:not(.st-magazine-infeed) dl {
	box-sizing:border-box;
	border:1px solid #ccc;
	background:#fff;
}

#st-magazine .kanren dl {
	width:100%;
}

#st-magazine .kanren dl p {
	font-size:75%;
	line-height:1.8;
	color:#757575;
}

#st-magazine .kanren dt {
	float: none!important;
	width: 100%!important;
	height:auto;
	overflow: hidden;
	position:relative;
}

#st-magazine .kanren dt img {
	width: 100%!important;
	border-radius:0!important;
}

#st-magazine .kanren .st-top-box:not(.st-fist-post) dt img {
	max-height: 180px;
	object-fit: cover;
}

#st-magazine .kanren dd {
	padding: 5px 20px 10px;
}

#st-magazine .kanren .clearfix dd p {
	line-height: 1.8;
}

#st-magazine .kanren .st-top-box {
	padding:5px 5px 10px;
	box-sizing:border-box;
	width:100%;
}

#st-magazine .kanren .st-top-box dl {
	margin-bottom:0;
	position: relative;
}

#st-magazine .kanren .st-top-box a.st-box-a {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height:100%;
	width: 100%;
	z-index:9999;
}

#st-magazine .kanren .st-top-box a:hover {
	text-decoration: none;
	background:#fff;
	opacity:0.3;
}

#st-magazine .kanren .st-top-box img.size-full,
#st-magazine .kanren .st-top-box img.size-large {
	margin-bottom:0;
}

/*一覧のカテゴリ*/
#st-magazine .kanren .st-magazine-cat,
#st-magazine .kanren .st-magazine-cat a { /*下カテゴリ*/
	font-size:85%;
	color:#757575;
	text-decoration:none;
}

#st-magazine .kanren .st-catgroup { /*上カテゴリ*/
	position:absolute;
	top:5px;
	left:5px;
}

/*ブログカード風マガジン最初の投稿*/
#st-magazine .kanren .st-fist-post {
	padding:10px 5px 5px;
	box-sizing:border-box;
	width:100%!important;
	height:auto;
	border:none;
}

#st-magazine .kanren .st-fist-post .st-top-time p{ /*投稿日*/
	position:absolute;
	bottom:0px;
	right:5px;
	padding:2px 7px;
	background-color: rgba(255,255,255,0.7);
	border-radius:3px 3px 0 0;
	font-size:75%;
	color:#757575;
}

/*WordPress Popular Posts連携*/

.st-wp-views {
	position: absolute;
	top: 5px;
	left: 5px;
	z-index:999;
	padding:5px 20px;
	color:#fff;
	text-align:center;
	background-color: rgba(0,0,0,0.7);
	border-radius:5px 0 5px 0;
}

.st-wp-views-limit { /* リミット数を超えた場合のデザイン */
	position: absolute;
	top: 5px;
	left: 5px;
	z-index:999;
	padding:5px 20px;
	color:#fff;
	text-align:center;
	background:#bcb72f!important;
	border-radius:5px 0 5px 0;
	font-size:90%;
}

.wpp-views {
	font-size:100%;
}
.wpp-text{
	font-size:70%;
	margin-left:5px;
}

.st-wp-viewbox .st-wp-views,
#side .st-wp-views {
	font-size:80%;
}

.st-wp-viewbox .st-wp-views .wpp-text,
#side .st-wp-views .wpp-text {
	font-size:50%;
}

/*投稿日*/
#st-magazine .st-top-time p{
	position:absolute;
	bottom:0px;
	right:5px;
	padding:2px 7px;
	background-color: rgba(255,255,255,0.7);
	border-radius:3px 3px 0 0;
	font-size:75%;
	color:#757575;
}

/*カテゴリ*/
#st-magazine .catname {
	position:relative;
	z-index:9999;
	font-size:90%;
	padding:7px 10px;
}

/*PickUp*/
.st-pick {
  	padding:3px 6px;
	margin-right:5px;
	background:#F9A825;
	color:#fff;
	font-size:60%;
  	border-radius:3px;
    vertical-align:middle;
}

/*タイトル*/
#st-magazine .kanren .st-top-box dd h3 {
	padding:5px 0;
	line-height:1.5;
}

/*ブログカード風マガジン（関連記事）*/
#st-magazine.st-magazine-k .kanren dl {
	border:none;
}

#st-magazine.st-magazine-k .kanren dd {
	padding-left:0;
	padding-right:0;
}

#st-magazine.st-magazine-k .kanren dt img {
	max-height: 150px;
	object-fit: cover;
}

/*おすすめ記事*/
.nowhits .pop-box {
	margin-top: 0;
}

/*media Queries タブレットサイズ（960px以下）
----------------------------------------------------*/
@media only screen and (max-width: 960x) {


/*-- ここまで --*/
}

/*media Queries タブレットサイズ（600px以上）
----------------------------------------------------*/
@media only screen and (min-width: 600px) {

	.home main {
	padding-left:20px;
	padding-right:20px;
	padding-bottom:0px;
	}

	#st-magazine .kanren .st-top-box {
		padding:5px;
		width:50%;
	}

	/*ブログカード風マガジン最初の投稿*/
	#st-magazine .kanren .st-top-box.st-fist-post dt {
		overflow: hidden;
		width: 100%;/* トリミングしたい枠の幅 */
		height: 350px;/* トリミングしたい枠の高さ */
		position: relative;
	}

	#st-magazine .kanren .st-top-box.st-fist-post dl:last-child {
		padding-bottom:0;
	}

	#st-magazine .kanren .st-top-box.st-fist-post dt img {
	  position: absolute;
 	 top: 50%;
  	left: 50%;
  	-webkit-transform: translate(-50%, -50%);
  	-ms-transform: translate(-50%, -50%);
  	transform: translate(-50%, -50%);
  	width: 100%;
 	 height: auto;

	}

	#st-magazine .kanren .st-fist-post dd {
		width: 100%;
		box-sizing:border-box;
		padding: 0!important;
		position:absolute;
		bottom:0;
		left:0px;
		z-index:999;
	}

	#st-magazine .kanren .st-fist-post dd .st-cards-content {
		padding:0px;
	}
	#st-magazine .kanren .st-fist-post dd .st-cards-content-in {
		background: rgba(255,255,255,0.7);
		padding:0 40px 20px;
	}

	#st-magazine .kanren .st-fist-post dd h3 {
		font-size:150%;
		margin-bottom:5px;
		line-height:1.5;
		padding-top:20px;
	}

	/*関連記事*/
	#st-magazine.st-magazine-k .kanren .st-top-box {
		width:50%;
	}
	.colum1 #st-magazine.st-magazine-k .kanren .st-top-box,
	.lp #st-magazine.st-magazine-k .kanren .st-top-box {
		width:33.33%;
	}

	#st-magazine.st-magazine-k .kanren {
		margin-left: -5px;
		margin-right: -5px;
	}

	/*閲覧数ウィジェット*/
	aside .kanren.pop-box.st-wpp-views-widgets {
		margin-top:20px;
	}

/*-- ここまで --*/
}

/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {

	#st-magazine .kanren {
	    padding: 0 10px;
	}

}

/*media Queries PCサイズ（960px以上）
----------------------------------------------------*/
@media print, screen and (min-width: 960px) {

	/*ブログカード風マガジン最初の投稿*/
	#st-magazine .kanren .st-top-box.st-fist-post dt {
		overflow: hidden;
		width: 100%;/* トリミングしたい枠の幅 */
		height: 400px;/* トリミングしたい枠の高さ */
		position: relative;
	}

	.home main {
		padding-left:0;
		padding-right:0;
		padding-bottom:0;
	}

	#st-magazine .kanren .st-fist-post {
		padding:0 5px 5px;
	}

	#st-magazine .kanren .st-top-box {
		width:49.99%;
	}

	.colum1 #st-magazine .kanren .st-top-box {
		width:33.33%;
	}

	.home aside .kanren {
		margin-top: 0;
		padding-top: 0px;
	}

	.home .colum1 main,
	.category .colum1 main {
		margin: 0 0 20px;
		padding: 0px;
	}

	/*記事エリアのボーダー*/
	.single main,
	.page main {
		border: 1px solid #ccc;
	}

/*-- ここまで --*/
}