/*
Theme Name: パズル
Version: 1.0
Author:Seiki Nishijima

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

  --color-block: #f5deb3;
  --color-frame2: #deb887;

  --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: grid;
  width: 64vh;
  height: 64vh;
  max-width: 64vw;
  max-height: 64vw;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 1vh;
  margin: auto;
  position: relative;
  border-radius: 2vh;
  border: 1vh solid var(--color-frame);
  background: var(--color-panel);
  container-type: inline-size;
}
/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background #game-container {
    width: 80vw;
    height: 80vw;
    max-width: 80vw;
    max-height: 80vw;
    gap: 0.5vw;
    border-radius: 2vh;
    border: 1vh solid var(--color-frame);
  }
}

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

  ブロック 設定　ここから

===========================================================================*/
#background .block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-block);
  cursor: pointer;
  border: 0.8vh solid var(--color-frame2);
  border-radius: 1vh;
  font-family: var(--font-eiji);
  font-size: 6cqw;
  font-weight: 800;
  line-height: 1em;
  color: var(--color-frame);
}
#background .empty {
  background-color: var(--color-panel);
  border: none;
}

/** スマートフォン用分岐 **/
@media screen and (max-width: 740px) {
  #background .block {
    border-width: 0.5vw;
    border-radius: 1vh;
  }
}


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

  設定　ここから

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


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

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

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