/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc { display: block !important; }
.sp { display: none !important; }
/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 576px) {
.pc { display: none !important; }
.sp { display: block !important; }
}




/* navber途中から固定 */
.nav-wrapper { /* .navの領域確保用 */
    height: 150px;

}
.nav {
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background:rgba(215,0,15,0.9);
		z-index: 10;
	
}
.nav.is-fixed {
    position: fixed;

}


@-webkit-keyframes modify{
      0% { padding-top: 150px; margin-top: -150px; }
    100% { padding-top: 0; margin-top: 0; }
}
@keyframes  modify{
      0% { padding-top: 150px; margin-top: -150px; }
    100% { padding-top: 0; margin-top: 0; }
}

#result:target {
    -webkit-animation: modify 0.1s;
    animation: modify 0.1s;
}
#driver:target {
    -webkit-animation: modify 0.1s;
    animation: modify 0.1s;
}
#gallery:target {
    -webkit-animation: modify 0.1s;
    animation: modify 0.1s;
}
#movie:target {
    -webkit-animation: modify 0.1s;
    animation: modify 0.1s;
}




/*下からふわっと表示*/
.fadeInDown {
 -webkit-animation-fill-mode:both;
 -ms-animation-fill-mode:both;
 animation-fill-mode:both;
 -webkit-animation-duration:1s;
 -ms-animation-duration:1s;
 animation-duration:1s;
 -webkit-animation-name: fadeInDown;
 animation-name: fadeInDown;
 visibility: visible !important;
}
@-webkit-keyframes fadeInDown {
 0% { opacity: 0; -webkit-transform: translateY(-20px); }
 100% { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes fadeInDown {
 0% { opacity: 0; -webkit-transform: translateY(-20px); -ms-transform: translateY(-20px); transform: translateY(-20px); }
 100% { opacity: 1; -webkit-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0); }
}







/*右下のページトップボタン*/
#page-top{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 30px;
  bottom: 10px;
  background: #666;
  opacity: 0.6;
  border-radius: 50%;
  z-index: 1;
}
#page-top a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page-top a::before{
  font-family: FontAwesome;
  content: '\f106';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}








/*タイピングアニメーション*/
.line-1{/*対象のテキスト*/
	font-family:'Noto Sans JP', sans-serif;
    position:relative;
    top: 50%;  
    width: 15.5em;
	height: 1em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 250%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
	color:#fff;


}
@media only screen and (max-width: 576px) {
.line-1 {
	font-size: 5vw;
	margin-top: 40px;
margin-bottom: 0;
	height: 1.2em;
	}
}
 
.anim-typewriter{/*アニメーションセッティング*/
  animation: typewriter 2s steps(23) 1s 1 normal both,
 blinkTextCursor 500ms steps(23) infinite normal;
}
@keyframes typewriter{/*タイプライターライクなアニメーション*/
  from{width: 0;}
  to{width: 15.5em;}
}
@keyframes blinkTextCursor{/*点滅するカーソルのアニメーション*/
  from{border-right-color: rgba(255,255,255,.75);}
  to{border-right-color: transparent;}
}





/*下にスクロール*/
.scroll  {
  /* padding-top: 60px; */
  /* position: absolute; */
  /* bottom: -30px; */
  /* left: 49%; */
  z-index: 2;
  display: inline-block;
  /* -webkit-transform: translate(0, -50%); */
  /* transform: translate(0, -50%); */
  text-decoration: none;
color:#fff;
}

.scroll span {
  /* position: absolute; */
  /* top: 0; */
  /* left: 50%; */
  width: 30px;
  height: 30px;
  margin-left: -12px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-animation: sdb 2s infinite;
  animation: sdb 2s infinite;
  box-sizing: border-box;
}
@-webkit-keyframes sdb {
  0% {-webkit-transform: rotate(-45deg) translate(0, 0);}
  20% {-webkit-transform: rotate(-45deg) translate(-10px, 10px);}
  40% {-webkit-transform: rotate(-45deg) translate(0, 0);}
}
@keyframes sdb {
  0% {transform: rotate(-45deg) translate(0, 0);}
  20% {transform: rotate(-45deg) translate(-10px, 10px);}
  40% {transform: rotate(-45deg) translate(0, 0);}
}

