body.custom-background {
    background: #e7e7e7;
}

/* page top */
#page-top a {
    background: rgba(0, 0, 0, 0.49);
    border: 1px solid gray;
    color: white;
    opacity: initial;
}
#page-top a:hover {
    color: white;
}

/* モバイルメニュー */
#s-navi dt.trigger .op {
    background: #aeb1ca;
    color: #0d2754;
}

/* 部分的にフォント指定 */
.sitename a, /* サイトタイトル */
nav.smanone a, /* グローバルメニュー項目 */
aside h4 /* サイドバー見出し*/
{
    font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", Hiragino Kaku Gothic Pro, "ＭＳ Ｐゴシック", sans-serif!important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
全体レイアウト変更
各パーツ分けして各々センタリング
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#wrapper-in {
    max-width: initial;
}
header,
#content-w,
footer,
#footer {
    margin: 0 auto!important;
    max-width: initial;
}
/* ------------------------------------
ヘッダー
------------------------------------ */
/* ヘッダー全体 */
header#st-headwide{
    background:#0d2754;
}


div#headbox-bg,/* ブログタイトル部 */
#st-headerbox,/* ヘッダ画像 */
#st-menuwide /* グローバルメニュー */
{
    max-width: 1060px;
    margin: 0 auto!important;
}
div#st-menubox{
    background:#1d3d80; 
}

/* ━━━━━━━━━━━━━━━━━━━━━━━ ここまで ━━━━━━━━━━━━━━━━━━━━━━━ */

/* ------------------------------------
コンテンツ領域
------------------------------------ */
/* サイドバー含めた全体 */
#wrapper-in {
    background: #f6f6f6;
    border: none;
}

/* 一覧領域*/
main{
	border: none;
}
body:not(.single):not(.page) main{
	padding: 0;
}
@media only screen and (min-width: 960px){

    #content-w {
        padding-top: 20px;
    }
}

/* ページネーション */
.st-pagelink {
	padding: 20px 10px;
}
/* ------------------------------------
サイト名
------------------------------------ */
#headbox {
    background: #0d2754;
    padding: 1em;
}
header h1.descr {
    color: white;
}
header .sitename{
    padding-top: 0;
}
header .sitename a {
    color: white;
    font-size: 28px;
    display:block;
    margin-top:1em;
}
@media print, screen and (min-width: 480px){
    header .sitename a:first-letter {
        color: #ffffff;
        font-size: 150%;
        padding: 0 .3em;
        background:#5b78c7;
        border-radius:200px;
        margin-right:5px;
    }
}


@media print, screen and (min-width: 960px){
    #header-l {
        text-align: left;
    }
}
/* ------------------------------------
グローバルメニュー
------------------------------------ */
/* メニューバー全体  */
@media only screen and (min-width: 960px){
    #st-menuwide {
        border: none;
    }
}
#st-menuwide {
    background: #1d3d80;
}
header .smanone ul.menu li a,
.acordion_tree ul.menu li a, 
.acordion_tree ul.menu li{
    color: #ffffff;
}
/* メニュー項目 */
@media only screen and (min-width: 960px){
    header .smanone ul.menu li, 
    header nav.st5 ul.menu li, 
    header #st-menuwide div.menu li, 
    header #st-menuwide nav.menu li {
        border-right-color: #5f70b5;
    }
}
@media print, screen and (min-width: 960px){
    header .smanone ul.menu li a:hover {
        color: #ffffff;
        background: #637bad;
        transition:.3s;
    }
}
/* ------------------------------------
フッター
------------------------------------ */
#footer {
    background: #0d2754;
    /* margin: 0 auto; */
}
#footer > *, 
#footer .copyr, 
#footer .copy{
        color: #b4b6d3!important;
}

#footer a{
        color: #ffffff!important;
}

#footer a:hover{
    text-decoration: underline;
}

#footer h3{
    font-size:140%;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
トップページレイアウト
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
article .kanren {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-top:0;
}
.home-post.post{
    padding: 0;
}
article .kanren dl{
    box-sizing: border-box;
    padding: 1em;
    padding: 16px;
}
article .kanren img{
    border-radius:0;
}

article .kanren dl dd h3,
article .kanren dl dd h3 a{
    line-height:1.3;
}

/* ------------------------------------
基本形
------------------------------------ */
/* 外枠 */
article .kanren dl{
}
/* 画像 */
article .kanren dl dt {
    width:135px;
}
article .kanren dl dt img {
    width:120px;
    height:120px;
    border-radius:5px;
}
/* タイトル、抜粋*/
article .kanren dl dd{

}
/* タイトル */
article .kanren dl dd h3{


}
article .kanren dl dd h3 a{
    font-size: 22px;
}
/* 抜粋 */
article .kanren dl:nth-child(n+12) dd .smanone2{

}
article .kanren dl:nth-child(n+12) dd .smanone2 p{

}

@media only screen and (max-width: 480px){
	/* 画像 */
	article .kanren dl dt {
		width:100px;
	}
	article .kanren dl dt img {
		width:90px;
		height:90px;
		border-radius:5px;
		margin-bottom: .25em;
	}
	article .kanren dl dd {
		padding-left: 105px;
	}
	/* タイトル */
	article .kanren dl dd h3{
		line-height:1.2;
	}
	article .kanren dl dd h3 a{
		font-size: 17px;
		line-height:1.2;
	}
	/* 抜粋 */
	article .kanren dl dd .smanone2{
		margin-left: -105px;

	}
	article .kanren dl dd .smanone2 p{

	}
}
/* ------------------------------------
グループ1 
------------------------------------ */
/* 1つ目 */
body.home:not(.paged) article .kanren dl:first-child dt {
    width:180px;
}
body.home:not(.paged) article .kanren dl:first-child dt img {
    width:160px;
    height:160px;
}
/* new */
body.home:not(.paged) article .kanren dl{
    position: relative;
}
body.home:not(.paged) article .kanren dl:first-child dt:before {
    content: "NEW";
    background: rgba(255, 0, 0, 0.54);
    color: #fff;
    font-size: 14px;
    left: 16px;
    top: 24px;
    line-height: 1;
    padding: 2px 7px;
    position: absolute;
    z-index: 10;
    font-family: Arial;
    border: 1px solid #be1111;
    text-align: center;
}

/* 外枠 */
body.home:not(.paged) article .kanren dl:first-child{
    background:black;
    padding: 24px 16px;
}
/* タイトル、抜粋*/
body.home:not(.paged) article .kanren dl:first-child dd{
    padding-left:180px;
}
/* タイトル */
body.home:not(.paged) article .kanren dl:first-child dd h3{
    padding: 0;
}
body.home:not(.paged) article .kanren dl:first-child dd h3 a{
    color:white;
    font-size: 22px;
}
/* 抜粋 */
body.home:not(.paged) article .kanren dl:first-child dd .smanone2{
    padding: 0;
    margin-left: 0;
}
body.home:not(.paged) article .kanren dl:first-child dd .smanone2 p{
    color:white;
    font-size: 15px;
    line-height: 1.4;
}

@media only screen and (max-width: 480px){
	body.home:not(.paged) article .kanren dl:first-child dt {
		width: 120px;
		float: none;
	}
	body.home:not(.paged) article .kanren dl:first-child dt img {
		width: 120px;
		height: 120px;
	}

	/* タイトル、抜粋*/
	body.home:not(.paged) article .kanren dl:first-child dd{
		padding-left: 0;
		padding-top: 1em;
	}
}

/* ------------------------------------
グループ２ 
------------------------------------ */
@media only screen and (min-width: 700px){
	body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) {
		width: 50%;
	}
}

/* new */
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dt:before {
    content: "NEW";
    background: rgba(255, 0, 0, 0.54);
    color: #fff;
    font-size: 11px;
    left: 16px;
    top: 30px;
    line-height: 1;
    padding: 2px 7px;
    position: absolute;
    z-index: 10;
    font-family: Arial;
    border: 1px solid #be1111;
    text-align: center;  

    width:4em;
    border-radius:100px
}

/* 外枠 */
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)){
    background:#e2e2e2;
}
/* 画像 */
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dt {
    width:130px;
}
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dt img {
    width:130px;
    height:130px;
    border-radius:100px;
}
/* タイトル、抜粋*/
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd{
    padding-left:145px;
}
/* タイトル */
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd h3{
    padding:0;
}
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd h3 a{
	font-size: 18px;
}
/* 抜粋 */
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd .smanone2{margin-left: 0;}
body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd .smanone2 p{
    margin-left:-145px;
    clear:both;
    padding-top: .5em;
    font-size: 14px;
    line-height: 1.4;
}
@media only screen and (max-width: 480px){
	/* 画像 */
	body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dt {
		width:100px;
	}
	body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dt img {
		width:100px;
		height:100px;
		border-radius:100px;
	}
	/* タイトル、抜粋*/
	body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd{
		padding-left:115px;

	}
	/* タイトル */
	body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd h3 a{
		font-size: 20px;
	}
	body.home:not(.paged) article .kanren dl:nth-child(n+2):not(:nth-child(n+6)) dd .smanone2 p{
		margin-left:-115px;
	}
}
/* ------------------------------------
グループ３ 
------------------------------------ */
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)){
    position:relative;
}
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dt:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    border-style: solid;
    border-width: 0px 0px 30px 40px;
    border-color:transparent #dadada  transparent;
}
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)){
    width: 33%;
}

/* 外枠 */
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)){
}

/* 画像 */
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dt {
    width: 100%;
    text-align: center;
    float: none;
    margin-bottom: .5em;
}
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dt img {
    width:130px;
    height:130px;
    border-radius:0px;
}
/* タイトル、抜粋*/
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dd{
    padding-left: 0;
    clear: both;
}
/* タイトル */
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dd h3{
    padding:0;
}
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dd h3 a{font-size: 18px;}
/* 抜粋 */
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dd .smanone2{
    margin-left:0;
    clear:both;
}
body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dd .smanone2 p{
    margin-left: 0;
    clear:both;
    padding-top: 0;
}

@media only screen and (max-width: 640px){
	body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)){
		width: 50%;
	}
	/* 画像 */
	body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dt {
	}
	body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dt img {
		width:120px;
		height:120px;
	}
	/* 飾り */
	body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)) dt:before{
		content:"";
		border: none;
	}
}
@media only screen and (max-width: 480px){
	body.home:not(.paged) article .kanren dl:nth-child(n+6):not(:nth-child(n+12)){
		width: 100%;
	}
}
/* ------------------------------------
グループ４
上記以外は特に指定なし
------------------------------------ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
サイドバー
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 各パーツ */
div#side .ad{
    margin-bottom:1em;
}
div#side .ad:last-child{
    margin-bottom:0em;
}

/* 見出し */
div#side .ad > p,
div#side aside h4 {
    display: block!important;
    border-left: 5px solid #153e8d;
    border-bottom: 1px solid #153e8d;
    padding: .2em .5em;
    font-size: 20px;
    color:black;
    font-weight:initial;
    margin-top:2em;
}
div#side .ad:first-child > p{
    margin-top:0;
}
/*------------------------------------
グーグル検索
------------------------------------ */
/* 外枠*/
#side .gsc-control-cse {
    border: none;
    padding: 0;
    margin-top: -2.5em;
    background: transparent;
}

/* テーブル罫線 */
#side .gsc-control-cse table tr td{
    border:none;
    padding: 0;

}

/* input box */
#side .gsc-control-cse table  div {
    height: auto;
}
#side .gsc-control-cse table td.gsc-input input#gsc-i-id1 {
    padding: .25em!important;
}
/* input キャンセル cell */
#side .gsc-control-cse table tr td.gsib_b{
    /* background: #cbcbcb; */
}
/* input キャンセル button */
#side .gsc-control-cse table div#gs_st50 {
    display:none;
}
#side .gsc-control-cse table div#gs_st50 .gsst_a .gscb_a{
}
/* search button セル */
#side .gsc-control-cse table tr td.gsc-search-button{
    background: rgb(0, 0, 0);
    text-align: center;
    width: 60px;
}
/* search button */
#side .gsc-control-cse input.gsc-search-button.gsc-search-button-v2 {
    height: 2.5em;
    width: 2.5em!important;
    border: none;
    background: #000000;
    margin:0;
    vertical-align: middle;
    margin-left: 5px;
    transition: .2s;
}
#side .gsc-control-cse input.gsc-search-button.gsc-search-button-v2:hover {
    /* background:red; */
    /* transition: .5s; */
}

/* search result */
.gs-webResult.gs-result a.gs-title:hover,
.gs-webResult.gs-result a.gs-title:hover b,
.gs-imageResult a.gs-title:hover,
.gs-imageResult a.gs-title:hover b {
    color: red;
}

/*------------------------------------
良く分からないbox
------------------------------------ */
.ad .freebox {
    background: white;
    border-top-color: #0d2754;
    border-top-width: 5px;
    /* padding-top: 5px; */
    border: none;
}
.ad .freebox > * {
    color: initial;
}
.ad .freebox .p-entry-f {
    background: black;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding:5px 1em
}


/*------------------------------------
人気記事表
------------------------------------ */
#side aside ul.wpp-list {

}
#side aside ul.wpp-list li{
	margin-bottom: 1em;
	border-bottom: 1px dotted gray;
	padding-bottom: 1em;
}
#side aside ul.wpp-list li img{
	border-radius: 100px;
}
#side aside ul.wpp-list li .wpp-post-title{
	margin-left: 120px;
	display: block;
}

/* ranking 表示 */
#side aside ul.wpp-list {
	counter-reset: wpp-ranking;  
}
#side aside ul.wpp-list li {
	position:relative;  
}  
#side aside ul.wpp-list li:before {
    counter-increment: wpp-ranking;
    content: "Rank " counter(wpp-ranking) "位";
    background: rgba(0, 0, 0, 0.54);
    color: #fff;
    font-size: 12px;
    left: 0;
    top: 10px;
    line-height: 1;
    padding: 4px 7px;
    position: absolute;
    z-index: 1;
    border-radius: 2px;
    font-family: Arial;
    border: none;
    text-align: center;
}
#side aside ul.wpp-list li:nth-child(n+1):not(:nth-child(n+4)):before{
	background:#cf0000;
}
/*------------------------------------
新着表示（NEW ENTRY）
------------------------------------ */
#side aside > .kanren {
	display:flex;
	flex-wrap:wrap;
	width:100%;
}
#side aside > .kanren dl{
    width:50%;
    box-sizing: border-box;
}
#side aside > .kanren dl{
    /* background: #ffffff; */
    padding:10px;
    text-align: center;
}
#side aside > .kanren dl:nth-child(4n),
#side aside > .kanren dl:nth-child(4n+1){
    /* background: #ffffff; */
}
/* サムネイル */
#side aside > .kanren dt{

}
#side aside > .kanren dt img{/* text-align: center; *//* margin: 0 auto; *//* float: none; *//* background: red; */}
/* 投稿日、タイトル部 */
#side aside > .kanren dd{padding: 0;clear: both;padding-top: .5em;}
/* 投稿日 */
#side aside > .kanren dd .blog_info.st-hide {
    
}
/* タイトル */
#side aside > .kanren dd h5 {
    line-height: 1.3;
    font-weight: initial;
    font-size: 14px;
}

/* 番号付け */  
#side aside > .kanren {
	counter-reset: newpost-ranking;  
}
#side aside > .kanren dt{
	position:relative;
	float: none;
	margin: 0 auto;
}  
#side aside > .kanren dt:before {
	counter-increment: newpost-ranking;
    content: "New " counter(newpost-ranking);
    background: rgba(0, 0, 0, 0.54);
    color: #fff;
    font-size: 12px;
    left: 0;
    top: 0px;
    line-height: 1;
    padding: 4px 10px;
    position: absolute;
    z-index: 1;
    border-radius: 2px;
    font-family: Arial;
    text-align: center;  
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
記事本文
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* カテゴリ */
.catname {
    background: rgba(255, 155, 119, 0);
    color: #2844bd;
}

/* 基本フォント */
p {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 1.75em;
	color:#444;
	/* font-size: 12px; */
}
@media print, screen and (min-width: 960px){
	p {
		font-size: 16px;
		line-height: 1.6;
		margin-bottom: 1.75em;
		color:#444
	}
}
@media only screen and (min-width: 600px){
	p, .post ul li {
		font-size: 18px;
		line-height: 1.6;
	}
}

/* 記事タイトル */
.post .entry-title {
    font-size: 28px;
    color: #303030;
    margin-bottom: 1em;
}

/*------------------------------------
目次
------------------------------------ */
div#toc_container {
    padding: 1em;
    min-width: 50%;
}

div#toc_container > ul ul li a{
    color:#507391;
}
div#toc_container > ul > li > ul{
    margin-bottom:.5em;
}

/*------------------------------------
見出し
------------------------------------ */
.entry-content > h2 {
    font-size: 26px;
    color: #243c7f;
    background: none;
    border: none;
    margin-top: 2em;
    margin-bottom: 1em;
    padding: 0!important;
}
.entry-content > h2:before,
.entry-content > h2:after{
    content:"";
    display:none;
}

.entry-content > h3:not(.rankh3):not(#reply-title) {
	font-size: 22px;
	margin: 1.75em 0 1.25em!important;
	color: #395d9d;
	border-bottom: 4px solid rgba(70, 121, 157, 0.37);
}
/* from my site */
.post h3:not(.rankh3):not(#reply-title){
	color: #395d9d;
}

.entry-content > h4:not(.rankh4):not(.point) {
	font-size: 20px;
	padding: .75em 1em!important;
	margin: 1.75em 0 1.25em!important;
	color: #ffffff;
	background:#a7a7a7;
}

.entry-content > h5 {
	font-size: 18px;
	margin: 1.75em 0 1.25em!important;
    color: #243c7f;
}

.entry-content > h6 {
	font-size: 16px;
	margin: 1.75em 0 1.25em!important;
    color: #243c7f;
}

/* ------------------------------------
リスト形式
------------------------------------ */
.entry-content > ul:not(#sitemap_list),
.entry-content > ol{
    border: 1px dotted #b4524d;
    padding: 1.5em 1.5em 1.5em 2.5em;
    background: #fffdfa;
    margin: 2em 0;
}
.entry-content > ul > li,
.entry-content > ol > li{
	margin-bottom:.25em;
	padding-bottom: 0;
}
.entry-content > ul > li:last-child,
.entry-content > ol > li:last-child{
	margin-bottom:0;   
}

.entry-content > ul > li ul,
.entry-content > ol > li ul{
	padding-bottom: 0;
	margin-bottom: 1em;
}
.entry-content > ul > li ul:last-child,
.entry-content > ol > li ul:last-child{
	margin-bottom: 0;
}
.entry-content > ul > li > ul > li,
.entry-content > ol > li > ul > li {
	list-style-type:circle;
}

/* 緑のボックス */
.green-box {
    border: 2px solid #33FFCC;
    padding: 3em;
}

/* ----------------------------------------
 背景色の変更
----------------------------------------- */
.wpcf7c-conf {
    background-color: #F5F5F5; /* 背景色 */
    color: black; /* 文字色 */
    border: 1px solid #AEAEAE; /* 周りの線: 太さ　線種 線の色 */
}
 
/* ----------------------------------------
 ボタンのデザイン変更
------------------------------------------*/
input.wpcf7c-btn-back, 
input.wpcf7-submit,
input.wpcf7-confirm {
    width: 8em; /* ボタンの横幅: 8文字分の大きさ */
    height: 2em; /* ボタンの高さ: 2文字分の高さ */
}
input.wpcf7-confirm, 
input.wpcf7-submit {
    background: green;	/* 背景色を緑に */
    color: #fff;	/* 文字色を白に */
    border-color: #9ABB9A #80B577 #80B577 #9ABB9A;
    /* 周りの線を緑系に */
}
input.wpcf7c-btn-back {
    background: lightgray;
}
 
/* -----------------------------------------
　戻るボタンと送信ボタンの間の余白を調整
-------------------------------------------*/
input.wpcf7c-btn-back {
    margin-right: 1em;
}