/* = OP Animation
-------------------------------------------------------------- */
#opening {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  background: #fff;
}
#opening.animate {
  -moz-animation: op linear 23.5s;
  -webkit-animation: op linear 23.5s;
  -ms-animation: op linear 23.5s;
  -o-animation: op linear 23.5s;
  animation: op linear 23.5s;
}
#opening .text {
  opacity: 0;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  font-size: 47px;
  color: #fff;
  text-align: center;
}
#opening .text.animate {
  -moz-animation: txt linear 4s;
  -webkit-animation: txt linear 4s;
  -ms-animation: txt linear 4s;
  -o-animation: txt linear 4s;
  animation: txt linear 4s;
}
#opening #daruma {
  position: absolute;
  width: 428px;
  top: 134px; right: 0; left: 0;
  margin: auto;
  opacity: 0;
}
#opening #daruma.animate {
  opacity: 1;
  -moz-animation: daruma linear 3s;
  -webkit-animation: daruma linear 3s;
  -ms-animation: daruma linear 3s;
  -o-animation: daruma linear 3s;
  animation: daruma linear 3s;
}
#opening #daruma.hardSwing {
  -moz-animation: swing linear 1.5s infinite;
  -webkit-animation: swing linear 1.5s infinite;
  -ms-animation: swing linear 1.5s infinite;
  -o-animation: swing linear 1.5s infinite;
  animation: swing linear 1.5s infinite;
  transform-origin: 50% bottom;
}


@-moz-keyframes op {
  0%   { -moz-background: #d7000f; }
  22%  { -moz-background: #d7000f; }
  23%  { -moz-background: #fff; }
  100% { -moz-background: #fff; }
}
@-webkit-keyframes op {
  0%   { -webkit-background: #d7000f; }
  22%  { -webkit-background: #d7000f; }
  23%  { -webkit-background: #fff; }
  100% { -webkit-background: #fff; }
}
@-ms-keyframes op {
  0%   { -ms-background: #d7000f; }
  22%  { -ms-background: #d7000f; }
  23%  { -ms-background: #fff; }
  100% { -ms-background: #fff; }
}
@-o-keyframes op {
  0%   { -o-background: #d7000f; }
  22%  { -o-background: #d7000f; }
  23%  { -o-background: #fff; }
  100% { -o-background: #fff; }
}
@keyframes op {
  0%   { background: #d7000f; }
  22%  { background: #d7000f; }
  23%  { background: #fff; }
  100% { background: #fff; }
}

@-moz-keyframes txt {
  0%    { -moz-opacity: 0; }
  20%   { -moz-opacity: 0; }
  40%   { -moz-opacity: 1; }
  60%   { -moz-opacity: 1; }
  80%   { -moz-opacity: 0; }
  100%  { -moz-opacity: 0; }
}
@-webkit-keyframes txt {
  0%    { -webkit-opacity: 0; }
  20%   { -webkit-opacity: 0; }
  40%   { -webkit-opacity: 1; }
  60%   { -webkit-opacity: 1; }
  80%   { -webkit-opacity: 0; }
  100%  { -webkit-opacity: 0; }
}
@-ms-keyframes txt {
  0%    { -ms-opacity: 0; }
  20%   { -ms-opacity: 0; }
  40%   { -ms-opacity: 1; }
  60%   { -ms-opacity: 1; }
  80%   { -ms-opacity: 0; }
  100%  { -ms-opacity: 0; }
}
@-o-keyframes txt {
  0%    { -o-opacity: 0; }
  20%   { -o-opacity: 0; }
  40%   { -o-opacity: 1; }
  60%   { -o-opacity: 1; }
  80%   { -o-opacity: 0; }
  100%  { -o-opacity: 0; }
}@keyframes txt {
  0%    { opacity: 0; }
  20%   { opacity: 0; }
  40%   { opacity: 1; }
  60%   { opacity: 1; }
  80%   { opacity: 0; }
  100%  { opacity: 0; }
}

@-moz-keyframes daruma {
  0% {
    width: 100%;
    top: -30%; left: 0; right: 0;
    margin: auto;
    -moz-transform: rotate(180deg);
    -moz-transform-origin: 50% bottom;
  }
  90% {
    width: 428px;
    top: 134px;
    -moz-transform: rotate(0deg);
  }
  100% {
    width: 428px;
    top: 134px;
    -moz-transform: rotate(0deg);
  }
}
@-webkit-keyframes daruma {
  0% {
    width: 100%;
    top: -30%; left: 0; right: 0;
    margin: auto;
    -webkit-transform: rotate(180deg);
    -webkit-transform-origin: 50% bottom;
  }
  90% {
    width: 428px;
    top: 134px;
    -webkit-transform: rotate(0deg);
  }
  100% {
    width: 428px;
    top: 134px;
    -webkit-transform: rotate(0deg);
  }
}
@-ms-keyframes daruma {
  0% {
    width: 100%;
    top: -30%; left: 0; right: 0;
    margin: auto;
    -ms-transform: rotate(180deg);
    -ms-transform-origin: 50% bottom;
  }
  90% {
    width: 428px;
    top: 134px;
    -ms-transform: rotate(0deg);
  }
  100% {
    width: 428px;
    top: 134px;
    -ms-transform: rotate(0deg);
  }
}
@-o-keyframes daruma {
  0% {
    width: 100%;
    top: -30%; left: 0; right: 0;
    margin: auto;
    -o-transform: rotate(180deg);
    -o-transform-origin: 50% bottom;
  }
  90% {
    width: 428px;
    top: 134px;
    -o-transform: rotate(0deg);
  }
  100% {
    width: 428px;
    top: 134px;
    -o-transform: rotate(0deg);
  }
}
@keyframes daruma {
  0% {
    width: 100%;
    top: -30%; left: 0; right: 0;
    margin: auto;
    transform: rotate(180deg);
    transform-origin: 50% bottom;
  }
  90% {
    width: 428px;
    top: 134px;
    transform: rotate(0deg);
  }
  100% {
    width: 428px;
    top: 134px;
    transform: rotate(0deg);
  }
}


@media screen and (max-width: 960px) {
  #opening #daruma {
    width:428px;
    top: 134px;
  }
  #opening .text {
    font-size: 64px;
  }
  @-moz-keyframes daruma {
    0% {
      width: 100%;
      top: 134px;
      margin: auto;
      -moz-transform: rotate(80deg);
      -moz-transform-origin: 50% bottom;
    }
    40% {
      width: 75%;
      -moz-transform: rotate(10deg);
    }
    45% {
      -moz-transform: rotate(0deg);
    }
    100% {
      width:428px;
      -moz-transform: rotate(0deg);
    }
  }
  @-webkit-keyframes daruma {
    0% {
      width: 100%;
      top: 134px;
      margin: auto;
      -webkit-transform: rotate(80deg);
      -webkit-transform-origin: 50% bottom;
    }
    40% {
      width: 75%;
      -webkit-transform: rotate(10deg);
    }
    45% {
      -webkit-transform: rotate(0deg);
    }
    100% {
      width:428px;
      -webkit-transform: rotate(0deg);
    }
  }
  @-ms-keyframes daruma {
    0% {
      width: 100%;
      top: 134px;
      margin: auto;
      -ms-transform: rotate(80deg);
      -ms-transform-origin: 50% bottom;
    }
    40% {
      width: 75%;
      -ms-transform: rotate(10deg);
    }
    45% {
      -ms-transform: rotate(0deg);
    }
    100% {
      width:428px;
      -ms-transform: rotate(0deg);
    }
  }
  @-o-keyframes daruma {
    0% {
      width: 100%;
      top: 134px;
      margin: auto;
      -o-transform: rotate(80deg);
      -o-transform-origin: 50% bottom;
    }
    40% {
      width: 75%;
      -o-transform: rotate(10deg);
    }
    45% {
      -o-transform: rotate(0deg);
    }
    100% {
      width:428px;
      -o-transform: rotate(0deg);
    }
  }
  @keyframes daruma {
    0% {
      width: 100%;
      top: 134px;
      margin: auto;
      transform: rotate(80deg);
      transform-origin: 50% bottom;
    }
    40% {
      width: 75%;
      transform: rotate(10deg);
    }
    45% {
      transform: rotate(0deg);
    }
    100% {
      width:428px;
      transform: rotate(0deg);
    }
  }
}
