﻿@charset "UTF-8";

/* header */
#top-head {
  top: 0;
  position: absolute;
  width: 100%;
  margin: 0 auto;
  height: 4.5rem;
  line-height: 1;
  z-index: 999;
  background-color: #590f10;/* headerの色 */
}
#top-head,
#top-head a {
  color: #fff;
  text-decoration: none;
}
#top-head .inner {
  position: relative;
}

/* Toggle Button */
#mobile-head {
  width: 100%;
  position: relative;
}
#nav-toggle {
  position: absolute;
  right: 0;
  top: 0;
  box-sizing: border-box;
  padding: 1rem;
  width: 5rem;
  height: 4.5rem;
  cursor: pointer;
  z-index: 999;
}
#nav-toggle div {
	position: relative;
}
#nav-toggle span {
	display: block;
	position: absolute;
	height: 0.3333em;
	width: 100%;
	background: #CCC;/*ハンバーガーの色*/
	left: 0;
	transition: .35s ease-in-out;
}
#nav-toggle span:nth-child(1) {
	top: 0;
}
#nav-toggle span:nth-child(2) {
	top: 1.2em;
}
#nav-toggle span:nth-child(3) {
	top: 2.4em;
}

/* logo べーすCSSのh1のハイトでロゴ小さくできた */
#top-head.fixed .logo,
#top-head .logo {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  padding: 0.5rem;
  /* height: calc(4.5rem-1rem)!important; */
  /* font-size: 3em;
  line-height: 1em;
  color: #FFF;
  font-size: 2em; */
  /* width: 100%; */
  
  
}

h1 {
  display: block;
  height: 1rem;
  max-height: 1rem;
}

#global-nav {
  position: absolute;
  top: -100vh;/* 開いてないときは画面外に配置、.open #global-navと連動 */
  background-color: #333;
  opacity: 0.9;/* 開きバーガーのスケスケ度合い */
  width: 100%;
  height: calc(100vh - 4.5rem);/* 画面いっぱい-ナビ */
  text-align: center;
  transition: .5s ease-in-out;

  /* width: 125vw;
  margin: 0 calc(50%-50vw);
  margin-left: -50%; */
}
#global-nav ul {
  list-style: none;
  position: static;
  right: 0;
  bottom: 0;
}
#global-nav ul li {
  position: static;
}
#global-nav ul li a,
#global-nav ul li a {
  display: block;
  width: 100%;
  color: #fff;
  padding: 1.5rem 0;
  font-size: 1.2rem;/* font-size: 1.5rem;田村先生は1.5rem */
}
#global-nav ul li a:hover {
  background-color: #ca5053;
  opacity: 0.6;
}

/* Fixed */
#top-head.fixed {
  position: fixed;
  top: 0;
  background: rgba(0,0,0,.3);
}
.fixed #nav-toggle span {
	background: #FFF;/*ハンバーガーの色*/
}

/* #nav-toggle 切り替えアニメーション */
.open #nav-toggle span:nth-child(1) {
  top: 1em;
  transform: rotate(315deg);
}
.open #nav-toggle span:nth-child(2) {
  width: 0;
  left: 50%;
}
.open #nav-toggle span:nth-child(3) {
  top: 1em;
  transform: rotate(-315deg);
}

/* #global-nav スライドアニメーション */
.open #global-nav {
  top: 4.5rem;/* ヘッダーの高さ */
}

/*ヘッダー分コンテンツを下げる、めいんびじゅの関係でオフにした。*/
/* div#contents {
	margin-top: 4.5rem;
} */


/*▼ デスクトップPC対応 ▼*/ 
@media screen and (min-width:960px) {
  #top-head {
    position: static;
  }
  #top-head .inner {
    display: flex;
  }
  #top-head.fixed .logo,
  #top-head .logo {
    position: static;
    /* width: 30%;
    text-align: left; */
  }
  #mobile-head {
	  display: none;
  }
  #global-nav {
    position: static;
    top: 0;
    width: 50%;/* なびの項目の幅 */
    height: 4.5rem;
    background-color: #590f10;
  }
  #global-nav ul {
    display: flex;
  }
  #global-nav ul li {
    width: 25%;/* 20％=100÷項目数(5→4) */
  }
  #global-nav ul li a {
    box-sizing: border-box;
  }

  /* Fixed */
  #top-head.fixed {
    left: 50%;
    transform: translateX(-50%);
    width: 960px;
  }
  #top-head.fixed #global-nav {
    background: transparent;
  }
  #top-head #global-nav,
  #top-head.fixed #global-nav {
    transition-duration: 0s;
  }

  div#contents {
    margin-top: 0;/*ヘッダー分下げた分のリセット*/
  }
}
/*▲ デスクトップPC対応 ▲*/

/*▼ デスクトップPC対応02 ▼*/ 
@media screen and (min-width:744px) {
  #top-head {
    width: 100%;
  }
  #top-head.fixed {
    width: 100%;/* base.cssの#wrapperに同じ width: 93.75%;お前だったのか、、 */
  }
  
}
/*▲ デスクトップPC対応02 ▲*/