html {
	touch-action: manipulation;
}

body {
	background-color: #555;
	color: #fff;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	/*touch-action: pan-x pan-y;*/
}

#selected_point {
	position: absolute;
	width: 15px;
	height: 15px;
	margin: 0;
	padding: 0;
	background: #f005;
	image-rendering: pixelated;
	border: 3px dashed #999;
	touch-action: none;
	pointer-events: none;
}

#canvas {
	position: absolute;
	margin: 0;
	padding: 0;
	transform-origin: top left;
	scale: 15;
	background: #00000000;
	image-rendering: pixelated;
	touch-action: none;
}

#canvas_upper {
	position: absolute;
	margin: 0;
	padding: 0;
	transform-origin: top left;
	scale: 15;
	background: #00000000;
	pointer-events: none;
	image-rendering: pixelated;
	touch-action: none;
	pointer-events: none;
}

#preview {
	width: 64px;
	height: 64px;
	background: "#fff";
	image-rendering: pixelated;
	margin: 10px
}

#canvas_container {
	position: relative;
	width: 150%;
	height: 230vh;
	padding: 90px;
	z-index: 0;
}

#grid_container {
	position: absolute;
	margin: 0 0;
	padding: 0;
	background: transparent;
	pointer-events: none;
	/* 方眼紙模様に必須のスタイル */
	background-image: linear-gradient(0deg, #777 0px, transparent 1px, transparent calc(100% - 1px), #777 calc(100% - 1px)), linear-gradient(90deg, #777 0px, transparent 1px, transparent calc(100% - 1px), #777 calc(100% - 1px));
	background-size: 15px 15px;
	background-repeat: repeat;
}

#top_container {
	padding: 16px;
	margin: 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 30px;
	background: #333;
	z-index: 50;
}

#bottom_container {
	display: inline-box;
	margin: 0;
	position: fixed;
	/*overflow-x: auto;*/
	left: 0;
	bottom: 0;
	width: 100%;
	height: 220px;
	background: #333;
	z-index: 50;
}

#bottom_tools {
	width: 150%;
	display: flex;
	flex-direction: row;
	overflow-x: auto;
}

#color_pick {
	position: fixed;
	/*display: flex;*/
	width: 80%;
	/*min-width: 400px;*/
	/*height: 500px;*/
	top: 15vh;
	left: 10%;
	background: #999;
	border: 3px solid #000;
	border-radius: 7px;
	z-index: 99;
}

#tool_parret {
	position: fixed;
	display: flex;
	width: auto;
	/*min-width: 400px;*/
	height: 40px;
	bottom: 220px;
	left: 10%;
	background: #333;
	/*border: 3px solid #000;*/
	border-radius: 7px;
	margin: 0;
	padding: 0;
	z-index: 99;
}

#tool_parret.minimize {
	bottom: 42px;
}

#setting {
	position: fixed;
	width: 80%;
	max-width: 300px;
	height: auto;
	top: 10vh;
	left: 10%;
	background: #999;
	border: 3px solid #000;
	border-radius: 7px;
	z-index: 99;
}

#setting_close.setting_list {
	width: 80%;
	max-width: 300px;
	text-align: center;
	margin-left: 100px;

}

.setting_list {
	display: flex;
	position: relative;
	margin: 10px;
	vertical-align: center;
	font-size: 20px;
}

.button_top.color_bit {
	margin: 2px;
	width: 32px;
	height: 32px;
}

.button_top {
	display: inline-block;
	position: flex;
	width: 32px;
	height: 32px;
	margin: 5px;
	border-radius: 5px;
	/*touch-action:none;*/
}

.button_top.green,
.green {
	background: #0aa;
}

.round_rect {
	border-radius: 5px;
}

.border_on {
	border: 1px solid #777;
}

.border_on.selected {
	outline: 2px solid #fff;
}

.material-symbols-rounded.md-40 {
	font-size: 32px;
}

.material-symbols-rounded.md-20 {
	font-size: 18px;
}

.button_top.center,
.center {
	margin-left: 20px;
	text-align: center;
	font-family: sans-serif;
	font-weight: bold;
}

.button_top.tools {}

.md-40 {
	font-size: 20px;
}

.btn_text {
	line-height: 2em;
	font-size: 18px;
	font-weight: bold;
	vertical-align: middle;
}

.invis,
#tool_parret.invis {
	display: none;
}

.gray {
	background: #555;
}

.full_size {
	position: fixed;
	width: 100%;
	height: 200vh;
	top: 0;
	left: 0;
}

#layer_tool {
	display: flex;
	position: relative;
}

#layer_button_container {
	display: flex;
	flex-direction: column-reverse;
	position: relative;
	top: -10px;
	/*position: absolute;*/
}

#frames_container {
	position: absolute;
	height: 60px;
	width: 100%;
	margin-left: 10px padding-top: 25px;
	;
}

#frames_list {
	display: flex;
	flex-direction: row;
	width: 100vw;
	max-width: 400px;
	height: 92px;
	overflow: scroll;
	margin: 0;
	padding-right: 100px;
	position: relative;
	counter-reset: listN -1;
	list-style: none;
	list-style-position: inside;
	padding-left: 2px;
}

#frames_list li {
	display: block;
	position: relative;
	height: 32px;
	width: 32px;
	min-width: 32px;
	margin-top: 16px;
	margin-right: 10px;
	padding: 0;
}

#frames_list li::before {
	counter-increment: listN;
	content: counter(listN);
	position: absolute;
	/* 絶対配置にして自由な位置調整を可能に */
	top: -18px;
	/* 上端に配置。必要に応じて微調整 */
	left: 2px;
	/* 左端に配置 */
	font-size: 16px;
}

.frame_canvas {
	position: absolute;
	top: 0;
	left: 0;
}

.layer_button {
	font-size: 20px;
}

.button_top.no_margin {
	margin: 1px 0;
	padding: 0 2px;
}

.layer_text {
	font-size: 18px;
	width: 60px;
	height: 30px;
}

.button_top.add_margin_top {
	margin-top: 8px;
}

.button_top.add_margin_left,
.add_margin_left {
	margin-left: 10px;
}

.button_top.add_margin_left_plus {
	margin-left: 15px;
}

.reset_left_margin {
	position: abusolute;
	margin-left: 1px;
	/*padding: 0;*/
}

#bottom_container.minimize {
	top: calc(100% - 42px);
}

#frame_edit_tool {
	width: 100vw;
	margin: 0;
}

#frame_edit_top {
	width: 100vw;
	margin: 0;
}

#frame_edit_bottom {
	position: relative;
	width: 100vw;
	margin: 0;
}

#undo {
	margin-top: 0px;
}

#help_window {
	position: fixed;
	width: 80%;
	height: 60vh;
	top: 30px;
	margin: 20px;
	z-index: 99;
	background: #777;
	border: 3px solid #000;
	border-radius: 7px;
	overflow: scroll;
}

p {
	margin-top: 0;
	margin-left: 2em;
	padding-top: 0;
}

h3 {
	margin-bottom: 0;
	margin-left: 1em;
}

#help_close {
	position: fixed;
	top: 60vh;
	left: 40%;
	background: #777;
	padding: 10px;
}

.material-symbols-rounded.minihelp {
	display: block;
	position: relative;
	font-size: 1em;
	top: 0.3em;
}

.miniwindow {
	position: absolute;
	top: 40px;
	left: 20%;
	width: 80%;
	height: 190px;
	overflow: scroll;
	z-index: 100;
	background: #777;
	border: 3px solid #000;
	border-radius: 7px;
}

.miniwindow p {
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
}

.scale_150 {
	transform-origin: left top;
	transform: scale(1.3);
}

.scale_200 {
	transform-origin: left top;
	transform: scale(2);
	;
}