﻿
/* header固定のため余白をつける。メニューのCSSには関係ない */
.main{  
  margin-top: 60px;
}

@media (max-width: 1100px){

  .nav {
    position: fixed;
    right: -320px; /* 右から出てくる */
    top: 0;
    width: 300px; /* スマホに収まるサイズ */
    height: 100vh;
    padding-top: 60px;
    background-color: #fff;
    transition: all .6s;
    z-index: 200;
    overflow-y: auto; /* メニューが多くなったらスクロールできるように */
  }


  .hamburger {
    position: absolute;
    right: 15px;
    top: 5px;
    width: 40px; /* クリックしやすい幅 */
    height: 40px; /* クリックしやすい高さ */
    cursor: pointer;
    z-index: 300;
  }
  .nav_list {
    margin: -100px 0 0 0;
    padding: 0 5%;
    list-style: none;
  }
  .nav_item {
    text-align: center;
    padding: 0 14px;
  }
  .nav_item a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
  }
  .nav_item a:hover {
    background-color: #eee;
  }
  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 40px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
  }
  .hamburger_border_top {
    top: 14px;
  }
  .hamburger_border_center {
    top: 24px;
  }
  .hamburger_border_bottom {
    top: 34px;
  }
  .black_bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all .6s;
    cursor: pointer;
  }

  /* 表示された時用のCSS */
  .nav-open .nav {
    right: 0;
				top: 0;
				margin: 0;
				padding: 0;
  }
  .nav-open .black_bg {
    opacity: .8;
    visibility: visible;
  }
  .nav-open .hamburger_border_top {
    transform: rotate(45deg);
    top: 20px;
  }
  .nav-open .hamburger_border_center {
    width: 0;
    left: 50%;
  }
  .nav-open .hamburger_border_bottom {
    transform: rotate(-45deg);
    top: 20px;
  }
}/* sp */

@media only screen and (min-width: 1300px) {
  .header_inner{
    width: 100%;
    padding: 5px 5%;
    margin-left: auto;
    margin-right: auto;
  }
  .logo{
    padding: 0px
  }
  .nav_list{
    text-align: right;
  }
  .nav_list li{
    display: inline-block;
    text-align: right;
    padding-left: 20px;
  }
  .nav_list li.sp-menu{
    display: none;
  }
  .nav_list li a{
    font-weight: 600;
  }
}/* pc */

@media only screen and (max-width: 768px) {
	.footer-menu {display:none; }

  .hamburger {
    position: absolute;
    right: 15px;
    top: 8px;
    width: 40px; /* クリックしやすい幅 */
    height: 40px; /* クリックしやすい高さ */
    cursor: pointer;
    z-index: 300;
  }
  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
  }
  .hamburger_border_top {
    top: 14px;
  }
  .hamburger_border_center {
    top: 20px;
  }
  .hamburger_border_bottom {
    top: 26px;
  }



}


@media (max-width: 472px){

  .hamburger {
    position: absolute;
    right: 15px;
    top: 8px;
    width: 40px; /* クリックしやすい幅 */
    height: 40px; /* クリックしやすい高さ */
    cursor: pointer;
    z-index: 300;
  }
  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
  }
  .hamburger_border_top {
    top: 14px;
  }
  .hamburger_border_center {
    top: 20px;
  }
  .hamburger_border_bottom {
    top: 26px;
  }


}


/* 多言語対応 */
.utility {
	text-align: center;
	width: 100px;
	font-size: 0.8rem;
	position: absolute;
	right: 10px;
  top: 36px;
}

.hdrLang {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /*中央寄せ*/
  margin: 0 auto;
  padding: 0;
  width: 90%;
  height: 2rem;
}

/* レイアウト用 */
.hdrLang li, .hdrLang ul{
  list-style: none; /*リスト前の丸を削除*/
  padding: 0; /*丸用の余白を埋める*/
}
/* リンク用 */
.hdrLang li a{
  text-decoration: none;
  text-align: center;
  color: initial;
  /*全体をクリック可能に*/
  display: block;
  width: 100%;
  height: 100%;
	border-radius: 2rem;
	border: 1px solid #333;
	padding: 2px 15px 0;
}

/*** 一階層目のメニュー ***/
.hdrLang > li{
	margin: 0px 0 0 0;
  height: 100%;
}
.hdrLang > li > a:hover{
  font-weight: bold; /* 太字 */
	opacity: 1.0;

}
.black-color { color: #333;}

.hdrLang > li > a:hover .black-color { 
  color: #C3105B; 
}

/*** 二階層目のサブメニュー ***/
.child_menu{
  visibility: hidden; /*非表示*/
  transform: scale(1,0); /*高さを0に*/
  transform-origin: top; /*上からアニメーション*/
  opacity: 0;
  transition: .3s;
  background: #fff;
	border-radius: 0.5rem;
	margin: 5px 0 0 0;
	box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .5);
}
/* ホバー時 */
.hdrLang > li:hover .child_menu {
  visibility: visible; /*表示*/
  opacity: 1;
  transform: scale(1,1); /*高さを100%に*/
}
/* 装飾用 */
.child_menu li{
  padding: 5px;
	text-align: center;
	width: 100%;
}

.child_menu li a{
	border-radius: none;
	border: none;
}

.child_menu li a:hover{
  background: rgba(195,16,91,0.2);
	border-radius: 0.5rem;
}

@media only screen and (max-width: 991px) {
  .utility {
    right: 45px;
    top: 12px;
  }
}

@media only screen and (max-width: 1200px){
  .utility {
    top: 14px;
  }
}

@media only screen and (max-width: 1100px){
  .utility {
    top: 14px;
    right: 45px;
  }
}