/*
Theme Name: sanwa
Description: サンワ電工のテーマ
Author: SPS
Version: 0.1
*/

/*
This style seet is present only in order to be recognized as a theme in WordPress.
*/

#anchor_top{
	position:fixed;
	display:none;
	right:20px;
	bottom:120px;
	z-index:100;
}
#anchor_top a{
	display:flex;
	width:40px;
	height:40px;
	background-color:#CCCCCC;
	color:#FFF;
	flex-wrap: wrap;
	justify-content: center;
	font-size:12px;
	line-height:10px;
	align-items: center;
	transition: .3s;
}

#anchor_top a:hover{
	text-decoration:none;
	opacity:0.8;
}

#anchor_top a strong{
	display:block;
	font-size:20px;
	line-height:15px;
	width:100%;
	text-align:center;
	
}

/* プリンタ　PCだけに適用するCSS */
@media print, screen and (min-width:640px){
/*PCでは消す*/
.pc-dN{
	display: none;
}

#wrap{
	min-width: 1200px;
}


}

/* スマホだけに適用するCSS */
@media only screen and (max-width:640px){

html {
	margin-top: 0px !important;
}

html #wpadminbar{
	display:none;
}


body{
	width:100%;
	min-width:380px;
	height:100%;
}

/*スマホでは消す*/
.sp-dN{
	display:none;
}

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

img.autow{
	width:auto;
}

#wrap{
	background-size:1200px auto;
}

#panel-btn{
	position:fixed;
	right:0px;
	top:0px;
	height:60px;
	width:60px;
	display:block;
	z-index:1500;
	color:#FFF;
	font-size:12px;
	border-left:solid 1px #FFF;
}

#anchor_top{
	bottom:62px;
	
}

#dbug_box{
	position:fixed;
	bottom:100px;
	right:0;
	z-index:1500;
	height:100px;
	width:100px;
	background:rgba(0, 74, 144, 0.90);
	color:#FFFFFF;
}

#panel-btn-icon:before, #panel-btn-icon:after,
#panel-btn-icon{
	display: block;
	position: absolute;
	top: 50%;
	left:20%;
	width: 100%;
	height: 3px;
	margin-top:-8px;
	background:#FFF;
	border-radius: 2px;
}

#panel-btn-icon{
	width: 60%;
}

#panel-btn-icon:before, #panel-btn-icon:after{
	content: "";
	left: 0;
	transition: .3s;
}
#panel-btn-icon{
	transition: .2s;
}

#panel-btn-icon:before{
	margin-top: -11px;
}

#panel-btn-icon:after{
	margin-top: 7px;
}

#panel-btn.close{
	transition: .5s;
}

.close #panel-btn-icon{
	background: transparent;
}

.close #panel-btn-icon:before, .close #panel-btn-icon:after{
	margin-top: -2px;
}
.close #panel-btn-icon:before{
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
}
.close #panel-btn-icon:after{
	transform: rotate(-135deg);
	-webkit-transform: rotate(-135deg);
}

#panel-btn .txt{
	position:absolute;
	bottom:2px;
	width:100%;
	text-align:center;
}

#global{
	background:rgba(251, 189, 30, 0.90);
	width:250px;
}

header{
	height:60px;
	background-size:1200px auto;
	z-index:100;
}

header section {
	width:auto;
	margin:0 5%;
}

header h1, header p {
	margin-left:0;
}

header p {
	font-size:10px;
}

#global section{
	position:relative;
	top:60px;
	overflow:auto;
	padding-bottom:80px;
}

#global{
	position:fixed;
	right:-250px;
	top:61px;
	height:100vh;
	z-index:20;
	transition: .5s;
}

#global ul{
	display:block;
}

#global.open{
	right:0px;
	transition: .5s;
}

#global ul li:first-child,
#global ul li{
	border-left:none;
	border-right:none;
	border-bottom:solid 1px #FFF;
	width:100%;
	text-align:center;
	font-size:18px;
	padding: 0;
}

#global ul li a{
	color:#FFF;
	padding:10px;
	display:block;
}

body.fixed{
	position: fixed;
	width: 100%;
	height: 100%;
}

footer section,
#content section{
	margin:0 5%;
}

#content{
	padding-top:40px;
}

#content.home{
	padding-top:0px;
}


}