/* ===================================================================
mixins
=================================================================== */
/* ===================================================================
babchoo-entrance
===================================================================*/
.babchoo-entrance {
  width: 100%;
  height: 100%;
  background: url(../images/common/bg-texture.png) repeat center transparent;
  background-size: 180px auto;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
}

.babchoo-entrance__inner {
  width: 100%;
  height: 100%;
}

.babchoo-entrance__anime {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.is-disappear .babchoo-entrance__anime {
  -webkit-animation: entrance_disappear 2.5s ease both;
          animation: entrance_disappear 2.5s ease both;
  border-radius: 100%;
}

.babchoo-entrance__door {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background: url(../images/top/anime/entrance-door.png) no-repeat center transparent;
  background-size: cover;
  transition: all 3s ease;
  -webkit-transform: scale(1) translate(-50%, -50%);
          transform: scale(1) translate(-50%, -50%);
}

.is-enlarged .babchoo-entrance__door {
  -webkit-transform: scale(1.35) translate(-37%, -50%);
          transform: scale(1.35) translate(-37%, -50%);
}

.babchoo-entrance__board {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background: url(../images/top/anime/entrance-board.png) no-repeat center transparent;
  background-size: cover;
  z-index: 10001;
}

.babchoo-entrance__board.is-shake {
  -webkit-animation: entrance_shake 0.25s ease-in both;
          animation: entrance_shake 0.25s ease-in both;
}

/* ===================================================================
babchoo-top-room
===================================================================*/
.babchoo-top-room__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-room__inner {
    width: 50%;
    max-width: 700px;
    padding: 0;
  }
}

.babchoo-top-room__anime {
  background: url(../images/top/anime/room-bg.png) no-repeat center #fff;
  background-size: contain;
  width: 100%;
  max-width: 100%;
  height: 0;
  margin: 0 auto;
  padding-top: calc(697 / 700 * 100%);
  position: relative;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-room__anime {
    width: 100%;
    max-width: 700px;
  }
}

.babchoo-top-room__item {
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  background-size: contain;
  width: 100%;
  max-width: 100%;
  height: 0;
  margin: 0 auto;
  padding-top: calc(697 / 700 * 100%);
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease 0.5s;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-room__item {
    width: 100%;
    max-width: 700px;
  }
}

.babchoo-top-room__item.is-active {
  opacity: 1;
}

.babchoo-top-room__item.movie {
  background-image: url(../images/top/anime/room-movie.png);
}

.babchoo-top-room__item.twitter {
  background-image: url(../images/top/anime/room-twitter.png);
}

.babchoo-top-room__item.profile {
  background-image: url(../images/top/anime/room-profile.png);
}

.babchoo-top-room__hint {
  width: 18.573%;
  position: absolute;
  top: 0;
  left: 0;
}

.babchoo-top-room__hint .trigger {
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0px;
  display: block;
  background-image: url(../images/top/anime/room-hint.png);
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  background-size: contain;
  width: 100%;
  height: 0;
  margin: 0 auto;
  padding-top: calc(88 / 130 * 100%);
  position: relative;
  -webkit-animation: room_hint 2.5s ease-in-out infinite;
          animation: room_hint 2.5s ease-in-out infinite;
}

.babchoo-top-room__hint.movie {
  top: 63%;
  left: 15%;
  -webkit-transform: rotate(0.001deg);
          transform: rotate(0.001deg);
}

.babchoo-top-room__hint.movie .trigger {
  background-image: url(../images/top/anime/room-hint-movie.png);
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}

.babchoo-top-room__hint.twitter {
  top: 54.5%;
  left: 59.5%;
  -webkit-transform: rotate(-30deg);
          transform: rotate(-30deg);
}

.babchoo-top-room__hint.twitter .trigger {
  background-image: url(../images/top/anime/room-hint-x.png);
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

.babchoo-top-room__hint.profile {
  top: 60.5%;
  left: 79%;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
}

.babchoo-top-room__hint.profile .trigger {
  background-image: url(../images/top/anime/room-hint-profile.png);
  -webkit-animation-delay: 0.8s;
          animation-delay: 0.8s;
}

.babchoo-top-room-key {
  display: block;
  position: absolute;
  font-size: 0;
  top: 83%;
  left: 35%;
  width: 10%;
  background: url(../images/top/anime/room-ura-key.png) no-repeat center/contain;
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
  opacity: 0;
  transition: opacity .3s ease, -webkit-transform .3s ease-in;
  transition: transform .3s ease-in, opacity .3s ease;
  transition: transform .3s ease-in, opacity .3s ease, -webkit-transform .3s ease-in;
}

.babchoo-top-room-key::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.babchoo-top-room-key.is-active {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.babchoo-top-room-key__flash {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../images/top/anime/room-ura-key-flash.png) no-repeat center/contain;
  opacity: 0;
}

.babchoo-top-room-key__flash.is-active {
  -webkit-animation: key-flash 1s infinite;
          animation: key-flash 1s infinite;
}

@-webkit-keyframes key-flash {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes key-flash {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.babchoo-top-room-key__link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.babchoo-top-room-key__balloon {
  display: block;
  position: absolute;
  top: 35%;
  left: 60%;
  width: 150%;
  pointer-events: none;
  opacity: 0;
  -webkit-transform-origin: left 20%;
          transform-origin: left 20%;
  -webkit-transform: scale(0.5);
          transform: scale(0.5);
  transition: opacity .2s ease, -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out, opacity .2s ease;
  transition: transform 0.3s ease-out, opacity .2s ease, -webkit-transform 0.3s ease-out;
}

.babchoo-top-room-key__balloon::before {
  content: "";
  display: block;
  padding-top: 67.43295%;
  background: url(../images/top/anime/room-ura-balloon.png) no-repeat center/contain;
  -webkit-transform: rotate(15deg);
          transform: rotate(15deg);
}

.babchoo-top-room-key:hover .babchoo-top-room-key__balloon {
  opacity: 1;
  -webkit-transform: scale(1);
          transform: scale(1);
}

/* ===================================================================
babchoo-top-movie
===================================================================*/
.babchoo-top-movie {
  margin-top: 20px;
  background-color: #eb5e32;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-movie {
    margin-top: 40px;
  }
}

.babchoo-top-movie__data {
  margin-top: 20px;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-movie__data {
    margin-top: 40px;
  }
}

.babchoo-top-movie__data__inner {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
}

.babchoo-top-movie__data__inner > iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.babchoo-top-movie__button {
  margin-top: 20px;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-movie__button {
    margin-top: 40px;
  }
}

/* ===================================================================
babchoo-top-twitter
===================================================================*/
.babchoo-top-twitter {
  background-color: #fce7e0;
}

.babchoo-top-twitter__timeline__inner {
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-twitter__timeline__inner {
    margin: 40px auto 0;
  }
}

.babchoo-top-twitter__timeline__inner iframe {
  max-height: 300px !important;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-twitter__timeline__inner iframe {
    max-height: 300px !important;
  }
}

/* ===================================================================
babchoo-top-tiktok
===================================================================*/
.babchoo-top-tiktok__inner {
  padding: 0 0 100px;
}

.babchoo-top-tiktok__inner .babchoo-common-title {
  margin-bottom: 50px;
  text-align: center;
  padding-top: 10px;
}

.babchoo-top-tiktok_btn {
  text-align: center;
}

.babchoo-top-tiktok_btn a {
  background: #fff;
  padding: 15px 50px;
  border-radius: 100px;
  font-weight: bold;
  box-shadow: 2px 2px 1px 1px #303030;
  border: 2px solid #303030;
  position: relative;
}

.babchoo-top-tiktok_btn a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  position: absolute;
  background: url(/babchoo/images/movie/btn_sankaku.png) no-repeat;
  background-size: contain;
  right: 4px;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* ===================================================================
babchoo-top-profile
===================================================================*/
.babchoo-top-profile__inner {
  width: 100%;
  max-width: 100%;
  padding: 30px 0 0;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__inner {
    padding: 60px 0 0;
  }
}

.babchoo-top-profile__summary__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__summary__inner {
    width: 62.5%;
    max-width: 1000px;
    padding: 0;
  }
}

.babchoo-top-profile__summary__img {
  width: 160px;
  margin: 20px auto 0;
  border-radius: 100%;
  overflow: hidden;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__summary__img {
    width: 200px;
    margin: 40px auto 0;
  }
}

.babchoo-top-profile__summary__img img {
  display: block;
  width: 100%;
}

.babchoo-top-profile__summary__name {
  width: 170px;
  margin: 20px auto 0;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__summary__name {
    width: 282px;
    margin: 25px auto 0;
  }
}

.babchoo-top-profile__summary__name img {
  display: block;
  width: 100%;
}

.babchoo-top-profile__summary__text {
  margin: 20px auto 0;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__summary__text {
    margin: 40px auto 0;
  }
}

.babchoo-top-profile__intro {
  padding: 120px 0 100px;
  background-image: url(../images/common/bg-ink-white.png), url(../images/common/bg-texture.png);
  background-repeat: repeat-x, repeat;
  background-position: top center, center;
  background-color: transparent;
  background-size: auto 80px, 180px auto;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__intro {
    padding: 180px 0 60px;
    background-size: auto 120px, 180px auto;
  }
}

.babchoo-top-profile__intro__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__intro__inner {
    width: 62.5%;
    max-width: 1000px;
    padding: 0 40px;
  }
}

.babchoo-top-profile__intro__item {
  display: flex;
}

.babchoo-top-profile__intro__item:not(:first-child) {
  margin-top: 30px;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__intro__item:not(:first-child) {
    margin-top: 40px;
  }
}

.babchoo-top-profile__intro__item:nth-child(even) {
  flex-direction: row-reverse;
}

.babchoo-top-profile__intro__icon {
  flex: 0 0 auto;
  width: 40px;
  margin-right: 15px;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__intro__icon {
    width: 55px;
    margin-right: 20px;
  }
}

.babchoo-top-profile__intro__item:nth-child(even) .babchoo-top-profile__intro__icon {
  margin-right: 0;
  margin-left: 15px;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__intro__item:nth-child(even) .babchoo-top-profile__intro__icon {
    margin-left: 20px;
  }
}

.babchoo-top-profile__intro__icon img {
  display: block;
  width: 100%;
  border: 1px solid #fff;
  border-radius: 100%;
  overflow: hidden;
}

.babchoo-top-profile__intro__text {
  max-width: 61.12%;
  padding: 10px 20px;
  background-color: #fff;
  border-radius: 5px 20px 20px 20px;
  font-weight: bold;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__intro__text {
    max-width: 600px;
    padding: 15px 25px;
  }
}

.babchoo-top-profile__intro__item:nth-child(even) .babchoo-top-profile__intro__text {
  background-color: #eb5e32;
  border-radius: 20px 5px 20px 20px;
  color: #fff;
}

.babchoo-top-profile__intro__img {
  max-width: 61.12%;
  border-radius: 20px;
  overflow: hidden;
}

@media only screen and (min-width: 768px) {
  .babchoo-top-profile__intro__img {
    max-width: 400px;
  }
}

.babchoo-top-profile__intro__img img {
  display: block;
  width: 100%;
}

/* ===================================================================
animation
===================================================================*/
@-webkit-keyframes room_hint {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
}
@keyframes room_hint {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
}

@-webkit-keyframes entrance_shake {
  0% {
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
  40% {
    -webkit-transform: translate(-50.4%, -50%);
            transform: translate(-50.4%, -50%);
  }
  80% {
    -webkit-transform: translate(-49.5%, -50%);
            transform: translate(-49.5%, -50%);
  }
  90% {
    -webkit-transform: translate(-50.4%, -50%);
            transform: translate(-50.4%, -50%);
  }
  100% {
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
}

@keyframes entrance_shake {
  0% {
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
  40% {
    -webkit-transform: translate(-50.4%, -50%);
            transform: translate(-50.4%, -50%);
  }
  80% {
    -webkit-transform: translate(-49.5%, -50%);
            transform: translate(-49.5%, -50%);
  }
  90% {
    -webkit-transform: translate(-50.4%, -50%);
            transform: translate(-50.4%, -50%);
  }
  100% {
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
}

@-webkit-keyframes entrance_disappear {
  0%, 30% {
    width: 2000px;
    height: 2000px;
  }
  100% {
    width: 0;
    height: 0;
  }
}

@keyframes entrance_disappear {
  0%, 30% {
    width: 2000px;
    height: 2000px;
  }
  100% {
    width: 0;
    height: 0;
  }
}
