:root{
	--main-color: #333;
	--sub-color: #666;
	--accent-color: #66F;
	--bg-color: #FFF;
	--bg-sub-color: #EEE;
	--index-width: 20em;
}
html{scroll-padding-top: 100px;overflow-x:hidden;}
body{margin:0;line-height:2;font-size:16px;font-family:"Noto Sans CJK JP",sans-serif;color:var(--main-color);overflow-x:hidden;}

header{display:flex;position:sticky;top:0;z-index:99;color:var(--bg-color);background:var(--main-color);box-shadow:0 8px 8px #000;}
div.container{max-width:1000px;margin:0 auto;}
footer{margin:0 1em;text-align:center;color:var(--main-color);border-top:1px solid #CCC;}

section{margin:2em 2em 8em;text-align:center;}
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:2em;font-weight:bold;}

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:#666;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:600px;display: flex;}
.linkcard a{display:block;color:unset;text-decoration:unset;border:1px solid #999;border-radius:8px;overflow:hidden;box-shadow:4px 4px 8px #CCC;}
.linkcard a:hover{filter:brightness(0.95);}
.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: 300px;}

.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: #344cb8;
	text-align: center;
	overflow-wrap: anywhere;
	background-color: transparent;
	border: 2px solid #344cb8;
	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;
}
#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(--bg-sub-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 0 0;
	background-color: rgba(255, 255, 255, 0.7);
}
.banner > .center > a {
	width: 100%;
	height: 100%;
}
.banner > .center > a > img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.row{
    width:100%;
    height:auto;
    display:flex;
    align-items: center;
    padding:0;
    font-size: large;
}
.flex-top{
    align-items: stretch;
}

@media (any-hover: hover) {
	.square_button {
		transition: background-color 0.2s;
	}
	
	.square_button:hover {
		background-color: #ebedf3;
	}
}
@media screen and (max-width: 1260px){
    #index_wrapper{
        display: none;
    }
}
@media screen and ( max-width:800px ) {
	h1{font-size:1.5em;}
	h2{margin-top:2em;}
	h2[id]::before{height:170.6px;margin-top:-170.6px;}
	header{flex-wrap:wrap;}
	#header_nav{flex:1 1 400px;}
	section{margin:1em 1em 6em;}
	.flex{flex-direction:column;}
	.left_box,.right_box{width:100%;}
}

@media screen and ( max-width:400px ) {
	h1{font-size:1.2em;}
	h2[id]::before{height:156.2px;margin-top:-156.2px;}
}

html { scroll-behavior: smooth;}/* スムーススクロール */