body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic, "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, Arial, "メイリオ", Meiryo, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin : auto;
  background-color : rgba( 255, 255, 255 );

}

#loader {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  width: 100vw;
  height: 100vh;
  background-color: white;
}

.loading {
  width: 200px;
}

.loading p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
}

.hidden {
  overflow: hidden;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  margin: auto;
  background-color : rgba( 255, 255, 255, 1 );
  z-index: 1000;
}

.headerinner {
  width: 70%;
  margin: 0 auto;
  padding: 5vh 0 1vh 0;
}

.headercontent a {
  width: 70%;
  text-decoration: none;
}

.logo {
  font-size: 24px;
  font-weight: 300;
  color: black;
  letter-spacing: 0.2em;
  width: 100%;
  margin-bottom: 3vh;
  display: flex;
}

.menu-sp {
  display: none;
}

.drowermenu {
  display: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.snsicon {
  margin-left: auto;
  width: 10%;
  min-width: 5vh;
  max-width: 6vh;
  display: flex;
  justify-content: space-between;
}

.snsicon img {
  width: auto;
  height: 2vh;
  transition-duration: 0.3s;
}

.snsicon img:hover {
  opacity: 0.2;
  transition-duration: 0.3s
}

.company-name {
  width: 13vw;
  margin-left: auto;
}

.company-name img {
  width: 100%;
}

.menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 15.5vw;
  min-width: 200px;
}

.menubar a {
  text-decoration: none;
}

.textanimation {
  animation: bottomTotop2 2s ease 0s 1 normal;
}

.textanimation2 {
  animation: bottomTotop3 2s ease 0s 1 normal;
}

.textanimation3 {
  animation: bottomTotop4 2s ease 0s 1 normal;
}

.menu {
  width: auto;
  letter-spacing: 0.2em;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 400;
  display: block;
  padding: 0 0 5px 0.1em;
  position: relative;
}

.menu::before, .menu::after {
  border-bottom: solid 1px #D134B8;
  bottom: 0;
  content: "";
  display: block;
  position: absolute;
  transition: all 0.3s ease;
  width: 0;
}
.menu::before {
  left: 50%;
}
.menu::after {
  right: 50%;
}
.menu:hover::before, .menu:hover::after {
  width: 50%;
}

.content {
  width: 100%;
  padding-top: 24vh;
}

#content {
  margin: 0 auto;
  /* width: 70%; */
  width: 100%;
  display: flex;
  /* animation: fadeIn 3s ease 0s 1 normal; */
  animation: bottomTotop 1s ease 0s 1 normal;
}

#content div img{
  width: 70vw;
  height: 70vh;
  object-fit: cover;
  transition-duration: 1s;

}

#content .itemBox .itemCaption:hover {
  opacity: 1;
  box-shadow: 0 0 0 2px #1a1a1a;
  z-index: 1000;
}

.itemBox {
  display:inline-block;
	position:relative;
}

.itemCaption {
	background-color: rgba(0,0,0,0.5);
	color:#FFF;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	transition: 0.3s;
	opacity:0;
  font-weight: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.caption1 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-align: right;
  margin: 0;
  margin-right: 1vw;
  margin-bottom: 5px;
  line-height: 1em;
}

.caption2 {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-align: right;
  margin: 0;
  margin-right: 1vw;
  margin-bottom: 5px;
  line-height: 1em;
}

.slick-prev, .slick-next {
  font-size: 0;
  line-height: 0;
  position: absolute;
  top: 50%;
  width: 4vh;
  height: 101%;
  background-color: rgba(255, 255, 255, 0.0);
  display: block;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  cursor: pointer;
  outline: none;
  border: none;
}

.slick-prev {
  left: 0px;
  z-index: 10;
}

.slick-next {
  right: 0px;
  z-index: 10;
}

.slick-prev:before {
  margin-left: -10px;
  content: "〈";
}

.slick-next:before {
  content: "〉";
}

.slick-prev:before, .slick-next:before {
  opacity: 1;
  color: #fff;
  font-size: 4vh;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.copyright {
  width: 70%;
  margin: 0 auto;
}

.copyright p {
  margin: 0;
  text-align: center;
  font-size: 9px;
}

@keyframes bottomTotop {
  0% {
    opacity: 0;/* 透明 */
    transform: translateY(10%);/* X軸方向に50px */
  }
  100% {
    opacity: 1;/* 不透明 */
    transform: translateY(0);
  }
}

@keyframes bottomTotop2 {
  0% {
    opacity: 0;/* 透明 */
    transform: translateY(15%);/* X軸方向に50px */
  }
  100% {
    opacity: 1;/* 不透明 */
    transform: translateY(0);
  }
}

@keyframes bottomTotop3 {
  0% {
    opacity: 0;/* 透明 */
    transform: none;/* X軸方向に50px */
  }
  20% {
    opacity: 0;
    transform: translateY(15%);
  }
  100% {
    opacity: 0.8;/* 不透明 */
    transform: none;
  }
  120% {
    opacity: 1;/* 不透明 */
    transform: translateY(0);
  }
}

@keyframes bottomTotop4 {
  0% {
    opacity: 0;/* 透明 */
    transform: none;/* X軸方向に50px */
  }
  40% {
    opacity: 0;
    transform: translateY(15%);
  }
  120% {
    opacity: 0.8;/* 不透明 */
    transform: none;
  }
  140% {
    opacity: 1;/* 不透明 */
    transform: translateY(0);
  }
}

@keyframes bottomTotop5 {
  0% {
    opacity: 0;/* 透明 */
    transform: translateY(5%);/* X軸方向に50px */
  }
  100% {
    opacity: 1;/* 不透明 */
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {opacity: 0}
  100% {opacity: 1}
}

@media (max-width: 420px) {

  body {
    min-height: 80vh;
  }

  .header {
    z-index: 1000;
  }

  .headerinner {
    width: 90%;
    padding: 2vh 0 1vh 0;
  }

  .headercontent {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .headercontent a {
    width: 90%;
  }

  .logo {
    content: url('./data/assets/logo-sp.png');
    width: 80%;
    margin-bottom: 0;
  }

  .menu-sp {
    display: block;
    margin: 0;
  }

  .menu-sp li {
    width: 20px;
    height: 4px;
    margin: 3px 0;
    list-style: none;
    background: #1a1a1a;
  }

  .drowermenu {
    position: fixed;
    top: 0;
    right: -70%;
    display: block;
    width: 50%;
    height: 100vh;
    background: #1a1a1a;
    transition-duration: 0.3s;
    z-index: 999;
  }

  .drowermenu a {
    width: 100%;
    display: block;
    height: auto;
    color: white;
  }

  .drowermenu a p {
    text-align: center;
  }

  .active {
    right: 0%;
    transition-duration: 0.3s;
  }

  .close {
    position: relative;
    top: 5px;
    margin: 10px;
    right: -80%;
    font-size: 20px;
    color: white;
  }

  .navbar {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
  }

  .snsicon {
    display: none;
  }

  .snsicon-sp {
    position: relative;
    bottom: -50vh;
    right: 0;
    left: 0;
    margin: auto;
    width: 20%;
    min-width: 50px;
    display: flex;
    justify-content: space-between;
  }

  .snsicon-sp img {
    width: auto;
    height: 20px;
    transition-duration: 0.3s;
  }

  .snsicon-sp a:first-child img {
    content: url("./data/assets/flogo-white.png")
  }

  .snsicon-sp a:last-child img {
    content: url("./data/assets/iglogo-white.png")
  }

  .snsicon-sp img:hover {
    opacity: 0.2;
    transition-duration: 0.3s
  }

  .company-name {
    margin-left: 0;
    width: 45%;
  }

  .companyname img {
    width: 100%;
  }

  .menubar {
    display: none;
  }

  .menu {
    display: none;
  }

  .content {
    padding-top: 25vh;
  }

  #content {
    margin: 10px auto 0;
    width: 100%;
    animation: fadeIn 2s ease 0s 1 normal;
    overflow: hidden;
  }

  #content div img{
    width: 100vw;
    height: 45vh;
    transition-duration: 1s;
  }

  #content .itemBox .itemCaption:hover {
    opacity: 1;
    box-shadow: none;
  }

  .itemBox {
    height: 55vh;
    position: inherit;
  }

  .itemCaption {
    margin-top: 45vh;
    background: none;
    position: absolute;
  	color:#1a1a1a;
  	width:100%;
  	transition: 0.3s;
    opacity: 1;
    font-size: 11px;
    letter-spacing: 0.1em;
    display: block;
  }

  .caption1 {
    line-height: 1em;
    letter-spacing: 0.1em;
    margin: 0;
    margin-right: 3vw;
    margin-top: 1em;
  }

  .caption2 {
    line-height: 1em;
    letter-spacing: 0.1em;
    margin: 0;
    margin-right: 3vw;
    margin-top: 0.3em;
  }

  .slick-slider {
    z-index: 100;
  }

  .slick-prev {
      left: 10px;
      z-index: 1000;
  }

  .slick-next {
      right: 10px;
      z-index: 1000;
  }

  .slick-prev, .slick-next {
      font-size: 0;
      line-height: 0;
      position: absolute;
      top: 23vh;
      display: block;
      width: 20px;
      height: 40px;
      padding: 0;
      -webkit-transform: translate(0, -50%);
      -ms-transform: translate(0, -50%);
      transform: translate(0, -50%);
      cursor: pointer;
      color: transparent;
      border: none;
      outline: none;
      transition-duration: 0.3s;
  }

  .slick-prev:hover, .slick-next:hover {
  }

  .slick-prev:before {
      content: '〈';
      margin-left: -10px;
  }

  .slick-next:before {
      content: '〉';
      margin-left: 5px;
  }

  .slick-prev:before, .slick-next:before {
      font-family: 'slick';
      opacity: 1;
      color: #fff;
      font-size: 30px;
      font-weight: 500;
      line-height: 1;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
  }

  #work-view {
    display: none;
    width: 90%;
    margin: 0 auto;
  }

  .maincontent {
    display: block;
  }

  #thumnail {
    margin-top: 0px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
  }

  #thumnail img {
    width: auto;
    height: 6.5vw;
    margin-right: 1%;
    text-align: right;
  }

  #thumnail img:hover {
  }

  .back {
    width: 35px;
    height: 35px;
    text-decoration: none;
    margin-left: auto;
  }

  .back p {
    text-align: right;
    margin: 0;
    color: #1a1a1a;
    font-size: 50px;
    font-weight: 100;
    line-height: 0.5em;
  }

  #main {
    padding-bottom: 10px;
    width: auto;
    height: 35vh;
    max-width: 100%;
    object-fit: cover;
  }

  #contentinfo {
    padding-top: 0px;
    width: 100%;
    margin: 0 auto;
  }

  #contentinfo p {
    line-height: 1.01em;
    text-align: right;
    margin: 0.2em;
    font-weight: 100;
    font-size: 12px;
  }

  .copyright {
    width: 100%;
    margin: 10px auto 0;
  }

  .copyright p {
    text-align: center;
    font-size: 8px;
  }


}

@media (min-width: 420px) and (max-width: 800px) {
  .headerinner {
    width: 80%;
    padding: 5vh 0 1vh 0;
  }

  .snsicon img {
    height: 20px;
  }

  .menubar {
    width: 40%;
    min-width: 200px;
  }

  .itemBox {
    height: 60vh;
    position: inherit;
  }

  .itemCaption {
  	background: none;
    display: block;
  	color:#1a1a1a;
    margin-top: 50vh;
  	width:100%;
  	height:50px;
  	transition: 0.3s;
    opacity: 1;
  }

  .caption1 {
    line-height: 1em;
    letter-spacing: 0.1em;
    margin: 0;
    margin-right: 3vw;
    margin-top: 20px;
  }

  .caption2 {
    line-height: 1em;
    letter-spacing: 0.1em;
    margin: 0;
    margin-right: 3vw;
    margin-top: 5px;
  }

  .content {
    padding-top: 25vh;
  }

  #content {
    margin: 10px auto 0;
    width: 100%;
    animation: fadeIn 2s ease 0s 1 normal;
    overflow: hidden;
  }

  #content div img{
    width: 100vw;
    height: 50vh;
    transition-duration: 1s;
  }

  #content .itemBox .itemCaption:hover {
    opacity: 1;
    box-shadow: none;
  }

  .slick-prev, .slick-next {
      top: 25vh;
  }

  #work-view {
    display: none;
    width: 80%;
    margin: 20px auto 0;
  }

  .maincontent {
    display: block;
  }

  #mainphoto {
    padding-bottom: 30px;
    width: 100%;
  }

  #thumnail {
    margin-top: 0px;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
  }

  #thumnail img {
    width: auto;
    height: 4vh;
    margin-right: 1%;
    text-align: right;
  }

  #thumnail img:hover {
    opacity: 1;
  }

  .back {
    width: 35px;
    height: 35px;
    text-decoration: none;
    margin-left: auto;
  }

  .back p {
    text-align: right;
    margin: 0;
    color: #1a1a1a;
    font-size: 30px;
    font-weight: 100;
    line-height: 1em;

  }

  #main {
    width: auto;
    height: 35vh;
    object-fit: cover;
  }

  #contentinfo {
    padding-top: 0px;
    width: 100%;
    margin: 0 auto;
  }

  #contentinfo p {
    line-height: 1.01em;
    text-align: right;
    margin: 0.2em;
    font-weight: 100;
    font-size: 12px;
  }
}
