﻿@-webkit-keyframes openTopLine {
  0% {
    width: 0;
    -webkit-transform: translateY(5em);
            transform: translateY(5em);
  }
  50% {
    width: 27em;
    -webkit-transform: translateY(5em);
            transform: translateY(5em);
  }
  100% {
    width: 27em;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes openTopLine {
  0% {
    width: 0;
    -webkit-transform: translateY(5em);
            transform: translateY(5em);
  }
  50% {
    width: 27em;
    -webkit-transform: translateY(5em);
            transform: translateY(5em);
  }
  100% {
    width: 27em;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes openBottomLine {
  0% {
    width: 0;
    -webkit-transform: translateY(-5em);
            transform: translateY(-5em);
  }
  50% {
    width: 27em;
    -webkit-transform: translateY(-5em);
            transform: translateY(-5em);
  }
  100% {
    width: 27em;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes openBottomLine {
  0% {
    width: 0;
    -webkit-transform: translateY(-5em);
            transform: translateY(-5em);
  }
  50% {
    width: 27em;
    -webkit-transform: translateY(-5em);
            transform: translateY(-5em);
  }
  100% {
    width: 27em;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes slideContent {
  0%, 30% {
    -webkit-transform: translateY(50%);
            transform: translateY(50%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideContent {
  0%, 30% {
    -webkit-transform: translateY(50%);
            transform: translateY(50%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
.logo {
  font-size: 1.1em;
  font-family:inherit;
  text-align: center;
  color: #bdbdbd;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  overflow: hidden;
}
.logo .line {
  height: 1px;
  background: #bdbdbd;
  display: inline-block;
  width: 27em;
}
.logo .line.topLine {
  -webkit-animation: openTopLine 1.5s;
          animation: openTopLine 1.5s;
}
.logo .line.bottomLine {
  -webkit-animation: openBottomLine 1.5s;
          animation: openBottomLine 1.5s;
}
.logo .content {
  -webkit-animation: slideContent 1s;
          animation: slideContent 1s;
  -webkit-animation-fill-mode: backwards;
          animation-fill-mode: backwards;
  -webkit-animation-delay: 1.25s;
          animation-delay: 1.25s;
}
.logo .content .vintage {
  font-weight: 400;
  font-size: 2em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px #212121, 2px 2px 0px #bdbdbd;
  letter-spacing: 4px;
}
.logo .content .since {
  font-weight: 100;
  margin: 0.25em auto 0.5em;
}
.logo .content .desc {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-style: italic;
}
.logo .content .skillz {
  font-size: 1.2em;
  margin-top: 0.25em;
  font-weight: 400;
  letter-spacing: 1px;
}
.logo .content .links a {
  display: inline-block;
  color: #bdbdbd;
  font-size: 1.25em;
  margin: 0.25em 0.2em 0;
  -webkit-transition: color 0.1s;
  transition: color 0.1s;
  cursor: pointer;
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
  -webkit-animation: slideContent 1s;
          animation: slideContent 1s;
  -webkit-animation-fill-mode: backwards;
          animation-fill-mode: backwards;
}
.logo .content .links a:nth-of-type(1n) {
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}
.logo .content .links a:nth-of-type(2n) {
  -webkit-animation-delay: 2.25s;
          animation-delay: 2.25s;
}
.logo .content .links a:nth-of-type(3n) {
  -webkit-animation-delay: 2.5s;
          animation-delay: 2.5s;
}
.logo .content .links a:nth-of-type(4n) {
  -webkit-animation-delay: 2.75s;
          animation-delay: 2.75s;
}
.logo .content .links a:nth-of-type(5n) {
  -webkit-animation-delay: 3s;
          animation-delay: 3s;
}
.logo .content .links a:hover {
  color: white;
}




.stage {
  height: 300px;
  width: 500px;
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  perspective: 9999px;
  transform-style: preserve-3d;
}

.layer {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  opacity: 0;
  animation: ಠ_ಠ 5s infinite alternate ease-in-out -7.5s, o_O 0.1s 1;
  animation-fill-mode: forwards;
  transform: rotateY(20deg) rotateX(13deg) translateZ(0);
}

.layer:after {
  font: 4rem metabold;
  content: 'クリニック';
  white-space: pre;
  text-align: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 50px;
  color: whitesmoke;
  letter-spacing: -5px;
  text-shadow: 0.2rem 0 10px rgba(0, 0, 0, 0.13);
}

.layer:nth-child(1):after {
  transform: translateZ(0px);
}

.layer:nth-child(2):after {
  transform: translateZ(-2px);
}

.layer:nth-child(3):after {
  transform: translateZ(-4px);
}

.layer:nth-child(4):after {
  transform: translateZ(-6px);
}

.layer:nth-child(5):after {
  transform: translateZ(-8px);
}

.layer:nth-child(6):after {
  transform: translateZ(-10px);
}

.layer:nth-child(7):after {
  transform: translateZ(-12px);
}

.layer:nth-child(8):after {
  transform: translateZ(-14px);
}

.layer:nth-child(9):after {
  transform: translateZ(-16px);
}

.layer:nth-child(10):after {
  transform: translateZ(-18px);
}

.layer:nth-child(11):after {
  transform: translateZ(-20px);
}

.layer:nth-child(12):after {
  transform: translateZ(-22px);
}

.layer:nth-child(13):after {
  transform: translateZ(-24px);
}

.layer:nth-child(14):after {
  transform: translateZ(-26px);
}

.layer:nth-child(15):after {
  transform: translateZ(-28px);
}

.layer:nth-child(16):after {
  transform: translateZ(-30px);
}

.layer:nth-child(17):after {
  transform: translateZ(-32px);
}

.layer:nth-child(18):after {
  transform: translateZ(-34px);
}

.layer:nth-child(19):after {
  transform: translateZ(-36px);
}

.layer:nth-child(20):after {
  transform: translateZ(-38px);
}

.layer:nth-child(n+10):after {
  -webkit-text-stroke: 3px #fe642e;
}

.layer:nth-child(n+11):after {
  -webkit-text-stroke: 15px dodgerorange;
  text-shadow: 3px 0 3px #ff4000, 2px 2px 2px #ff4000, 0 3px 3px #ff4000;
}

.layer:nth-child(n+12):after {
  -webkit-text-stroke: 15px dodger;
  text-shadow:3px 0 3px #ff4000,2px 2px 2px #ff4000, 0 3px 3px #ff4000,
}

.layer:last-child:after {
  -webkit-text-stroke: 5px #ff4000 ;
}

.layer:first-child:after {
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.5);
}

@keyframes ಠ_ಠ {
  100% {
    /*transform: rotateY(-40deg) rotateX(-43deg);*/
  }
}
@keyframes o_O {
  100% {
    opacity: 1;
  }
}
.layer {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  opacity: 0;
  animation: ಠ_ಠ 5s infinite alternate ease-in-out -7.5s, o_O 0.1s 1;
  animation-fill-mode: forwards;
  /*transform: rotateY(40deg) rotateX(33deg) translateZ(0);*/
}

.l {
  /*display: inline-block;*/
  /*margin-left: -12px;*/
  font: 800 3rem 'Open Sans', sans-serif;
  color: #333;
  text-shadow: 1px 1px 1px #fff, 0 2px 0.3rem #fff, 0 -1px 0 #fff, 0 -2px 0 #fff, 1px 0 0 #fff, 2px 0 0 #fff, -1px 0 0 #fff, -2px 0 0 #fff, -3px 0 3px rgba(0, 0, 0, 0.3), 0 3px 3px rgba(0, 0, 0, 0.3);
}
.g {
  color: #4a4;
}