/**
 * Table of Contents:
 *
 * 1.0 - Header
 * 2.0 - Site-branding
 * 3.0 - Global-nav
 * 4.0 - 
 * 5.0 - 
 * 6.0 - 
 * 7.0 - 
 * 8.0 - 
 */

/**
 * 携帯表示でメニューを開いたときに背景を暗くする
 * 透明のレイヤーを1枚置いて携帯表示のときのみ見えるようにする
 * てことでここでは z-index を 100以上にする
 */

/**
 * 1.0 - Header
 */
#masthead {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    display: block;
    margin: 0;
    width: 100%;
    height: 48px;
    background: #fff;
    font-size: 30px;
}


/**
 * 2.0 - Site-branding
 */
.site-branding {
	float:left;
	display: block;
}

.site-logo {
    width:168px;
    height:36px;
    margin: 6px 12px;
}

.site-logo-area {
    position: relative;
    display: inline-block;
    height: 48px;
}

@media screen and (max-width: 800px) {
    /* 表示領域が800px以下の場合に適用するスタイル */
	.wide-menu{
		display: none;
	}	
 }

 /**
 * 3.0 - Global-nav
 */
#global-nav {
	height:48px;
	right:0;
}

#global-nav ul{
	margin:0;
	padding:0;
	list-style: none;
	height:48px;
	display:flex;
	justify-content: center;
}

#global-nav a.signpost-text{
	color: #fff;
    position: relative;
    top: 50%;
}

@media screen and (min-width: 801px) {
	#global-nav a.signpost-text{
		-ms-transform: translateY(-50%);
	    -webkit-transform: translateY(-50%);
	    transform: translateY(-50%);
	}
}


/*画面幅に合わせて、メニューのテキストサイズと、テキストの高さを調節。*/
@media screen and (max-width: 1130px) {
	#masthead{
		font-size: 29px;
	}
}
@media screen and (max-width: 1100px) {
	#masthead{
		font-size: 28px;
	}
}
@media screen and (max-width: 1070px) {
	#masthead{
		font-size: 27px;
	}
}
@media screen and (max-width: 1040px) {
	#masthead{
		font-size: 26px;
	}
}
@media screen and (max-width: 1010px) {
	#masthead{
		font-size: 25px;
	}
}
@media screen and (max-width: 980px) {
	#masthead{
		font-size: 24px;
	}
}
@media screen and (max-width: 950px) {
	#masthead{
		font-size: 23px;
	}
}
@media screen and (max-width: 920px) {
	#masthead{
		font-size: 22px;
	}
}
@media screen and (max-width: 890px) {
	#masthead{
		font-size: 21px;
	}
}
@media screen and (max-width: 860px) {
	#masthead{
		font-size: 20px;
	}
}
@media screen and (max-width: 830px) {
	#masthead{
		font-size: 19px;
	}
}
@media screen and (max-width: 800px) {
	#masthead{
		font-size: 18px;
	}
}

#global-nav li.signpost-item:nth-child(1) {
	background-color:#8bc8e3;
}

#global-nav li.signpost-item:nth-child(2) {
	background-color:#ad8cbf;
}

#global-nav li.signpost-item:nth-child(3) {
	background-color:#e18ea5;
}

#global-nav li.signpost-item:nth-child(4) {
	background-color:#93cc97;
}

#global-nav li.signpost-item:nth-child(5) {
	background-color:#dfe48d;
}

#global-nav li.signpost-item:hover{
	background-color: #fff;
	border: solid 3px;
	box-sizing:border-box;
}

#global-nav li.signpost-item:hover > a{
	text-shadow: none;
}

#global-nav li.signpost-item:nth-child(1):hover{
	border-color: #8dcce2;
}

#global-nav li.signpost-item:nth-child(2):hover{
	border-color: #ad8cbf;
}

#global-nav li.signpost-item:nth-child(3):hover{
	border-color: #e18ea4;
}

#global-nav li.signpost-item:nth-child(4):hover{
	border-color: #93cc97;
}

#global-nav li.signpost-item:nth-child(5):hover{
	border-color: #dfe48d;
}

#global-nav li.signpost-item:nth-child(1):hover > a{
	color: #8dcce2;
}

#global-nav li.signpost-item:nth-child(2):hover > a{
	color: #ad8cbf; 
}

#global-nav li.signpost-item:nth-child(3):hover > a{
	color: #e18ea4;
}

#global-nav li.signpost-item:nth-child(4):hover > a{
	color: #93cc97;
}

#global-nav li.signpost-item:nth-child(5):hover > a{
	color: #dfe48d;
}


#global-nav li a {
	display: block;
}

#global-nav .signpost-text {
	text-shadow: 0px 0px 3px #000;
} 

#gloabl-nav li {
	cursor: default;
	margin: 0;
	width: auto;
	height: 50px;
	padding-left: 320px;
	text-align: justify;
	-ms-text-justify: distribute-all-lines;
	text-justify: distribute-all-lines;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#global-nav li {
	box-sizing: content-box;
	pointer-events: auto;
	letter-spacing: normal;
}

@media screen and (max-width:800px){
	#global-nav li a {
		display: block;
		text-decoration: none;
		padding-left: 10px;
	}

	#global-nav ul{
		display:block;
	}

	#global-nav li.signpost-item:nth-child(1){
		background-color:#8dcce2;
	}
	
	#global-nav li.signpost-item:nth-child(2){
		background-color:#ad8cbf;
	}
	
	#global-nav li.signpost-item:nth-child(3){
		background-color:#E18EA4;
	}
	
	#global-nav li.signpost-item:nth-child(4){
		background-color:#93cc97;
	}
	
	#global-nav li.signpost-item:nth-child(5){
		background-color:#dfe48d;
	}

	.touch-sensor{
	  display:block;
	  width:40px;
	  height:48px;
	  right:20px;
	  top:0;
	  position: fixed;
	  -webkit-transition: ease .5s;
	  transition: ease .5s;
	  cursor: pointer;
	  align-items: flex-end;
	  display: flex;
	  justify-content: center;
	  z-index: 10000;
	}

	.hamburger {
		display: block;
		width: 40px;
		height: 4px;
		background: #dedede;
		position: fixed;
		right: 20px;
		z-index: 100;
	}

	.crown {
		top: 15px;
		background-color: #000; 
	}

	.club {
		top: 25px;
		background-color: #000;
	}

	.heel {
		top: 35px;
		background-color: #000;
	}
}

@media screen and (min-width:801px){
	.touch-sensor,
	.hamburger,
	.mobile-menu{
	  display: none;
	}

	#global-nav li {
		display:inline-block;
		width:calc(100% / 5);
		text-align: center;	
		border-right: 1px solid #bebebe;
	}
}

@media screen and (max-width: 800px){
	#masthead {
		font-size: 30px;
	}

	#masthead .signpost-item{
		font-size: 35px;
	}

	/*ドロワーメニューのClose時のスタイルシート*/
	#global-nav {	
  	position:fixed;
  	top:0;
  	height: 100%;
  	width: 100%;
  	background: #fff;
  	/*padding-left: 20px;*/
  	margin-top: 48px;
  	-webkit-transform: translateX(800px);
	transform: translateX(800px);
  	-webkit-transition: ease .5s;
  	transition: ease .5s;
	z-index: 9999;
	transform-origin: right top;
	}

	/*ドロワーメニューをOPENにするスタイルシート*/
	#global-nav.action {
  	-webkit-transform:translateX(0);
  	transform:translateX(0);
  	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform-origin: right top;
	}
}
 
/*ハンバーガーボタンを「✖」に変える*/
.touch-sensor.action .crown{
	top: 24px;
	right: 0px;
    -webkit-transform: translate(-50%,-50%) rotate(45deg);
    transform: translate(-50%,-50%) rotate(45deg);
}
.touch-sensor.action .club {
    top: 0;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    opacity: 0;
}
.touch-sensor.action .heel {
	top: 24px;
	right: 0px;
    -webkit-transform: translate(-50%,-50%) rotate(-45deg);
    transform: translate(-50%,-50%) rotate(-45deg);
}

/*
@media screen and (max-width: 350px){
	#global-nav{
		width: 200px;
	}
}
*/