@charset "utf-8";

/* =Reset default browser CSS.
Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {border: 0;font-family: inherit;font-size: 100%;font-style: inherit;font-weight: inherit;margin: 0;outline: 0;padding: 0;vertical-align: baseline;}
:focus {outline: 0; 

}

ol, ul {list-style: none;}
table {border-collapse: separate;border-spacing: 0;}
caption, th, td {font-weight: normal;text-align: left;}
blockquote:before, blockquote:after,q:before, q:after {content: "";}
blockquote, q {quotes: "" "";}
a img {border: 0;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}

html {
font-size: 62.5%;}

body{
font-family:"游明朝体", "Yu Mincho", "游ゴシック", YuGothic,  YuMincho, "Lucida Sans Unicode", "Lucida Grande", Arial, "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","ＭＳ Ｐゴシック",sans-serif;
  font-size: 18px;
  font-size: 1.8rem;
  color:#333;
-webkit-text-size-adjust: none;
background-image:url(images/body_back.png);
background-repeat:repeat;
}



/* リンク設定
------------------------------------------------------------*/
a{
margin:0;
padding:0;
text-decoration:none;
outline:0;
vertical-align:baseline;
background:transparent;
font-size:100%;
color:#222222;
}

a:hover, a:active{
outline: none;
color:#111111;
}

a img:hover{opacity:.8;}


/**** Clearfix ****/
nav#mainNav ul:after, nav#mainNav .inner:after, .newsTitle:after, .post:after,.inner:after,ul.news:after{content:""; display: table;clear:both;}
nav#mainNav ul,.newsTitle, .post, nav#mainNav .inner,ul.news{zoom: 1;}


/* フォーム
------------------------------------------------------------*/
input[type="text"], textarea{
vertical-align:middle;
max-width:90%;
line-height:30px;
height:30px;
padding:1px 5px;
border:1px solid #d4d4d7;
border-radius:3px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
font-size:100%;
color:#555;
background:#fcfcfc;
}

textarea{
height:auto;
line-height:1.5;
}

input[type="submit"],input[type="reset"],input[type="button"], p.readon a{
vertical-align:top;
padding:0 10px;
background: #111111;
background: -moz-linear-gradient(top, #111111 0%, #222222 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#111111), color-stop(100%,#222222));
background: -webkit-linear-gradient(top, #111111 0%,#222222 100%);
background: -o-linear-gradient(top, #111111 0%,#222222 100%);
background: linear-gradient(to bottom, #111111 0%,#222222 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#111111', endColorstr='#222222',GradientType=0 );
border:0;
border-radius:3px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
line-height:28px;
height:28px;
font-size:120%;
color:#fff;
}

input[type="submit"]:hover,input[type="reset"]:hover,input[type="button"]:hover,p.readon a:hover{
background: #222222;
background: -moz-linear-gradient(top, #222222 0%, #111111 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#222222), color-stop(100%,#111111));
background: -webkit-linear-gradient(top, #222222 0%,#111111 100%);
background: -o-linear-gradient(top, #222222 0%,#111111 100%);
background: linear-gradient(to bottom, #222222 0%,#111111 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#222222', endColorstr='#111111',GradientType=0 );
cursor:pointer;
}
*:first-child+html input[type="submit"]{padding:3px;}


/* レイアウト
------------------------------------------------------------*/
#wrapper,.inner{
margin:0 auto;
width:1000px;
}
.headinfo {
margin:0 auto 40px;
width:1000px;
position:relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
}
.headinfo h1 {
	padding-top:20px;
	}
@media only screen and (max-width: 767px) {
.headinfo h1 {
		order:2;
		}
	img.inquireboard {
		order:1;
		}	
}
/* SNS
----------------------------------*/


#header {
	}

/*#content{
float:right;
width:690px;
padding:20px 0 50px;
}*/

#toppage #content{
width:100%;
}

/*
#sidebar{
float:left;
width:220px;
padding:20px 0 50px;
}*/

#footer{
clear:both;
} 


/* ヘッダー
*****************************************************/
.bg{
background-color:#744E23;
}







/* トップページ　メイン画像
----------------------------------*/
#mainImg{
clear:both;
margin:30px 0;
line-height:0;
text-align:center;
z-index:0;
}


/* タイポグラフィ
*****************************************************/
div.fivebox {
	margin-bottom:80px;
	}
div#content h2.groupmidasi {
	margin:0 auto;
	font-size:28px;
	font-size:2.8rem;
	position:relative;
	text-align:center;
	}
@media only screen and (min-width: 768px) {
	
div#content h2.groupmidasi:before {		
	content: '';
    display: inline-block;
    width: 29px;
    height: 35px;
    vertical-align: middle;
    background-image:url(images/kagayakiicon.png);
	background-repeat:no-repeat;
    background-size: 29px 35px;
	position:absolute;
	left:25%;
	top:0;	
	}
div#content h2.groupmidasi:after {		
	content: '';
    display: inline-block;
    width: 29px;
    height: 35px;
    vertical-align: middle;
    background-image:url(images/kagayakiicon.png);
	background-repeat:no-repeat;
    background-size: 29px 35px;
	position:absolute;
	right:25%;
	top:0;	
	}	
}
div.topcourse {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
  margin:20px 0 50px 0;
  width:100%;
}
div.topcourse div.left,
div.topcourse div.center,
div.topcourse div.right {  
	margin:0 auto 25px;
   border-radius: 15px;        /* CSS3草案 */  
    -webkit-border-radius: 15px;    /* Safari,Google Chrome用 */  
    -moz-border-radius: 15px;   /* Firefox用 */
	color:#FFFFFF;
	width:100%;
	}
@media only screen and (max-width: 767px) {	
div.topcourse div.right { 
padding:0 0 10px 0; 
}
}
div.topcourse div.left h3,
div.topcourse div.center h3 {
	font-size:28px;
	font-size:2.8rem;
	text-align:center;
	font-weight:700;
	}
div.topcourse div.right h3 {
	font-size:20px;
	font-size:2rem;
	text-align:center;
	margin-bottom:9px;
	font-weight:700;
	}
div.topcourse div.left img,
div.topcourse div.center img,
div.topcourse div.right img {
	margin:0 auto 10px;
	display:block;
	} 
div.topcourse div.left p.caption,
div.topcourse div.center p.caption,
div.topcourse div.right p.caption {
	padding:10px 0 0 0 ;
	text-align:center;
	}
div.topcourse div.left p.honbun,
div.topcourse div.center p.honbun,
div.topcourse div.right p.honbun {
	padding: 0 8px 0 8px ;
	}	 
div.topcourse div.right p.honbun span {
	font-size:24px;
	font-size:2.4rem;
	}	
div.topcourse div.left {
	background-color:#004E2D;
	} 	
div.topcourse div.center {
	background-color:#462300;
	}
div.topcourse div.right{  
	background-color:#002E6A;
	}  	

div.topcourse div.left a {
	padding: 8px 0 20px 8px;
	font-size:24px;
	display:block;
	text-decoration:underline;
		}
div.topcourse div.center a {
	padding: 8px 0 20px 8px;
	font-size:24px;
	font-size:2.4rem;
	display:block;
	text-decoration:underline;
		}	
div.topcourse div.right a {
	padding: 8px 0 20px 8px;
	font-size:24px;
	font-size:2.4rem;
	display:block;
	text-decoration:underline;
	}
div.topcourse div.left a:hover,		
div.topcourse div.center a:hover,
div.topcourse div.right a:hover {
	text-decoration:none;
	}		
div.topcourse div.left a,
div.topcourse div.center a,
div.topcourse div.right a {
	color:#FFFFFF !important;
	} 							
@media only screen and (min-width: 768px) {
div.topcourse {
    -webkit-flex-wrap: nowrap;
    -moz-flex-wrap: nowrap;
    -ms-flex-wrap: none;
    flex-wrap: nowrap;
  }
div.topcourse div.left {
	margin: 0 0 25px 0;
	width:325px;
	} 	
div.topcourse div.center {
	margin: 0 0 25px 0;
	width:325px;
	}
div.topcourse div.right{  
	margin: 0 0 25px 0;
	width:325px;
	}  
}
div.gakuenchoubox {
	background-color:#FFC993;
	box-sizing:border-box;
	padding:15px 20px 15px 20px; 
   border-radius: 15px;        /* CSS3草案 */  
    -webkit-border-radius: 15px;    /* Safari,Google Chrome用 */  
    -moz-border-radius: 15px;   /* Firefox用 */
	}
div.gakuenchoubox div.flexboxone {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
	}
div.gakuenchoubox div.flexboxone div.left {
	}
div.gakuenchoubox div.flexboxone div.right {
	width:100%;
	}
div.gakuenchoubox div.flexboxone div.right h3 {
	font-size:26px;
	font-size:2.6rem;
	font-weight:700;
	}
div.gakuenchoubox div.flexboxone div.right p.one {
	margin-bottom:20px;
	}		
@media only screen and (min-width: 768px) {
div.gakuenchoubox div.flexboxone div.left {
	}
div.gakuenchoubox div.flexboxone div.right {
	width:740px;
	}
	}
	
div.newsandinfobox {
	box-sizing:border-box;
	padding:15px 20px 45px 20px; 
   border-radius: 15px;        /* CSS3草案 */  
    -webkit-border-radius: 15px;    /* Safari,Google Chrome用 */  
    -moz-border-radius: 15px;   /* Firefox用 */
	}
div.newsandinfobox div.flexboxone {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
	}
div.newsandinfobox div.flexboxone div.left {
	}
div.newsandinfobox div.flexboxone div.right {
	width:100%;
	}
div.newsandinfobox div.flexboxone div.right h3 {
	font-size:26px;
	font-size:2.6rem;
	font-weight:700;
	}
div.newsandinfobox div.flexboxone div.right p.one {
	margin-bottom:20px;
	}		
@media only screen and (min-width: 768px) {
div.newsandinfobox div.flexboxone div.left {
	}
div.newsandinfobox div.flexboxone div.right {
	width:680px;
	}
	}	
	
h2.kakegaetitle {
	font-size:24px;
	font-size:2.4rem;
	text-align:center;
	font-weight:700;
	margin:50px 0 20px 0;
	}	
div.photobox {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
  	}	
div.photobox img {
	margin-bottom:15px;
	}　	
img.aligncenter {
display: block;
margin:5px auto;
}

img.alignright, img.alignleft{
margin: 0 10px 15px 15px;
display:inline;
}

img.alignleft{margin:10px 15px 15px 10px;}

.alignright{float:right;}
.alignleft{float:left;}

#gallery-1 img{
border:1px solid #eaeaea !important;
padding:5px;
background:#fff;
}

#gallery-1 img:hover{background:#fffaef;}




/* お知らせ　
-------------*/
.newsTitle{
clear:both;
margin:0;
padding:7px 10px 7px 0;
font-size:110%;
border-bottom:1px solid #eee;

}

.newsTitle h3{
float:left;
font-weight:normal;
}

.newsTitle p{
float:right;
padding:0 0 0 10px;
font-size:80%;
background:url(images/arrow2.png) no-repeat 0 5px;
}

.news p{
clear:both;
padding-bottom:2px;
border-bottom:1px dashed #e4e4e4;
}

.news p:last-child{border:0;}

.news p a{
display:block;
padding:5px 0;
color:#333;
font-style:italic;
font:italic 110% "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.news a span{
color:#515151;
font:normal 90% Arial, 'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','ＭＳ Ｐゴシック',sans-serif;
}

.news span{padding-left:10px;}

.news a:hover span{color:#111111;}


/* トップページ */
#content .newsTitle h3{font-size:120%;}


/* フッター
*****************************************************/
#footer {
	margin:70px 0 0 0;
	}
#footer a{color:#333333;
text-decoration:underline;
}


div.footerbox {  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;

}
div.footerbox  div.left {
	width:100%;
}
div.footerbox  div.right {
	width:100%;
}
@media only screen and (min-width: 768px) {
div.footerbox  div.left {
	width:325px;
		}
div.footerbox  div.right {
	width:550px;
	}
	}
div.footerbox div.right div.syouzyouboxflex {
display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
  	} 
div.footerbox div.right div.syouzyouboxflex div.syouzyoubox {
	width:50%;
}
@media only screen and (min-width: 768px) {
div.footerbox div.right div.syouzyouboxflex div.syouzyoubox {
	width:130px;
}
}
img.footerinquireimage {
	margin:15px 0 10px 0;
	}
p.footerlink {
	text-align:center;
	margin:40px 0 30px 0;
	}

#footer h3{
padding:5px;
margin-bottom:10px;
font-size:120%;
border-bottom:1px solid #eee;
}

.contact p{
padding:3px 0 3px 32px;
margin-bottom:3px;
font-size:110%;
background:url(images/iconHome.png) no-repeat 4px 6px;
}

.contact p.mail{background-image:url(images/iconMail.png);}
.contact p.tel{background-image:url(images/iconTel.png);}
.contact p.fax{background-image:url(images/iconFax.png);}
.contact p.tw{background-image:url(images/iconTW.png);}
.contact p.fb{background-image:url(images/iconFB.png);}

#copyright{
color:#000000;
clear:both;
padding:10px 0;
text-align:center;
font-size:90%;
}


/* page navigation
------------------------------------------------------------*/
.pagenav{
clear:both;
width: 100%;
height: 30px;
margin: 5px 0 20px;
}

.prev{float:left}

.next{float:right;}

#pageLinks{
clear:both;
color:#4f4d4d;
text-align:center;
}


/* トップページ 最新記事4件
------------------------------------------------------------*/
ul#banners,ul.post{
width:960px;
margin-right:-20px;
padding-bottom:20px;
}

ul#banners li,ul.post li{
float:left;
width:220px;
margin-right:20px;
}

ul.post{
padding:0;
background:transparent;
border:0;
box-shadow:none;
}

ul.post img{
max-width:220px;
height:auto;
}

ul.post h3{
margin:10px 0;
padding-bottom:5px;
font-size:14px;
font-weight:normal;
color:#333;
border:0;
}

p.readon a{
padding:3px 10px;
font-size:95%;
}

ul#banners:after{content:""; display: table;clear:both;}
ul#banners{zoom: 1;}


/* メインメニュー　PC用
------------------------------------------------------------*/
@media only screen and (min-width: 1025px){
div.panel{
display:block !important;
}

a#menu{display:none;}
nav#mainNav {
	background-color:#744E23;
	margin:13px 0;
}
nav#mainNav ul{
clear:both;
position:relative;
z-index:200;
width:960px;
margin:0 auto;
}

nav#mainNav li{
float: left;
position: relative;
color:#FFFFFF;
padding:8px 0 8px 0;
}

nav#mainNav li a{
display: block;
_float:left;
line-height:120%;
font-size:120%;
color:#FFFFFF;
text-decoration:underline;
text-align:center;
border-left:1px solid #FFFFFF;
padding:15px 31px;
}
nav#mainNav li a.second{
	padding:15px 46px !important;
}
nav#mainNav li a.lastb{
border-right:1px solid #FFFFFF;
}
nav#mainNav li a span.englishword {
	font-size:70%;
	line-height:80% !important;
	} 
nav#mainNav li.current-menu-item a, nav#mainNav li a:hover, nav#mainNav li.current-menu-parent a{
color:#FFFFFF;
text-decoration:none;
}

nav#mainNav li.hassub.current-menu-item a,nav#mainNav li.hassub a:hover, nav#mainNav li.hassub.current-menu-parent a{
background:url(images/arrowDown.png) no-repeat 100% 50%;
}

nav#mainNav li.hassub li a,nav#mainNav li.hassub.current-menu-item li a, nav#mainNav li.hassub.current-menu-parent li a, nav#mainNav li.hassub li a:hover{background:none;}

nav#mainNav ul ul{
width:160px;
background:#fff;
}

nav#mainNav li ul{
display:none;
opacity:0;
}

nav#mainNav li:hover ul{
display: block;
position: absolute;
top:46px;
left:0;
z-index:500;
opacity:1;
}

nav#mainNav li li{
margin:0;
float: none;
width:160px;
}

nav#mainNav li li a, nav#mainNav li.current-menu-parent li a,nav#mainNav li.current-menu-item li a{
padding:0 0 0 5px;
height:35px;
font-size:95%;
line-height:35px;
}

nav#mainNav li.current-menu-item li a, nav#mainNav li.current-menu-parent li a{
color:#adadad;
border-bottom:1px solid #adadad;
}

nav#mainNav li li.current-menu-item a,nav#mainNav li li a:hover{
color:#222222;
border-color:#222222;
}

}


/* メインメニュー iPadサイズ以下から
------------------------------------------------------------*/
@media only screen and (max-width:1024px){
	nav#mainNav{
	clear:both;
	width:100%;
	margin:0 auto 10px;
	}
	
	nav#mainNav a.menu{
	width:100%;
	display:block;
	height:37px;
	line-height:37px;
	font-weight: bold;
	text-align:left;
	border-top:1px solid #d5d5d5;
	border-bottom:1px solid #d5d5d5;
  background: url(images/menuOpen.png) no-repeat 5px 8px;
	}
	
	nav#mainNav a#menu span{padding-left:35px;}
	
	nav#mainNav a.menuOpen{
	border-bottom:0;
	background: url(images/menuOpen.png) no-repeat 5px -34px;
	}
	
	nav#mainNav a#menu:hover{cursor:pointer;}
	
	nav .panel{
	display: none;
	width:100%;
	position: relative;
	right: 0;
	top:0;
	z-index: 1;
	}

	nav#mainNav ul{margin:0;padding:0;}

	nav#mainNav ul li{
	float: none;
	clear:both;
	width:100%;
	height:auto;
	line-height:1.2;
	}

	nav#mainNav ul li:first-child{border-top:1px solid #d5d5d5;}
	nav#mainNav ul li li:first-child{border-top:0;}

	nav#mainNav ul li a,nav#mainNav ul li.current-menu-item li a{
	display: block;
	padding:15px 10px;
	text-align:left;
	border-bottom:1px dashed #ccc;
	background:#fff;
	}
	
	nav#mainNav ul li:last-child a{border:0;}
	nav#mainNav ul li li:last-child a{border:0;}
	nav#mainNav ul li li:last-child a{border-bottom:1px dashed #ccc;}

 	nav#mainNav ul li a span{display:none;}
 
	nav#mainNav ul li.current-menu-item a,nav#mainNav ul li a:hover,nav#mainNav ul li.current-menu-item a,nav#mainNav ul li a:active, nav#mainNav ul li li.current-menu-item a, nav#mainNav ul li.current-menu-item li a:hover, nav#mainNav ul li.current-menu-item li a:active{
	background:#f6f6f6;
	}

	nav#mainNav ul li li{
	float:left;
	border:0;
	}

	nav#mainNav ul li li a, nav#mainNav ul li.current-menu-item li a, nav#mainNav ul li li.current-menu-item a{
  padding-left:40px;
	background:#fff url(images/sub1.png) no-repeat 20px 18px;
	}

	nav#mainNav ul li li.current-menu-item a,nav#mainNav ul li li a:hover, nav#mainNav ul li.current-menu-item li a:hover{
	background:#f6f6f6 url(images/sub1.png) no-repeat 20px -62px;
	}
	
	nav#mainNav ul li li:last-child a{background:#fff url(images/subLast.png) no-repeat 20px 20px;}
	nav#mainNav ul li li:last-child.current-menu-item a,nav#mainNav ul li li:last-child a:hover,nav#mainNav ul li.current-menu-item li:last-child a:hover{background:#f6f6f6 url(images/subLast.png) no-repeat 20px -65px;}
	
	nav div.panel{float:none;}
	
	#mainImg{margin-bottom:20px;}
}


/* 959px以下から 1カラム表示
------------------------------------------------------------*/
@media only screen and (max-width: 959px){
#header{width:100%}
.inner,#footer .boxWrap,#wrapper,.headinfo {width:96%;}
.headinfo div.logo,.headinfo div.sns {
	width:50%;
	margin:0 auto;	
	}
div.flexboxone div.left,div.flexboxone div.right,div.flexboxtwo div.left,div.flexboxtwo div.right,div.flexboxfour div.syouzyoubox,div.flexboxfive div.left,div.flexboxfive div.right
{width:100%;
	}
div.flexboxfive div.left img {
	display:block;
	margin:0 auto 15px;
	}
div.flexboxfive div.right img {
	display:block;
	margin:0 auto 15px;
	width:160px;
	height:auto;
	}
div#content h3 {
	font-size:23px;
	font-size:2.3rem;
	}	
div#content h4 {
	font-size:20px;
	font-size:2.0rem;
	}	
div.syouzyoubox,div.flexboxthree img {
	margin-bottom:10px;
	}
#mainImg img{width:96%;height:auto;}

#content, #sidebar{clear:both;width:95%;float:none;margin:0 auto;padding:10px 0;}
#sidebar{background:url(images/border.png) repeat-x;padding-top:30px;}

ul.post,ul#banners,#sidebar ul#banners{width:100%;display:table-row;margin:0;}
ul.post li,ul#banners li,#sidebar ul#banners li{float:left;width:23%;margin:0 1%;padding:0 0 20px;}
ul.post img,ul#banners li img,#sidebar ul#banners img{max-width:98%;height:auto;}

#calendar_wrap table{width:260px;margin:0;}

#footer .boxWrap{margin:0;padding:0;}
#footer .box{float:none;width:100%;margin:10px 0;}
img {
	max-width:100%;
	height:auto;
	margin:0 auto;
	display:block;
	}
}


/* 幅620px以下から
------------------------------------------------------------*/
@media only screen and (max-width: 620px){
	
	body {
		font-size:16px;
		font-size:1.6rem;
		}
div#content h3 {
	font-size:20px;
	font-size:2.0rem;
	}	
div#content h4 {
	font-size:18px;
	font-size:1.8rem;
	}			
ul.post li,ul#banners li,#sidebar ul#banners li{width:42%;margin:0 0 0 6%;}
ul.post li:nth-child(2n+1){clear:left;}
.post img{max-width:100%;height:auto;}
img.alignright, img.alignleft{display:block;margin:5px 2%;max-width:96%;height:auto;}
.alignright,.alignleft{float:none;}
div#content h3 {
	font-size:20px;
	font-size:2.0rem;
	}	

}
