/*
Theme Name: RPG風 コントローラー
Version: 1.0
Author:Seiki Nishijima

  $Id: style.css,v1.0 $
*/
/*===========================================================================
-----------------------------------------------------------------------------
  共通 変数　ここから
-----------------------------------------------------------------------------
===========================================================================*/
:root {
  --color-moji: #777;
  --color-title: #222;
  --color-milk: #fff;

  --font-eiji: "Poppins", sans-serif;
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  :root {
  }
}
/*===========================================================================
-----------------------------------------------------------------------------
  共通設定　ここから
-----------------------------------------------------------------------------
===========================================================================*/
html {
  -webkit-text-size-adjust: none;
  overscroll-behavior: none;
}
body {
  padding: 0 0 0 0;
  margin: 0 auto;
  text-align:center;
  background: var(--color-milk);
  color: var(--color-moji);
  font-size: 1.25vw;
}
#background {
  padding: 0 0 0 0;
  margin:0px auto;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}
#background section {
  width: 80vw;
  max-width: 1000px;
  margin: auto;
}
/** 小さい画面用分岐 **/
@media screen and (max-width: 1200px) {
  body {
    font-size: 16px;
  }
}
/*-----------------------------------*/
#background img {
  vertical-align: middle;
  box-sizing: border-box;
  width: 100%;
  height: auto;
}
/*===========================================================================
-----------------------------------------------------------------------------
  共通ヘッダー・フッター設定　ここから
-----------------------------------------------------------------------------
===========================================================================*/
#background header ,
#background footer {
  margin: 3vw auto;
}
#background header h1 {
  text-align: center;
  font-weight: 500;
}
#background header h1 small {
  display: block;
  text-align: center;
  font-family: var(--font-eiji);
  font-weight: 800;
  font-size: 3vw;
  line-height: 1.8em;
  color: var(--color-title);
}
#background footer address {
  display: block;
  text-align: center;
  font-family: var(--font-eiji);
  font-weight: 500;
  font-style: normal;
}
/** 小さい画面用分岐 **/
@media screen and (max-width: 1200px) {
  #background header h1 small {
    font-size: 2.25em;
  }
}

/*------------------------------------
  操作・クレジット 設定　ここから
-------------------------------------*/
#background footer h3 {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--color-title);
}
#background footer ul {
  margin-bottom: 1em;
}


/*===========================================================================
-----------------------------------------------------------------------------
  ゲーム画面 設定　ここから
-----------------------------------------------------------------------------
===========================================================================*/
#background #game-container {
  display: block;
  width: 64vh;
  height: 64vh;
  max-width: 64vw;
  max-height: 64vw;
  background: -moz-linear-gradient(top, #0bf ,#fff 50%);
  background: -webkit-linear-gradient(top, #0bf , #fff 50%);
  background: linear-gradient(to bottom, #0bf , #fff 50%);
  margin: auto auto 2em;
  position: relative;
  border-radius: 2vh;
  overflow: hidden;
  perspective: 64vw;
}
#background #game-container:before {
  content: "";
  display: block;
  width: 200%;
  height: 200%;
  background: url(./8bit-map.png) repeat 0 0;
  background-size: 104px;/*
  background: url(./8bit-chara.png) no-repeat 100% 100%;
  background-size: 300% 300%;*/
  transform: rotate3d(1, 0, 0, 75deg);
  transform-style: preserve-3d;
  position: absolute;
  bottom: -50%;
  left: -50%;
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background #game-container {
    width: 80vw;
    height: 80vw;
    max-width: 80vw;
    max-height: 80vw;
  }
}
/*------------------------------------
  コントローラーの状態 設定　ここから
-------------------------------------*/
#background #game-container .text-box {
  display: block;
  font-size: 1.2em;
  line-height: 1em;
  font-family: var(--font-eiji);
  font-weight: 700;
  color: var(--color-milk);
  position: absolute;
  left: 1em;
  top: 1em;
  filter: drop-shadow(0.1em 0.1em 0 rgba(0,0,0,0.7));
}
#background #game-container .text-box#text-box2 {
  left: auto;
  right: 1em;
  text-align: right;
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
}

/*===========================================================================

   キャラクター設定　ここから

===========================================================================*/
#background #player {
  width: 20% !important;
  height: 20% !important;
  position: absolute;
  bottom: 2%;
  left: 40%;
  z-index: 200;
  background: url(./8bit-chara.png) no-repeat 50% 50%;
  background-size: 303% 303%;
  animation-name: anime-bottom;
  animation-duration: 1s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
#background #player.left ,
#background #player.right {
  background-position: 50% 0;
  animation-name: anime-side;
}
#background #player.top {
  background-position: 50% 100%;
  animation-name: anime-top;
}
#background #player.left {
  transform: scaleX(-1);
}
@keyframes anime-bottom {
    0% { background-position:  50% 50%; }
   50% { background-position: 100% 50%; }
}
@keyframes anime-side {
    0% { background-position:  50% 0; }
   50% { background-position: 100% 0; }
}
@keyframes anime-top {
    0% { transform: scaleX( 1); }
   50% { transform: scaleX(-1); }
}

/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
}
/*------------------------------------
  宝箱 設定　ここから
-------------------------------------*/
#background #treasure-box {
  width: 20% !important;
  height: 20% !important;
  position: absolute;
  bottom: 54%;
  left: 40%;
  z-index: 200;
  background: url(./8bit-chara.png) no-repeat 0 0;
  background-size: 303% 303%;
}
#background #treasure-box.open {
  background-position: 0 50%;
}
#background #treasure-box:before {
  content: "";
  display: block;
  width: 80%;
  height: 80%;
  position: absolute;
  bottom: 0;
  left: 10%;
  z-index: 900;
  background: url(././8bit-chara.png) no-repeat 0 100%;
  background-size: 303% 303%;
  transform: rotate(45deg);
  filter: Alpha(opacity=0);
  opacity: 0;
  transition: all 0.5s ease;
}
#background #treasure-box.open:before {
  width: 140% !important;
  height: 140% !important;
  filter: Alpha(opacity=100);
  opacity: 1;
  left: -30%;
  bottom: 50%;
}

/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
}
/*===========================================================================

  コントローラー設定　ここから

===========================================================================*/
#background #svg-controller {
  display: block;
  width: 64vh;
  max-width: 64vw;
  margin: auto;
}

/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background #svg-controller {
    width: 80vw;
    max-width: 80vw;
  }
}
/*===========================================================================

  設定　ここから

===========================================================================*/


/*------------------------------------
  設定　ここから
-------------------------------------*/

/*-----------------------------------*/

/** 小さい画面用分岐 **/
@media screen and (max-width: 1200px) {
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
}