body {
  background-color: #fff;
}

.mainwrap {
  width: 100%;
  height: auto;
  z-index: 10;
  position: relative;
}
.mainwrap img {
  width: 100%;
}

.youtubewrap {
  width: 100%;
  max-width: 600px;
  position: absolute;
  top: 35%;
  left: 11%;
  z-index: 100 !important;
  border: 1px solid #fff;
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.8);
}

.logo {
  width: 55%;
  min-width: 300px;
  max-width: 1150px;
  position: absolute;
  top: 1%;
  left: 2%;
}

.acatch {
  width: 100%;
  position: absolute;
  z-index: 100;
  bottom: 12%;
  transform: rotate(-10deg);
}
.acatch img {
  width: 100%;
}



.block1 {
  width: 100%;
  height: 700px;
  position: relative;
  z-index: 20;
  top: -350px;
  background-image: url(../afools/block1.png);
  padding-top: 400px;
}
.block2 {
  width: 100%;
  min-height: 500px;
  position: relative;
  z-index: 20;
  top: -350px;
  background-image: url(../afools/block2.png);
  padding-bottom: 100px;
}
.block3 {
  width: 100%;
  min-height: 800px;
  position: relative;
  z-index: 20;
  top: -350px;
  background-image: url(../afools/block3.png);
}
.contwrap,
.contwrap {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.contwrap2 {
  padding-top: 200px;
  padding-bottom: 100px;
}
.astorybox {
  width: 100%;
  max-width: 1000px;
  margin-top: -50px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 10px solid #000;
  padding: 10px;
  line-height: 1.3em;
  background-image: url(../afools/bg_story.jpg);
  background-size: cover;
}

.acharabox {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 100px;
  height: auto;
}
.acharabox2 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  flex-direction:row-reverse;
  height: auto;
}
.acharabox2 img,
.acharabox img {
  width: 100%;
  height: auto;
  min-width: 320px;
  max-width: 500px;
  align-self: flex-start;
}
.acharabox2 p,
.acharabox p {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  border: 4px solid #000;
  background-image: url(../img/black_50.png);
  padding: 10px;
  line-height: 1.3em;
  margin-top: 30px;
  margin-bottom: 30px;
  color: #fff;
}

.aclose {
  width: 70px;
  height: 70px;
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  background-color: #000;
  z-index: 1000;
  color: #fff;
  cursor: pointer;
}


.gamebox {
  position: absolute;
  width: 100%;
  max-width: 500px;
  border: 1px solid #fff;
  top: 15%;
  bottom: auto;
  right: auto;
  left: 50%;
  cursor: pointer;
}

.gamebox:before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.gamebox2 p,
.gamebox p {
  width: 100%;
  position: absolute;
  text-align: center;
  color: #fff;
  top: -26px;
  font-size: 24px;
  font-weight: bold;
}
.gamebox2 {
  position: absolute;
  width: 100%;
  max-width: 500px;
  border: 1px solid #fff;
  top: 65%;
  right: 50%;
  left: auto;
  cursor: pointer;
}

.gamebox2:before {
  content: "";
  display: block;
  padding-top: 56%;
}

.gamebox2 img,
.gamebox img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
}
.lastcatch {
  width: 100%;
  text-align: center;
  margin-top: -200px;
}
.lastcatch img {
  width: 100%;
  height: auto;
  max-width: 1000px;
}


/******************************** スマホ ********************************/

/* 800px以下 */
@media only screen and (max-width: 800px) {
  .logo {
    width: 70% !important;
  }
  .youtubewrap {
    width: 40%;
    top: 0px;
    left: 5%;
    right: auto;
    margin: auto;
  }
  .astorybox {
    width: 90%;
  }
  .block1 {
    height: 400px;
  }
  .gamebox2,
  .gamebox {
    position: unset;
    position: relative;
    width: 100%;
    max-width: 500px;
    border: 1px solid #fff;
    margin-bottom: 100px;
    left: 0;
    right: 0;
    margin: auto;
  }
  .gamebox2 img,
  .gamebox img {
    position: unset;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
  }
  h3 {
    width: 90%;
  }
  .spectable,
  .productbox {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .contwrap2 {
    padding-top: 0;
  }
}

/* 400px以下 */
@media only screen and (max-width: 400px) {
  .mainwrap .logo {
    width: 20%;
    min-width: 250px;
    max-width: 1000px;
  }
  .youtubewrap {
    width: 90%;
    top: 350px;
    left: 0;
    right: 0;
    margin: auto;
  }
  .block1 {
    height: 600px;
  }
  .astorybox {
    width: 90%;
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border: 2px solid #000;
    padding: 10px;
    line-height: 1.3em;
    background-position: center;
  }
  .astorybox span {
    width: 100%;
    text-align: right;
    display: block;
    font-size: 12px;
  }
  .acharabox {
    margin-bottom: 0;
  }
  .acharabox2 p,
  .acharabox p {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #fff;
    padding: 10px;
    margin-top: 0;
  }
  h3,
  .productbox,
  .spectable {
    width: 90%;
  }

  .block3 {
    padding-top: 0px;
  }
  .gamebox2,
  .gamebox {
    position: unset;
    position: relative;
    width: 100%;
    max-width: 500px;
    border: 1px solid #fff;
    margin-bottom: 100px;
    left: 0;
    right: 0;
  }
  .gamebox2 img,
  .gamebox img {
    position: unset;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
  }
  .contwrap2 {
    padding-top: 0px;
    padding-bottom: 100px;
  }
}