/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  line-height: 1;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

nav ul {
  list-style: none;
}

li {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/* change colours to suit your needs */
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

/* change colours to suit your needs */
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

input, select {
  vertical-align: middle;
}

/* ----------------------------
      layout
---------------------------- */
html {
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: inline-block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

a:link,
a:visited {
  text-decoration: none;
}

/* ----------------------------
      main
---------------------------- */
body {
  position: relative;
  color: #4530ff;
  width: 100%;
  height: 100%;
  background: #002378;
  font-family: "M PLUS Rounded 1c";
}

body:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: -moz-linear-gradient(top, #000538 0%, rgba(0, 5, 56, 0) 100%);
  background: -webkit-linear-gradient(top, #000538 0%, rgba(0, 5, 56, 0) 100%);
  background: linear-gradient(to bottom, #000538 0%, rgba(0, 5, 56, 0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000538', endColorstr='#00000538',GradientType=0 );
}

.container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: url(../img/kasasagi/hero_bg.png);
  background-repeat: space;
  background-position: center center;
}

.words-container {
  width: 92%;
  height: 100%;
  position: relative;
  margin: 0 auto;
}

.words-container li {
  min-width: 100%;
  line-height: 1.66;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  opacity: 0;
}

@media screen and (min-width: 768px) {
  .words-container li {
    font-weight: normal;
  }
}

.words-container li.words-item__1 {
  font-size: 5.5vw;
  animation-duration: 3.8s !important;
}

@media screen and (min-width: 768px) {
  .words-container li.words-item__1 {
    font-size: 3.5vw;
  }
}

.words-container li.words-item__2 {
  font-size: 5.5vw;
  animation-duration: 3.8s !important;
}

@media screen and (min-width: 768px) {
  .words-container li.words-item__2 {
    font-size: 3.5vw;
  }
}

.words-container li.words-item__3 {
  font-size: 6vw;
  animation-duration: 3.8s !important;
}

@media screen and (min-width: 768px) {
  .words-container li.words-item__3 {
    font-size: 3.5vw;
  }
}

.words-container li.words-item__4 {
  font-size: 4.5vw;
  animation-duration: 3.8s !important;
}

@media screen and (min-width: 768px) {
  .words-container li.words-item__4 {
    font-size: 3vw;
  }
}

.words-container li.words-item__5 {
  font-size: 6vw;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .words-container li.words-item__5 {
    font-size: 3.5vw;
  }
}

.words-container li.words-item__6 {
  font-size: 5.5vw;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .words-container li.words-item__6 {
    font-size: 4.5vw;
  }
}

.words-container li.words-item__7 {
  font-size: 4.5vw;
  animation-duration: 3.8s !important;
}

@media screen and (min-width: 768px) {
  .words-container li.words-item__7 {
    font-size: 3.5vw;
  }
}

.words-container li:nth-child(1).is--animate {
  animation: through_text 3s ease-out forwards,  through_move1 3s linear forwards;
}

.words-container li:nth-child(2).is--animate {
  animation: through_text 3s ease-out forwards,  through_move2 3s linear forwards;
}

.words-container li:nth-child(3).is--animate {
  animation: through_text 3s ease-out forwards,  through_move3 3s linear forwards;
}

.words-container li:nth-child(4).is--animate {
  animation: through_text 3s ease-out forwards,  through_move4 3s linear forwards;
}

.words-container li:nth-child(5).is--animate {
  animation: through_text 3s ease-out forwards,  through_move5 3s linear forwards;
}

.words-container li:nth-child(6).is--animate {
  animation: through_text 3s ease-out forwards,  through_move2 3s linear forwards;
}

.words-container li:nth-child(7).is--animate {
  animation: through_text 3s ease-out forwards,  through_move4 3s linear forwards;
}

.words-container li:nth-child(8).is--animate {
  animation: through_text 3s ease-out forwards,  through_move3 3s linear forwards;
}

.words-container li:nth-child(9).is--animate {
  animation: through_text 3s ease-out forwards,  through_move2 3s linear forwards;
}

.words-container li:nth-child(10).is--animate {
  animation: through_text 3s ease-out forwards,  through_move5 3s linear forwards;
}

.words-container li:nth-child(11).is--animate {
  animation: through_text 3s ease-out forwards,  through_move1 3s linear forwards;
}

.words-container li:nth-child(12).is--animate {
  animation: through_text 3s ease-out forwards,  through_move5 3s linear forwards;
}

.words-container li:nth-child(13).is--animate {
  animation: through_text 3s ease-out forwards,  through_move1 3s linear forwards;
}

.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.stars {
  position: absolute;
  opacity: 0;
}

.stars img {
  max-width: 20px;
}

.stars:nth-child(1) {
  top: 10%;
  right: 10%;
}

.stars:nth-child(1).is--through img {
  animation: star_through 0.8s ease-out forwards,  star_move1 0.8s linear forwards;
}

.stars:nth-child(2) {
  top: 40%;
  right: 20%;
}

.stars:nth-child(2).is--through {
  animation: star_through 1s ease-out forwards,  star_move1 1s linear forwards;
}

.stars:nth-child(3) {
  top: 20%;
  right: 50%;
}

.stars:nth-child(3).is--through {
  animation: star_through 0.8s ease-out forwards,  star_move1 0.8s linear forwards;
}

.stars:nth-child(4) {
  top: 60%;
  right: 40%;
}

.stars:nth-child(4).is--through {
  animation: star_through 1.2s ease-out forwards,  star_move1 1.2s linear forwards;
}

@keyframes through_text {
  0% {
    opacity: 0.01;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}

@keyframes through_move1 {
  0% {
    transform: translateY(-95%) translateX(7%);
  }
  90% {
    transform: translateY(-95%) translateX(0);
  }
  100% {
    transform: translateY(-95%) translateX(-1%);
  }
}

@keyframes through_move2 {
  0% {
    transform: translateY(-15%) scale(0.85);
  }
  10% {
    transform: translateY(-15%) scale(0.89);
  }
  100% {
    transform: translateY(-15%) scale(1.1);
  }
}

@keyframes through_move3 {
  0% {
    transform: translateY(-70%) scale(0.95);
  }
  90% {
    transform: translateY(-75%) scale(1.05);
  }
  100% {
    transform: translateY(-77%) scale(1.08);
  }
}

@keyframes through_move4 {
  0% {
    transform: translateY(-25%) translateX(20%);
  }
  90% {
    transform: translateY(-25%) translateX(0);
  }
  100% {
    transform: translateY(-25%) translateX(-5%);
  }
}

@keyframes through_move5 {
  0% {
    transform: translateY(-80%) scale(1.3);
  }
  10% {
    transform: translateY(-80%) scale(1.15);
  }
  90% {
    transform: translateY(-80%) scale(1);
  }
  100% {
    transform: translateY(-80%) scale(0.95);
  }
}

@keyframes star_through {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes star_move1 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-250%, 250%);
  }
  100% {
    transform: translate(-490%, 495%);
  }
}

@keyframes star_move2 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-450%, 450%);
  }
  100% {
    transform: translate(-690%, 695%);
  }
}

@keyframes fade_in {
  0% {
    opacity: 0;
    top: -10px;
  }
  100% {
    opacity: 1;
    top: 0;
  }
}

@keyframes birds {
  0% {
    opacity: 0;
    transform: scale(0.95);
    right: -20px;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    right: 0;
  }
}

/* display  */
@media screen and (min-width: 768px) {
  .is--sp {
    display: none;
  }
  .is--pc {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .is--sp {
    display: block;
  }
  .is--pc {
    display: none;
  }
  .inline {
    display: inline-block;
  }
}
