﻿@charset "UTF-8";

#wrap #mainvisual .gradation {
  position: absolute;
  top: 0;
  z-index: 1;
  display: flex;
  width: 1200px;
}

#wrap #mainvisual .gradation div {
  height: 100vh;
  animation: 2s gradation2 4s;
  animation-fill-mode: forwards;
}

#wrap #mainvisual .gradation div:first-child {
  animation: 2s gradation1 4s;
  animation-fill-mode: forwards;
  background-color: #e2dddb;
}

#wrap #mainvisual .gradation div:nth-child(2) {
  background-color: #e5e0df;
}

#wrap #mainvisual .gradation div:nth-child(3) {
  background-color: #e8e4e2;
}

#wrap #mainvisual .gradation div:nth-child(4) {
  background-color: #eeebe9;
}

#wrap #mainvisual .gradation div:nth-child(5) {
  background-color: #f3f1f1;
}

#wrap #mainvisual .gradation div:last-child {
  background-color: #f7f7f9;
}

/* 再訪問時 */
body.revisit #wrap #mainvisual .gradation div {
  animation: 0s gradation2;
  animation-fill-mode: forwards;
}

body.revisit #wrap #mainvisual .gradation div:first-child {
  animation: 0s gradation1;
  animation-fill-mode: forwards;
}

#wrap section#contents_01 .gradation {
  position: absolute;
  display: flex;
  width: 1200px;
}

#wrap section#contents_01.active .gradation div {
  animation: 2s gradation2;
  animation-fill-mode: forwards;
}

#wrap section#contents_01.active .gradation div:first-child {
  animation: 2s gradation1;
  animation-fill-mode: forwards;
  background-color: rgba(67,71,79,1);
}

#wrap section#contents_01.active .gradation div:nth-child(2) {
  background-color: rgba(67,71,79,0.9);
}

#wrap section#contents_01.active .gradation div:nth-child(3) {
  background-color: rgba(67,71,79,0.85);
}

#wrap section#contents_01.active .gradation div:nth-child(4) {
  background-color: rgba(67,71,79,0.8);
}

#wrap section#contents_01.active .gradation div:nth-child(5) {
  background-color: rgba(67,71,79,0.75);
}

#wrap section#contents_01.active .gradation div:last-child {
  background-color: rgba(67,71,79,0.7);
}

@keyframes gradation1 {
  0% {
    width: 0;
    }
  100% {
    width: 800px;
    }
}

@keyframes gradation2 {
  0% {
    width: 0;
    }
  100% {
    width: 80px;
    }
}

/* SPのみCSS START */
@media screen and (max-width: 959px) {
  #wrap #mainvisual .gradation {
    height: auto;
  }
  
  #wrap #mainvisual .gradation,
  #wrap section#contents_01 .gradation {
    width: 90%;
  }
  
  #wrap #mainvisual .gradation div {
    animation: 2s sp_gradation2 4s;
    animation-fill-mode: forwards;
  }
  
  #wrap #mainvisual .gradation div:first-child {
    animation: 2s sp_gradation1 4s;
    animation-fill-mode: forwards;
    background-color: #e2dddb;
  }

  #wrap #mainvisual .gradation div:nth-child(2) {
    background-color: #e5e0df;
  }

  #wrap #mainvisual .gradation div:nth-child(3) {
    background-color: #e8e4e2;
  }

  #wrap #mainvisual .gradation div:nth-child(4) {
    background-color: #eeebe9;
  }

  #wrap #mainvisual .gradation div:nth-child(5) {
    background-color: #f3f1f1;
  }

  #wrap #mainvisual .gradation div:last-child {
    background-color: #f7f7f9;
  }

  #wrap section#contents_01.active .gradation div {
    animation: 2s sp_gradation2;
    animation-fill-mode: forwards;
  }

  #wrap section#contents_01.active .gradation div:first-child {
    animation: 2s sp_gradation1;
    animation-fill-mode: forwards;
    background-color: rgba(67,71,79,1);
  }

  #wrap section#contents_01.active .gradation div:nth-child(2) {
    background-color: rgba(67,71,79,0.9);
  }

  #wrap section#contents_01.active .gradation div:nth-child(3) {
    background-color: rgba(67,71,79,0.85);
  }

  #wrap section#contents_01.active .gradation div:nth-child(4) {
    background-color: rgba(67,71,79,0.8);
  }

  #wrap section#contents_01.active .gradation div:nth-child(5) {
    background-color: rgba(67,71,79,0.75);
  }

  #wrap section#contents_01.active .gradation div:last-child {
    background-color: rgba(67,71,79,0.7);
  }
}
/* SPのみCSS END */

@keyframes sp_gradation1 {
  0% {
    width: 0;
    }
  100% {
    width: 50%;
    }
}

@keyframes sp_gradation2 {
  0% {
    width: 0;
    }
  100% {
    width: 10%;
    }
}