/*ナビゲーションの箇所*/
#global-nav {
  display: flex;
  justify-content: flex-end;
  /*align-items: center;*/
  align-items: normal;
  margin: 0;
  padding: 0;
  width: min-content;
}

#global-nav ul  {
  position: relative;
  margin: 0 auto;
  padding: 0;
  display: flex;
  list-style: none;
  text-decoration: none;
  overflow-wrap: break-word;
}

#global-nav #menu>li {
  float: left;
  position: relative;
  text-align: center;
  margin: 0;
  list-style: none;
  line-height: 1.4;
  font-size: 16px;
 /* padding-top: 15px;
  padding-bottom: 15px;*/
}

#global-nav ul li a {
  text-decoration: none;
  /*padding: 14px 1.45em;*/
  padding: 14px 1em;
  overflow:hidden;
  text-align:center;
  position:relative;
  height:100%;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  color: #000000;
}


.global-nav-name {
  font-size:17px;
  display:block;
  width:100%;
  white-space:nowrap;
  line-height: 15px;
}

/*.home .global-nav-name {
  font-size:19px;
  display:block;
  width:100%;
  white-space:nowrap;
  line-height: 16px;
}*/

.snip1217 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
}
.snip1217 
{
  display: inline-block;
  list-style: outside none none;
  margin: 0.5em 1.5em;
  padding: 0;
}
.snip1217 a {
  padding: 0.3em 0;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  text-decoration: none;
  display: inline-block;
}
/*.snip1217 a:before {
  height: 3px;
  position: absolute;
  content: '';
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  background-color: #002d93;
  width: 0;
}
.snip1217 a:before {
  top: 0;
  left: 0;
}*/

.snip1217 a:after {
  /*height: 30px;*/
  position: absolute;
  content: '';
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  background-image: url("micon.png");
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: bottom center;
  top: 18px;
}


.snip1217 a:after {
  bottom: 0;
  right: 0;
}
.snip1217 a:hover:after,
.snip1217 .current a:after {
  width: 100%;
}

.snip1217 a:hover,
.snip1217 .current a {
  color: #ffffff;
}
.snip1217 a:hover:before,
.snip1217 .current a:before{
  width: 100%;
}


/*.snip1217 .current {
   background:
    radial-gradient(circle closest-side, currentcolor, transparent) bottom var(--p1, 0px) left 50% /100% var(--p, 12px) no-repeat,
    linear-gradient(currentcolor 0 0) bottom 4px left 50%/var(--d, 0%) 3px no-repeat;
	

  transition: 0.5s;
  color: #237AFF;

}*/

#global-nav #menu>li.current>a {
	/* 現在ページのときだけ文字色変更 */
	color: #e67423;
}

#global-nav #menu>li#mailmenu.current>a {
	/* お問い合わせのみ白　現在ページのときだけ文字色変更 */
	color: #ffffff;
}


#global-nav ul li a:hover{
	/* マウスおいたら文字色変更 */
	color: #e67423;
	
}

.snip1217 .menuen {
 font-size:9px;
}

.snip1217 #mailmenu {
 color: #ffffff;
 background-color: #e67423;

}

.snip1217 #mailmenu a {
  color: #ffffff;
}

/* お問い合わせにカーソル合わせたら色変え */
.snip1217 #mailmenu a:hover {
 color: #ffffff;
 background-color: #5e90cc;

}

/* お問い合わせにカーソル合わせたら下のアイコン消す */
.snip1217 #mailmenu a::after {
	content:'';
	background-image: url("micon_w.png");
}

/* お問い合わせ選択後も色変え維持 */
li#mailmenu.current {
	background-color: #5e90cc;
}
