/*
Theme Name: サンプル少女2
Version: 1.0
Author:Seiki Nishijima

  $Id: style.css,v1.0 $
*/
/*===========================================================================
-----------------------------------------------------------------------------
  共通 変数　ここから
-----------------------------------------------------------------------------
===========================================================================*/
:root {
  --color-moji: #777;
  --color-title: #222;
  --color-milk: #fff;
  --color-user: #f0f8ff;
  --color-ai: #ffefd5;
  --color-send: #1e90ff;
  --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: 100%;
  padding-top: 56.25%;/*
  max-width: 740px;*/
  margin: auto auto 40px;
  border: 4px solid var(--color-moji);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background #game-container {
    padding-top: 100%;
  }
}
/*===========================================================================

  背景 設定　ここから

===========================================================================*/
#background #game-container > .background-bar {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
#background #game-container > .background-bar:before {
  content: "";
  display: block;
  width: 101%;
  height: 101%;
  background: url(./bg-counter.png) no-repeat 50% 50%;
  background-size: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
}
#background #game-container > .background-bar > svg {
  object-fit: cover;
  width: 101%;
  height: 101%;
}


/*===========================================================================
-----------------------------------------------------------------------------
  チャット欄 設定　ここから
-----------------------------------------------------------------------------
===========================================================================*/
#background #game-container > #chat-log {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  width: 94%;
  height: calc(100% - 80px);
  position: absolute;
  left: 3%;
  top: 3%;
  z-index: 200;
  filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.4));
}
#background #game-container > #input-area {
  display: flex;
  align-items: flex-end;
  width: 70%;
  max-width: 640px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: 2%;
  z-index: 300;
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background #game-container > #input-area {
    width: 90%;
  }
}
/*------------------------------------
  吹き出し 設定　ここから
-------------------------------------*/
#background #chat-log > div {
  display: block;
  max-width: 40%;
  margin: 0 auto;
  border-radius: 1em;
  padding: 0.6em 1em;
  animation: fadeIn 0.3s ease-in forwards;
  color: var(--color-title);
  font-size: 15px;
  line-height: 1.4em;
}
#background #chat-log > div:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  position: absolute;
  bottom: -5px;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    margin-bottom: calc(0.5em + 5px);
    margin-top: -0.5em;
  }
  100% {
    opacity: 1;
    margin-bottom: 5px;
    margin-top: 0;
  }
}

#background #chat-log .user-log {
  margin-right: 0;
  background: var(--color-user);
}
#background #chat-log .user-log:before {
  background: var(--color-user);
  right: 1em;
}
#background #chat-log .ai-log {
  margin-left: 0;
  background: var(--color-ai);
}
#background #chat-log .ai-log:before {
  background: var(--color-ai);
  left: 1em;
}

/*------------------------------------
  入力欄 設定　ここから
-------------------------------------*/
#background #input-area button {
  display: block;
  width: 40px;
  height: 40px;
  background: var(--color-send) url(./send.svg) no-repeat 50% 50%;
  background-size: 60%;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  text-indent: -6em;
  margin: auto 0 0 20px;
}
#background #input-area textarea {
  resize: none;
  overflow: hidden;
  width: calc(100% - 60px);
  font-size: 16px;
  padding: 0.5em 1em;
  box-sizing: border-box;
  line-height: 1.4em;
  max-height: 200px;
  border: none;
  outline: none;
  border-radius: 1em;
  transition: all 0.5s ease;
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background #input-area textarea {
    width: calc(100% - 45px);
  }
  #background #input-area button {
    margin-left: 5px;
  }
}

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

  アバター設定　ここから

===========================================================================*/
#background #game-container #avatar {
  display: block;
  width: 64%;
  height: 88%;
  background: url(./robot.png) no-repeat 50% 50%;
  background-size: contain;
  position: absolute;
  left: 18%;
  top: 12%;
  z-index: 50;
}
#background #game-container #avatar:before {
  content: "";
  display: block;
  width: 10%;
  padding-top: 10%;
  background: url(./emo-idl.svg) no-repeat 50% 50%;
  background-size: contain;
  position: absolute;
  left: 44.57%;
  top: 15%;
  z-index: 50;
  filter: drop-shadow(0 0 4px rgba(0,255,0,0.6));
}
#background #game-container #avatar.joy:before {
  background-image: url(./emo-joy.svg);
}
#background #game-container #avatar.sil:before {
  background-image: url(./emo-sil.svg);
}
#background #game-container #avatar.aff:before {
  background-image: url(./emo-aff.svg);
}
#background #game-container #avatar.dbt:before {
  background-image: url(./emo-dbt.svg);
}
#background #game-container #avatar.shr:before {
  background-image: url(./emo-shr.svg);
  filter: drop-shadow(0 0 4px rgba(0,255,255,0.6));
}
#background #game-container #avatar.sad:before {
  background-image: url(./emo-sad.svg);
  filter: drop-shadow(0 0 4px rgba(0,255,255,0.6));
}
#background #game-container #avatar.agr:before {
  background-image: url(./emo-agr.svg);
  filter: drop-shadow(0 0 4px rgba(255,0,0,0.6));
}
#background #game-container #avatar.dsg:before {
  background-image: url(./emo-dsg.svg);
  filter: drop-shadow(0 0 4px rgba(255,0,0,0.6));
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background #game-container #avatar:before {
    width: 18%;
    padding-top: 18%;
    left: 40.27%;
    top: 16%;
  }
}
/*===========================================================================

  設定　ここから

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


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

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

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