@charset "utf-8";
*,
*::before,
*::after{
box-sizing: border-box;
margin: 0;
border: none;
padding: 0;
font: inherit;
}
html,
body{
  height: 100%;
}

body{
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: "Noto Sans JP",sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  letter-spacing: 0.06em;
}

a{
  color: #333;
  transition: opacity 0.3s ease;
}
a:hover{
  opacity: 0.7;
}

.header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.header__button{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: none;
  background-color: transparent;
}

.header__button span{
  position: relative;
  display: block;
  width: 24px;
  height: 1px;
  margin-inline: auto;
  background-color: #333;
}

.header__button span::before,
.header__button span::after{
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background-color: inherit;
  transition: all 0.3s ease;
}
.header__button span::before{
  top: -7px;
}
.header__button span::after{
  top: 7px;
}
body.is-open .header__button{
  z-index: 30;
}
body.is-open .header__button span{
  background-color: transparent;
}
body.is-open .header__button span::before,
body.is-open .header__button span::after{
  top: 0;
  background-color: #333;
}
body.is-open .header__button span::before{
  transform: rotate(45deg);
}
body.is-open .header__button span::after{
  transform: rotate(-45deg);
}

.navigation{
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: 300;
  list-style: none;
  background-color: #fff;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}
.navigation__item{
  text-transform: uppercase;
}
.navigation__link{
  text-decoration: none;
}

body.is-open .navigation{
  transform: translateX(0);
}

.footer{
  width: 100%;
  padding-block: 1em;
}
.footer__text{
  font-family: "Roboto",sans-serif;
  font-size: 12px;
  font-weight: 300;
  text-align: center;
}

body.top,
body.profile{
  background: url("../img/bg_01.jpg") no-repeat center center / cover;
}
body.top{
  color: #fff;
}
body.top .header__button span{
  background-color: #fff;
}

.topTitle{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.topTitle__image{
  width: 20vmax;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}

body.profile::before{
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  content: "";
  background-color: rgba(228, 228, 228, 0.8);
  backdrop-filter: blur(4px);
}

.profile .main__inner{
  max-width: 430px;
}
.profile__list{
  display: grid;
  grid-template-columns: 4em 1fr;
  gap: 0.5em;
  margin-bottom: 1em;
}

.works__gallery{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  margin-inline: auto;
  list-style: none;
}
.works__link{
display: block;
}
.works__image{
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
}

@media (max-width:767px) {
  .hide-sp{
    display: none !important;
  }
}



@media (min-width: 768px) {
  body{
    font-size: 16px;
  }
  .header{
    padding: 30px;
  }

  .header__button{
    display: none;
  }
  
  .navigation{
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: none;
  }

  body.top .navigation__link{
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  }
  .hide-pc{
    display: none !important;
  }

  .topTitle__image{
    width: 40vmin;
  }
  .works__gallery{
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
  }
}

@media (min-width:1024px) {
  .works__gallery{
    grid-template-columns: repeat(4,1fr);
    max-width: 900px;
  }
}