/* font */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap');
/*	.zen-maru-gothic-regular {
	font-family: "Zen Maru Gothic", sans-serif;
	font-weight: 400;
	font-style: normal;
}	*/

/* custom property */
:root{
	--main_bg: #383c24;
	--sub_bg: #723b30;
	--main_tx: #d8c7c7;
	--sub_tx: #95836c;
	--yellow: #efce1a;
}

/* 全体 */
*{
	margin: 0;
	padding: 0;
	font-family: "Zen Maru Gothic", sans-serif;
	font-weight: 400;
	font-style: normal;
}

html{
	margin: 1rem 3rem;
	font-size: 100%;
	line-height: 1.6rem;
	background: var(--main_bg);
	color: var(--main_tx);
}

body{
	animation: fadein 1s;
}
/* ページ移動フェードイン */
@keyframes fadein{
	0%{ opacity: 0; }
	100%{ opacity: 1; }
}


/* 段落 */
header{
	margin-bottom: 3rem;
	text-align: center;
}

article{
	margin-bottom: 4rem;
}

section{
	margin-bottom: 2rem;
}

p{
	margin-bottom: 1rem;
}


/* 見出し */
h1{
	margin-bottom: 1rem;
	font-weight: 700;
}
h1 a{
	text-decoration: none;
	color: var(--yellow);
	font-weight: 700;
}
h1 a:hover{
	color: var(--sub_bg);
}

h2{
	margin-bottom: 1.6rem;
	font-weight: 700;
}

h3{
	margin-bottom: 1.0rem;
	font-weight: 700;
}

summary{
	margin-bottom: 1rem;
}

a{
	color: var(--sub_tx);
}
a:hover{
	color: var(--yellow);
}

/* img */
img.material{
	width: 56px;
	height: 56px;
}
img.carta{
	width: 64px;
	height: 64px;
	filter: drop-shadow(2px 1px 2px rgba(255, 96, 0, 0.75));
}
img.paper{
	width: 48px;
	height: 48px;
	filter: drop-shadow(2px 1px 2px rgba(0, 255, 96, 0.75));
}
img.frags{
	width: 40px;
	height: 40px;
	filter: drop-shadow(2px 1px 2px rgba(96, 0, 255, 0.75));
}
img.dust{
	width: 32px;
	height: 32px;	
}


/* line awesome */
.las{
	font-size: 1.6rem;
	vertical-align: bottom;
}
.la-seedling{
	font-size: 3rem;
	vertical-align: middle;
}
.la-sync-alt{
	cursor: pointer;
}

.enemy{
	transform: scale(-1,1);
	font-size: 2rem;
}

/* form */
input,textarea,select,button{
	background: var(--sub_bg);
	color: var(--main_tx);
	border: 1px solid var(--sub_tx);
	border-radius: 3px;
}

input[type=text],input[type=password]{
	padding: 0.25rem;
	width: 16rem;
}

textarea{
	padding: 0.25rem;
	width: 32rem;
	height: 3rem;
}
@media screen and (max-width: 767px){
	input[type=text], input[type=password], textarea{
		width: stretch;
		width: -webkit-fill-available; /* Chrome, Safari */
		width: -moz-available;         /* Firefox */
	}
}

select{
	padding: 0.25rem;
}

button{
	padding: 0.25rem;
}
button:hover{
	background: var(--yellow);
	color: var(--sub_bg);
}

/* list */
/* dl */
dt{	}
dd{
	line-height: 1.6rem;
	margin-bottom: 1rem;
}

.tips dd{
	font-size: 0.8rem;
}


/* ul,ol */
nav li{
	list-style: none;
	display: inline-block;
}
form li{
	list-style: none;
}
#terms li{
	margin-left: 1rem;
}


ol li{
	margin-left: 2rem;
}

/* 畑 */
div.explore{
	width: fit-content;
	margin: 0 auto;
}

.farm_point{
	display: inline-block;
	list-style: none;
}
.farm_point_li_f{
	display: inline-block;
	width: fit-content;
	margin-bottom: 1rem;
	padding: 0.5rem;
	border:7px double var(--main_tx);
	background: var(--sub_bg);
	border-radius: 8px;
	font-size: 1.2rem;
}
.farm_point_li{
	display: inline-block;
}


/* #chat_window */
#chat_window{
	position: fixed;
	bottom: -370px;
	right: 32px;
	width: 400px;
	height: 400px;
	background: var(--main_tx);
	color: var(--main_bg);
	border-radius: 8px 8px 0 0;
	padding: 4px;
	z-index: 2;
	transition: bottom 0.25s; /* アニメーション */
}
#chat_window .lines{
	width: 394px;
	height: 256px;
	margin: 0 auto;
	padding: 0;
	overflow:auto;
	overflow-y:scroll;
}
#chat_window .lines::-webkit-scrollbar{
  background: var(--sub_tx);
  width: 8px;
  border-radius: 4px;
}
#chat_window .lines::-webkit-scrollbar-thumb {
  background-color: var(--sub_bg);
  border-radius: 4px;
}
#chat_window li{
	list-style: none;
}
#chat_window div.chat_form{
	position: absolute;
	width: 398px;
	margin: 0 auto;
	bottom:4px;
	padding: 0;
}
#chat_window textarea{
	padding: 0;
	margin: 0;
	width: 100%;
	height: 3rem;
}

@media screen and (max-width: 767px){
	#chat_window{
		width: 90%;
		margin: 0 auto;
		right: 16px;
	}
	#chat_window .lines{
		width: 100%;
	}
	#chat_window div.chat_form{
		position: absolute;
		width: 96%;
		margin: 0 auto;
		bottom:4px;
		padding: 0;
	}
	#chat_window textarea{
		padding: 0;
		margin: 0;
		width: 100%;
		height: 3rem;
	}
}



/* チャットログ表示 */
ul.chat{
	/* 全体 */
	margin: 0 0.5rem 1.0rem;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	border-bottom: 1px dashed var(--sub_tx);
}
.chat li.name{
	font-weight: 700;
	margin-bottom:0.5rem;
}
.chat li.text{
	position: relative;
	display: inline-block;
	width: 56rem;
}
.chat li.stamp{
	font-size: 0.8rem;
	margin: 0 0 auto auto;
}

/* チャットウィンドウ開閉 */
.toggle {
	cursor: pointer;
}
.toggle:hover {
	text-decoration: underline;
}
#open {
	display: none;
}
#open:checked + #chat_window {
	bottom: 0px;
}

/* キャラリスト */
.char_list dd{
	border-bottom: 1px dashed var(--sub_tx);
}
.char_list dd{
	margin-left: 2rem;
	margin-bottom: 2rem;
}

/* table */
table{
	border-collapse: collapse;
	margin-bottom: 1rem;
}

th,td{
	border: 1px solid;
	height: 6rem;
	width: 6rem;
	padding: 0;
	text-align: center;
}

address{
	text-align: center;
	font-size: 0.75rem;
}

rt{
	font-size:0.5rem;
}

/* unique */
.big{
	font-size: 1.2rem;
	line-height: 1.8rem;
}
.small{
	font-size: 0.8rem;
	line-height: 1.2rem;
}
.center{
	text-align: center;
}
.right{
	text-align: right;
}
.bold{
	font-weight: 700;
}
.emphasis{
	text-emphasis: dot var(--main_tx);
	-webkit-text-emphasis: dot var(--main_tx);
}

/* page_top */
#back{
	position: fixed;
	width: 48px;
	height: 48px;
	right: 32px;
	bottom: 48px;
	background: var(--main_tx);;
	text-align: center;
	border-radius: 50%;
}
#back a{
	font-weight: 700;
	text-decoration:none;
}
#back .la-angle-double-up{
	font-size: 2rem;
	line-height: 3rem;
}


/* toast message */
.toast{
	position: fixed;
	display: inline-block;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	margin: auto;
	padding: 16px 24px;
	background: var(--yellow);
	color: var(--main_bg);
	border: 8px double var(--main_bg);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.5);
	z-index: 5;
	animation: toast-anime 5s ease-in-out forwards;
}
@keyframes toast-anime {
	0%	{ opacity: 1; }
	95%	{ opacity: 1; top:50%;}
	98%	{ opacity: 1; top:52%;}
	100%{ opacity: 0; top:-20%; }
}
@media screen and (max-width: 767px){
	.toast{
		width: 75%;
	}
}
