/* Welcome to Compass.
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent:
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

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

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

*:focus {
  outline: none;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
  text-decoration: none;
}

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

body {
  background: url(../img/background.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  height: 100vh;
  padding: 0;
  overflow-y: hidden;
}

main {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
}

img {
  width: 100%;
}

/* ==|====================
layout/_footer
======================= */
#footer .logo {
  position: absolute;
  top: 92%;
  width: 29%;
  height: 2%;
}
#footer .logo.funaicare {
  left: 16%;
}
#footer .logo.mombaby {
  left: 55%;
}
#footer span {
  position: absolute;
  top: 93.5%;
  left: 48%;
  width: 4%;
  display: inline-block;
}

/* ==|====================
   pages/index
   ======================= */
.home {
  height: 100vh;
  overflow-y: scroll;
}
.home .inner {
  position: relative;
  padding-top: 234%;
  width: 100%;
  background: url(../img/01-1.png) no-repeat center center;
  background-size: 100% auto;
}
.home .slogan-1 {
  position: absolute;
  top: 40%;
  left: 45%;
  width: 26%;
  -webkit-animation: start 0.8s cubic-bezier(0.4, 0, 1, 1) alternate forwards infinite;
          animation: start 0.8s cubic-bezier(0.4, 0, 1, 1) alternate forwards infinite;
}
.home .slogan-2 {
  position: absolute;
  top: 36%;
  left: 7%;
  width: 80%;
  opacity: 0;
  -webkit-animation: showIn 0.5s cubic-bezier(0.4, 0, 1, 1) alternate forwards;
          animation: showIn 0.5s cubic-bezier(0.4, 0, 1, 1) alternate forwards;
  -webkit-animation-delay: 0.25s;
          animation-delay: 0.25s;
}
.home .logo {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 76%;
  -webkit-animation: fadeIn 1.5s ease-in-out;
          animation: fadeIn 1.5s ease-in-out;
}
.home .share {
  position: absolute;
  top: 53%;
  right: 0;
  width: 17%;
  height: 8%;
}
.home .start {
  cursor: pointer;
  position: absolute;
  top: 56%;
  left: 31%;
  width: 38%;
  height: 7%;
}
.home .home-link {
  position: absolute;
  top: 80.5%;
  left: 59%;
  width: 22%;
  height: 2.5%;
}
@-webkit-keyframes start {
  0% {
    -webkit-transform: rotate(15deg) scale(0.95);
            transform: rotate(15deg) scale(0.95);
  }
  50% {
    -webkit-transform: rotate(0deg) scale(1.05);
            transform: rotate(0deg) scale(1.05);
  }
  to {
    -webkit-transform: rotate(-15deg) scale(1);
            transform: rotate(-15deg) scale(1);
  }
}
@keyframes start {
  0% {
    -webkit-transform: rotate(15deg) scale(0.95);
            transform: rotate(15deg) scale(0.95);
  }
  50% {
    -webkit-transform: rotate(0deg) scale(1.05);
            transform: rotate(0deg) scale(1.05);
  }
  to {
    -webkit-transform: rotate(-15deg) scale(1);
            transform: rotate(-15deg) scale(1);
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@-webkit-keyframes showIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes showIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-6px);
            transform: translateY(-6px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

.info-modal {
  position: relative;
  padding: 0;
  width: 326px;
  height: 757px;
  background-image: url(../img/02-1.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  display: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.info-modal .info-modal-btn {
  position: absolute;
  top: 91%;
  left: 23%;
  width: 45%;
}

.photo-logo {
  position: absolute;
  width: 83%;
  top: 0;
  left: 7%;
  z-index: 1;
}

.upload {
  height: 100vh;
  overflow-y: scroll;
}
.upload .inner {
  padding-top: 223%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
  background-image: url(../img/03-1.png);
}
.upload .image-field {
  position: absolute;
  top: 27%;
  left: 14%;
  width: 72%;
  height: 31%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.upload .btn {
  position: absolute;
  top: 60.5%;
  width: 33%;
  height: 5%;
}
.upload .upload-btn {
  left: 11%;
}
.upload .reset-btn {
  left: 55%;
}
.upload .next {
  position: absolute;
  top: 86.5%;
  left: 25%;
  width: 50%;
  height: 7%;
}
@media screen and (min-width: 768px) {
  .upload .inner {
    padding-top: 231%;
  }
}

.selection {
  height: 100vh;
  overflow-y: scroll;
}
.selection .inner {
  position: relative;
  padding-top: 223%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../img/04-1.jpg);
}
.selection .selection-image {
  position: absolute;
  top: 37%;
  left: 36%;
  width: 28%;
  height: 12%;
  border-radius: 50%;
  background-color: #fff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.selection .selection-hat {
  position: absolute;
  top: 35%;
  left: 35%;
  width: 29%;
}
.selection .selection-btn {
  position: absolute;
  width: 27%;
  height: 12%;
}
.selection .selection-btn.active::after {
  opacity: 1;
}
.selection .selection-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-image: url(../img/04-2.png);
  background-size: contain;
  background-repeat: no-repeat;
}
.selection .selection-btn.selection-1 {
  top: 62%;
  left: 6%;
}
.selection .selection-btn.selection-2 {
  top: 71%;
  left: 36%;
}
.selection .selection-btn.selection-3 {
  top: 63%;
  left: 67%;
}
.selection .go-game {
  position: absolute;
  top: 86.5%;
  left: 25%;
  width: 49%;
  height: 7%;
}
@media screen and (min-width: 768px) {
  .selection .inner {
    padding-top: 231%;
  }
}

.notice {
  height: 100vh;
  overflow-y: scroll;
}
.notice .inner {
  padding-top: 223%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
  background-image: url(../img/07-1.jpg);
}
.notice .notice-btn {
  position: absolute;
  width: 33%;
  height: 3%;
}
.notice .notice-btn.read-1 {
  top: 48%;
  left: 15%;
}
.notice .notice-btn.shop-1 {
  top: 48%;
  left: 52%;
}
.notice .notice-btn.read-2 {
  top: 82%;
  left: 15%;
}
.notice .notice-btn.shop-2 {
  top: 82%;
  left: 52%;
}
.notice .btn-again {
  position: absolute;
  top: 89%;
  left: 12%;
  width: 32%;
  height: 6%;
}
.notice .btn-home {
  position: absolute;
  top: 89%;
  left: 56%;
  width: 31%;
  height: 6%;
}

.info {
  height: 100vh;
  overflow-y: scroll;
}
.info .inner {
  padding-top: 223%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
  background-image: url(../img/02-1.png);
}
.info .go-game {
  position: absolute;
  top: 87.5%;
  left: 25%;
  width: 49%;
  height: 6%;
}
@media screen and (min-width: 768px) {
  .info .inner {
    padding-top: 231%;
  }
}

#game {
  -ms-touch-action: manipulation;
      touch-action: manipulation;
  height: auto;
}

.game {
  position: relative;
  background-color: #c6edf6;
  overflow: hidden;
}

.game-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

#game-background-image {
  top: 0;
  width: auto;
  height: 100vh;
}

.game-inner img {
  width: 100%;
}

.game-inner .game-main {
  height: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  -webkit-transform: translateY(0px);
          transform: translateY(0px);
  overflow: hidden;
}

.game-inner .game-main .game-baby {
  position: absolute;
  width: 2.5%;
  top: 65%;
  left: 3%;
  -webkit-transform: translate(-50%, -190px);
          transform: translate(-50%, -190px);
}
.game-inner .game-main .game-baby::after {
  content: "+1";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  color: pink;
  opacity: 0;
  -webkit-transform: translateY(-20px);
          transform: translateY(-20px);
  -webkit-transition: opacity 0.85s ease, -webkit-transform 0.85 linear;
  transition: opacity 0.85s ease, -webkit-transform 0.85 linear;
  transition: opacity 0.85s ease, transform 0.85 linear;
  transition: opacity 0.85s ease, transform 0.85 linear, -webkit-transform 0.85 linear;
}
.game-inner .game-main .game-baby.active::after {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.game-baby-body {
  display: none;
}

.game-inner .game-main .baby-head {
  position: absolute;
  top: 12%;
  left: 28%;
  width: 55%;
  height: 37%;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.game-tab {
  position: absolute;
  top: 30%;
  left: 3%;
  width: 10%;
  height: 5%;
  background-color: #fff;
  border-radius: 50%;
}

.game-inner .game-main .stones-item-01 {
  width: 0.05%;
  height: 3%;
}

.game-inner .game-main .stones-item-02 {
  width: 8%;
}

.game-inner .game-main .stones-item-03 {
  width: 5%;
}

.game-inner .game-main .stones-item-04 {
  width: 10%;
}

.game-jump {
  position: absolute;
  left: 5%;
  bottom: 5%;
  width: 90px;
  background-color: transparent;
  border: none;
  z-index: 1;
  cursor: pointer;
}

.page-loading {
  background-color: rgba(255, 255, 255, 0.8);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.page-loading .loader {
  background: #f89406;
  border-radius: 50%;
  height: 50px;
  left: 50%;
  margin-left: -23px;
  margin-top: -14px;
  position: absolute;
  top: 50%;
  width: 50px;
  -webkit-animation: load 0.75s linear infinite;
          animation: load 0.75s linear infinite;
}

.page-loading .loader:after {
  content: "";
  position: absolute;
  width: 49px;
  height: 49px;
  top: 1px;
  right: 0;
  left: 0;
  margin: auto;
  background: white;
  border-radius: 50%;
}

@-webkit-keyframes load {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes load {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.page-loading .text {
  color: #a2afbc;
  font-weight: 500;
  display: block;
  font-size: 11px;
  left: 50%;
  margin-left: -17px;
  margin-top: 44px;
  position: absolute;
  top: 50%;
}

.baby-image {
  position: absolute;
  top: 80.5%;
  left: 37%;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

@media screen and (min-width: 768px) {
  .game-start {
    left: 59%;
    width: 37%;
  }
}
.result {
  height: 100vh;
  overflow-y: scroll;
}
.result .inner {
  padding-top: 223%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
}
.result .inner.result-1 {
  background-image: url(../img/06-3.png);
}
.result .inner.result-2 {
  background-image: url(../img/06-2.png);
}
.result .inner.result-3 {
  background-image: url(../img/06-1.png);
}
.result .go-again {
  position: absolute;
  top: 89.5%;
  left: 12%;
  width: 33%;
  height: 6%;
}
.result .go-notice {
  position: absolute;
  top: 89.5%;
  left: 55%;
  width: 33%;
  height: 6%;
}
.result .pointer {
  position: absolute;
  top: 86%;
  left: 80%;
  width: 8.5%;
  -webkit-animation: scale 0.25s linear alternate forwards infinite;
          animation: scale 0.25s linear alternate forwards infinite;
}
.result .go-fb {
  position: absolute;
  top: 80.5%;
  left: 51%;
  width: 32%;
}
@media screen and (min-width: 768px) {
  .result .inner {
    padding-top: 231%;
  }
}

@-webkit-keyframes scale {
  from {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes scale {
  from {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}