/*======================================

	株式会社 丸美屋
	ヘッダーCSS

=======================================*/

/* ヘッダー共通 */
#header{
	position: relative;
	z-index: 9999;
	background: #fff;
	min-height: 100px;
	/* margin-bottom: 60px; */
}
#header::after{
	position: absolute;
	display: block;
	content: "";
	background: url(../img/common/line_bold.png);
	background-repeat: repeat-x;
	width: 100%;
	height: 12px;
	z-index: 10;
}
#header a{
	text-decoration: none;
}

#top_hd{
	position: relative;
	min-height: 60px;
	margin-top: 20px;
	margin-bottom: 30px;
}
#top_hd .ttl{
	position: absolute;
	vertical-align: middle;
	top: 15px;
}
#top_hd .inquiry{
	position: absolute;
	top: 0;
	right: 45px;
	max-width: 390px;
	width: 100%;
	text-align: right;
	font-weight: bold;
}
#top_hd .ttl > h1{
	max-width: 170px;
	width: 100%;
	float: left;
	display: block;
	vertical-align: middle;
	margin-right: 20px;
}
#top_hd .ttl > span{
	font-size: 75%;
	display: inline-block;
	padding-top: 16px;
}
#top_hd .inquiry > .tel{
	display: inline-block;
	font-size: 125%;
	margin-bottom: 3px;
	margin-right: 13px;
	vertical-align: -0.2em;
}
#top_hd .inquiry > .tel::before{
	content: url(../img/common/hd_tel.png);
	vertical-align: -0.2em;
	margin-right: 5px;
}
#top_hd .inquiry > .mail{
	display: inline-block;
	background-color: #ff9b00;
	font-size: 75%;
	padding: 7px 10px;
	border-radius: 10px;
}
#top_hd .inquiry > .mail::before{
	content: url(../img/common/hd_mail.png);
	vertical-align: -0.2em;
	margin-right: 5px;
}
#top_hd .inquiry > .mail a{
	color: #fff;
	font-family: "UD新ゴ M","UD Shin Go Medium";
}
#top_hd .inquiry > .mail:hover{
	opacity: .7;
	cursor: pointer;
}

#lower_menu{
	position: relative;
}
#menu{
	position: absolute;
	max-width: 282px;
	width: 100%;
	bottom: -50px;
	right: 45px;
	z-index: 9999;
}
#menu li{
	float: left;
	margin-right: 0;
}
#menu li a img{
	opacity: 1;
}


/* スマホメニュー */
#sp_menubtn{
	display: none;
	line-height: 1;
	position: absolute;
	top: 28px;
	right: 25px;
}
#sp_menu{
	display: none;
	background: #c30d23;
}
#sp_menu li{
	border-top: solid 1px #c30d23;
}
#sp_menu li a{
	display: block;
	background: #fff;
	padding: 15px 20px;
}


/* こんにゃく震え */
.fluffy {
	-webkit-animation: fluffy 0.8s linear 0s 1;
	animation: fluffy 0.8s linear 0s 1;
}
@-webkit-keyframes fluffy {
	0%   { -webkit-transform: scale(1.0, 1.0) translate(0%, 0%); }
	15%  { -webkit-transform: scale(0.9, 1.1) translate(0%, 2%); }
	30%  { -webkit-transform: scale(1.1, 0.8) translate(0%, 2%); }
	50%  { -webkit-transform: scale(0.9, 1.1) translate(0%, -2%); }
	70%  { -webkit-transform: scale(1.1, 0.9) translate(0%, 2%); }
	100% { -webkit-transform: scale(1.0, 1.0) translate(0%, 0%); }
}
@keyframes fluffy {
	0%   { transform: scale(1.0, 1.0) translate(0%, 0%); }
	15%  { transform: scale(0.9, 1.1) translate(0%, 2%); }
	30%  { transform: scale(1.1, 0.8) translate(0%, 2%); }
	50%  { transform: scale(0.9, 1.1) translate(0%, -2%); }
	70%  { transform: scale(1.1, 0.9) translate(0%, 2%); }
	100% { transform: scale(1.0, 1.0) translate(0%, 0%); }
}





/* ヘッダー トップページ用 */
#header.top_page::after{
	display: none;
	background: none;
}
.top_page > #top_hd .inquiry{
	top: 0;
	right: 45px;
	max-width: 200px;
	width: 100%;
}
.top_page > #top_hd .inquiry > .tel{
	margin-right: 0;
	vertical-align: 0;
}
.top_page > #top_hd .inquiry > .mail{
	background-color: #ff9b00;
}

.top_page #menu{
	max-width: 510px;
	bottom: -73px;
	left: 0;
	right: 0;
	margin: auto;
}
.top_page #menu li{
	margin-right: 30px;
}
.top_page #menu li:last-child{
	margin-right: 0;
}


#top_image{
	position: relative;
	text-align: center;
}
#top_image::before{
	position: absolute;
	display: block;
	content: "";
	background: url(../img/common/line_bold.png);
	background-repeat: repeat-x;
	width: 100%;
	height: 12px;
	z-index: 9999;
	top: -2px;
}
#top_image::after{
	position: absolute;
	display: block;
	content: "";
	background: url(../img/common/line_bold.png);
	background-repeat: repeat-x;
	width: 100%;
	height: 12px;
	bottom: -6px;
}
#top_image > .txt_area{
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
}
#top_image > .txt_area .txt{
	position: absolute;
	top: 50px;
	right: 40px;
}

.object-fit{
	max-width: 1920px;
	width: 100%;
	height: 554px;
	object-fit: cover;
	font-family: 'object-fit: cover;';
}




/* レスポンシブ */
@media screen and (max-width:1200px) {
	#top_image > .txt_area .txt{
		top: 40px;
		width: 220px;
	}
	.object-fit{ max-height: 460px; }
}

@media screen and (max-width:910px) {
	#top_hd .ttl > h1{ float: none; }
	#top_hd .ttl{ top: 0; }
	#top_hd .ttl > span { padding-top: 0; }
	.top_page > #top_hd .inquiry{ right: 25px; }
	.top_page #menu{
		max-width: 390px;
		bottom: -52px;
	}
	.top_page #menu li{ width: 110px; }
}

@media screen and (max-width:700px) {
	#top_hd .inquiry > .tel { display: block; }
	.lower_page #top_hd { min-height: 100px; }
	.lower_page #top_hd .ttl { top: 20px; }
	#top_image > .txt_area .txt{ width: 150px; }
	.object-fit { max-height: 350px; }
}

@media screen and (max-width:600px) {
	#header::after{ bottom: -10px; }
	#header.lower_page{
		min-height: 86px;
		margin-top: 10px;
		margin-bottom: 22px;
	}
	#top_hd {
		margin-top: 10px;
		margin-bottom: 26px;
	}
	#top_hd .ttl > h1{ float: none; }
	#top_hd .ttl{ top: 0; }
	#top_hd .ttl > span { padding-top: 0; }
	#sp_menubtn{ display: inline-block; }
	.inquiry{ display: none; }
	.lower_page #top_hd { min-height: 60px; }
	.lower_page #top_hd .ttl { top: 0; }
	#lower_menu li{ display: none; }
}

@media screen and (max-width:450px) {
	.top_page #menu {
		max-width: 450px;
		padding-left: 30px;
		padding-right: 30px;
		bottom: -13%;
	}
	.top_page #menu li {
		max-width: 110px;
		width: 28.2%;
		margin-right: 7.6%;
	}
}

@media screen and (max-width:400px) {
	#top_image > .txt_area .txt{
		top: 30px;
		right: 25px;
		width: 28%;
	}
	.object-fit { max-height: 250px; }
}
