@charset "utf-8";

/*
Theme Name: mgfactory	
Theme URL: https://www.mgfactory.co.jp/
Description: mgfactoryコーポレートサイト用
Version: 1.0
Author: mgfactory
Author URI: 作者のサイトURL
*/


/*　ボタン　
WP管理画面上では「btn」クラスを付与させる
-----------------------*/
.btn, 
div.wp-block-button.btn{
	width: 200px;
	margin: 30px auto 45px;
	border-radius: 10px;
	background: #5693ce;
	box-shadow: 0 1px 3px #333;
	border-bottom: 3px solid #225f9a;
}
.btn a, 
div.wp-block-button.btn__link{
	color: #fff;
	background-color: #5693ce !important;/* WPエディタでつく色を上書き */
	display: inline-block;
	width: 200px;
	border-radius: 10px;
	padding: 10px 0;
	font-size: 20px;
}
.btn:hover, 
div.wp-block-button.btn:hover{
	margin-top: 32px;
	border-bottom: 1px solid #225f9a;
	transition: .2s;
}

/*　フォント、共通パーツ
----------------------------*/
h2{
	display: inline-block;
	width: calc(100% - 60px);
	max-width: 640px;
	margin: 0 auto 35px;
	padding-top: 15px;/*ページ内リンクの余白用*/
	font-size: 30px;
	letter-spacing: .04em;
	line-height: 185%;
	font-family: "游明朝","Hiragino Mincho ProN",serif;
	font-weight: normal;
	position: relative;
}
h2 span.section__inner--sub{
	font-family: "游明朝","Hiragino Mincho ProN",serif;
	color: #777;
}
h2::before, h2::after{
	content:"";
	display: inline-block;
	width: 40px;
	height: 50px;
	position: absolute;
}
h2::before{
	top: 5px;
	left: -10px;
	z-index: 10;
	border-top: 2px solid #5693ce;
	border-left: 2px solid #5693ce;
}
h2::after{
	bottom: -15px;
	right: -10px;
	border-right: 2px solid #5693ce;
	border-bottom: 2px solid #5693ce;
}
h3{
	margin: 40px auto 35px;
	font-size: 26px;
	font-weight: bold;
	letter-spacing: .02em;
	color: #777;
	position: relative;
}
h3::after{
	content: "";
	display: block;
	width: 30px;
	height: 3px;
	border-radius: 1px;
	position: absolute;
	bottom: -35px;
	left: 0;
	right: 0;
	margin: 20px auto;
	background: #ddd;
}


@media screen and ( max-width: 800px ){/* スマホ＋ipad縦 */
	*{ font-size: .96em; }
	h2{
		font-size: 21px;
		line-height: 180%;
		letter-spacing: .03em;
	}
	h3{
		font-size: 18px;
	}
}


/*　全体
-----------------------*/
.container{
	width: 100%;
	overflow: hidden;
	text-align: center;
}

.wrapper{ 
	width: 85%;
	margin: 0 auto;
	max-width: 1400px;
}
@media screen and ( max-width: 660px ){
	.wrapper{
		width: 97%;
	}
}

.fadein{
    opacity : 0;
    transform : translate(0, 60px);
    transition : all 280ms;
}
.fadein.scrollin{
    opacity : 1;
    transform : translate(0, 0);
}
section .fadein:nth-of-type(2) {
    -moz-transition-delay: 400ms;
    -o-transition-delay: 400ms;
    -webkit-transition-delay: 400ms;
}


/*　ヘッダー、ナビ
--------------------*/
header{
	width: 100%;
	height: 65px;
	background: #fff;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	margin: auto;
	z-index: 1000;
	border-bottom: 6px solid #5693ce;
	padding: 10px 40px;
	box-sizing: border-box;
	flex-wrap: nowrap;
}
nav ul{
	width: 440px;
	height: 30px;
	flex-wrap: nowrap;
}
nav ul li{
	width: calc(100% / 5);
	min-width: 80px;
	font-size: 15px;
	text-align: center;
	position: relative;
}
nav ul li a{
	display: inline-block;
	padding: 5px;
	transition: .3s;
}
nav ul li a:hover{
	color: #5693ce;
	font-weight: bold;
}
nav .leftLogo{ display: none; }

nav ul.sub-menu{
	width: 120px;
	height: 0;
	background: rgba(255,255,255,.8);
	padding: 0;
	border-radius: 5px;
	overflow: hidden;
	transition: .4s;
	position: absolute;
	top: 25px;
	left: -10px;
	z-index: 5;
}
nav li ul.sub-menu li a{
	font-size: 11px;
	padding: 2px;
}
nav li:hover ul.sub-menu li{
	width: 100px;
	margin: 0 auto;
}
nav li:hover ul.sub-menu{
	width: 100px;
	height: auto;
	padding: 7px;
}


@media screen and ( min-width: 660.1px ){
	header .logo{ width: 140px; }
}

@media screen and ( max-width: 660px ){
	header .logo, header .glonav, nav ul{
		width: 100%;
		text-align: center;
	}
	header{
		height: 90px;
		padding: 10px 15px;
		border-bottom: 5px solid #5693ce;
		transform: .3s;
	}
	header .logo{
		width: 132px; 
		margin: 0 auto 5px;
		transition: .3s;
	}
	nav ul{ justify-content: center; }
	nav ul li{
		min-width: 55px;
		font-size: 13.6px;
	}

	header.scrolled{
		height: 45px;
	}
	header.scrolled > .logo{
		display: none;
	}
	header.scrolled nav{
		display: flex;
		justify-content: flex-start;
	}
	header.scrolled nav .menu-glonav{
		width: calc(100% - 30px);
	}
	header.scrolled nav ul li{		
		min-width: 55px;
		font-size: 12.6px;
	}
	header.scrolled nav .leftLogo{
		display: inline-block;
		width: 28px;
		margin-top: -2px;
	}
}

/* 背景動画
------------------*/
video.bgmv{
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	margin: auto;
	z-index: -1000;
	object-fit: cover;/*中身の動画サイズ*/
	overflow: hidden;
}

body:not(.page) .content{ background: rgba(32,32,32,.45); }/* ビデオの上の透かし */
.page .content{
	background: linear-gradient(rgba(32,32,32,.35) 280px, #fff 350px);
}


/*　セクション
-----------------------*/
section:not(.info){
	width: 100%;
	min-height: 100vh;
	padding-top: 60px;
}
section + section{
	margin-top: 50px;
}
.section__inner{
	width: 70%;
	max-width: 700px;
	text-align: center;
	padding: 50px 20px 15px;
	margin: 100px auto;
	background: rgba(255,255,255,.8);
}

@media screen and ( max-width: 660px ){
	.section__inner{ 
		width: 100%;
		margin: -30px auto 20px;
		box-sizing: border-box;
	}
}

/* FV
----------------*/
section.fv p{ color: #fff; }
.firstMsg{
	margin: 150px auto 45px;
	font-size: 36px;
	letter-spacing: .1em;
	line-height: 200%;
}
.arrowdown a{ 
	display: inline-block;
}
.arrowdown a:hover img{
	margin-top: 5px;
	transition: .3s; 
} 

@media screen and ( max-width: 660px ){
	.firstMsg{
		margin: 110px auto 45px;
		font-size: 26px;
	}
}



/*　お知らせ
-----------------------*/

@media screen and ( min-width: 660.1px ){
	section.info{
		width: 100%;
		background: #ddd;
	}
	section.info .section__inner{ background: none; }
}

@media screen and ( max-width: 660px ){
	section.info .section__inner{ background: #ddd; }
}

.news{
	width: 100%;/* section__innerと同じ */
	max-height: 240px;
	overflow-y: auto;
	background: #fff;
	margin: 30px auto;
	padding: 25px 30px 15px;
	box-sizing: border-box;
}
.news__child--date{
	font-weight: bold;
	color: #777;
}
.news__child--content{ 
	margin-bottom: 10px;
	text-decoration: underline;
}
.news__child--content:hover{ opacity: .4; }

@media screen and ( min-width: 800.1px ){
	.news__child{
		display: flex;
		margin: 10px auto;
	}
	.news__child--date{ 
		width: 160px;
		margin-right: 15px; 
	}
	.news__child--content{
		width: calc(100% - 175px);
		text-align: left;
	}
}

/* 最後
----------------------*/
section.last{
	height: 400px;
	min-height: 300px;
}
section.last p{
	color: #fff;
}


/* Table
-------------------------------*/
table{
	width: 85% !important;
	max-width: 600px;
	margin: 15px auto;
	border: 5px solid #ddd;
	background: #fff;
	padding: 20px 5% 10px;
	box-sizing: border-box;
	border-collapse: collapse;
}
table tr{
	border-bottom: 2px dotted #ddd;
	margin-bottom: 5px;
}
table th, table td{
	box-sizing: border-box;
}
table th{
	color: #777;
	padding: 12px 5px 10px;
	font-size: 13px;/* フォームのラベルと同じ */
	font-weight: bold;
}
table td{
	text-align: left;
	font-size: 12.5px;
}

@media screen and ( min-width: 800.1px ){
	table th{
		width: 120px;
		text-align: center;
	}
	table td{
		width: calc(100% - 120px);
		padding: 15px 5px;
	}
}
table + tr + th{ padding-top: 20px; }

@media screen and ( max-width: 800px ){
	table th, table td{
		width: 100%;
		display: block;
		text-align: center;
		padding: 0 3px 3px;
	}
	table th{ padding-top: 10px;}
	table td{padding-bottom: 6px;}
}

.gmap{
	width: 100%;
	height: 56vw;/* おおよそ16：9 */
	max-height: 350px;
	margin: 5px auto;
}


/*　footer
-----------------------*/
footer{
	background: #ddd;
}
.productArea{
	background: #5693ce;
	padding: 25px 0 10px;
	margin-bottom: 40px;
}
.productArea__child--ttl{
	font-weight: normal;
	color: #fff;
	font-size: 14px;
	text-decoration: underline;
}
.productArea__child--img{
	width: 100px;
	height: 100px;
	object-fit: contain;
	vertical-align: middle;
	margin-bottom: 10px;
}

@media screen and ( max-width: 660px ){
	.productArea__child {
		width: 100%;
		margin: 40px auto;
	}
}

.footerInner__info{
	width: 320px;
	padding-bottom: 25px;
}

.footerInner__sitemap > li{
	margin: 0 15px 30px;
}
.footerInner__sitemap li a{
	font-size: 15px;
	padding: 5px;
}
.footerInner__sitemap .sub-menu > li{ margin: 0 2px; }
.footerInner__sitemap .sub-menu a{
	font-size: 13px;
	color: #777;
	padding: 2px 5px 0;
}
span.footerTel{
	font-size: 24px;
	font-weight: bold;
	line-height: 150%;
	letter-spacing: .02em;
}

@media screen and ( min-width: 800.1px ){
	.footerInner__sitemap{
		width: calc(100% - 340px);
		justify-content: flex-end;
		padding-left: 15px;
	}
}
@media screen and ( max-width: 800px ){
	.footerInner{ justify-content: center; }
	.footerInner__sitemap{
		margin-top: 40px;
		justify-content: center;
	}
}

.copyright{
	width: 100%;
	margin-top: 20px;
	padding: 5px 0;
	background: #777;
}
.copyright__txt{
	color: #fff;
	font-size: 10.5px;
}
.copyright__txt a{
	text-decoration: underline;
	color: #fff;
}

/*　totop
-----------------------*/
.toTopBtn{
	width: 50px;
	height: 50px;
	position: fixed;
	bottom: 30px;
	right: 40px;
	background: rgba(86,147,206,0.8);/*5693ce*/
	box-shadow: 0 0.6px 2px #333;
	border-radius: 5px;
}
.toTopBtn i{
	font-size: 2.5em;
	color: #fff;
	padding: 5px 10px;
}
@media screen and ( max-width: 800px ){
	.copyright{
		padding: 5px 0 15px;
	}
	.toTopBtn{
		width: 40px;
		height: 40px;
		bottom: 25px;
		right: 15px;
	}
}

