/* リセット */
*,*::before,*::after{
  box-sizing: border-box;
  margin: 0;
  border: none;
  padding: 0;
  font: inherit;
}

html,body{
  height: 100%;
}

a{
  transition: .3s ease;
  color: #292929;
}

a:hover{
  opacity: .7;
}

body{
  font-size: 14px;
  letter-spacing: .065em;
  color: #292929;
}
/*モバイル･PC切り替え設定 */
@media (min-width: 768px) {
  body{
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .sp{
    display: none;
  }
}
.pc{
  display: none;
}
@media (min-width: 768px) {
  .pc{
    display: block;
  }
}


/* ヘッダー */
.header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  padding: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .header{
    padding: 30px;
  }
}

.header-logo{
  margin: 0;
}

@media (min-width: 768px) {
  .header-logo svg{
    width: 350px;
  }
} 

/* ハンバーガーメニューボタン */
.header-button{
  position: fixed;
  right: 0;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border: none;
  width: 75px;
  height: 75px;
  background-color: transparent;
  color: #000;
}

@media (min-width: 768px) {
  .header-button{display: none;}
}

.header-button span{
  display: block;
  position: relative;
  top: 0;
  margin: 0 auto;
  width: 24px;
  height: 3px;
  background-color: #292929;
  transition: .3s ease;
}

.header-button span::before,
.header-button span::after{
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  transition: all .3s;
  background-color: inherit;
}

.header-button span::before{
  top: -9px;
}
.header-button span::after{
  top: 10px;
}

/* ハンバーガーボタン.openの設定 */
body.open .header-button{
  z-index: 30;
}

body.open .header-button span{
  width: 30px;
  background-color: transparent;
}

body.open .header-button span::before,
body.open .header-button span::after{
  top: 0;
  background-color: #292929;
}

body.open .header-button span::before{
  transform: rotate(45deg);
}
body.open .header-button span::after{
  transform: rotate(-45deg);
}

/* メニュー隠し､開閉のアクション */
.header-nav{
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(229, 229, 229, .9);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 900;
  transform: translateX(100%);
  transition: .3s ease;
}

body.open .header-nav{
  transform: translateX(0);
}
/* PC用ヘッダー設定 */
@media (min-width: 768px) {
  .header-nav{
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: none;
  }

  .header-nav-item:nth-child(n+2){
    margin-top: 0;
    margin-left: 2em;
  }
}

/* フッター */
.footer{
  padding: 1em 0;
  width: 100%;
}

.top .footer,
.profile .footer{
  position: absolute;
  left: 0;
  bottom: 0;
}

.footer-txt{
  font-size: 12px;
  text-align: center;
}

/* bodyのスタイル設定 */
body.top,
body.profile{
  background-image: url(../img/bg_01.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

body.top,
body.top a{
  color: #fff;
  text-shadow: 0 0 6px #000;
}

.top .header-button span{
  background-color: #fff;
}

/* h1 */
.top-title{
  /* 上3つで要素の左上(pの左上)を基準に真ん中に寄せられる
     次にトランスフォームで要素の中で50%ずつ移動し､中央揃え */
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 8vw;
  font-weight: 900;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
  .top-title{
    font-size: 4vmax;
  }
}

.top-title i{
  display: block;
  font-family: 'Romanesco', cursive;
  font-style: normal;
  font-weight: normal;
}

@media (min-width: 768px) {
  .top-title i{
    display: inline;
  }
}

/* プロフィールページのCSS */
.profile .header-logo path,
.index .header-logo path{
  fill: #292929;
}

/* プロフ メイン */
.profile main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: rgba(229, 229, 229, .8);
  line-height: 1.6;
}

.profile .article-inner{
  max-width: 460px;
}

.article-title{
  margin-bottom: .5em;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: .05em;
  text-align: center;
}

.article-title_sub{
  margin-bottom: 1em;
  font-size: 21px;
  text-align: center;
}

@media (min-width: 768px) {
  .article-title_sub{
    font-size: 24px;
  }
}

.article-title_sub span{
  display: inline-block;
  margin-left: 1em;
  border-left: 1px solid #292929;
  padding-left: 1em;
  font-weight: normal;
}

/* .profile-list, */
.profile-list dt{
  /* clear:left 左の要素に回り込まない指示 */
  clear: left;
  float: left;
  margin-right: 2em;
}

.profile-list dd{
  overflow: hidden;
}



/* ワークスページ グリッド */
.index main{
  padding: 100px 20px;
}

/* ベンダープレフィクスは不要 -ms ~ */
.works-list{
  list-style: none;
  display: grid;
  grid-template-columns: 150px 150px;
  grid-template-rows: 100px 100px 100px 100px 100px 100px;
  grid-gap: 20px;
  margin: 0 auto;
  width: 320px;
}

/* .works-list > li:nth-child(1){} ベンダープレフィクスは以下略*/

.works-list li img{
  display: block;
  width: 100%;
}

/* PC用cssグリッド */
@media (min-width: 1024px) {
  .works-list{
    grid-template-columns: 210px 210px 210px 210px;
    grid-template-rows: 140px 140px 140px;
    grid-gap: 30px;
    width: 930px;
  }
}