/* CSS Document */




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

	header

============================================================================*/
#header{
	position: absolute;
	width:100%;
	display: flex;
	justify-content: space-between;
    z-index: 999;
}
@media screen and (max-width:640px) {
    #header{
        min-width:400px;
        height: 160px;
		overflow: hidden;
    }
}

#sp_header { display: none;}



/*------------------------------ ロゴ ------------------------------*/
#header_logo {
	position:relative;
	width: 381px;
	top: 30px;
	left: 30px;
}
#header_logo img {
	width: 100%;
	height: auto;
}
#header_logo .sub_logo {
	display: none;
}



/*------------------------------ h1見出しテキスト ------------------------------*/
#nav_area {
	width: calc( 100% - 381px - 310px );
	box-sizing: border-box;
	padding: 14px 20px;
}
header h1{
	margin-bottom: 16px;
	text-align: right;
	font-size: 10px;
	color: #959595;
	padding-right: 20px; /*nav li のmargin:20pxと連動*/
}




/*------------------------------ 住所と電話番号 ------------------------------*/
#header_info {
	width: 310px;
	height: 120px;
	font-family: "Shippori Mincho B1", serif;
	font-size: 13px;
}
#header_info dt {
	height: 38px;
	background: #a38c73;
	color: #FFF;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 1px;
}
#header_info dd a {
	height: 82px;
	background: #f2f2f2;
	color: #564533;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	align-content: center;
}
#header_info dd a p {
	margin-bottom: 13px;
	line-height: 1;
}






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

	nav

============================================================================*/
nav ul{
	text-align: right;
}
nav li {
	position:relative;
	display: inline-block;
	margin: 0 20px; /*ここを変えたらh1も変更*/
	text-align: center;
}
nav li a {
	position:relative;
	display: block;
	font-size: 16px;
	color: #444;
	font-family: "Shippori Mincho B1", serif;
}
nav li a em{
	display: block;
	font-size: 11px;
	color: #b69c80;
	font-family: "EB Garamond", serif;
}


/*------------------------------ ホバーのボーダー ------------------------------*/
nav li a::before {
    position: absolute;
	left: 0;
	right:0;
	bottom: -12px;
	width:100%;
	height: 1px;
	margin:auto;
	background-color: #91c0b7;
	transition: 0.15s  ease-out;
	transform: scaleX(0);
	content: "";
	z-index: 1;
}
nav li a:hover::before {
	transform: scaleX(1);
}





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

	ドロップダウンメニュー

============================================================================*/
nav li.has-child {
	font-size: 16px;
	color: #444;
	font-family: "Shippori Mincho B1", serif;
}
nav li.has-child em{
	display: block;
	font-size: 11px;
	color: #b69c80;
	font-family: "EB Garamond", serif;
}
nav li.has-child a::before {
	display: none;
}

/*矢印*/
nav ul li.has-child::before{
	content:'';
	position: absolute;
	left:50%;
	margin-left: -5px;
	bottom:-7px;
	width:5px;
	height:5px;
	border-top: 1px solid #12a498;
    border-right:1px solid #12a498;
    transform: rotate(135deg);
}

/*下の階層を持っているulの指定*/
nav li.has-child ul{
	position: absolute;
	left:50%;
	margin-left: -220%;
	z-index: 4;
	width:440%;
	visibility: hidden;
	opacity: 0;
	transition: all .3s;
	padding-top: 25px;
}
nav li.has-child ul li{
	width: 100%;
	margin-left: 0 !important;
}

/*hoverしたら表示*/
nav li.has-child:hover > ul,
nav li.has-child ul li:hover > ul,
nav li.has-child:active > ul,
nav li.has-child ul li:active > ul{
  visibility: visible;
  opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a{
	display: block;
	background: #edeae3;
	text-align: center;
	padding: 14px 0;
	line-height: 1.5;
	border-bottom:solid 1px rgba(255,255,255,1);
	transition: all .3s;
	color: #222;
	font-size: 15px;
}
nav li.has-child ul li:hover a{
	color: #FFF;
}
nav li.has-child ul li:last-child > a{
 border-bottom:none;
 }
nav li.has-child ul li a:hover{
	background:rgb(53, 143, 138);
}



/*------------------------------ PC＊スクロール後設定 ------------------------------*/
#header.HeightMin{
	position: fixed;
	height:85px;
	animation: DownAnime 0.5s forwards;
	background: #FFF;
}
@keyframes DownAnime{
  from {
  	opacity: 0;
	transform: translateY(-170px);
  }
  to {
  	opacity: 1;
	transform: translateY(0);
  }
}

/*----- ロゴ ------*/
#header.HeightMin #header_logo .main_logo{ display: none;}
#header.HeightMin #header_logo .sub_logo{ display: block;}
#header.HeightMin #header_logo { top: 16px;}


/*----- h1 -----*/
#header.HeightMin h1 { display: none;}


/*----- nav -----*/
#header.HeightMin nav {
	margin-top: 5px;
}


/*----- 住所と電話番号 -----*/
#header.HeightMin #header_info { height: inherit; background: red;}
#header.HeightMin #header_info dt { display: none;}
#header.HeightMin #header_info dd a { height: 85px;}







@media screen and (max-width:640px) {
	#header { display:none;}
	#sp_header { display: block;}



	/*------------------------------ h1 ------------------------------*/
	#sp_header h1{
		position:relative;
		top: 0;
		width:100%;
		box-sizing: border-box;
		font-size: 10px;
		color: #222;
		line-height: 25px;
		height: 25px;
		background: #edeae3;
		padding-left: 10px;
		text-align: left;
		letter-spacing: 0;
	}


	/*------------------------------ ロゴ ------------------------------*/
	#sp_header_logo {
		position: relative;
		width:70%;
		max-width: 240px;
		margin: 30px auto 0;
		z-index: 999;
	}
}




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

	navi

============================================================================*/
.sp_navi {
	display:block;
	position:absolute;
	top:0;
	right:0;
	width:120px;
	height:62px;
	z-index: 9998;
}
@media screen and (max-width:640px) {
    .sp_navi {
        position:fixed;
		left: auto;
		top: 10px;
		right: 10px;
    	width: 75px;
    	height: 75px;
		background: #FFF;
		border-radius: 5px;
		box-sizing: border-box;
		border: 1px solid #eee;
    }
}


.sp_navi::after {
	content: "MENU";
	position:absolute;
	top:55px;
	right:30px;
	font-family: "Zen Kaku Gothic Antique", sans-serif;
	font-size: 13px;
	color: #222;
	letter-spacing: 1.2px;
	z-index: 99998;
}
@media screen and (max-width:640px) {
    .sp_navi::after {
        top:44px;
        right:18px;
        font-size: 11px;
    }
}


.sp_navi dl dt {
	display:block;
	cursor:pointer;
	padding: 0 4%;
}
.sp_navi dl dd {
	position: fixed;
	display: none;
	background: rgba(163,149,115,.5);
	width: 100%;
	min-width: 100vw;
	height: 100%;
	min-height: 100vh;
	transition: all 0.5s ease-in-out;
	z-index: 9998;
}
@media screen and (max-width:780px) {.sp_navi dl dd{ min-height: auto; }}
@media screen and (max-width:640px) {
  .sp_navi dl dd {
      height: calc( 100% + 10px );
      min-height: calc( 100vh + 10px );
  }	
}
.sp_navi dl dd.active {
	display: block;
	animation: slidenav 0.5s forwards;
}
@keyframes slidenav{
  from { right: -100%; }
  to { right: 0%;  }
}



.sp_navi ul{
	position: absolute;
	right: -100%;
	width: 60%;
	height: 100%;
	padding: 50px 4% 150px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start;
	background: #f7f6f2;
	transition: all 0.5s ease-in-out;
	z-index: 9998;
	color:#333;
	font-size:16px;
	line-height: 5;
	
	overflow: scroll;
}
.sp_navi ul.active {
	right: 0%;
	animation: slidenav 0.5s forwards;
}
/*横幅が狭い時*/
@media screen and (max-width:1500px) {.sp_navi ul{ width: 70%; }}
@media screen and (max-width:1300px) {.sp_navi ul{ width: 80%; }}
@media screen and (max-width:1100px) {.sp_navi ul{ width: 90%; font-size: 15px; }}
@media screen and (max-width:900px) {.sp_navi ul{ width: 98%; }}
@media screen and (max-width:780px) {.sp_navi ul{ width: 98%; display: block; padding-bottom: 100px; }}




.sp_navi ul li {
	width:48%;
	border-bottom: 1px solid #FFF;
}
@media screen and (max-width:780px) {
    .sp_navi ul li {
        width:100%;
    }
}
@media screen and (max-width:640px) {
    .sp_navi dl dd {
        top: -10px;
    }
}

.sp_navi ul li a {
	position: relative;
	display: block;
	padding-left: 30px;
	font-family: "Zen Kaku Gothic Antique", sans-serif;
	transition: 0.3s ease-out;
}
.sp_navi ul li a::before {
	position: absolute;
	content: "";
	background: url("../images/icon06.png")no-repeat;
	background-size: 20px 20px;
	width: 20px; height: 20px;
	top: 30px; left: 0;
}
.sp_navi ul li a:hover {
	padding-left: 40px;
}
@media screen and (max-width:800px) {
}

/*１つ目のliはロゴ
.sp_navi ul li:first-of-type {
	width:100%;
	height: 81px;
	margin-bottom: 40px;
	border-bottom: 0;
	text-align: center;
}
.sp_navi ul li:first-of-type a {
	padding-left: 0;
}
.sp_navi ul li:first-of-type a::before {
	display: none;
}
.sp_navi ul li:first-of-type a:hover {
	padding-left: 0;
}
@media screen and (max-width:640px) {
    .sp_navi ul li:first-of-type {
        width:100%;
        height: auto;
        margin-bottom: 20px;
        border-bottom: 0;
    }
    .sp_navi ul li:first-of-type img {
		width: 187px;
		height: auto;
    }
}*/



/*--------------------------- ハンバーガーボタン ---------------------------*/
.sp_navi dt a {
    display: block;
    width: 46px;
    height:46px;
    position: absolute;
    top:20px;
    right: 30px;
    z-index: 9999999;
}
.sp_navi dt a span {
    display: block;
    background: #666;
    width: 32px;
    height: 1px;
    position: absolute;
    left: 9px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
}
.sp_navi dt a span:first-child {
    top: 14px;
}
.sp_navi dt a span:nth-child(2) {
    margin-top: -1px;
    top: 50%;
}
.sp_navi dt a span:last-child {
    bottom: 14px;
}
.sp_navi dt a.active span:first-child {
    -webkit-transform: translateY(8px) rotate(45deg);
    -moz-transform: translateY(8px) rotate(45deg);
    -ms-transform: translateY(8px) rotate(45deg);
    transform: translateY(8px) rotate(45deg);
}
.sp_navi dt a.active span:nth-child(2) {
    opacity: 0;
}
.sp_navi dt a.active span:last-child {
    -webkit-transform: translateY(-8px) rotate(-45deg);
    -moz-transform: translateY(-8px) rotate(-45deg);
    -ms-transform: translateY(-8px) rotate(-45deg);
    transform: translateY(-8px) rotate(-45deg);
}
@media screen and (max-width:640px) {
	.sp_navi dt a {
        top:7px;
        right: 15px;
    }
}



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

	デザイン変更　＊　SPのみ

============================================================================*/
@media screen and (max-width:640px) {
	
	/*全体設定*/
	.sp_navi dd li { 
		position: relative;
		box-sizing: border-box;
		border-bottom: none;
		line-height: 4;
	}
	.sp_navi dd li a::before { 
		top: 20px;
	}
	
	/*下層に入るデザイン*/
	.sp_navi dd li.sp_under {
		padding-left: 30px;
		line-height: 3;
	}
	.sp_navi dd li.sp_under a::before { 
		position: absolute; content: "";
		background: url("../images/icon07.png") no-repeat; 
		background-size: 12px auto;
		width: 15px; height: 12px;
		top: 20px; left: 2px;
	}
	
	/*その他*/
	.sp_navi dd li:nth-of-type(2) { /*クリニック紹介*/
		border-top: 1px solid #FFF;
	}
	.sp_navi dd li:nth-of-type(3) { /*アクセス*/
		border-top: 1px solid #FFF;
	}
	.sp_navi dd li:nth-of-type(4) { /*診療案内*/
		padding-top: 10px;
		border-top: 1px solid #FFF;
	}
	
	
	
	
}







