﻿/* -----------------------------------------------------------
        header
-------------------------------------------------------------- */
#header-ec.header-fixed {
	min-width: 1200px;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 30;
	transition: 0.3s all;
	background: #fff;
}

#header-ec.header-fixed.scroll-nav{
	background: #fff;
	box-shadow: 0px 20px 20px 0px rgba(0, 0, 0, 0.05);
	transition: 0.3s all;
	position: fixed;
	margin: 0 auto;
	left: 0;
	right: 0;
	top: 0;
}

#header-ec .header-area {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

#header-ec .header-area #pc-header {
	flex-wrap: wrap;
	display: flex;
	width: 100%;
	justify-content: flex-end;
}

#header-ec .header-area #pc-header nav {
	height: 120px;
	transition: .3s all;
}
#header-ec.header-fixed.scroll-nav #pc-header nav { 
	height: 100px;
}

#header-ec .header-area #pc-header .main-nav > ul {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 100%;
	padding-right: 20px;
}
#header-ec .header-area #pc-header .main-nav ul li a {
	position: relative;
	display: block;
	color: #333;
	text-align: center;
	text-decoration: none;
	transition: .3s;
	padding: 12px 10px;
	white-space: nowrap;
	font-size: 1.4rem;
	line-height: 1.6;
	font-weight: 500;
}
#header-ec .header-area #pc-header .main-nav ul li a:hover {
	color: var(--brown);
	background: var(--beige);
	opacity: 1;
}
#header-ec .header-area #pc-header .main-nav.active a {
	color: var(--brown);
	opacity: 1!important;
}

/*tel-box------------------------------*/
#header-ec .header-area .tel-box {
	text-align: center;
	padding: 20px 0 0;
	transition: all .3s;
}

#header-ec .header-area .tel-box + .tel-box {
    margin-left: 10px;
}

#header-ec.header-fixed.scroll-nav .header-area .tel-box { 
	padding: 10px 0 0;
}
#header-ec .header-area .tel-txt {
	font-size: 1.4rem;
	margin: 0 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
    width: 180px;
}
#header-ec .header-area .tel-txt::before,
#header-ec .header-area .tel-txt::after {
    content: "";
	flex-grow: 1;
    height: 1px;
    background: #333;
    display: inline-block;
}
#header-ec .header-area .tel-txt:before {
	margin-right: .5em;
}
#header-ec .header-area .tel-txt:after {
	margin-left: .5em;
}

#header-ec .header-area .tel-num {
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 1.1;
	font-family: var(--en);
	letter-spacing: 0.03em;
}
#header-ec .header-area .tel-num .fas {
	margin-right: 5px;
	vertical-align: baseline;
	font-size: 1.6rem;
}
#header-ec .header-area .tel-reception{
	font-size: 1.2rem;
	text-align: center;
    margin-top: 5px;
    display: block;
    letter-spacing: .2rem;
}
#header-ec .header-area .sp-bg-wrap {
	justify-content: flex-end;
}


/*h-logo------------------------------*/
#header-ec .h-logo {
	position: absolute;
	top: 20px;
	left: 0px;
	transition: all .3s;
}
#header-ec.header-fixed.scroll-nav .h-logo {
	position: absolute;
	top: 10px;
	left: 0;
}
#header-ec .header-area .h-logo a img {
	width: 100%;
	min-width: 255px;
}
#header-ec.header-fixed.scroll-nav .h-logo a {
	display: block;
	opacity: 1;
}
#header-ec.header-fixed.scroll-nav .h-logo a:hover {
	opacity: .7;
}

/*cate-nav------------------------------*/
#header-ec .cate-nav {
	width: 100%;
	padding: 0 0 25px;
	transition: .3s all;
}
#header-ec.header-fixed.scroll-nav .cate-nav { 
	padding: 0 0 10px;
}

#header-ec .cate-nav .nav-cate-list {
	display: flex;
	justify-content: space-between;
	min-width: 1200px;
}

#header-ec .cate-nav .nav-cate-list li {
    /*flex: 1;*/
    flex-grow: 1;
}

#header-ec .cate-nav .nav-cate-list li a {
	padding: 10px;
	display: block;
	/*border-right: 1px solid #eee;*/
	font-size: 1.7rem;
	position: relative;
	font-weight: 600;
    text-align: center;
}

#header-ec .cate-nav .nav-cate-list li a::before{
	content: '';
	position: absolute;
	width: 1px;
	height: 16px;
	top: 0;
	right: 0;
	background: #CCCCCC;
	top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

#header-ec .cate-nav .nav-cate-list li a:hover {
  color: var(--gold);
}

#header-ec .cate-nav .nav-cate-list li a::after {
	content: '';
	display: block;
	height: 1px;
	width: 100%;
	position: absolute;
	bottom: 2px;
	left: 0;
	background-image: linear-gradient(var(--gold),var(--gold));
	background-repeat: no-repeat;
	background-position: bottom right 0; 
	background-size: 0 1px;
	transition: background-size 0.3s;
}
#header-ec .cate-nav .nav-cate-list li a:hover::after {
	background-position: bottom left 50%;
	background-size:  90% 1px;
}
#header-ec .cate-nav .nav-cate-list li:first-child a:hover::after {
	background-position: bottom left 50%;
	background-size:  90% 1px;
}
#header-ec.header-fixed.scroll-nav .cate-nav .nav-cate-list li a::after {
  bottom: 5px;
}

#header-ec .cate-nav .nav-cate-list li:first-child a {
	padding: 10px 10px 10px 0;
}
#header-ec .cate-nav .nav-cate-list li:last-child a {
	border: none;
	padding: 10px 0 10px 10px;
}
#header-ec .cate-nav .nav-cate-list li:last-child a::before{
	display: none;
}


/* プルダウンメニュー */
.main-nav > ul .menu {
	/*box-shadow: 0px 5px 10px rgba(0,0,0, 0.05) inset,
		0 6px 11px -2px rgba(0,0,0,0.05);*/
	left: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	top: 80px;
	transition: all .2s ease-in;
	right: 0;
	margin: 0 auto;
}

.main-nav > ul .menu .menu-container {
	background: var(--beige);
	padding: 50px 0;	
}

#header-ec.header-fixed.scroll-nav .main-nav > ul .menu {
	top:80px;
}

.main-nav > ul > li:hover .menu {
	max-height: 9999px;
	opacity: 1;
	z-index: 10;
	box-shadow: 0 20px 30px rgba(0,0,0,.1);
}
.main-nav > ul .menu .inner {
	width: 1200px;
	margin: auto;
	padding: 0 0 30px;
}
.main-nav .toggle-title a {
	display: inline-block;
}

.main-nav li.toggle {
	transition: all .2s ease-in;
}
.main-nav li.toggle:hover {
	background: var(--beige);
	color: var(--brown);
}

.menu-container .inner-box-list {
	width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.menu-container .inner-box-list li {
	width: 285px;
}

.menu-container .inner-box-list li .nav-name {
	font-size: 2.2rem;
	line-height: 1.4;
	text-align: center;
	padding: 10px 0 0;
	color: var(--brown);
	width: 285px;
}

.menu-container .inner-box-list li a {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
}

.menu-container .inner-box-list li a .img-wrap {
	width: 285px;
	height: 250px;
	overflow: hidden;
}

.menu-container .inner-box-list li a .img-wrap img {
	width: 285px;
	height: auto;
	object-fit: cover;
    overflow: hidden;
	position: relative;
	transition: all .7s;
}
.menu-container .inner-box-list li a:hover img{
	transform: scale(1.1);
}

.menu-container .inner-box-list li a:hover { 
	color: #1569c1;
	box-shadow: none;
}

#header-ec .header-area .sub-area {
	display: none;
}

#header-ec .sp-header {
	display: none;
}

#header-ec .header-area .sp-bg-wrap {
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	align-items: center;
}


@media screen and (min-width: 769px) and (max-width: 1600px) {
	#header-ec.inner-header .header-area .h-logo {
		width: 120px;
		height: 68px;
		position: relative;
		left: initial;
		top: initial;
		margin-left: 10px;
	}

	#header-ec.inner-header .header-area .h-logo a {
		display: block;
		width: 120px;
		height: 68px;
		opacity: 1;
	}

}

@media screen and (max-width: 768px) {
	#header-ec.header-fixed{
		min-width: 100%;
        width: 100%;
	}
	
	#header-ec .header-area #pc-header {
		display: none;
	}

	.header-fixed {
		min-width: 100%;
	}
	
	/* スクロールメニュー */
	#header-ec .header-area {
		display: flex;
		justify-content: flex-start;
		padding: 10px;
		align-items: flex-start;
		position: relative;
		background: transparent;
		height: 75px;
		/*transition: all .3s;*/
	}
	
	/*#header-ec.header-fixed.scroll-nav .header-area {
		height: 60px;
	}*/
	
	#header-ec .header-area.active {
		padding: 0;
	}
	
	#header-ec .h-logo{
		position: relative;
		top: initial;
		left: initial;
	}
	#header-ec.header-fixed.scroll-nav .h-logo{
		position: relative;
		top: initial;
	}
	#header-ec .header-area .h-logo a img{
		min-width: 180px;
		width: 180px;
	}
	/*#header-ec.header-fixed.scroll-nav .header-area .h-logo a img{
		width: 130px;
		min-width: 130px;
	}*/

	
	/*SPメニューを開いた際に背後のコンテンツ(body)をスクロールできないように固定*/
	body.active {
		overflow: hidden;
	}
	
	#header-ec .header-area.active .sp-bg-wrap {
		background: var(--beige);
		position: relative;
		z-index: 1000;
		width: 100%;
		padding: 10px;
	}
	
	#header-ec .header-area .sub-area {
		display: flex;
		gap: 0;
		position: absolute;
		right: 10px;
		z-index: 1000;
	}
    
    /*#header-ec .header-area.active .sub-area {
        right: 0;
    }*/

	#header-ec .header-area .btn a {
		font-size: 1rem;
		padding: 5px;
		height: 50px;
		width: 50px;
		gap: 3px;
		color: #333;
	}
	#header-ec .header-area .btn a .icon {
		width: 100%;
		height: 21px;
		background: transparent;
		border-radius: 0;
	}
	#header-ec .header-area .btn a .icon::after {
		content: "\f07a";
		text-align: center;
		font-size: 2.2rem;
	}
}


@media screen and (max-width: 768px){
    
	/*========= ナビゲーションのためのCSS ===============*/

	#header-ec #sp-gnav{
		font-family: 'Lato', "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
		position:fixed;
		z-index: 999;
		/*ナビのスタート位置と形状*/
		top:0;
		right: -120%;
		width:100%;
		height: 100vh;/*ナビの高さ*/
		/*動き*/
		transition: all 0.3s;
		background: var(--beige);
	}
	
	/*アクティブクラスがついたら位置を0に*/
	#header-ec #sp-gnav.panelactive{
		right: 0;
	}

	/*ナビゲーションの縦スクロール*/
	#header-ec #sp-gnav.panelactive #g-nav-list{
		/*ナビの数が増えた場合縦スクロール*/
		position: fixed;
		z-index: 999; 
		width: 100%;
		height: 100vh;/*表示する高さ*/
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}


	/*========= ボタンのためのCSS ===============*/
	#header-ec .sp-gnav-btn{
		transition: 0.5s;
		position:relative;
		cursor: pointer;
		width: 45px;
		height: 45px;
        background:none;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-end;
		z-index: 1000;
		position: relative;
		right: 0;
	}	
	#header-ec .header-nofixed .sp-gnav-btn {

	}

	#header-ec .sp-gnav-btn span{
		display: inline-block;
		transition: all .4s;
		position: absolute;
		left: auto;
		right: 13px;
		height: 2px;
		width: 20px;
		background: #333;
	}
	
	/*(メニュー有りver) */
	#header-ec .sp-gnav-btn span:nth-of-type(1) {
		top: 15px; 
	}
	#header-ec .sp-gnav-btn span:nth-of-type(2) {
		/*display: none;*/
		top: 23px; 
	}
	#header-ec .sp-gnav-btn span:nth-of-type(3) {
		top: 31px;
	}
	
	#header-ec.header-fixed.scroll-nav .sp-gnav-btn span {
		background-color: #333;
	}
	#header-ec.header-fixed.scroll-nav .sp-gnav-btn.active span{
		background-color: #fff;
	}
	
	/*×に変化*/
	#header-ec .sp-gnav-btn.active{
		background: #333;
		right: 0;
	}
	#header-ec .sp-gnav-btn.active span{
		background: #fff;
	}
	
	/*×に変化(メニュー無しver) */	
	#header-ec .sp-gnav-btn.active span:nth-of-type(1) {
		top: 16px;
		left: 13px;
		transform: translateY(6px) rotate(-45deg);
		width: 20px;
	}
	#header-ec .sp-gnav-btn.active span:nth-of-type(2) {
		opacity: 0;
	}
	#header-ec .sp-gnav-btn.active span:nth-of-type(3){
		top: 28px;
		left: 13px;
		transform: translateY(-6px) rotate(45deg);
		width: 20px;

	}
	
	#header-ec .sp-gnav-btn .menu-txt {
		font-size: 1.0rem;
		font-weight: bold;
		color: #333;
		text-align: center;
	}
	
	/*	spナビ
	---------------------*/
	#header-ec #sp-gnav .sp-gnav-logo{
		position: absolute;
		width: 90px;
		top: 10px;
        left: 20px;
	}
	#header-ec #sp-gnav .sp-gnav-logo a img{
		width: 100%;
		display: block;
	}
	
	/*ナビゲーション*/
	#header-ec #sp-gnav .sp-nav-list {
		width: 100%;
		padding: 100px 20px 150px 20px;
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
        gap: 5px;
	}

    /*デザイン*/		
	#header-ec  .sp-nav-list .main-nav {
		width: 100%;
		background: #fff;
	}
        
	#header-ec #g-nav-list .main-nav a {
		display: block;
        padding: 20px;
		font-family: var(--mincho);
		font-size: 1.5rem;
		font-weight: 600;
		line-height: 1.2;
		position: relative;
	}
	/*#header-ec #g-nav-list .main-nav a::before{
		content: '';
		position: absolute;
		width: 80px;
		height: calc(100% - 10px);
		top: 5px;
		left: 5px;
		background: url("../img/nav-commitment-sp.webp") no-repeat top center / cover;
	}*/
	
	/*#header-ec #g-nav-list .main-nav a::after {
		position: absolute;
		content: "\f054";
		font-size: 1.2rem;
		display: inline-block;
		top: 50%;
		right: 20px;
		transform: translateY(-50%);
	}*/
	
    #header-ec #g-nav-list .main-nav a::after {
        position: absolute;
        content: "";
        background-image: url(../img/btn-arrow.svg);
        background-size: contain;
        background-repeat: no-repeat;
        width: 28px;
        height: initial;
        aspect-ratio: 40 / 8;
        font-size: 1.2rem;
        display: inline-block;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
    
	#header-ec #g-nav-list .main-nav a .en {
		font-size: 1.2rem;
		display: inline-block;
		letter-spacing: .3rem;
	}
	
	#header-ec #g-nav-list .main-nav:not(:last-child) {
		border-bottom: 1px solid var(--beige);
	}
	
    #header-ec #g-nav-list .sub-nav{
        width: 100%;
		border-bottom: 1px solid #f1e6c4;
    }
	
	#header-ec #g-nav-list .sub-nav.first {
		margin-top: 20px;
	}
	
	#header-ec #g-nav-list .sub-nav.first a {
		padding: 0 0 8px;
	}
	
	#header-ec #g-nav-list .sub-nav a {
		padding: 8px 0;
		color: var(--brown);
		font-family: var(--mincho);
		line-height: 1.6;
		font-size: 1.5rem;
		font-weight: 600;
		display: block;
	}
	
	#header-ec #g-nav-list .cate-nav {
		width: calc( ( 100% - 10px) / 3);
		/*margin-bottom: 5px;*/
		padding: 0;
		display: flex;
		flex-direction: column;
	}
	
	#header-ec #g-nav-list .cate-nav a {
		background: #fff;
		padding: 10px;
		display: block;
		font-size: 1.4rem;
		text-align: center;
		font-weight: bold;
		line-height: 1.2;
		flex-grow: 1;
		position: relative;
	}
	
	#header-ec #g-nav-list .cate-nav img{
		width: 50px;
		margin: 0 0 10px;
	}
	#header-ec #g-nav-list .cate-nav span{
		display: block;
	}
	#header-ec #g-nav-list .cate-nav a::after {
        content: "";
        display: inline-block;
        background-image: url(../img/btn-arrow.svg);
        background-size: contain;
        background-repeat: no-repeat;
        width: 20px;
        height: initial;
        aspect-ratio: 40/8;
        position: absolute;
        right: 5px;
        bottom: 5px;
   
    }
}

