html {
  font-size: 62.5%;
}

body {
  font-size: 1.4rem;
  font-family: 'メイリオ', sans-serif;
  color: #121212;
  line-height: 1.7; 
}

img {
  width: 100%;
  vertical-align: bottom;
}

li {
 list-style: none;
}

a {
  text-decoration: none;
  color: #121212;
}

.section-title {
  font-weight: bold;
  font-size: 3.6rem;
  text-align: center;
  padding: 100px 0 30px;
}

.flex {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* フェード表示させる要素に使用するためのクラス */
.fadein {
  opacity : 0;
  transform: translateY(20px);
  transition: all 1s;
}

/* ヘッダー */
#header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  position: fixed;
  z-index: 10;
  background: #fff;
}

.site-title img {
  width: 150px;
}

/* ハンバーガーメニュー（メニュー閉じてる時） */
.burger-btn {
  display: block;
  position: fixed;
  top: 30px;
  right: 45px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  Z-index: 20;
  transition: all .5s;
}

.burger-btn .bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #333;
}

.bar-top, .bar-mid {
  margin-bottom: 8px;
}

.button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

/* ハンバーガーメニュー（メニュー開いてる時） */
.burger-btn.cross .bar {
  background: white;
}

.burger-btn.cross .bar-top {
  transform: rotate(-315deg) translateY(15px);
  transition: .5s;
}
.burger-btn.cross .bar-mid {
  opacity: 0;
}
.burger-btn.cross .bar-bottom {
  transform: rotate(315deg) translateY(-15px);
  transition: .5s;
}

#mask.show {
  display: block;
  cursor: pointer;
}

#mask {
  background: #000;
  opacity: 0.8;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: none;
}

/* ナビ */
#nav.show {
  display: block;
}

#nav {
  background: #121212;
  width: 300px;
  padding: 55px 25px;
  display: block;
  position: fixed;
  top: 0;
  left: 0px;
  bottom: 0;
  z-index: 20;
  display: none;
  animation-name: move; 
  animation-duration: .3s;
}

@keyframes move {
  0% {
    transform: translateX(-300px);
  }

  100% {
    transform: none;
  }
}

#nav a {
  color: white;
}

.nav-menu li {
  padding: 20px 0;
  border-top: solid white 1px;
}

.nav-menu li:last-of-type {
  border-bottom: solid white 1px;
  margin-bottom: 55px;
}

.nav-info li {
  padding-bottom: 10px;
}

/* メイン */
main {
  padding-top: 88px;
}

/* ムービー */
#bg-video {
  width: 100%;
}

/*スキル */
#skill {
  width: 100%;
  padding: 0 50px;
}

#skill .slick-area {
  font-size: 0;
}

#skill .slick-area li {
  padding: 0 30px;
}
/* スライダー */
/* ポートフォリオ */
#portfolio .flex {
  margin-bottom: 60px;
}

.portfolio-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.portfolio-item li {
  width: 31%;
  margin-bottom: 26px;
  
}

.portfolio-item img {
  box-shadow: 0 0 8px 0 rgba(0,0,0,0.16);
}

.portfolio-memo {
  padding: 27px 31px;
  border: solid 1px #CCCCCC;
  box-shadow: 0 0 8px 0 rgba(0,0,0,0.16);
}

.category {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.item-date {
  font-size: 1.2rem;
  margin-top: 33px;
  text-align: right;
}

/* コンタクト */
#contact {
 display: block;
 width: 100%;
 height: auto;
 background: #121212;

}

#contact .section-title {
  padding: 39px 0 20px;
  color: white;
}


#contact .flex {
  display: flex;
  justify-content: space-between;
  color: white;
}

.contact-text,
.contact-form {
  width: 45%;
}

.contact-text p{
  padding-bottom: 30px;
}

.contact-form dd input,
.contact-form dd textarea {
  background: white;
  border: solid #707070 1px;
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
}

.submit-btn {
  padding: 15px 80px;
  border: solid #fff 1px;
}

.submit-btn:hover {
  background: white;
  color: #333;
}

/* フッター */
footer {
  background: #121212;
  color: white;
  padding-top: 50px;
}

footer p {
  text-align: center;
  font-size: 1.2rem;
  padding: 15px 0;
}

/* タブレット・スマホ版 */
@media screen and (max-width: 1000px) {
 /* フューチャー */
 #portfolio .portfolio-item li {
  width: 48%;
  justify-content: space-between;
  flex-wrap: wrap;
 }

}

@media screen and (max-width: 674px) {
  /* フューチャー */
  #portfolio .portfolio-item li {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
   }
}

@media screen and (max-width: 600px) {

  .section-title {
    padding-top: 50px;
    font-size: 2.4rem;
  }

  /* メイン */
  .bg-video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }

 /* ピックアップ */
  #skill {
    padding: 0;
  }

  #skill .slick-area li {
    padding: 0 20px;
  }

  /* コンタクト */
  #contact .flex {
    flex-direction: column;
  }

  .contact-text,
  .contact-form,
  .submit-btn {
    width: 100%;
  }
} 



