/* main #f40*/
*{
	list-style-type: none; 
	text-decoration: none; 
	margin: 0; 
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
:root {
  --main_color: #de2000;
  --hont: 'Roboto', sans-serif;
}
img, a img , a img:visited, a img:hover{display: block; border: 0;image-orientation: from-image;max-width: 100%;height: auto;}
body {
	font-family: var(--hont);
	font-size: 1rem;
	line-height: 1.5rem;
	color: #000; 
	background: #fff;}
a, a:visited{font-size: 1em;}
a:hover {font-size: 1em;}
a , p a:visited{
	color: #0055aa;
}
p a:hover {
	color: #fff;
	background: #000;
}
h1{
	font-size: 4rem;
	line-height: 4rem;
}

.content {
	max-width: 800px;
	margin: 50px auto;
}
.content > img{
	margin: 15px 0;
}
.pre{white-space: pre-wrap;}

/*flex grid*/
.grid{
	--min: max(19vw, 120px);
	--gap: max(10px, 4vw);
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
	grid-gap: var(--gap);
	margin: var(--gap);
}
.grid2-1, .grid1-1{display: grid; grid-template-columns: 1fr;}

.grid1-1-1{display: grid; grid-template-columns: 1fr;}
.col3 {grid-column: 1;}

@media (min-width: 960px) {
	.grid2-1{grid-template-columns: 2fr 1fr}
	.grid1-1{grid-template-columns: 1fr 1fr}
	.grid1-1-1-1{display: grid; grid-template-columns: 1fr 1fr 1fr}
	.col3 {grid-column: 1 / span 3;}
}

#page{
	margin: 0 10px;
}

.side{
	background: #fff;
	padding: 0 max(2vw, 10px);
	min-height: 100vh;
}

.flex{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	align-content: stretch;
}
.flex_between{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	align-content: center;
}

.bg_contain{
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center top;
}
.bg_cover{
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
}
.fw{
	width: 100%;
	height: auto;
}

/* form */
form{
	position: relative;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}
form textarea, form input, form select, form option, form button{
	font-family: inherit;
	font-size: 100%;
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-right: 0;
	border-bottom: 0;
	padding: 0 15px;
	width: 100%;
	height: 50px;
	-webkit-appearance: none;
	-moz-appearance: none;
}
form input:focus, form textarea:focus{
	outline: none;
}

form textarea {
	padding: 12px 12px 20px 12px;
	min-height: 50px;
	overflow: hidden;
}
form select, form option{
	background: #fff url("https://halfbikes.com/images/dropdown.png") no-repeat right top;
}
form input[type="submit"]{
	padding: 0;
	font-size: 1.1rem;
	height: 49px;
	cursor: pointer;
}
form input[type="file"]{
	height: 50px;
	padding: 12px;
	background: #fff;
	cursor: pointer;
	height: 100%;
}
form input[type="checkbox"]{
	-webkit-appearance: checkbox;
	-moz-appearance: checkbox;
	height: 1rem;
	width: 1rem;
}
form label{
	padding-bottom: 1%;
	display: block;
}

/* other */
.main_title{
	text-align: center;
	margin: 50px 20px 20px 20px;
	letter-spacing: -1px;
}
