/*
Theme Name: y-denki-Theme
Theme URL:https://y-denki.co.jp/
Description: This is y-denki Theme
*/


@charset "utf-8";
/*************************************************************
 *
 * ユーザーエージェントあげる
 *
 *************************************************************/

*{
	box-sizing:border-box;
	font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro";
}
html{
	height:100%;
}
body{
	overflow-y:scroll;
	margin:0;
	background-color:#fff;
	line-height:120%;
	color:#000;
}
main{
	display:block;
	min-height:100%;
}
h1, h2, h3, h4, h5, p{
	margin:0;
	padding:0;
}
ul{
	margin:0;
	padding:0;
	list-style-type:none;
}
dl, dd{
	margin:0;
}
input[type=checkbox]{
	vertical-align:text-top;
}
textarea{
	resize:vertical;
}
ul {
	padding: 0px;
}
li{
	list-style-type: none;
	padding: 0px;
}
a {
	text-decoration: none;
	display:block;
}
p {
	font-size:18px;
	line-height: 200%;
}
button {
  background-color: #2f4f4f;
  color: #fff;
  padding: 5px 30px;
  text-decoration: none;
  font-size: 1em;
	margin-left:5px;
	margin-right:5px;
	overflow: hidden;
  position: relative;
  z-index: 1;
}
button::after {
	background: #d14d00;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
}
button:hover {
  color: #fff;
  opacity: 0.8;
}
button:hover::after {
  transform:scale(1,1)
}
.pc {
	display: block;
}
.sp {
	display: none;
}

/*************************************************************
 *
 * style.css
 *
 *************************************************************/

 /* ■■■■■■■■■■　PC CSS Document */

 
/*   ヘッダー    */
 #incHeaderWrap {
	width:100%;
	background-color: #fff;
 }
 #incHeader {
	width:95%;
	padding:10px;
	margin:auto;
 }
 .topLogo {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
 }
 .logo {
	width:200px;
 }
 .logo img {
	object-fit: cover;
	width: 100%;
 }
.askBtn {
	background-color: #2f4f4f;
	color:#fff;
}
.aboutBtn {
	background-color: #007a1c;
	color:#fff;
	width: 200px;
}
.aboutBtn {
	background-color: #007a1c;
	color:#fff;
	width: 200px;
}
.businessBtn {
	background-color: #1a007a;
	color:#fff;
	width: 200px;
}
 #globalMenu {
  margin-top:20px;
 }
 #globalMenu ul {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
 }
 #globalMenu ul li {
	width:calc(( 100% / 8 ) - 10px);
	line-height:2em;
	font-size:1vw;
	padding:5px;
	border-right:solid 1px #000;
	text-align: center;
 }
 #globalMenu ul li:first-child {
	border-left:solid 1px #000;
 }
 #globalMenu ul li:hover {
	background-color: #2f4f4f;
	color: #fff;
 }
 #globalMenu ul li a:hover {
  color: #fff;
 }

/*   フッター    */
#incFooterWrap {
  width: 100%;
	background-color: #006837;
	border-bottom: #1a007a solid 20px;
}
#incFooter {
	width:95%;
	padding:10px;
	margin:auto;
	display: flex;
	flex-direction: row;
	padding-bottom:150px;
}
#incFooter .logo {
  font-size: 12px;
	width:30%;
	color:#fff;
}
#incFooter .logo a {
  width: 200px;
}
#incFooter .logo a img {
  width: 100%;
}
#incFooter .footerMenu {
	width :100%;
  display: flex;
	flex-direction: row;
}
#incFooter .footerMenu ul {
	width:calc( 100% / 3 );
  display: flex;
	flex-direction: column;
	color:#fff;
}
#incFooter .footerMenu ul h4 {
  font-size: 12px;
}
#incFooter .footerMenu ul li {
	font-size: 18px;
	line-height: 200%;
	width:70%;
  display: flex;
	flex-direction: column;
}
#incFooter .footerMenu ul li a {
  color:#fff;
}

/*   ALL    */

/*===========
inview
===========*/

.fadeIn_left {
  opacity: 0;
  transform: translate(-50%, 0);
  transition: 2s;
}
.fadeIn_left.is-show {
  transform: translate(0, 0);
  opacity: 1;
}

.fadeIn_right {
  opacity: 0;
  transform: translate(50%, 0);
  transition: 2s;
}
.fadeIn_right.is-show {
  transform: translate(0, 0);
  opacity: 1;
}
.fadeIn_up {
  opacity: 0;
  transform: translate(0, 50%);
  transition: 2s;
}
.fadeIn_up.is-show {
  transform: translate(0, 0);
  opacity: 1;
}

figure#topImg {
	width: 100%;
}
figure#topImg img {
  object-fit: cover;
	width: 100%;
}
section.container {
  max-width:1200px;
	padding:20px;
	margin: auto;
	margin-bottom:100px;
}
section.wideContainer {
  max-width:100%;
	margin: auto;
	margin-bottom:100px;
}
h2 {
	text-align: center;
	margin:auto;
	margin-top:150px;
	padding-bottom:30px;
	border-bottom:solid 3px #333;
	font-size:64px;
	width:50%;
	font-family: "Noto Serif JP", serif;
}
h3 {
	text-align: center;
	margin:auto;
	margin-bottom:150px;
	font-size:16px;
	width: 300px;
	font-family: "Noto Serif JP", serif;
}
h4 {
	font-size:18px;
	margin:20px;
}
h5 {
	font-size:30px;
	line-height:150%;
	margin:auto;
	margin-bottom: 80px;
	background-color: #ccc;
	padding:10px;
	text-align: center;
	border:solid 1px;
	border-radius: 20px;
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}
h10 {
	font-size:1.7vw;
	font-weight: 600;
	margin:auto;
	text-align: center;
	line-height:150%;
	display: block;
}
.figImg {
	width: 100%;
	object-fit: cover;
}

/*   NEWSポスト    */
#posts a {
	display: inline-block;
}

/*   トップページ    */
.aboutTopimg {
	display: flex;
	flex-direction: row;
	width:100%;
}
.aboutTopimg div {
  width:50%;
}
.aboutTopimg div p {
  padding:20px;
	font-size:18px;
	line-height: 150%;
}
.aboutTopimg img {
  margin:0px;
	object-fit: cover;
	width:100%;
}
.topAboutTxt {
	display: flex;
	flex-direction: column;
}
.topAboutTxt button {
  margin:20px;
	width: 200px;
}
.businessTopimg {
	display: flex;
	flex-direction: row;
	width:100%;
	border:solid 1px #333;
}
.businessTopimg .topBusinessImg {
  width:30%;
}
.businessTopimg div p {
  padding:20px;
	font-size:18px;
	line-height: 150%;
}
.businessTopimg img {
  margin:10px;
	object-fit: cover;
	width:100%;
}
.topBusinessTxt {
	width:70%;
	display: flex;
	flex-direction: column;
}
.topBusinessTxt button {
  margin:20px;
	width: 200px;
}
.topBusinessList {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.businessList {
	width:calc(( 100% /3 ) - 20px );
	margin:10px;
	display: flex;
	flex-direction: column;
}
.businessList div {
	width:100%;
}
.businessList div img {
	width:100%;
	height:200px;
	object-fit: cover;
}
.businessList p {
	width:100%;
	line-height:400%;
	text-align: center;
}

/*   About    */

#presidentImg {
	display: flex;
	flex-direction: row;
}
#presidentImg div {
  width:30%;
	color:#fff;
	background-color: #000;
}
#presidentImg p {
  width:calc( 70% -40px );
	padding:20px;
}
#aboutList dl {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
#aboutList dl dh {
	border-bottom: solid 1px #333;
	width:calc( 30% - 20px );
	padding:30px 10px;
	font-size: 18px;
}
#aboutList dl dt {
	border-bottom: solid 1px #333;
	width:calc( 70% - 20px );
	padding:30px 10px;
	font-size: 18px;
}

/*   business    */
.businessCont p {
	margin:50px 0px;
	width:70%;
}
.businessCont h4 {
	font-size: 24px;
	margin-top:30px;
}
.biz {
	display: flex;
	flex-direction: row;
	justify-content: space-around
}
.biz div {
  width:20vw;
	margin:20px;
}


/*   お問い合わせ    */
#askForm {
  display: flex;
	flex-direction: column;
	width: 100%;
}
#askForm input {
	padding:5px;
	font-size:18px;
	width: 100%;
}
#askForm textarea {
	width:100%;
	font-size:18px;
}
#askForm .wpcf7-submit {
  background-color: #2f4f4f;
  color: #fff;
  padding: 5px 30px;
  text-decoration: none;
  font-size: 1em;
	margin-left:5px;
	margin-right:5px;
	width: 200px;
}
#askForm dd {
	width:100%;
	margin:20px;
}


/*   electrical    */
.electrical h4 {
	font-size:30px;
}
#electrical01 div {
	width:100%;
	height:350px;
}
#electrical01 img{
	object-fit: cover;
	width: 100%;
	height: 100%;
}
#electrical02 {
  display: flex;
	flex-direction: row;
	padding: 50px 10px;
}
#electrical02 div {
	width:450px;
	height:350px;
}
#electrical02 img{
	object-fit: cover;
	width: 100%;
	height: 100%;
}
#electrical02 p {
	width: 60%;
	padding:10px;
}
#electrical03 div {
  width:100%;
	object-fit: cover;
}
#electrical03 img {
  width: 100%;
	height:100%;
}

/*  vehicle  */

.vehicle > div {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
}
.vehicle figure {
	display: flex;
	flex-direction: column;
	width: 500px;
	height:400px;
}
.vehicle figure div {
	width: 100%;
	margin:10px;
}
.vehicle figure img {
	object-fit: cover;
	width: 100%;
  height: 100%;
}

/*  Refurbish  */
.refh5 {

}
.ref01 {
	width:100%;
	display: flex;
	flex-direction: column;
}
.ref01 div.image {
	width: 100%;
}
.ref01 div.image img {
	object-fit: cover;
	width: 100%;
}
.ref01 p {
	width: 100%;
	padding:10px;
}
.refBox {
	width:100%;
  border:1px solid #333;
  padding:30px;
}
.ref02 {
	width:100%;
	display: flex;
	flex-direction: row;
}
.ref02 div {
	width:50%;
}
.ref02 img {
	object-fit: cover;
	width: 100%;
}
.ref02 p {
	width: 50%;
	padding:10px;
}
.ref03 div {
	width:100%;
}
.ref03 img {
	object-fit: cover;
	width: 100%;
}
.ref04 {
	width:100%;
	display: flex;
	flex-direction: row;
}
.ref04 div {
	width:50%;
}
.ref04 img {
	object-fit: cover;
	width: 100%;
}
.ref04 p {
	width: 50%;
	padding:10px;
}

/*  recruite  */

.recruitImg {
	width:100%;
}
.recruitImg p {
	width:100%;
	margin:30px 0px;
}
.recruitImg div img {
	object-fit: cover;
	width:100%;
	height:100%;
}
.recruit table {
	width:100%;
}
.recruit table th {
	width:20%;
  padding:10px;
	line-height:1.5em;
}
.recruit table td {
	width:80%;
  padding:10px;
	line-height:1.5em; 
}




 /* ■■■■■■■■■■　PC CSS Document */
@media screen and (min-width:768px) and ( max-width:1080px) {

}


/* ■■■■■■■■■■　スマホ CSS Document */
@media screen and (max-width:768px){ 

.pc {
	display: none;
}
.sp {
	display: block;
}
h2 {
	width:100%;
	line-height: 100%;
}


/*============
nav
=============*/
nav {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all .5s;
  z-index: 3;
  opacity: 0;
}
.open nav {
  left: 0;
  opacity: 1;
}
nav .inner {
  padding: 25px;
}
nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .inner ul li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #333;
}
nav .inner ul li a {
  display: block;
  color: #333;
  font-size: 14px;
  padding: 1em;
  text-decoration: none;
  transition-duration: 0.2s;
}
nav .inner ul li a:hover {
  background: #e4e4e4;
}
@media screen and (max-width: 767px) {
  nav {
    left: -220px;
    width: 220px;
  }
}
/*============
.toggle_btn
=============*/
.toggle_btn {
  display: block;
  position: fixed;
  top: 30px;
  left: 30px;
  width: 30px;
  height: 30px;
  transition: all .5s;
  cursor: pointer;
  z-index: 3;
}
.open .toggle_btn {
  left: 330px;
}
.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  transition: all .5s;
}
.toggle_btn span:nth-child(1) {
  top: 4px;
}
.toggle_btn span:nth-child(2) {
  top: 14px;
}
.toggle_btn span:nth-child(3) {
  bottom: 4px;
}
.open .toggle_btn span {
  background-color: #fff;
}
.open .toggle_btn {
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}
.open .toggle_btn span:nth-child(1), .open .toggle_btn span:nth-child(3) {
  width: 16px;
}
.open .toggle_btn span:nth-child(1) {
  -webkit-transform: translate(-1px,4px) rotate(-45deg);
  transform: translate(-1px,4px) rotate(-45deg);
}
.open .toggle_btn span:nth-child(3) {
  -webkit-transform: translate(-1px,-4px) rotate(45deg);
  transform: translate(-1px,-4px) rotate(45deg);
}
@media screen and (max-width: 767px) {
  .open .toggle_btn {
    left: 250px;
  }
}
/*============
#mask
=============*/
#mask {
  display: none;
  transition: all .5s;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 2;
  cursor: pointer;
}
/*============
main
=============*/
main {
  width: 100%;
  padding: 50px 0;
  transition: all .5s;
}
.open main {
  margin-left: 300px;
}
.topLogoSP {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

	
.aboutTopimg {
	flex-direction: column;
	width:100%;
}
.aboutTopimg div {
  width:100%;
}
.businessList p {
	width:100%;
	line-height:100%;
	text-align: center;
}
.businessTopimg .topBusinessImg {
  width:90%;
	margin: auto;
}
.businessTopimg {
	flex-direction: column;
	width:100%;
}
.topBusinessTxt {
	width:100%;
}

/*   About    */
#presidentImg {
	display: flex;
	flex-direction: column;
}
#presidentImg div {
  width:90%;
}
#presidentImg p {
  width:90%;
	padding:20px;
}
#aboutList dl {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}
#aboutList dl dh {
  width:100%;
}
#aboutList dl dt {
	width: 100%;
}

/*   electrical    */
#electrical02 {
	flex-direction: column;
}
#electrical02 div {
	width:100%;
}
#electrical02 p {
	width: 100%;
}

/*  Business  */
.biz {
	flex-direction: column;
}
.biz div {
  width:100%;
	margin:0px;
}
.businessCont p {
	width:100%;
}

/*  Refurbish  */
.ref02 {
	flex-direction: column;
}
.ref02 div.image {
	width: 100%;
}
.ref02 p {
	width: 100%;
}
.ref04 {
	flex-direction: column;
}
.ref04 div {
	width: 100%;
}
.ref04 p {
	width: 100%;
}


}