@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block;}
body { line-height: 1;}
ol, ul { list-style: none;}
blockquote, q { quotes: none;}
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none;}
table { border-collapse: collapse; border-spacing: 0;}
*, *:before, *:after { -webkit-box-sizing: border-box; box-sizing: border-box}

html { font-size: 16px; font-family: 'Noto Sans JP', sans-serif; font-weight: 300;}
@media (max-width: 1920px) { html{ font-size: calc(100vw * 16 / 1920);}}

html { 
  scroll-behavior: smooth;
}
::selection {background: #808080;}

body {
  position: relative;
}

/* loader */
#loader {
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 10000;
  position: fixed;
  top: 0;
  left: 0;
}
#loader.loaded {
  animation: fadeOut 1s forwards;
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        display: none;
        opacity: 0;
        z-index: -1;
    }
}
#loader img {
  width: 150px;
  height: auto;
}
#loader p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit- transform: translateY(-50%) translateX(-50%);
  margin: auto;
  text-align: center;
  color: #FFF;
  font-size: 0.625rem;
  font-family: 'Lato', sans-serif;
}

#wrapper {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: #FFF;
}

#contents {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  top: 0;
  left: 0;
  opacity: 0;
  background: #FFF;
}
#contents.loaded {
  animation: contents_anim 1s ease-out both;
}
@keyframes contents_anim {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
#contents img {
  width: 100%;
  height: auto;
}


#header {
  width: 100%;
  display: block;
  mix-blend-mode: difference;
}
#header img {
  width: 100%;
  height: auto;
}
#header.loaded {
  animation: header_anim 1s ease-out both;
}
@keyframes header_anim {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
#header > .back a {
  width: 6%;
  max-width: 115.2px;
  position: fixed;
  top: 0;
  left: 2.6%;
  margin-top: 1%;
}
#header > .logo a {
  width: 4.5%;
  max-width: 86.4px;
  position: fixed;
  top: 0;
  right: 2.6%;
  margin-top: 1%;
}
#header a {
  transition: transform .6s ease;
}
#header a:hover {
  transform: scale(1.1);
}
#pageTop {
  position: fixed;
  width: 100%;
  max-width: 1920px;
  bottom: 1.5%;
  z-index: 1000;
  mix-blend-mode: difference;
  pointer-events: none;
}
#pageTop a {
  width: 6.4%;
  margin-right: 2.6%;
  float: right;
  transition: transform .6s ease;
  pointer-events: auto;
}
#pageTop a:hover {
  transform: scale(1.1);
}


main #works {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 7.8% 0;
  position: relative;
  overflow: hidden;
}
main #works > h2 {
  margin: 0 0 0 2.6%;
}
main #works > h2 .square {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 16%;
  margin: 0.3% 0 0 0 ;
  mask-image: url("../../img/square.svg");
  mask-repeat: no-repeat;
  mask-position: 0 0;
  mask-size: 2.4% auto;
  -webkit-mask-image: url("../../img/square.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  -webkit-mask-size: 2.4% auto;
}
main #works > h2 .square video {
  width: 25%;
  margin: -2% 0 0 -4%;
}
main #works > h2 > .txt {
  margin: 0 0 0 19.5%;
  font-size: 5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: #1E1E1E;
  letter-spacing: 0.05em;
}
main #works > .thumbnail {
  width: 79.17%;
  margin: 4.6% auto 0;
  display: flex;
  flex-wrap: wrap;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}
main #works > .thumbnail > li {
  width: 29.67%;
  margin: 0 4.6% 5.9% 0;
  background: #FFF;
}
main #works > .thumbnail > li:nth-of-type(3n) {
  margin: 0 0 5.9% 0;
}
main #works > .thumbnail > li a {
  text-decoration: none;
  color: #1E1E1E;
  display: flex;
  flex-wrap: wrap;
}
main #works > .thumbnail > li .img {
  width: 93%;
  margin: 0 0 0 7%;
  border-radius: 5% / 6.36%;
  overflow: hidden;
}
main #works > .thumbnail > li .img img {
  height: auto;
  transition: transform .6s ease;
}
main #works > .thumbnail > li:hover .img img {
  transform: scale(1.2);
}
main #works > .thumbnail > li .txt {
  width: 91%;
  margin: -4% 0 0 0;
}
main #works > .thumbnail > li .txt > .cliant {
  width: 100%;
  margin: 0 0 1.5% 0;
  padding: 0 0 1.5% 0;
  border-bottom: 1px solid #1E1E1E;
  font-size: 2.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: #FFF;
  letter-spacing: 0.02em;
  mix-blend-mode: difference;
}
main #works > .thumbnail > li .txt > .category {
  width: 100%;
  font-size: 0.625rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  position: relative;
}
main #works > .thumbnail > li .arrow {
  width: 5.3%;
  margin: 3.5% 0 0 3.7%;
  display: block;
}


main #copyright {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0 3%;
  position: relative;
  overflow: hidden;
}
main #copyright > p {
  font-size: 0.75rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: center;
  
}





@media screen and (max-width: 639px) {

  html{ font-size: calc(100vw * 16 / 390);}

  .pc {display: none;}
  .sp {display: block;}

  /* loader */
  #loader {
  }
  #loader.loaded {
  }
  #loader img {
    width: 65%;
  }
  #loader p {
  }


  #wrapper {
  }


  #contents {
  }
  #contents.loaded {
  }
  #contents img {
  }


  #header {
  }
  #header img {
  }
  #header.loaded {
  }
  #header > .back a {
    width: 20.4%;
    top: 0;
    left: 2%;
    margin-top: 3.5%;
  }
  #header > .logo a {
    width: 15.3%;
    top: 0;
    right: 2%;
    margin-top: 3.5%;
  }
  #header a {
  }
  #header a:hover {
  }
  #pageTop {
  }
  #pageTop a {
    width: 20%;
  }
  #pageTop a:hover {
  }


  main #works {
    padding: 30% 0 0;
  }
  main #works > h2 {
    margin: 0 0 0 8%;
  }
  main #works > h2 .square {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0.3% 0 0 0 ;
    mask-size: 7.5% auto;
    -webkit-mask-size: 7.5% auto;
  }
  main #works > h2 .square video {
    width: 75%;
    margin: -6% 0 0 -12%;
  }
  main #works > h2 > .txt {
    margin: 0 0 0 10%;
    font-size: 3rem;
  }
  main #works > .thumbnail {
    width: 85%;
    margin: 10% 0 0 5%;
  }
  main #works > .thumbnail > li {
    width: 100%;
    margin: 0 0 12% 0;
  }
  main #works > .thumbnail > li:nth-of-type(3n) {
    margin: 0 0 12% 0;
  }
  main #works > .thumbnail > li a {
  }
  main #works > .thumbnail > li .img {
  }
  main #works > .thumbnail > li .img img {
  }
  main #works > .thumbnail > li:hover .img img {
  }
  main #works > .thumbnail > li .txt {
  }
  main #works > .thumbnail > li .txt > .cliant {
    font-size: 1.8rem;
  }
  main #works > .thumbnail > li .txt > .category {
  }
  main #works > .thumbnail > li .arrow {
  }


  main #copyright {
    width: 100%;
    padding: 20% 0;
  }
  main #copyright > p {
    font-size: 0.75rem;
  }


}