/* reset compatible */
body>header{
	font-size: 1rem;
}
body>header>nav:before {
	content: inherit;
}
body>header>nav{
	display: block;
	height: auto;
}
body>header>nav>a{
	font-weight: inherit;
	height: auto;
	margin: 0;
	border: none;
}
body>header>nav>a:hover{
	height: auto;
}

/* ------------------- */

#menu-toggle {
    display: none;
}

body > header {
    position: sticky;
	top: 0;
	z-index: 35;
}
body > header > .header-logo {
	height: 0;
	position: relative;
	margin-top: -40px;
}
body > header > .header-logo .logo {
	height: 36px;
	position: absolute;
	top: 0;
}
body > header > .sns {
    text-align: right;
}
body > header > .sns .group {
    display: inline-flex;
	align-items: center;
    flex-direction: column;
}
body > header > .sns .group::before {
    content: attr(data-group);
    font-size: 11px;
}
body > header > .sns .group a{
    transition: opacity 0.3s ease;
    padding: 0 2px;
}
body > header > .sns .group a:hover {
    opacity: 0.4;
}
body > header > nav.bottom {
    background: #b7a990;
    display: flex;
}
body > header > nav.bottom > a,
body > header > nav.bottom > .menu,
body > header > nav.bottom > .menu > a {
    text-decoration: none;
    color: white;
    font-weight: 400;
    text-align: center;
}
body > header > nav.bottom > .menu > a {
    display: inline-block;
    width: calc(100% - 2px);
}
body > header > nav.bottom > a,
body > header > nav.bottom > .menu,
body > header > nav.bottom > .menu > a {
    transition-property: background-color, color;
    transition: 0.3s ease-out;
    position: relative;
}
body > header > nav.bottom > a:hover,
body > header > nav.bottom > .menu:hover > a {
    background: #dcd4c7;
    color: #501d22;
}

@media screen and (min-width: 960px)  {
	 /* pc */
	 body .sp {
        display: none !important;
     }
     
	 body > header {
        /*padding-top: 43px;*/
	    width: 960px;
        background: white;
        margin: auto;
        display: grid;
        grid-template: 
			"logo nav-top sns" 43px
			"nav  nav     nav" 40px / 
			90px  auto    250px;
    }
	body > header > .header-logo {
		grid-area: logo;
		margin-top: 4px;
	}
	body > header > nav.top {
		display: flex;
		grid-area: nav-top;
		font-size: 0.85em;
	}
	body > header > nav.top > a,
	body > header > nav.top > a:link {
		text-decoration: none;
		color: black;
		display: inline-block;
		flex-grow: 1;
		min-width: 11.5em;
		line-height: 43px;
		border-right: solid 1px #e2e2e2;
    	text-align: center;
    	transition: all ease 0.4s;
	}
	body > header > nav.top > a:hover {
		background: #ddd;
		color: #444;
	}
    body > header > .sns {
        height: 48px;
        margin-top: -48px;
        
		margin-top: -4px;
        grid-area: sns;
    }
    body > header > .sns::before {
         content: '';
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 48px;
        z-index: -1;
    }
    body > header > nav.bottom {
    	grid-area: nav;
    }
    body > header > nav.bottom::before{
        content: '';
        position: fixed;
        top: 43px;
        left: 0;
        right: 0;
        height: 40px;
        background: #B2A890;
    }
    body > header > nav.bottom > a,
    body > header > nav.bottom > .menu,
    body > header > nav.bottom > .menu > a {
        height: 40px;
        line-height: 40px;
        flex-grow: 1;
        width: 10em;
        position: relative;
    }
    body > header > nav.bottom > .menu.quo nav a {
        height: auto;
        text-align: center;
        width: 250px;
        font-size: 1em;
        line-height: 2em;
    }
    body > header > nav.bottom > .menu.quo nav a > div {
        margin-left: -3em;
    }
    body > header > nav.bottom > a:first-child::before,
    body > header > nav.bottom > a::after,
    body > header > nav.bottom > .menu::after {
        content: '';
        width: 1px;
        height: 25px;
        background: white;
        display: block;
        float: right;
        margin-top: 8px;
    }
    body > header > nav.bottom > a:first-child::before {
        float: left;
    }
    body > header > nav.bottom > :last-child::after {
        display: none;
    }

    body > header > nav.bottom > .menu > nav {
        width: 0;
        overflow: hidden;
        position: absolute;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    body > header > nav.bottom > .menu:hover > nav {
        width: 480px;
        overflow: visible;
        opacity: 1;
        z-index: 1;
    }

    body > header > nav.bottom > .menu > nav > a {
        height: 50px;
        line-height: 50px;
        font-size: 21px;
        text-decoration: none;
        color: white;
        background: linear-gradient(
            to right, 
            rgb(159, 146, 126),
            rgba(181, 165, 142, 0.8) 30%,
            rgba(159, 146, 126, 0.2)
        );
        display: block;
        text-align: left;
        padding-left: 30px;
        transition: filter ease 0.3s;
    }
    body > header > nav.bottom > .menu > nav > a:hover{
        filter: brightness(0.8) contrast(1.5);
    }
    body > header > nav.bottom > .menu > nav > a > span small {
        font-size: 80%;
        font-weight: 100;
    }
    body > header > nav.bottom > .menu > nav > a > span:first-child {
        min-width: 200px;
        display: inline-block;
        font-weight: 300;
    }
    body > header > nav.bottom > .menu > nav > a > span:nth-child(2) {
        font-weight: 100;
    }
}
@media screen and (max-width: 959px)  {
	/* sp */
	body .pc {
        display: none !important;
    }
    
	body > header {
        transform: translate(-100%, 0px);
        transition: transform var(--animation-speed, 0.2) ease;
        margin-bottom: -105px;
        backdrop-filter: blur(10px);
    }
    body > header > .sns {
        background: white;
        padding-left: 150px;
        transform: translate(100%, -180%);
        transition: transform var(--animation-speed, 0.2) ease;
    }
    body > header > .sns > .group {
        margin: auto;
    }
    body > header > nav.bottom {
        display: none;
        flex-direction: column;
        width: 345px;
        position: relative;
    }
    body > #menu-toggle:checked ~ header {
        position: fixed;
        height: max(100vh, 100%);
        width: max(100vw, 100%);
	    background: transparent;
        transform: translate(0px, 0px);
    }
    body > #menu-toggle:checked ~ header > .sns {
        display: flex;
        height: 115px;
        background: white;
        width: max(100vw, 100%);
	    box-sizing: border-box;
        border-bottom: solid 2px black;
        transform: translate(0px, 0px);
    }
    body > header > .sns .control {
        flex-grow: 1;
        display: inline-block;
        vertical-align: bottom;
    }
    body > header > .sns .control label img {
        margin-top: 25px;
        margin-right: 25px;
    }
    body > #menu-toggle:checked ~ header > .sns .control img {
        height: auto;
    }
    body > header > .sns .group::before {
        font-size: 20px;
	    margin-bottom: 3px;
    }
    body > header > .sns .group img {
        width: 50px;
        height: 50px;
    }
    body > header > nav.top {
    	display: none;
    }
    body > #menu-toggle:checked ~ header > nav.bottom {
        display: flex;
        height: 100%;
    }
    body > header > nav.bottom > a,
    body > header > nav.bottom > .menu {
        height: 89px;
        line-height: 89px;
        font-size: 28px;
    }
    body > header > nav.bottom > .menu {
        position: static;
    }
    body > header > nav.bottom > .menu > nav {
        position: absolute;
        top: -1px;
        bottom: 0;
        left: 345px;
        background: white;
        height: 100%;
        width: 423px;
        text-align: left;
        transform: translate(300%, 0px);
        transition: transform 0.2s ease;
    }
    body > header > nav.bottom > .menu.active > nav {
        transform: translate(0px, 0px);
    }
    body > header > nav.bottom > .menu > nav a {
        text-decoration: none;
        display: block;
        color: black;
        padding-left: 60px;
    }
    body > header > nav.bottom > .menu > nav a > span {
        width: 300px;
        display: inline-block;
        font-size: 1.25em;
    }
    body > header > nav.bottom > .menu > nav a span:nth-of-type(n + 2) {
        display: none;
    }
    body > header > nav.bottom > .menu > nav a::after {
        content: url(/assets/v2/img/caret.png);
        vertical-align: top;
    }
    .sp.header {
        position: sticky;
        top: 0;
        height: 120px;
        margin-bottom: -120px;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        padding: 20px 20px 4px 20px;
        box-sizing: border-box;
    }
    .sp.header .logo {
        height: 100px;
    }
    body.pc .sp.header {
        
    }
    .sp.header .menu {
        display: flex;
    }
    .sp.header .menu .arrow {
        overflow: hidden;
	    width: 200px;
        /* animation-name: appeal; */
        animation-duration: 1.5s;
        animation-direction: alternate;
        animation-iteration-count:infinite;
        animation-timing-function: ease;
    }
    body.light .sp.header .menu .arrow img {
        filter: drop-shadow(1px 1px 4px white);
    }
    body.dark .sp.header .menu .arrow img {
        filter: drop-shadow(1px 1px 4px black);
    }
    .sp.header .menu .hamburger {
        overflow: hidden;
    }
    .sp.header .menu .hamburger img {
        margin-left: -200px;
    }
}
