/*==========================
ヘッダー
==========================*/
header {
position: fixed;
left: 0;
top:0;
width: 100%;
z-index: 1000;
transition: 0.4s ease;
transition-delay: 0.1s;
	background: #fff;
}

/* 下にスクロールするときはヘッダー消す */
.header-unpin{
transform: translateY(-100%);
}
.header-pin{
transform: translateY(0);
}

@media screen and (max-width: 699px) {
header {
background-size: 100% 1px;
}
}

header .inner_box {
max-width: 1080px;
margin: auto;
position: relative;
padding: 10px 0; 
}

/* h1テキスト */
/*
header h1 {
padding-bottom: 0.06rem;
padding-left: 0.1rem;
}

header h1 img {
height: 12px;
}
*/

/*ロゴ部分  */
header h1 {
	width: 320px;
	cursor: pointer;
	padding-bottom: 0.2rem;
	padding-top: 10px;
}

@media screen and (max-width: 900px) {
header h1 {
width: 240px;
cursor: pointer;
}
}

@media screen and (max-width: 800px) {
header h1 {
width: 200px;
cursor: pointer;
}
}

@media screen and (max-width: 699px) {
	header h1 {
		padding: 0.10rem 0.14rem 0.14rem;
		width: 130px;
	}
}
/*iphone5*/
@media screen and (max-width: 320px) {
header h1 {
width: 90px;
}
}

header h1 img {
display: block;
padding-top: 2px;
}

@media screen and (max-width: 699px) {
	header h1 img {
		padding-top: 0;
	}
}

/* 電話番号とお問い合わせ */
header .header_tel_contact {
position: absolute;
top: 10px;
right: 10px;
/*max-width: 380px;*/
max-width: 450px;
}

@media screen and (max-width: 900px) {
header .header_tel_contact {
max-width: 300px;
}
}

@media screen and (max-width: 699px) {
header .header_tel_contact {
right: 60px;
}
header .header_tel_contact img {
height: 59px;
}
}
/*iphone5*/
@media screen and (max-width: 320px) {
header .header_tel_contact img {
height: 45px;
}
}

header .header_tel_contact ul {
display: flex;
justify-content: space-between;
}

header .header_tel_contact li:first-child {
padding-top:10px;
padding-right: 10px;
}

header .header_tel_contact li:first-child img {
	width: 264px;
}

@media screen and (max-width: 699px) {
header .header_tel_contact li:first-child {
padding-top:0;
padding-right: 1px;
}
}

header .header_tel_contact li:nth-child(2) {
padding-right: 5px;
}

header .header_tel_contact li:nth-child(2) img {
	width: 85px;
}

@media screen and (max-width: 699px) {
header .header_tel_contact li:nth-child(2) {
padding-right: 1px;
}
}

header .header_tel_contact li:nth-child(3) img {
	width: 85px;
}

header nav {
position: absolute;
bottom:0;
right: 0;
width: 70%;
}

header nav ul {
display: flex;
justify-content: flex-end
}

header nav li {
padding-left: 3%;
padding-right: 3%;
padding-bottom:1px;
display: inline-block;
}

header nav li:last-child {
padding-right: 10px;
}

@media screen and (max-width: 900px) {
header nav li {
padding-bottom:2px;
}
}

@media screen and (max-width: 800px) {
header nav li {
padding-left: 0.13rem;
padding-right: 0.13rem;
}
}

header nav li a {
display: block;
border-bottom: 3px solid transparent;
}

header nav li.on a {
	border-bottom: 3px solid #eb7285;
}

header nav img {
max-height: 15px;
display: block;
padding-bottom: 10px;
}


/*============================================
スマホナビ
===========================================*/
#SP_navi_wrapper,
#SPnaviBtn {
display: none;
}
@media screen and (max-width: 699px) {
/*スマホボタン*/
#SPnaviBtn {
width: 60px;
height: 60px;
position: absolute;
text-align: center;
z-index: 1000;
top: 50%;
right: 0;
transform: translateY(-50%);
cursor: pointer;
display: block;
}
#SPmenuBars {
position: absolute;
left: 50%;
width: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.menu-trigger span {
position: absolute;
left: 0;
width: 100%;
height: 2px;
background-color: #000;
transition: all 0.3s ease;
}
.menu-trigger span:nth-of-type(1) {
top: 18px;
}
.menu-trigger span:nth-of-type(2) {
top: 28px;
}
.menu-trigger span:nth-of-type(3) {
top: 38px;
}
.menu-trigger.active span {
position: absolute;
left: 0;
width: 100%;
height: 2px;
background-color: #FFF;
}
.menu-trigger.active span:nth-of-type(1) {
-webkit-transform: translateY(10px) rotate(-45deg);
transform: translateY(10px) rotate(-45deg);
top: 18px;
}
.menu-trigger.active span:nth-of-type(2) {
opacity: 0;
}
.menu-trigger.active span:nth-of-type(3) {
-webkit-transform: translateY(-5px) rotate(45deg);
transform: translateY(-5px) rotate(45deg);
top: 33px;
}
#SPnaviBtn {
display: block;
}
}

#sp_navi {
background: #009FE8 url("../img/sp_menu_logo.svg") no-repeat center 85%;
background-size: 60%;
position: fixed;
top:0;
left: 0;
height: 100%;
width: 100%;
display: none;
}

#sp_navi ul {
width: 42%;
margin: auto;
padding-top: 10vh;
}

#sp_navi li {
line-height: 3;
}

#sp_navi li a i {
color: #FFF;
opacity: 0.5;
padding-right: 0.1rem;
}

#sp_navi li img {
height: 0.16rem;
}


/* ページの先頭に戻る */
#BackToTop {
display: none;
position: fixed;
bottom: 30px;
right: 30px;
z-index:10;
cursor:pointer;
}

@media screen and (max-width: 699px) {
#BackToTop {
bottom: 50px;
right: 16px;
z-index: 1010;
}
}

#BackToTop a {
display: block;
width: 80px;
height: 80px;
background:url(../img/back_to_top.png) no-repeat;
background-size: cover;
text-indent:-9999px;
transition: all  0.3s ease;
}

@media screen and (max-width: 699px) {
#BackToTop a {
width: 60px;
height: 60px;
}
}

#BackToTop a:hover {
opacity:0.7;
}
