@charset "utf-8";

body{
  font-family: -apple-system, BlinkMacSystemFont,"Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "メイリオ", Meiryo, Arial, "Helvetica Neue", "ＭＳ Ｐゴシック", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN",  sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #fff;
}
.flex{
  display: flex;
  justify-content: space-between;
}
.inner{
  width: 75vw;
  margin: auto;
}
a{
  text-decoration: none;
  color: #333;
}
*{
  box-sizing: border-box;
}
header{
  height: 75px;
  /*header固定 浮かないので下にくる要素が下にこない*/
  position: sticky;
  top: 0;
  /* ここまで */
  width: 100%;
  background-color: #fff;
  z-index: 10;
}
header .inner{
  line-height: 75px;
}
header .logo{
  text-align: center;
}
header .logo img{
  width: 139px;
  height: 54px;
  vertical-align: -16px;  
}
nav{
  font-weight: bold;
}

/* ホバー下線がnav下にこないので調整 */
nav ul{
  line-height: 14px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
nav ul .fa-instagram{
  font-size: 1.5em;
}
nav ul li{
  display: flex;
  justify-content: center;
  align-items: center;
}
nav ul .center{
  margin-right: 4.5vw;
}
footer p{
  margin: 115px 0 24px;
}

/* ボタンcontact */
.btn{
  border: solid 1px #333;
  width: 130px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto 100px;
  text-align: center;
}
.btn a{ 
  width: 130px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-indent: 1em;
  transition: 0.4s;
}
.btn a::after{
  content: "〉";
  margin-left: 10px;
}
.btn a:hover{
  background-color: rgb(158, 156, 156, 0.2);
  border: solid 1px rgb(158, 156, 156, 0.2);
  width: 130px;
  height: 40px;
}

/* navホバー線出る*/
.center a{
  position: relative;
}
.center a::after{
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 0;
  left: -8%;
  /*線の形状*/
  width: 115%;
  height: 1px;
  background:#333;
  /*アニメーションの指定*/
  transition: all .3s;
  transform: scale(0, 1);/*X方向0、Y方向1*/
  transform-origin: center top;/*上部中央基点*/
}

/*現在地とhoverの設定*/
.center.current a::after,.center a:hover::after{
  transform: scale(1, 1);/*X方向にスケール拡大*/
}
.globalMenuSp{
  display: none;
}

@media screen and (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  .inner,header,.center a::after{
    width: auto;
  }
  .flex {
    display: block;
  }
  nav .global-nav{
    display: none;
  }
  header{
    width: 100%;
    height: 70px;
  }
  header .inner{
    padding: 0;
  }
  header .logo{
    margin-bottom: 0;
  }

  .works3 .works3_1{
    display: none;
  }
  
    /*　ハンバーガーボタン　*/
  .hamburger {
    display : block;
    position: fixed;
    z-index : 50;
    right : 13px;
    top   : 15px;
    width : 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
  }
  .hamburger span {
    display : block;
    position: absolute;
    width   : 30px;
    height  : 2px ;
    left    : 6px;
    background : #555;
    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 :#555;
    transform : rotate(-45deg);
  }
  .hamburger.active span:nth-child(2),
  .hamburger.active span:nth-child(3) {
    top: 16px;
    background :#555;
    transform : rotate(45deg);
  }

  /* 開いてる時のnav */
  nav.globalMenuSp {
    position: fixed;
    z-index: 2;
    top: 244px;
    left: 0;
    color: #333;
    text-align: center;
    width: 100%;
    display: none;/* opacity:0.5とかだとnavがただ透明になってるのでdisplay: noneで消す */
    transition: opacity .6s ease, visibility .6s ease;
  }
  nav.globalMenuSp ul {
    margin: 0 auto;
    padding: 66px 0 20px;
    font-size: 20px;
  }
  nav.globalMenuSp ul li {
    list-style-type: none;
    background: rgba(255,255,255,0.7);
    padding: 0;
    width: 100%;
    transition: .6s all;
  }
  nav.globalMenuSp ul li:last-child {
    padding-bottom: 0;
  }
  nav.globalMenuSp ul li:hover{
    background :#ddd;
  }
  nav.globalMenuSp ul li a {
    display: block;
    color: #333;
    margin: 1em 0;
    text-decoration :none;
    width: 100%;
    display: inline-block;
  }

  /* このクラスを、jQueryで付与・削除する */
  nav.globalMenuSp.active {
    display: block;
    /* opacity:0.5とかだとnavがただ透明になってるので下が操作できないdisplay:blockする */
  }
  
  footer p{
    margin: 50px 0 10px 15px;
  }
}
