/*
Theme Name: jjc2020
Theme URI:
Author: will-find
Author URI: 
Description: JJC 上越公務員・情報ビジネス専門学校 WP用テーマです。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain: jjc
*/

/* ==============================================================
   # 【下層】ブログ　.blog
============================================================== */

[id*="blog-"] .kv.common{
	background: url("common/imgs/shared/kv.jpg") no-repeat center;
	background-size: cover;
}

/* img ---------------------------------------*/
#contents div img{
	margin:20px 0;
	max-width: 100%;
	height: auto;
}

/*p img,
p img + p img{
	margin:0 0 15px 0 !important;
}*/

/* emoji ---------------------------------------*/
main img.emoji,
main img.sonet-icon{
	margin-left: 3px !important;
	margin-right: 3px !important;
	vertical-align: middle !important;
	margin:0 3px !important;
}

h3.err404{
	font-size:22px;
	font-weight:700;
	margin-bottom: 20px;
}

.youtube {
position: relative;
width: 100%;
padding-top: 56.25%;
}
.youtube iframe{
position: absolute;
top: 0;
right: 0;
width: 100% !important;
height: 100% !important;
}

.blog .breadcrumb{
	overflow-x: auto;
	flex-wrap: nowrap;
}

.blog .breadcrumb li{
	white-space: nowrap;
}

/* ==============================================================
   #ブログトップページ（新着一覧）/blog/
   ============================================================== */

.entry_list a,
.entry_list a:link,
.entry_list a:hover,
.entry_list a:visited{
	color:#333;
	text-decoration: none;
}

#entrybody a{
	text-decoration: underline;
}

.entry_list{
	margin-bottom:20px;
}

.entry_list .post-date{
	font-size:12px;
	
}
.entry_list .post-cat{
	font-size:12px;
	color: #fff;
	background-color: #e862a0;
	display: inline-block;
	margin-left: 10px;
	line-height: 1;
	padding: 5px 7px	
}

.entry_list .post-title{
	font-size:16px;
	font-weight: 900;
	margin:5px 0;
	padding:0;
	line-height: 1.5;
}

.entry_list .post-text{
	font-size:12px;
	margin:0;
	padding:0;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.entry_list{
		margin-bottom:25px;
	}	
	.entry_list .post-title{
		font-size:18px;
		margin:10px 0 8px 0;
	}
	.entry_list .post-text{
		font-size:13px;
	}	
	
}

@media (min-width: 992px) {
	.entry_list{
		margin-bottom:30px;
	}	
}

@media (min-width: 1200px) {
	.entry_list{
		margin-bottom:40px;
	}	
}

/* 写真のサイズ ----------------------------*/

.entry_list .thumbnail_box{
	width: 100%;
	height: 50vw;
	overflow: hidden;
	box-sizing: border-box;
	margin-bottom: 15px;
	background-color: #E7E7E7;
}

.entry_list .thumbnail_img {
	width: 100%;
	height: 50vw;
	display: block;
	background-position: center;
	background-size: cover;
	margin-bottom: 15px;
	transition-duration: 0.3s;
}

@media (min-width: 768px) {
	.entry_list .thumbnail_box,
	.entry_list .thumbnail_img{
		height: 25vw;
		max-height: 270px;
	}
}

@media (min-width: 992px) {
	.entry_list .thumbnail_box,
	.entry_list .thumbnail_img{
		height: 27vw;
		max-height: 300px;
	}
}

/* ==============================================================
   #ブログ記事ページ　/single/
   ============================================================== */

.entry{

}

.entry img{
	width: auto;
	max-width: 100%;
	height: auto;
}

.entry .date{
	font-weight: bold;
	font-size:13px;
}
.entry .category{
	margin-left: 10px;
	font-size:12px;
}
.entry .category a{
	color: #fff;
	padding: 7px 10px;
	display: inline-block;
	background-color: #e862a0;
	line-height: 1;
}
.entry h2{
	font-size:22px;
	font-weight: 900;
	line-height: 1.4;
	margin: 10px 0 40px 0;
}

@media (min-width: 768px) {
	.entry .date{
		font-size:16px;
	}	
	.entry .category{
		font-size:13px;
		margin-left: 15px;
	}	
	.entry h2{
		font-size:34px;
		margin: 20px 0 50px 0;
	}
}

@media (min-width: 1000px) {
	.entry .date{

	}	
	.entry .category{

	}	
	.entry h2{
		margin: 20px 0 60px 0;
	}
}


/* 下部ナビゲーション */

#f_pagenavi{
	margin-top:40px;
	border-top:1px solid #e5e5e5;
	border-bottom:1px solid #e5e5e5;
}

	#f_pagenavi .next,
	#f_pagenavi .prev{
		font-size: 12px;
		padding: 20px 0;
		line-height: 1.5;
		box-sizing: border-box;
	}

	#f_pagenavi .prev{
		width:100%;
		text-align: right;
	}
#f_pagenavi .next{
		border-bottom:1px dotted #e5e5e5;
		color:#111 !important;
	}

@media (min-width: 768px) {
	#f_pagenavi .paging{
		display:flex;
		flex-wrap: wrap;
		align-items: center;
	}
	#f_pagenavi .next,
	#f_pagenavi .prev{
		font-size: 14px;
		padding: 30px 15px 30px 0;
		box-sizing: border-box;
	}
	#f_pagenavi .next{
		width:50%;
		box-sizing: border-box;
		border-right:1px dotted #ddd;
	}
	#f_pagenavi .next{
		border-bottom:none;
	}

	.next + .prev{
		width:50% !important;
	}
}


.entry p{
	font-size:13px;
	line-height: 1.6;
	margin: 0;
}
.entry div{
	line-height: 1.6;
}
.entry p + p{
	margin-top:15px;
}

@media (min-width: 600px) {
	.entry p{
	font-size:14px;
	line-height: 1.6;
	margin: 0;
	}
	.entry div{
		line-height: 1.6;
	}	
	.entry p + p{
		margin-top:25px;
	}	
}

@media (min-width: 992px) {
	.entry p{
	font-size:15px;
	line-height: 1.7;
	margin: 0;
	}
	.entry div{
	line-height: 1.7;
	}
	.entry p + p{

	}	
}

@media (min-width: 1200px) {
	.entry p{
	font-size:16px;
	line-height: 1.7;
	margin: 0;
	}
	.entry div{
		line-height: 1.7;
	}
	.entry p + p{
		margin-top:30px;
	}	
}
	
[class*="wp-image"] {
	margin:15px 0;
}




/* ==============================================================
   #フッター　カテゴリーより探す
   ============================================================== */

#category-list a,
#category-list a:link,
#category-list a:visited{
	color: #222;
	text-decoration: none;
	transition: 0.2s linear;
	position: relative;
}

#category-list a:hover{
	text-decoration: underline;
}

#search_category{
	padding: 0;
	box-sizing: border-box;
	margin: 0 auto 30px auto;
}

#category-list {
	margin: 0 auto;
}

#category-list > li {
	padding: 0;
	margin: 0;
	position: relative;
}

#category-list a {
	border-bottom: #E3E4E5 solid 1px;
	display: block;
	font-size: 14px;
	padding: 15px;
}

#category-list .count-nam {
	display: block;
	line-height: 1;
	height: 1em;
	margin: auto;
	position: absolute;
	top: 0;
	right: 15px;
	bottom: 0;
}

@media screen and (min-width: 768px) {
	#category-list {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		
	}	
	#category-list > li {
		width: 48%;
	}
}

#category-list .cat-item{
	position: relative;
}
#category-list .children li a{
	padding-left:22px;
}

#category-list .children li a::before{
	content:"└ ";
/*	margin-right: 5px;*/
}

/* ==============================================================
   #フッター　月別一覧
   ============================================================== */

#search_month{
	padding: 0;
	box-sizing: border-box;
	margin: 0 auto 0 auto;
}

#search_month select{
	width:100%;
	/*max-width:300px;*/
	border:1px solid #ccc;
	border-radius: 4px;
	padding: 10px;
}


/* ==============================================================
   #ページ送り
   ============================================================== */

.page-numbers{
padding-top:30px;
	display: flex;
	flex-wrap: wrap;
	padding-left: 0;
	list-style: none;
	border-radius: 0.25rem;
}

.page-numbers li{
	display:inline-block;
	margin-right: 5px;
	margin-bottom: 10px;
}

span.page-numbers,
a.page-numbers{
	color: #999;
	background-color: #dcdcdc;
	padding:15px 18px;
	font-size: 12px;
	border-radius: 4px;
	transition: 0.2s linear;
}
span.page-numbers.current,
a.page-numbers.current{
	color: #aaa;
	background-color: #eee;
}


.page-numbers .next::before,
.page-numbers .next::after {
    border:none; /* class被りのため上書き */
}

a.page-numbers:hover{
	text-decoration: none;
	background-color: #bbb;
	color: #fff;
}

.oc-conv-area{
	margin:0 0 40px 0;
}


/* 記事の下部にあるお問合せ */

	.howto{
			padding-top:100px;
		}

	.howto h4{
		border-left:0;
		background-color: #def0f9;
		padding: 20px;
		border-radius: 2px;
	}

	.howto_box{
		border-bottom:1px dotted #ccc;
		padding-bottom: 15px;
		margin-bottom: 15px;
	}

	.howto_box p{
		margin-bottom: 0
	}

	.howto_title{
		font-size:15px;
		font-weight: 700;
		margin-bottom: 5px;
	}

	@media screen and (min-width: 576px) {
	.howto_title{
		margin-bottom: 10px;
	}							

	.howto_box{
		border-bottom:1px dotted #ccc;
		padding-bottom: 25px;
		margin-bottom: 25px;
	}							
	.howto_title{
		font-size:17px;
	}							
	}

	.blog_sns ul{
		display: flex;
		flex-wrap:nowrap;
		margin-top: 40px;
	}

	.blog_sns li{
		width: 25%;
		padding:0 2.5%;
		box-sizing: border-box;
		text-align: center;
	}
	.blog_sns li img{
		max-width: 160px;
		margin: 0 auto;
		width: 100%;
	}


#entrybody h1{
	font-size:30px;
	margin:20px 0;
	font-weight: 900;
}

#entrybody h2{
	font-size:26px;
	margin:15px 0;
	font-weight: 900;
}
#entrybody h3{
	font-size:22px;
	margin:10px 0 15px 0;
	font-weight: 900;
	border-bottom: 1px dotted #bbb;
	padding-bottom: 12px
}
#entrybody h4{
	font-size:20px;
	margin:10px 0;
	font-weight: 900;
}
#entrybody h5{
	font-size:18px;
	margin:5px 0;
	font-weight: 900;
	color: inherit;
}
#entrybody h6{
	font-size:16px;
	margin:5px 0;
	font-weight: 900;
}

#entrybody  p {
	margin:0 0  2em 0;}

#entrybody hr{
	padding:0;
	margin:30px 0;
	border:0;
	height:0;
	border-bottom:1px solid #D5CCC1;
}

@media screen and (min-width: 768px) {
	#entrybody hr{
		margin:40px 0;
	}		
}

@media screen and (min-width: 992px) {
	#entrybody hr{
		margin:60px 0;
	}		
}

#entrybody ul li{	list-style:disc;}
#entrybody ul
#entrybody ol li{	list-style:decimal;}

#entrybody ul,
#entrybody ol{
	margin:0 0 20px 0;
	padding:0;
}

#entrybody ul li,
#entrybody ol li{
	margin:0 0 0 22px;
	padding:0;
}

@media (min-width: 960px) {
	#entrybody ul li,
	#entrybody ol li{
		margin:0 0 0 24px;
	}
}

/* 固定ページにページナビゲーションをつける */

.nav-links{
	padding-top: 30px;
	display: flex;
	flex-wrap: wrap;
	padding-left: 0;
	list-style: none;
	border-radius: 0.25rem;
}

.nav-links a,
.nav-links span{
	text-align: center;
	display: inline-block;
	margin-right: 5px;
	margin-bottom: 10px;
	line-height: 1.7;
}
.nav-links a,
.nav-links span{
	color: #999;
	background-color: #dcdcdc;
	padding: 15px 18px;
	font-size: 12px;
	border-radius: 4px;
	transition: 0.2s linear;
}
.nav-links a.current {
    color: #aaa;
    background-color: #eee;
}



/* ==============================================================
   夏季教室開放バナー設置
   ============================================================== */


.law-bnr{
	width: 400px;
	position: fixed;
	bottom: 0.5vh;
	right: 100px;
	z-index: 999;
	animation: SlideIn 1.6s;
}

.law-bnr img{
	width: 400px;
}

.law-bnr-sp{
	display: none;
}

@keyframes SlideIn {
  0% {
    opacity: 0;
    transform: translateY(64px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.btn-administrative {
    color: #fff;
	background-color: #0074FF;
    border-radius: 50px;
    text-align: center;
    display: table;
    cursor: pointer;
	width: 1em;
	height: 1em;
	line-height: 1em;
	font-size: 1.5em;
	margin-top: -10px;
	margin-right: 5px;
	padding: 0.1em;
	font-weight: bold;
	
}
.btn-administrative:hover {
    cursor: pointer;
}

.box-administrative {
    border-radius: .3em;
}
 
.action-close {
    position: relative;
    margin-top: 2em;
}
.action-close .btn-administrative {
    position: absolute;
    right: 0;
}
.action-close .box-administrative {
    margin-bottom: 2em;
}
 
.add-control .checkbox {
    display: none;
}
 
.add-control .action-close #close:checked ~ .btn-administrative {
    display: none;
}
.add-control .action-close #close:checked ~ .box-administrative {
    display: none;
}


@media (max-width: 1000px) {
	.law-bnr{
		display: none;
	}
	.law-bnr-sp{
		display: block;
		width: calc(100vw - 100px);
	position: fixed;
	bottom: 52px;
	left: 0;
	z-index: 999;
	animation: SlideIn 1.6s;
	}
	.law-bnr-sp img{
		width: calc(100vw - 100px);
	}
	.add-control .action-close #close-sp:checked ~ .btn-administrative {
    display: none;
}
.add-control .action-close #close-sp:checked ~ .box-administrative {
    display: none;
}
	.btn-administrative{
		font-size: 1em;
		margin-top: -0.6em;
	}


}