/* common */

html {
  height: 100%;
}
body {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #2f2f2f;
    height: 100%;
}

.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

/* keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotateMenu {
  from {
    transform: translateX(0px) rotate(0deg);
  }
  to {
    transform: translateX(0px) rotate(-90deg);
    transform-origin: right top;
  }
}

@keyframes closeMenu {
  from {
    height: 40px;
  }
  to {
    height: 0;
  }
}

@keyframes moveMenu {
  from {
    opacity: 1;
    transform: translateX(0px) rotate(-90deg);
  }
  to {
    opacity: 0;
    transform: translateX(100px) rotate(-90deg);
  }
}

/* animator */
.animator.fadein {
  opacity: 0;
}

.animator.fadein.active {
  animation: fadeIn 1s 0s forwards;
}

.animator.fadein.lazy.active {
  animation: fadeIn 1s 0.5s forwards;
}

.animator.slidein.left.active {
  animation: slideInLeft 1s 0s forwards;
}

.animator.slidein.right.active {
  animation: slideInRight 1s 0s forwards;
}

/* header */
header {
  z-index: 10;
  font-size: 18px;
  margin: 10px;
  position: fixed;
}

nav ul li {
  list-style: none;
  margin: 10px 0;
}

nav ul li a {
  writing-mode: vertical-rl;
  color: #2f2f2f;
  text-decoration: none;
}

nav ul li a.active {
  animation: rotateMenu 0.5s 0.2s forwards, moveMenu 0.4s 0.3s forwards, closeMenu 0.5s 0.6s forwards;
}



/* section common */
.section_wrapper {
  scroll-snap-type: y mandatory;
  height: 100%;
  overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.section_wrapperx::-webkit-scrollbar{
  display:none;/* Chrome, Safari 対応 */
}

section {
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  padding: 0 20px;
  height: 100%;
  max-height: 100%;
  box-shadow: 0px -1px 10px rgba(0, 0, 0, 0.3);
}

section:nth-child(odd) {
  background-color: #fff;
}

section:nth-child(even) {
  background-color: #f7d302;
}

section:first-child {
  margin-top: 0;
  z-index: 0;
}

section:nth-child(2) {
  z-index: 1;
}
section:nth-child(3) {
  z-index: 2;
}
section:nth-child(4) {
  z-index: 3;
}
section:nth-child(5) {
  z-index: 4;
}


h1 {
  z-index: 1;
  position: absolute;
}

h1 img{
  display: block;
  margin: 0 auto;
  width: 80%;
  max-width: 512px;
}

h2 {
  margin: 40px 0 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* top */
.main_visual {
  background: url(../images/hero.png) fixed right bottom / contain no-repeat;
  transform: translate3d(0, 0, 0);
  position: relative;
  height: 100%;
}

.copy {
  position: absolute;
  right: 0;
  bottom: 20px;
}

.copy p {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* story */
.story_inner {
  background-color: #fff;
  box-shadow: 1px 1px 10px rgba(0,0,0,0.6);
  text-align: center;
  width: auto;
  padding: 40px 20px;
  line-height: 1.8;
  border-radius: 5px;
}

.story_inner p {
  margin-bottom: 40px;
}

.story_bg {
  background: url(../images/story.png) fixed center bottom / contain no-repeat;
  transform: translate3d(0, 0, 0);
  height: 100%;
}

/* how to play */

/* spec */
.howto_bg{
  background: url(../images/howto.png) fixed right top / contain no-repeat;
  transform: translate3d(0, 0, 0);
  height: 100%;
}

.step {
  background-color: #fff;
  box-shadow: 1px 1px 10px rgba(0,0,0,0.6);
  text-align: center;
  width: auto;
  padding: 20px 10px;
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin-bottom: 20px;
  border-radius: 5px;
}

.step h3 {
  font-weight: bold;
  text-align: left;
  width: 100%;
  margin-left: 40px;
  position: relative;
  margin-bottom: 10px;
}

.step h3 span {
  color: #f7d302;
  opacity: 0.5;
  font-size: 2em;
  position: absolute;
  top: -14px;
  left: -40px;
  font-weight: bold;
  margin-right: 10px;
}

.step .img_wrapper {
  width: 30%;
}

.step .img_wrapper img {
  width: 80%;
  height: auto;
}

.step .text_wrapper {
  text-align: left;
  width: 70%;
  line-height: 1.2;
}
.step .text_wrapper p {
  margin: 0 0 10px 10px;
}

/* spec */
.spec_bg{
  width: 100%;
  position: absolute;
  left: 0;
  background: url(../images/product.jpg) fixed center top / contain no-repeat;
  transform: translate3d(0, 0, 0);
  height: 100%;
}

.spec_inner {
  margin: 70% 20px 0;
  bottom: 40px;
  z-index: 3;
  background-color: #fff;
  box-shadow: 1px 1px 10px rgba(0,0,0,0.6);
  text-align: center;
  width: auto;
  padding: 40px 20px;
  line-height: 1.8;
  border-radius: 5px;
}

.spec_inner dl {
  display: flex;
}

.spec_inner dt {
  width: 50%;
  text-align: left;
  margin-right: 20px;
}

/* contanct */
.links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.links li {
  width: 33%;
  margin-bottom: 20px;
}

.links li a {
  position: relative;
  background-color: #f7d302;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  width: 48px;
  height: 48px;
}

.links li a span {
  color: #2f2f2f;
  position: absolute;
  display: block;
  background: #fff;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.6);
  padding: 5px 10px;
  border-radius: 5px;
  top: 53px;
  opacity: 0;
  transition: ease;
  word-break: keep-all;
}

.links li a:hover {
  transform: scale(1.05);
  box-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.links li a:hover span{
  opacity: 1;
  transition: ease;
}

.logo {
  display: block;
  margin: 0 auto 20px;
}

.developer h3 {
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.developer h3 span {
  border-bottom: 1px solid #2f2f2f ;
}

.developer ul {
  width: 50%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.developer ul li {
  width: 33%;
  display: inline-flex;
  margin-bottom: 20px;
}

.developer ul li p{
  margin: 0 auto;
}


/* icon */
.twitter::before {
  content: '';
  background-image: url(../images/twitter.svg);
  width: 32px;
  height: 32px;
  margin-top: 8px;
  margin-left: 8px;
  position: absolute;
}

.cart::before {
  content: '';
  background-image: url(../images/cart.svg);
  width: 32px;
  height: 32px;
  margin-top: 8px;
  margin-left: 8px;
  position: absolute;
}

.email::before {
  content: '';
  background-image: url(../images/envelop.svg);
  width: 32px;
  height: 32px;
  margin-top: 8px;
  margin-left: 8px;
  position: absolute;
}

.file::before {
  content: '';
  background-image: url(../images/file.svg);
  width: 32px;
  height: 32px;
  margin-top: 8px;
  margin-left: 8px;
  position: absolute;
}


/* for pc attend */
@media (min-width:960px) {
  body {
    font-size: 18px;
  }

  header {
    font-size: 24px;
  }

  h2 {
    font-size: 24px;
  }

  section {
    padding: 0 40px;
  }

  .copy p{
    font-size: 24px;
  }

  .story_bg {
    background-position: left bottom;
  }

  .story_inner {
    width: 40%;
    float: right;
  }

  .step {
    width: 40%;
    margin-bottom: 10px;
  }

  .spec_bg {
    background-position: left bottom;
  }

  .spec_inner {
    width: 40%;
    float: right;
    margin-right: 40px;
  }
  .links {
    width: 50%;
    margin: 0 auto;
  }

  .links li {
    width: 16.5%;
  }
}