@charset "utf-8";
/* CSS Document */

/* スマホ閲覧時のハンバーガーメニュー */
 
#smpNav {
  display: none; /* チェックボックスを非表示 */
}
 
.menu_button { /* ボタンのスタイル */
width: 6em;
height: 6em;
  position: fixed;
  top: 0;
 left: 0;
  background: var(--blue); /* 背景色 */
  z-index: 910;
  border-radius: 50%;
}
.menu_button:after { 
		 content: "menu";
		position: absolute;
		display: block;
		font-size: 1em;
		width:100%;
		text-align: center;
		bottom:0.8em;
		letter-spacing: 1px;
		/*font-weight: bold;*/
		color: #fff;
	}
	#smpNav:checked + .menu_button::after{
			content: "close";

	}
	
	.menu_button .bticon,.menu_button .bticon:before,.menu_button .bticon:after{
		width: 4em;
		height: 2px;
		margin-top: -1px;
		margin-left: -2em;
		left:50%;
		transition: all 200ms 0s ease;
		background-color: #fff;
	}
	
	.menu_button .bticon{
		position: relative;
		top:43%;
	}
	.menu_button .bticon:before{
		content: "";
		top:-1em;
		position: absolute;
		display: block;
	}
	.menu_button .bticon:after{
		content: "";
		top:1em;
		position: absolute;
		display: block;
	}
	#smpNav:checked + .menu_button .bticon{
		background-color:transparent;
	}
	#smpNav:checked + .menu_button .bticon:before{
		transform: rotateZ(45deg);
		top:0;
	}
	#smpNav:checked + .menu_button .bticon:after{
		transform: rotateZ(-45deg);
		top:0;
	}

 
.global_menu { /* メニュー全体のスタイル */
  visibility: hidden; /* メニューを非表示 */
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px;
  color: var(--black); /* 文字色 */
  background: var(--lightBrown); /* 背景色 */
  overflow-y: auto;
  text-align: center;
  transition: all 200ms 0s ease;
   opacity: 0;
    transform: translateX(-3em);
	font-size: 1.5em;
	z-index: 900;
}
 
#smpNav:checked ~ .global_menu { /* メニュー全体のスタイル（チェック済） */
  visibility: visible; /* メニューを表示 */
	opacity: 1;
  transform: translateX(0);

}
 
.global_menu a { /* 各項目のスタイル */
  display: block;
  width: 100%;
  color: var(--black);
  position: relative;
}
 
.global_menu a:hover { /* 各項目のスタイル（ホバー時） */
  background: #ffb6c1;
}
 
.menu:not(:last-child) {
  margin-bottom: 20px;
}
 
.menu > a { /* 親項目のスタイル */
  padding: 1em 1em;
}
 .menu > a.new:after {
 content: "new";
 position: absolute;
 display: block;
 background-color: #D52C71;
 color: #fff;
 width: 100%;
 bottom:0;
 left: 0;
 font-size: max(0.7em,10px);
 line-height: 1em;
 padding-bottom: 0.2em;
 }
.child_menu > li > a {
  padding: 0.5em 1em;
  font-size: 0.8em;
  color:var(--black);
}
  .menu:hover > a ,.menu > a.selected{
    background: var(--mediumBrown);
  }

@media screen and (min-width: 1024px) {

  /* PC閲覧時のメガメニュー */

  .menu_button {
    display: none; /* ハンバーガーメニューのボタンを非表示 */
  }

  .global_menu { /* メニュー全体のスタイル */
    position:sticky;
    padding: 0;
    color: var(--black); /* 文字色 */
    background: var(--lightBrown); /* 背景色 */
     transition: all 200ms 0s ease;
	 visibility: visible;
	overflow-y: visible;
	  opacity: 1;
	   transform: translateX(0);
	   	font-size: 1em;
		max-width: 1100px;
		border-radius: 50px;
		margin: 0 auto;
		border: var(--brown) 2px solid;
		border-left-width: 0.5em;
		border-right-width: 0.5em;

  }
   .global_menu ul{
	 position: relative;
   }
     .global_menu ul:before{
	 content: "★";
	 position: absolute;
	 display: block;
	 width: 1em;
	 height: 1em;
	 line-height: 1em;
	 color: var(--brown);
	 margin-top: -0.55em;
	 top:50%;
	 left: 0.5em;
	 
	 }
	  .global_menu ul:after{
	 content: "★";
	 position: absolute;
	 display: block;
	 width: 1em;
	 height: 1em;
	 line-height: 1em;
	 color: var(--brown);
	 margin-top: -0.55em;
	 top:50%;
	 right: 0.5em;
	 
	 }

  .menu, .child_menu > li {
    display: inline-block;
  }

  .menu:not(:last-child) {
    margin-bottom: 0;
  }

  .menu > a { /* 親項目のスタイル */
    font-weight: normal;
    padding: 0.5em  1em;
	color: var(--black);
  }


  .child_menu { /* 下層メニューのスタイル */
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 30px;
    color: #333; /* 文字色 */
    background: #ffb6c1; /* 背景色 */
    visibility: hidden; /* 下層メニューを非表示 */
  }

  .menu:hover .child_menu { /* 下層メニューのスタイル（親項目ホバー時） */
    visibility: visible; /* 下層メニューを表示 */
  }

  .child_menu > li > a {
    padding: 0.5em 1em;
	color: #111;
  }
  .menu:hover > a ,.menu > a.selected{
    background: var(--mediumBrown);
  }

  .child_menu > li > a:hover {
      background: unset;
      color: #fff;
  }

}