*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
    font-family: sans-serif;
    font-size: 16px;
}
html, body {
    width: 100%;
    height: 100%;
}
/*---------------- ボディ ----------------*/
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #222225;
}
#wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    padding-top: 80px;
    background-color: #333;
    position: relative;
}
/*---------------- ヘッダー ----------------*/
#header-back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #222225;
}
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #222225;
    /*z-index: 1001;*/
}
#site-name {
    font-size: 28px;
    font-weight: bold;
    margin: 10px;
    text-decoration: none;
}
header > nav {
    margin: 10px;
}
header > nav > ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 60px;
    list-style: none;
}
header > nav > ul > li {
    font-size: 16px;
}
header > nav > ul > li > a {
    text-decoration: none;
    font-size: 16px;
}
/* 画面幅 900px 以下のときのヘッダーのスタイル */
@media(max-width:900px) {
    #wrapper {
        padding-top: 128px;
    }
    #header-back, header {
        height: 128px;
    }
    header {
        display: block;
        padding: 10px 20px;
    }
    header > nav {
        margin: 20px 10px 10px 10px;
    }
    header > nav > ul {
        justify-content: flex-start;
    }
}
/* ---------- 言語設定 ---------- */
#lang-button {
    position: relative;
    cursor: pointer;
}
#lang-ul {
    width: 80px;
    height: 80px;
    list-style: none;
    position: absolute;
    left: 0;
    top: 40px;
    opacity: 0;
    transition: opacity .5s ease;
    background: #222225;
    padding: 6px;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
#lang-ul.open {
    transition: opacity .5s ease;
    opacity: 1;
    z-index: 1000;
    pointer-events: auto;
    cursor: auto;
}
#lang-ul.open > li {
    pointer-events: auto;
    cursor: pointer;
}
#lang-ul > li {
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 32px;
}
#lang-ul > li:hover {
    background-color: #444;
}


/* ---------- ハンバーガーメニュー ---------- */
#menu-button {
    width: 48px;
    height: 48px;
    position: relative;
    cursor: pointer;
    z-index: 1000;
}
#menu-button span,
#menu-button span::before,
#menu-button span::after{
    content:"";
    display:block;
    width:24px;
    height:2px;
    background:#fff;
    pointer-events: none;
    position: absolute;
}
#menu-button span {
    transform:translate(12px, 23px);
    transition:transform .3s ease, opacity .3s ease;
}
#menu-button span::before{
    transform:translateY(-10px);
    transition:transform .3s ease;
}
#menu-button span::after{
    transform:translateY(10px);
    transition:transform .3s ease;
}
#menu-button.open span{
    background:transparent;
}
#menu-button.open span::before{
    transform:rotate(225deg);
}
#menu-button.open span::after{
    transform:rotate(-225deg);
}

/*---------------- ドロワーメニュー ----------------*/
#drawer {
    width: 240px;
    position: absolute;
    left: 0;
    top: 60px;
    height: 100%;
    /*height: calc(100vh - 60px);*/
    /* transform: translateY(-100vh); */
    opacity: 0;
    transition: opacity .5s ease;
    background: #222225;
    z-index: 0;
}
#drawer ul {
    list-style: none;
    padding: 20px;
}
#drawer li {
    margin: 12px 0;
}
#drawer a {
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}
#drawer.open {
    transform: translateX(0);
    opacity: 1;
    z-index: 1000;
}
#drawer.open a {
    pointer-events: auto;
    cursor: pointer;
}
#overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s;
    z-index: 999;
}

/* 画面幅 900px 以下のときのスタイル */
@media(max-width:900px) {
    #drawer.open~#overlay {
        opacity: 1;
        pointer-events: auto;
    }
    main {
        padding-left: 0px;
    }
}
/*---------------- メイン ----------------*/
main{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    overflow-y: auto;
    transition: padding-left .5s ease;
}
body.open main {
    padding-left: 240px;
}
h1 {
    margin: 20px;
    font-size: 32px;
    font-weight: bold;
}
#game-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    justify-items: center;
    gap: 20px;
    padding: 60px 40px;
}
.game-card {
    width: 280px;
    height: 470px;
    position: relative;
    background-color: #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.game-card img {
    width: 250px;
    height: 250px;
    display: block;
    margin-top: 15px;
    background-color: #666;
}
.game-card-title {
    width: 250px;
    font-size: 24px;
    font-weight: bold;
    color: #000;
}
.game-card-text {
    width: 250px;
    height: 120px;
    font-size: 16px;
    color: #000;
    overflow: hidden;
}
.game-card-genre {
    width: 250px;
    font-size: 16px;
    text-align: right;
    color: #000;
    margin-bottom: 15px;
}
.game-card-a {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
}
#app {
    max-width: 600px;
}
#game-container {
    width: 100%;
    max-width: 600px;
    max-height: 600px;
    overflow: hidden;
}
canvas {
    width: 100%;
}
#game-info {
    padding: 40px 0px;
}

/* 画面幅 680px 以下のときのスタイル */
@media(max-width:680px) {
    #game-info {
        padding: 40px 30px 60px;
    }
}
/* ------------------------------- */
#game-info h2 {
    margin: 0px 0px 16px 0px;
    font-size: 24px;
    font-weight: bold;
}
#game-info h3 {
    margin: 30px 0px 16px 0px;
    font-size: 18px;
    font-weight: bold;
}
#game-info p {
    margin-bottom: 20px;
}
#game-info dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    margin: 0;
}
#game-info dl dt {
    display: flex;
    align-items: center; /* 上下中央 */
    justify-content: center; /* 左右中央 */
}
.button-list dt {
    height: 27px;
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #222;
    line-height: 13px;
    /*font-family: monospace;*/
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}
#game-info dd {
    margin: 0;
    display: flex;
    align-items: center;
}
/* ---------- スクリーンショット撮影用 --------- */
#preview-container {
    margin-top: 40px;
    width: 1000px;
    display: flex;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-items: center;
    gap: 20px;
}
#download-selected {
    margin-top: 20px;
    color: #000;
}
/*
footer {
    padding: 20px 40px;
    text-align: center;
    color: #fff;
    background-color: #222;
}
/* スマホ 
@media (max-width: 600px) {

}
/* タブレット 
@media (min-width: 601px) and (max-width: 900px) {
    
}
/* PC 
@media (min-width: 901px) {
    
}*/