@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;
}

body{
	font:14px/1.8 "Lucida Sans Unicode", "Lucida Grande", Arial, "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","ＭＳ Ｐゴシック",sans-serif;
	color:#000000;
	-webkit-text-size-adjust:none;
	background-color: #FFFFFF;
}


/* リンク設定
*****************************************************/

a{
margin:0;
padding:0;
text-decoration:none;
outline:0;
vertical-align:baseline;
background:transparent;
font-size:100%;
font-weight:bold;
color:#004ea2;
}

a:hover, a:active{
-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;
outline:none;
color:#83bce0;
}

/**** Clearfix ****/

nav .panel:after, #mainNav:after, .newsTitle:after, .bg:after,.post:after{
content:"";
display:table;
clear:both;
}

nav .panel,#mainNav,.newsTitle,.bg, .post{
	zoom:1;
}


/* レイアウト
*****************************************************/

#wrapper, .inner{
margin:0 auto;
width:1040px;
}

#header{
	overflow:hidden;
	background-image: url(images/h1_back.jpg);
	background-repeat: repeat-x;
}

#content{
	float:right;
	width:750px;
	padding-top: 30px;
	padding-right: 0;
	padding-bottom: 30px;
	padding-left: 0;
}

#sidebar{
	float:left;
	width:255px;
	padding-top: 30px;
	padding-right: 0;
	padding-bottom: 30px;
	padding-left: 0;
}

#footer{
clear:both;
padding:40px;
background:#d5d5d5;
} 


/* ヘッダー
*****************************************************/
#header h1{
	color: #FFFFFF;
}


#header h1,#header p{
float:left;
padding:3px 0;
font-size:80%;
font-weight:normal;
}

#header p{
	float:right;
}

#header h2{
	font-size:160%;
	font-weight:bold;
	text-align: center;
	padding-top: 20px;
	padding-right: 0;
	padding-bottom: 10px;
	padding-left: 0;
	clear: both;
	margin-top: 35px;
}

#header h2 img{
	width:auto;
}

#header ul{
	padding-top:5px;
	float:right;
	background-color: #CCFF66;
}

#header ul li{
font-weight:bold;
display:inline;
margin-left:5px;
font-size:90%;
}

#header ul li:before{
content:"・";
}

#header ul li a{
padding-left:5px;
color:#000000;
}

#header ul li a:hover{
color:#999999;
}

#header .header_info{
	float: right;
	width: 270px;
	clear: both;
	margin-top: -140px;
}
#header .inner.in2 {
}


#header .inner .header_info p span {
	font-size: 24px;
	font-weight: bold;
	font-family: Verdana, Geneva, sans-serif;
}
#header .inner .header_info p {
	line-height: 2em;
}




/* トップページ　メイン画像
*****************************************************/

#mainImg img{
width:100%;
height:auto;
}

.post{
margin:0 0 20px 0;
}


/* タイポグラフィ
*****************************************************/
/*
h2.title{
	clear:both;
	margin:30px 0 50px;
	font-size:180%;
	font-weight:bold;
	text-align:center;
	font-family: "ＭＳ Ｐ明朝", "MS PMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
	
	color: #010079;
    text-shadow: 0 0 5px white;
    padding: 0.3em 0.5em;
    background: -webkit-repeating-linear-gradient(-45deg, #cce7ff, #cce7ff 3px,#e9f4ff 3px, #e9f4ff 7px);
    background: repeating-linear-gradient(-45deg, #cce7ff, #cce7ff 3px,#e9f4ff 3px, #e9f4ff 7px);
	border-top: solid 2px #6cb4e4;
    border-bottom: solid 2px #6cb4e4;
	
}
*/
h2.title{
	position:relative;
	font:bold 22px/40px Arial, Helvetica, sans-serif;
	color:#666;
	background:#f3f3f3;
	z-index:1;
	margin-top: 0;
	margin-right: 0px;
	margin-left: 0px;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 75px;
	margin-bottom: 40px;
}
h2.title:before{
	content:" ";
	position:absolute;
	top:0;
	left:0;
	width:50px;
	height:50px;
	border-right:#fff solid 2px;
	background:#f60;
    background-image: -webkit-gradient(linear, left top, left bottom,
			from(			 rgba(255, 255, 255, 0.0)), 
			color-stop(0.20, rgba(255, 255, 255, 0.0)), 
			color-stop(0.20, rgba(255, 255, 255, 0.1)), 
			color-stop(0.40, rgba(255, 255, 255, 0.1)), 
			color-stop(0.40, rgba(255, 255, 255, 0.3)), 
			color-stop(0.60, rgba(255, 255, 255, 0.3)), 
			color-stop(0.60, rgba(255, 255, 255, 0.5)), 
			color-stop(0.80, rgba(255, 255, 255, 0.5)), 
			color-stop(0.80, rgba(255, 255, 255, 0.6)), 
			to(				 rgba(255, 255, 255, 0.6))
			);
	background-image: -webkit-linear-gradient(top,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
	background-image: -moz-linear-gradient(top,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
	background-image: -o-linear-gradient(top,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
	background-image: linear-gradient(to bottom,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
			z-index:-1;
}
h2.title:after{
	content:" ";
	position:absolute;
	top:0;
	left:0;
	width:50px;
	height:50px;
    background-image: -webkit-gradient(linear, left top, right top,
			from(			 rgba(255, 255, 255, 0.0)), 
			color-stop(0.20, rgba(255, 255, 255, 0.0)), 
			color-stop(0.20, rgba(255, 255, 255, 0.1)), 
			color-stop(0.40, rgba(255, 255, 255, 0.1)), 
			color-stop(0.40, rgba(255, 255, 255, 0.3)), 
			color-stop(0.60, rgba(255, 255, 255, 0.3)), 
			color-stop(0.60, rgba(255, 255, 255, 0.5)), 
			color-stop(0.80, rgba(255, 255, 255, 0.5)), 
			color-stop(0.80, rgba(255, 255, 255, 0.6)), 
			to(				 rgba(255, 255, 255, 0.6))
			);
	background-image: -webkit-linear-gradient(left,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
	background-image: -moz-linear-gradient(left,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
	background-image: -o-linear-gradient(left,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
	background-image: linear-gradient(to right,
			transparent 20%,
			rgba(255, 255, 255, 0.1) 20%, 
			rgba(255, 255, 255, 0.1) 40%, 
			rgba(255, 255, 255, 0.3) 40%, 
			rgba(255, 255, 255, 0.3) 60%, 
			rgba(255, 255, 255, 0.5) 60%, 
			rgba(255, 255, 255, 0.5) 80%, 
			rgba(255, 255, 255, 0.6) 80%, 
			rgba(255, 255, 255, 0.6) 100%
			);
			z-index:-1;
}

h2.title span{
	padding-bottom:10px;
	padding-left: 18px;
	font-size: 60%;
	font-weight: normal;
}

h2.first{
margin-top:0;
}

.post p{
padding-bottom:15px;
}

.post ul{
margin:10px 0 20px 20px;
}

.post ul li{
padding-left:5px;
list-style:disc;
}

.post ol{
margin:0 0 10px 30px;
}

.post ol li{
list-style:decimal;
}

.post h1{
margin:15px 0 25px;
padding:15px 0;
font-size:150%;
font-weight:bold;
border-bottom:3px solid #000000;
}

.post h2{
margin:15px 0 25px;
padding:15px 0;
font-size:130%;
font-weight:bold;
border-bottom:2px solid #000000;
}

.post h3{
	margin:15px 0 25px;
	padding:15px 0;
	font-size:130%;
	font-weight:bold;
	text-indent: 15px;
	border-left-width: 3px;
	border-left-style: solid;
	border-left-color: #f08300;
}

.post h4{
	margin:15px 0 10px;
	padding:15px 0;
	font-size:130%;
	font-weight:bold;
	color: #004ea2;
	border-left-width: 3px;
	border-left-style: solid;
	border-left-color: #004ea2;
	text-indent: 15px;
}

.post h5{
	font-size:110%;
	font-weight:bold;
	margin-top: 15px;
	margin-right: 0;
	margin-bottom: 10px;
	margin-left: 0;
	padding-top: 0px;
	padding-right: 0;
	padding-bottom: 0px;
	padding-left: 0;
	color: #444;
	display: flex;
	align-items: center;
}

.post h5:before, .post h5:after {
	content: "";
	flex-grow: 1;
	height: 1px;
	display: block;
}
.post h5:before {
	margin-right: .4em;
	background: linear-gradient(-90deg, #888, transparent);
}
.post h5:after {
	margin-left: .4em;
	background: linear-gradient(90deg, #888, transparent);
}
.post h6{
margin:15px 0 10px;
padding:15px 0;
font-size:110%;
font-weight:bold;
}

.post blockquote {
clear:both;
padding:10px 0 10px 25px;
margin:10px 0 25px 0px;
border-left:5px solid #e9e9e9;
}
 
.post blockquote p{
padding:5px 0;
}

.post table{
border:1px #cccccc solid;
border-collapse:collapse;
border-spacing:0;
margin:10px 0 30px;
width:100%;
}

.post table th{
padding:15px;
border:#cccccc solid;
border-width:0 0 1px 1px;
font-weight:bold;
}

.post table td{
padding:15px;
border:1px #cccccc solid;
border-width:0 0 1px 1px;
}

.post dt{
font-weight:bold;
}

.post dd{
padding-bottom:10px;
}

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

img.aligncenter {
display:block;
margin:5px auto 30px auto;
text-align:center;
}

img.alignright{
margin:5px 0 30px 30px;
}

img.alignleft{
margin:5px 30px 30px 0;
}

.alignright{
float:right;
}

.alignleft{
float:left;
}


/* サイドバー
*****************************************************/

.widget, .widgetInfo{
margin:0 0 20px;
}

#banners img{
max-width:255px;
height:auto;
padding-bottom:10px;
}

.widget h3{
clear:both;
margin:0 0 20px;
padding:5px 0;
font-size:130%;
font-weight:bold;
border-bottom:2px solid #000000;
}

.widget a{
font-weight: bold;
display:block;
padding:3px 0 3px 0;
color:#000000;
}

.widget a:hover{
color:#999999;
}

.newsTitle{
clear:both;
margin:0 0 20px;
padding:5px 0;
font-size:100%;
border-bottom:2px solid #000000;
}

.newsTitle h3{
font-size:130%;
float:left;
font-weight:bold;
}

.newsTitle p{
float:right;
padding:5px 5px 0 5px;
font-size:.8em;
}

.newsTitle a{
font-weight:bold;
color:#000000;
}

.newsTitle a:hover{
color:#999999;
}

.news p{
clear:both;
padding-bottom:2px;
}

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

.news p a{
font-weight: bold;
display:block;
padding:5px 0;
color:#000000;
}

.news p a:hover{
color:#999999;
}

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


/* フッター
*****************************************************/

#footer ul{
padding-bottom:10px;
}

#footer li{
display:inline-block;
vertical-align:text-top;
text-align:left;
margin-right:30px;
}

#footer li a{
font-weight:bold;
display:block;
padding:0 0 0 10px;
overflow:hidden;
color:#000000;
}

#footer li a:before{
content:"・";
}

#footer li a:hover{
color:#999999;
}

#footer li li{
display:block;
padding:0;
}

*:first-child+html #footer li{
display:inline;
}

*:first-child+html #footer ul ul,*:first-child+html #footer li li a,*:first-child+html #footer li li{
display:none;
}

#copyright{
	clear:both;
	padding:10px;
	text-align:center;
	font-size:75%;
	zoom:1;
	background:#F08300;
}


/* トップページ 最新記事3件
*****************************************************/

.thumbWrap{
width:770px;
margin:0 -20px 20px 0;
}

.thumbWrap li{
float:left;
width:236px;
margin:0 20px 40px 0;
background:none;
}

.thumbWrap img{
margin-bottom:15px;
}

ul.thumb h3{
margin-top:20px;
font-size:100%;
font-weight:bold;
text-align:center;
border:2px solid #000000;
}

ul.thumb h3 span{
display:block;
padding:7px;
color:#000000;
}

ul.thumb h3 span:hover{
color:#999999;
}


/* お問い合わせボタンのCSS　*/

.contact_bu{
	text-align: left;
	margin-top: 20px;
	margin-bottom: 20px;
}

.btn-animation-02 {
  display: inline-block;
  width: 85%;
  text-align: center;
  background-color: #004EA2;
  border: 2px solid #004EA2;
  font-size: 140%;
  color: #004EA2;
  text-decoration: none;
  font-weight: bold;
  padding: 24px 24px;
  border-radius: 4px;
  position: relative;
  
}

.btn-animation-02 span {
  position: relative;
  z-index: 1;
}

.btn-animation-02::before,
.btn-animation-02::after {
  content: "";
  display: block;
  background-color: #FFF;
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  transition: .2s;
}
.btn-animation-02::before {
  left: 0;
}
.btn-animation-02::after {
  right: 0;
}

.btn-animation-02:hover:before,
.btn-animation-02:hover:after {
  width: 0;
  background-color: #FFF;
}

.btn-animation-02:hover {
  color: #FFF;
}




/*********サービス紹介 flex_box *************/
.f-container{
	display:flex;
	flex-flow: row wrap;
}

.flexitem{
	width: 45%;
	height: 200px;
	text-align: center;
	color: #fff;
	border: 1px solid #ccc;
	margin-bottom: 20px;
	padding-top: 0px;
	padding-light: 20px;
	margin-right: 20px;
	display: block;
}
.flexitem .fx_in {
	background: -moz-linear-gradient(top, #004EA2, rgba(255, 255, 255, 0.3));
    background: -webkit-linear-gradient(top, #004EA2, rgba(255, 255, 255, 0.3));
    background: linear-gradient(to bottom, #004EA2, rgba(255, 255, 255, 0.3));
	padding: 15px 0 15px 0;
}

.flexitem span {
	font-size: 120%;
	font-weight: bold;
}


.flexitem.sale {
	background-image: url(images/banners/sale02.jpg);
	background-repeat: no-repeat;
	background-position:-60px -100px;
}

.flexitem.tire {
	background-image: url(images/banners/tire01.jpg);
	background-repeat: no-repeat;
	background-position:-120px -150px;
}


.flexitem.Painting {
	background-image: url(images/banners/service01.jpg);
	background-repeat: no-repeat;
	background-position:-80px -20px;
}
.flexitem.inspection {
	background-image: url(images/banners/inspection01.jpg);
	background-repeat: no-repeat;
	background-position:-120px -220px;
}


.flexitem.tuning {
	background-image: url(images/banners/vip03.jpg);
	background-repeat: no-repeat;
	background-size: cover;
}


/*********カスタム flex_box *************/

.flexitem_cu{
	width: 45%;
	height: auto;
	text-align: center;
	margin-bottom: 20px;
	padding-top: 0px;
	padding-light: 20px;
	margin-right: 20px;
	display: block;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}

.images-preview {
  position: relative;
  display: block;
}
.images-preview {
  position: relative;
  display: block;
}
.images-preview img {
  width: 100%;
  vertical-align: bottom;
  transition: .3s;
}
.images-preview img:not(:nth-child(1)) {
  position: absolute;
  top: 0;
  left: 0;
}
.images-preview img:nth-child(1) {
  position: relative;
  z-index: 4;
}
.images-preview img:nth-child(2) {
  z-index: 3;
}
.images-preview img:nth-child(3) {
  z-index: 2;
}
.images-preview img:nth-child(4) {
  z-index: 1;
}

.images-preview img:nth-child(1) {
  transform-origin: 0 0;
}
.images-preview img:nth-child(2) {
  transform-origin: 100% 0;
}
.images-preview img:nth-child(3) {
  transform-origin: 0 100%;
}
.images-preview img:nth-child(4) {
  transform-origin: 100% 100%;
}
.images-preview:hover img {
  transform: scale(.49);
}
.link_page {
	padding-top: 20px;
	padding-right: 20px;
	padding-bottom: 50px;
	padding-left: 20px;
}
.link_page li span {
	font-size: 90%;
	margin-left: 20px;
}



/*********お問い合わせ *************/

#sodan_tel {
	font-size: 150%;
	font-weight: bold;
}

/*-----RSS-------*/
#rss {
	width:auto;
	height:190px;
	padding: 15px;
	overflow: auto;
	margin-bottom: 30px;
	border: 1px solid #EEEEEE;
}

#rss hr {
	height:1px;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #CCC;
}
#rss .Interlinear {
	clear:both;
}
#rss img {
	padding-right: 8px;
	padding-bottom: 8px;
	padding-top: 0px;
	padding-left: 0px;
}
.rss_title {
	font-weight:bold;
	padding-bottom: 8px;
}
.rss_title a{
	color: #006;
	padding-bottom: 8px;
}
.rss_line {
	border-top:1px solid #999999;
	padding-bottom:8px;
	clear:both;
}



/* メインメニュー　PC用
*****************************************************/

@media only screen and (min-width:1025px){



nav div.panel{
display:block !important;
float:left;
}

a#menu{
display:none;
}

#mainNav{
clear:both;
position:relative;
z-index:200;
margin-bottom:15px;
}

#mainNav li{
float:left;
position:relative;
border-right:1px solid #b2b2b2;
}

#mainNav li:first-child{
border-left:1px solid #b2b2b2;
}

#mainNav li a{
	color:#000000;
	display:block;
	text-align:center;
	font-weight:bold;
	_float:left;
	height:40px;
	line-height:40px;
	padding-top: 10px;
	padding-right: 51px;
	padding-bottom: 0px;
	padding-left: 51px;
}

#mainNav li a span,#mainNav li a strong{
display:block;
line-height:1.4;
}

#mainNav li a span{
font-size:50%;
color:#9c9c9c;
}

#mainNav li.current-menu-item a, #mainNav li a:active, #mainNav li.current-menu-parent a{
background:#eeeeee;
}


/*　ボタンアニメーション　*/

#mainNav li a::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  content: '';
  background: #eeeeee;
  transform-origin: center center;
  transform: scale(0, 1);
  transition: transform .3s;
}

#mainNav li a:hover::before {
  transform: scale(1, 1);
}

/*　ボタンアニメーション -end-　*/

#mainNav ul ul{
width:160px;
}

#mainNav li ul{
display: none;
}

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

#mainNav li li{
margin:0;
float:none;
height:50px;
line-height:50px;
width:160px;
background:#f3f3f3;
border-right:0;
border-bottom:1px solid #dddddd;
opacity:0.9;
}

#mainNav li li:first-child{
border-left:0;
}

#mainNav li li a{
width:155px;
height:50px;
padding:0 0 0 5px;
line-height:50px;
font-size:95%;
text-align:left;
}

#mainNav li li a span{
padding:0 10px;
}

#mainNav li:hover ul li:last-child{
border:0;
}

}


/* iPadサイズ以下（1024px）からアコーディオンメニュー
*****************************************************/

@media only screen and (max-width:1024px){

#mainNav{
clear:both;
width:100%;
margin:0 auto;
}

#mainNav a.menu{
color:#000000;
width:100%;
display:block;
height:48px;
line-height:48px;
font-weight:bold;
text-align:left;
background:url(images/menuOpen.png) no-repeat 5px 11px;
}

#mainNav a#menu span{
padding-left:35px;
}

#mainNav a.menuOpen{
background:url(images/menuOpen.png) no-repeat 5px -31px;
}

#mainNav a#menu:hover{
cursor:pointer;
}

nav .panel{
display:none;
width:100%;
position:relative;
right:0;
top:0;
z-index:1;
}

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

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

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

#mainNav li li:first-child{
border-top:0;
}

#mainNav li a,#mainNav li.current-menu-item li a{
display:block;
padding:15px 10px;
text-align:left;
border-bottom:1px dashed #ccc;
color:#000000;
}

#mainNav li:last-child a{
border:0;
}

#mainNav li li:last-child a{
border:0;
}

#mainNav li li:last-child a{
border-bottom:1px dashed #cccccc;
}

#mainNav li a span{
display:none;
}
 
#mainNav li li{
float:left;
border:0;
}

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

#mainNav li li.current-menu-item a,#mainNav li li a:hover, #mainNav li.current-menu-item li a:hover{
background:url(images/sub1.png) no-repeat 20px -60px;
}

#mainNav li li:last-child a{
background:url(images/subLast.png) no-repeat 20px 20px;
}

#mainNav li li:last-child.current-menu-item a,#mainNav li li:last-child a:hover,#mainNav li.current-menu-item li:last-child a:hover{
background:url(images/subLast.png) no-repeat 20px -65px;
}

nav div.panel{
float:none;
}

#mainImg{
margin-bottom:20px;
}

}


/* iPadサイズ以下（1024px）から 1カラム表示に切り替え
*****************************************************/

@media only screen and (max-width:1024px){

#wrapper, #header, .inner{
width:100%;
}

#header h1, #header p{
padding:5px 10px;
}

#header h2{
padding:10px;
}

#header ul{
padding:20px 10px;
}

#header p{
	float: none;
}

#header .header_info{
	float: none;
	text-align: center;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
	width: inherit;
}

#mainNav ul, .thumbWrap{
margin:0 auto;
}

#mainNav ul ul{
padding:0;
}

nav div.panel{
float:none;
}

#mainImg img{
width:100%;
height:auto;
}

#content, #sidebar{
clear:both;
width:95%;
float:none;
margin:0 auto;
padding:10px 0;
}

#banners{
width:100%;
margin:30px 0 30px 0;
text-align:center;
}

#banners p{
display:inline;
}

#banners p img{
width:100%;
height:auto;
}

.widget_search{
text-align:center;
}

#footer{
margin:0;border:0;
text-align:center;
}

#footer ul{
text-align:center;
}

#footer li{
margin-right:20px;
}

.thumbWrap{
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
-ms-box-sizing:border-box;
box-sizing:border-box;
width:100%;
margin:0 auto;
padding-top:20px;
overflow:auto;
}

.thumbWrap ul.thumb li{
width:30%;
float:left;
margin:0 1% 0 2%;
}

.thumbWrap img{
width:100%;
height:auto;
}

}


/* 幅644px以下から ヘッダー等微調節
*****************************************************/

@media only screen and (max-width:644px){

#header{
text-align:center;
}

#header h1,#header p,#header h2,#header ul{
float:none;
}

#header h2{
padding:15px;
}

#header h2 img{
	width:80%;
	height:80%;
}

#header ul{
display:none;
}

/*--
#header .inner p{
display:none;
}
--*/


#headerInfo{
width:250px;
margin:0 auto;
}

img.alignright, img.alignleft{
display:block;
margin:5px auto 20px auto;
}

.alignright,.alignleft{
float:none;
}

#footer ul{
text-align:left;
padding:15px;
}

#footer ul ul{
padding:0;
}

.thumbWrap ul.thumb li{
width:95%;
margin-bottom:30px;
}

/*サービス紹介*/
.flexitem{
	width: 100%;
}

.flexitem.Painting {
	background-position:0px;
}

/*********カスタム flex_box *************/

.flexitem_cu{
	width: auto;

}

}
