@charset "utf-8";

body{
  font-family: "Noto Serif Japanese", "游明朝", YuMincho, "Times New Roman", "Hiragino Mincho ProN", Meiryo, serif;
  font-size: 18px;
  color: #333;
  background-color: #fff;
}
.flex{
  display: flex;
  justify-content: space-between;
}
.inner{
  width: 75vw;
  min-width: 670px;
  margin: 0 auto;
}
a{
  text-decoration: none;
  color: #333;
}
*{
  box-sizing: border-box;
}

header{
  width: 100%;
  height: 95px;
}
header .inner .logo{
  width: 20%;
  min-width: 165px;
  line-height: 95px;
  display: flex;
  align-items: center;
}
header .inner .logo a img{
  width: 100%;
  vertical-align: middle;
}

nav{
  height: 95px;
  display: flex;
  align-items: center;
}
nav ul .content{
  margin-right: 6vw;
  align-items: center;
}
nav ul li a span{
  display:block;
  text-align: center; 
}
nav ul li a .title{
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}
nav ul li a .eg{
  font-size: 10px;
  color: #4d4d4d;
}
nav ul .icon{
  width: 36px;
  height: 36px;
  margin-right: 2.5vw;
}
nav ul li:last-child{
  margin-right: 0;
}
nav ul .icon a img{
  width: 36px;
  height: 36px;
}
/* ホバー */
nav ul li:hover span{
  color: #adacac;
}
nav ul .icon:hover{
  opacity: .5;
  transition: .3s;
}

main .maintitle{
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  border-bottom: .4px solid #4d4d4d;
  padding-bottom: 65px;
  margin: 80px auto 150px;
}
main .eg{
  font-size: 16px;
  font-weight: normal;
  color: #4d4d4d;
}

footer{
  height: 95px;
  border-top: .4px solid #4d4d4d;
}
footer address{
  font-size: 13px;
  color: #666;
  letter-spacing: .02em;
  padding: 18px 0;
}
footer address .contact .tel{
  margin-bottom: 10px;
}
footer address .contact .tel a,.mail a{
  color: #666;
}
footer address .contact .tel a:hover,.mail a:hover{
  color: #adacac;
}
footer p small{
  font-size: 12px;
  font-weight: bold;
  color: #4d4d4d;
  letter-spacing: .1em;
  text-align: center;
  display: block;
}

/* TOPへ戻るボタン */
#top-page{
  display: none;/* 最初は消す */
  position: fixed;
  z-index: 100;
  right: 3vw;
  bottom: 20px;
  background-color: transparent;
}
#top-page a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  background: rgba(77, 77, 77, .6);
  transition: opacity .6s ease;
}
#top-page a:hover{
  opacity: .6;
}
#top-page a::before{
  position: absolute;
  top: 7px;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  /* 矢印 */
  width: 10px;
  height: 10px;
  margin: auto;
  content: '';
  transform: rotate(-45deg);
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
}
/* ハンバーガーボタンの表示消す */
.globalMenuSp{
  display: none;
}

@media screen and (max-width: 1040px) {

  header .inner .logo{
    width: 250px;
  }
  .global-nav{
    display: none;
  }
    
  /*　ハンバーガーボタン　*/
  .hamburger {
    display : block;
    position: fixed;
    z-index : 100;
    right : 13px;
    top   : 18px;
    width : 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
  }
  .hamburger span {
    display : block;
    position: absolute;
    width   : 30px;
    height  : 2px ;
    left    : 6px;
    background : #333;
    transition : 0.3s ease-in-out;
  }
  .hamburger span:nth-child(1) {
    top: 10px;
  }
  .hamburger span:nth-child(2) {
    top: 20px;
  }
  .hamburger span:nth-child(3) {
    top: 30px;
  }

 /* ナビ開いてる時のボタン */
  .hamburger.active span:nth-child(1) {
  top : 16px;
  left: 6px;
  background :#fff;
  transform : rotate(45deg);
  z-index: 100;
  }
  .hamburger.active span:nth-child(2),
  .hamburger.active span:nth-child(3) {
  top: 16px;
  background :#fff;
  transform : rotate(-45deg);
  z-index: 100;
}

/* 開いている時のnav */
nav.globalMenuSp {
  display: none;
  font-size: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  padding-top: 70px;
  color: #fff;
  background: rgba(0,0,0,0.8);
  text-align: center;
  transition: all 0.6s;
  z-index: 40;
  overflow-y: auto; /* メニューが多くなったらスクロールできるように */
}
nav.globalMenuSp ul {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}
nav.globalMenuSp ul li {
  font-size: 20px;
  padding: 0;
  width: 100%;
}
nav.globalMenuSp ul li:last-child {
  padding-bottom: 0;
}
nav.globalMenuSp ul li a {
  display: block;
  color: #fff;
  margin: 2em 0;
  width: 100%;
}
nav.globalMenuSp ul .content{
  margin-bottom: 0;
}

/* このクラスを、jQueryで付与・削除する */
nav.globalMenuSp.active {
  display: block;
}
}

@media screen and (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  .inner,header,.logo,icon{
    width: auto;
  }
  .inner{
    min-width: auto;
  }
  .flex {
    display: block;
  }

  body{
    font-size: 16px;
  }
  header{
    width: 90vw;
    height: 80px;
    margin: auto;
  }
  header .inner .logo{
    width: 40%;
    line-height: 80px;
  }

  main .maintitle{
    font-size: 20px;
    margin: 40px auto 120px;
    padding-bottom: 0;
    border-bottom: none;
  }
  main .eg{
    font-size: 15px;
  }

  footer.inner{
    width: 90vw;
    margin: auto;
  }
  footer{
    height: 150px;
    padding-top: 25px;
    border-top: .4px solid #4d4d4d;
  }
  footer address{
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .02em;
    padding: 0;
    margin-bottom: 35px;
  }
  footer address p:first-child{
    margin-bottom: 14px;
  }
  footer address .contact .tel{
    margin-bottom: 6px;
  }
  footer p small{
    font-size: 14px;
  }
}

