:root{
	--main-color: #FFF;
	--sub-color: #666;
	--accent-color: #66F;
	--bg-color: #333;
	--bg-sub-color: #EEE;
	--index-width: 20em;
	--con-bg-color: rgb(255, 255, 255, 0.2)
}
html{
	scroll-padding-top: 100px;
	/*overflow-x: hidden;*/
}

body{
	margin: 0;
	line-height: 2;
	font-size: 16px;
	font-family: "M PLUS 1p", sans-serif;
	font-weight: 400;
	font-style: normal;
	color:var(--main-color);
	overflow-x: hidden;
	font-size: 0.9em;
	animation: fadeIn 1.5s ease-in-out forwards;
	max-width: 100%
}
.water-background {
    position: fixed;
    inset: 0;
    background: url('./img/bg.png') center / cover;
    z-index: -1;
}
header{
	display:flex;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index:99;
	color:var(--main-color);
	background:var(--con-bg-color);
	box-shadow:0 2px 8px black;
	border-bottom: 1px solid var(--main-color);
}
div.container{
	max-width:1000px;
	margin:0 auto;
	z-index: 0;
}
footer{
	margin:0 1em;
	text-align:center;
	color:var(--main-color);
	border-top:1px solid #CCC;
}
section{
	margin:2em 2em 8em;
	text-align:center;
	font-size: 0.9em;
}

h1{
	font-family: "Sawarabi Gothic", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-weight: normal;
}
h2{
	max-width:300px;
	margin:4em auto 2em;
	text-align:center;
	font-size:1.5em;
	font-weight:300;
	letter-spacing:0.1em;
	border-bottom:1px solid var(--accent-color);
}
h2[id]::before{
	display:block;height:8em;margin-top:-8em;content:"";
}
h3{
	width:100%;
	background-color:var(--main-color); 
	color:var(--bg-color); border-radius:10px; 
	margin:3em auto 1em;
	font-size:1.25em;
	font-weight:bold;
}
h4{width:80%; border: 1px solid var(--main-color); border-radius: 10px; margin:2em auto 1em;font-size:1.1em;font-weight:bold;}

/* iframeとimgをレスポンシブにする */
section iframe{max-width:100%;height:auto;aspect-ratio:16/9;}
section img{max-width:100%;height:auto;}

h1{flex:1 1 500px;margin:0;padding:0.5em 1em;font-size:1.5em;font-weight:normal;}

a{
	color:var(--accent-color);
	transition: all 0.2s;
	text-decoration:none;
	display: flex;
	justify-content: center;
}
a:hover{
	color:#F66;
}

button {
	padding: 0;
	font-family: inherit;
	appearance: none;
	cursor: pointer;
	background-color: transparent;
	border: none;
  }

#header_nav{flex:0 4 10em;display:flex;align-items:stretch;margin:0;padding:0;list-style:none;}
#header_nav li{flex:1 1 0;display:table;width:1fr;height:100%;text-align:center;white-space:nowrap;}
#header_nav a{display:table-cell;padding:0.5em;vertical-align:middle;color:unset;text-decoration:none;transition:all 0.2s;}
#header_nav a:hover{background: rgb(255, 255, 255, 0.5);transition:all 0.2s;}
#header_nav a::after{display:block;height:0;margin:0.1em 0.5em 0;border-top:1px solid #FFF;content:"";transform:scale(0,1);filter:opacity(0%);transition:filter 0.2s,transform 0s 0.2s;}
#header_nav a:hover::after{transform:scale(1,1);filter:opacity(100%);transition:filter 0s,transform 0.2s;}

.linkcard{margin:16px auto;max-width:800px;display: flex;justify-content: center;}
.linkcard a{display:block;color:unset;text-decoration:unset;border:1px solid #999;border-radius:8px;overflow:hidden;text-align:center;/*box-shadow:4px 4px 8px #CCC;*/}
.linkcard a:hover{filter:brightness(0.95);background-color: var(--con-bg-color)}
.linkcard_image{display:block;width:100%;max-width:300px;margin:auto;}
.linkcard_caption{margin:0;padding:0.2em;text-align:center;font-weight:bold;border-top:1px solid #CCC;}

.linkcard_illustlation_image{display:block;width:100%}

.flex{display: flex;}
.left_box{width:calc(50%);margin:10px;}
.right_box{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:2%;align-items:start;margin:10px auto;width: calc(50%);}


.game_caption{
	width: 100%;
	max-width: 400px;
	padding: 5px 10px;
	margin: 3px 8px;
	border-radius: 10px;
	border: var(--main-color) solid 1px;
	text-align: left;
	background-color: var(--con-bg-color);
}

.illust_wrapper{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2%;align-items:start;margin:16px auto;}
.illust_img{display:block;width:100%;}
.click_zoom{text-align:right;color:#666;}

.github_logo{margin:16px auto;}
.github_logo img{width:100%;max-width:100px;}
.github_logo p{margin:0;color:#333;}

/*ボタンを横並びにする*/
.buttonList {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: center;
	width: 100%;
  }
.square_button{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 600px;
	height: 64px;
	padding: 1rem 2rem;
	margin: 0.5rem 0;
	font-family: sans-serif;
	font-size: 16px;
	color: hsl(229, 100%, 82%);
	text-align: center;
	overflow-wrap: anywhere;
	background-color: transparent;
	border: 2px solid hsl(229, 100%, 82%);
	border-radius: 30px;
	box-shadow: 0 0 0 0 rgba(52, 76, 184, 0.5);
}

#index{
    margin-top: 0;
    padding:1em;
    max-height: 60vh;
    position: sticky;
    top: 5em;
    overflow-y: auto;
	border-radius: 10px;
	border: white solid 1px;
	background-color: var(--con-bg-color);
	font-weight: 100;
}
#index a{
	color: var(--main-color);
	background-color: transparent;
	transition: all 0.2s;
	display: block;
	width: auto;
	padding:0 0.5em;
	border-radius: 0.25em;
}
#index a:hover{
	background-color: var(--con-bg-color);
}
#index ul{
	list-style-type: none;
	padding: 0;
}

#index_wrapper{
    width: var(--index-width);
    margin-left: 1em;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.banner{
	width: 100%;
	height: 400px;
	/*background-color: var(--bg-sub-color);*/
	display: grid;
	grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}
/*.banner > .lt {
	grid-column: 1/4;
	grid-row: 1/4;
	background-color: rgba(0,0,0, 0.1);
	background-image: url("./img/illust_bg_blured.webp");
	background-size: cover;
	background-position: center;
	color: var(--bg-color);
	text-align: left;
}*/
/*.banner > .rt {
	grid-column: 4/7;
	grid-row: 1/4;
	background-color: rgba(0,0,0, 0.2);
	background-image: url("./img/pg_bg_blured.webp");
	background-size: cover;
	background-position: center;
	color: var(--bg-color);
	text-align: right;
}*/
/*.banner > .lb {
	grid-column: 1/4;
	grid-row: 4/7;
	background-color: rgba(0,0,0, 0.3);
	background-image: url("./img/dtm_bg_blured.webp");
	background-size: cover;
	background-position: center;
	color: var(--bg-color);
	text-align: left;
	vertical-align: bottom;
}*/
/*.banner > .rb {
	grid-column: 4/7;
	grid-row: 4/7;
	background-color: rgba(0,0,0, 0.4);
	background-image: url("./img/studio_bg_blured.webp");
	background-size: cover;
	background-position: center;
	color: var(--bg-color);
	text-align: right;
	vertical-align: bottom;
}
.banner > div > .text {
	font-size: 2rem;
	font-weight: bold;
	padding: 0rem 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	text-wrap: nowrap;
}
.lb > .text {
	top: calc(100% - 4rem);
	position: relative;
	height:fit-content;
	color: var(--bg-color);
}
.rb > .text {
	top: calc(100% - 4rem);
	position: relative;
	height:fit-content;
	color: var(--bg-color);
}*/

.banner > .center {
	grid-column: 2/6;
    grid-row: 2/6;
	/*border-radius: 10px;*/
	display:flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding:1em 0 1em 0;
	border-bottom: white solid 1px;
	/*background-color: rgba(255, 255, 255, 0.5);
	backdrop-filter: sepia(50%) brightness(3) blur(2px);*/
}
.banner > .center > a {
	width: 100%;
	height: 100%;
	margin-right: 10px;
}
.banner > .center > a:hover {
	width: 100%;
	height: 100%;
	margin-right: 10px;
	background-color: var(--con-bg-color)
}
.banner > .center > a > img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}
.banner > .page_title {
	grid-column: 2/6;
    grid-row: 6/7;
    text-align: center;
}
.banner > .page_title > h1 {
	font-size: 1.5em;
}

.row{
    width:100%;
    height:auto;
    display:flex;
    align-items: center;
    padding:0;
    font-size: large;
}
.flex-top{
    align-items: stretch;
}
#SM{
	display: none;
}

.ob_list{
	display: flex;
	gap: 16px; /* アイテム間の余白 */
	overflow-x: auto; /* 横はみ出し時にスクロールバーを表示 */
	padding-bottom: 8px;
}

.ob_list > .linkcard{
	min-width: 35em;
}
.ob_list > h4{
	writing-mode: vertical-rl;
	text-orientation: upright;
	height: 20em;
}
.ob_list > .linkcard > .game_caption{
	overflow-y: auto;
	max-height: 22em;
}
#arcade{
	margin: 3px;
	height: auto;
	width: 30em;
}

@media (any-hover: hover) {
	.square_button {
		transition: background-color 0.2s;
	}
	
	.square_button:hover {
		background-color: var(--con-bg-color);
	}
}
@media screen and (max-width: 1260px){
    #index_wrapper{
        display: none;
    }
}
@media screen and ( max-width:800px ) {
	* {
    	box-sizing: border-box;
	}
	h1{font-size:1.5em;}
	h2{margin-top:2em;}
	h2[id]::before{height:170.6px;margin-top:-170.6px;}
	header{flex-wrap:wrap;width:100%}
	#header_nav{flex:1 1 400px;}
	section{margin:1em 1em 6em;}
	.flex{flex-direction:column;}
	.left_box,.right_box{width:100%;}
	.linkcard{display:block;text-align:center;}
	.game_caption{max-width:100%}
	#SM{
		max-width: 100%;
		max-height: 100%;
		width: auto;
		height: auto;
		object-fit: contain;
		display: block;
		margin: 0 auto;
	}
	#PC{
		display: none;
	}
	.banner > .page_title {
		grid-row: 5/7;
	}
	.banner > .center {
		grid-row: 1/5;
	}
	.ob_list {
        width: 100%;
        max-width: 90vw;
        min-width: 0;
    }

    .ob_list > .linkcard {
        min-width: 20em;
    }
	.ob_list > h4{
		writing-mode: vertical-rl;
		text-orientation: upright;
		height: 20em;
	}
	.ob_list > .linkcard > .game_caption{
		overflow-y: auto;
		max-height: 22em;
	}
}

@media screen and ( max-width:400px ) {
	h1{font-size:1.2em;}
	h2[id]::before{height:156.2px;margin-top:-156.2px;}
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

summary{
	border-radius: 10px;
	border: #CCF solid 1px;
	padding: 3px 10px;
	margin: 5px auto;
	width: 4em;
	transition: 0.2s;
	cursor: pointer;
	box-sizing: content-box;
}
summary:hover{
	background-color: var(--con-bg-color);
}

html { scroll-behavior: smooth;}/* スムーススクロール */