html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
    line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}

ul {
  list-style: none;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    color: inherit;
    text-decoration: none;
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}


fieldset,
legend,
button {
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	outline: none;
	background: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
	margin: 0;
	padding: 4px;
	border: 1px solid #ccc;
	outline: none;
	font-size: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="datetime"],
input[type="week"],
textarea,
select {
	margin-right: 0;
	margin-left: 0;
	padding: 4px;
	border: 1px solid #ccc;
	border-radius: 0;
	outline: none;
	background: none;
	font-size: 16px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

textarea {
	width: 100%;
	height: 100px;
	overflow: auto;
}

select {
	padding-right: 30px;
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALJJREFUeNrslssNgCAQRCmB0ijBEuyEEijBEijBEizBEnAPy0UBWVj8JDvJJB5w3gsXVUoikXwsBrpAPdRCNcOmxi2P2yZ3cIKGU9dOCY0b590pdXhPHOyRyMEDsi4JhVIlSvBYTRGgSNTAQ+pFyyBRC7e5AdchUQt3d1fYIsEGb5Fgh1MktlFwisQwOIeE4/pGuDfhLRLscIrEMHiNxHB4SeIxeMyMPxkenyUSyT9zCDAAj5btZ4c3zaUAAAAASUVORK5CYII=");
	background-repeat: no-repeat;
	background-size: 12px 12px;
	background-position: right 8px center;
}

.select {
	display: inline-block;
	position: relative;
	overflow: hidden;
	background: #fff;
}
.select select {
	width: 100%;
	padding-right: 24px;
	border: 1px solid #ccc;
	background: none;
	text-overflow: "";
	cursor: pointer;
}
.select::before {
	position: absolute;
	top: 13px;
	right: 8px;
	width: 0;
	height: 0;
	padding: 0;
	content: "";
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #666;
	pointer-events: none;
}

/* radio & checkbox */
input[type="radio"],
input[type="checkbox"] {
	/* display: none; */
}
input[type="radio"] + span,
input[type="checkbox"] + span {
	display: inline-block;
	position: relative;
	margin-left: 8px;
	padding: 10px 20px;
	color: #555;
	font-size: 1.4rem;
	text-align: center;
	line-height: 1;
	cursor: pointer;
}
input[type="radio"] + span::before,
input[type="checkbox"] + span::before {
	position: absolute;
	top: 50%;
	left: -8px;
	width: 16px;
	height: 16px;
	content: "";
	margin-top: -8px;
	border: 1px solid #ccc;
	background: #fff;
}

/* fieldset */
fieldset {
	padding: 8px 16px;
	border: 1px solid #ccc;
}
legend {
	padding: 0 8px;
}

/* button */
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
	display: inline-block;
	margin: 0;
	padding: 10px 30px;
	border: 1px solid #999;
	border-radius: 0;
	-webkit-box-sizing: content-box;
	-webkit-appearance: button;
	appearance: button;
	background: #efefef;
	color: #000;
	font-size: 20px;
	cursor: pointer;
}

/* ブラウザ対策
---------------------------------------------------------------------------- */
/* Firefox */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {}
/* IE */
input::-ms-clear {}
input::-ms-reveal {}
select::-ms-expand {
	display: none;
}
/* webkit */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {}
::-webkit-file-upload-button {}
/* iOS */
input[type="submit"]::-webkit-search-decoration,
input[type=reset]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-decoration {
	display: none;
}
::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
input[type="search"]::-webkit-search-decoration {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	-moz-appearance: none;
	-webkit-appearance: textfield;
	-webkit-box-sizing: border-box;
	appearance: none;
	background: none;
	outline: none;
	font-size: 16px;
}

/* 挙動
---------------------------------------------------------------------------- */
/* hover */
input:hover,
textarea:hover,
select:hover {
	border-color: #666;
}

input[type="radio"] + span:hover,
input[type="checkbox"] + span:hover  {
	color: #000;
}
input[type="radio"] + span:hover::before,
input[type="checkbox"] + span:hover::before {
	border-color: #000;
}
input[type="radio"] + span:hover::after,
input[type="checkbox"] + span:hover::after {
	position: absolute;
	content: "";
	top: 50%;
	left: -4px;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	background: #ccc;
}

/* checked */
input[type="radio"]:checked + span,
input[type="checkbox"]:checked + span {
	color: #3498db;
}
input[type="radio"]:checked + span::before,
input[type="checkbox"]:checked + span::before {
	border-color: #3498db;
}
input[type="radio"]:checked + span::after,
input[type="checkbox"]:checked + span::after {
	position: absolute;
	content: "";
	top: 50%;
	left: -4px;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	background: #3498db;
}

/* radio */
input[type="radio"] + span::before,
input[type="radio"] + span:hover::after,
input[type="radio"]:checked + span::after {
	border-radius: 50%;
}

/* button */
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover {
	border-color: #3498db;
	background: #3498db;
	color: #fff;
}

/* focus */
input:focus,
textarea:focus {
	border-color: #3498db;
}
input[type="submit"]:focus,
input[type=reset]:focus,
input[type="button"]:focus,
input[type="search"]:focus {
	outline-offset: -2px;
}

/* disabled */
input:disabled,
input:disabled:hover,
textarea:disabled,
textarea:disabled:hover {
	border-color: #ccc;
	background: #eee;
	cursor: not-allowed;
}
input[type="radio"]:disabled + span,
input[type="checkbox"]:disabled + span  {
	color: #ccc;
	cursor: not-allowed;
}
input[type="radio"]:disabled + span::before,
input[type="checkbox"]:disabled + span::before {
	border-color: #ccc;
	cursor: not-allowed;
}

/* バリデーション */
input:valid {}
input:invalid {}
input:required {}
/* placeholder */
input::-webkit-input-placeholder {}
input::-moz-placeholder {}
input:-ms-input-placeholder {}
