@charset "utf-8";
/* CSS Document */
#contactform{
	width:1024px;
	margin-left:auto;
	margin-right:auto;
	background-color:#FFF;
	margin-bottom: 5%;
}

#formbox{
	width: 95%;
	margin-top: 0;
	margin-right: auto;
	margin-left: auto;
}

article{
	border-top-width: 2px;
	border-top-style: solid;
	border-top-color: #F00;
	margin-top: 1%;
	font-size: 120%;
	letter-spacing: 1px;
}

article dl{
	margin-top: 4%;
}

article dt{
}

article dd{
	margin-top: 2%;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
}

.contact_left{
	float: left;
	width: 47%;
}

.contact_right{
	float: right;
	width: 47%;
}



input[type="checkbox"] {
    border: 1px solid #aaaaaa;
    vertical-align: -4px;
    -webkit-appearance: none;
    position: relative;
    margin-right: 5px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-sizing: border-box;
    width: 20px;
    height: 20px;
    /*Other Browser*/
    background: #e2e2e2;
    /*For Old WebKit*/
    background: -webkit-gradient(
        linear, left top, left bottom,
        color-stop(0.00, #ffffff),
        color-stop(1.00, #e2e2e2)
    );
    /*For Modern Browser*/
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #e2e2e2 100%
    );
}

input[type="checkbox"]:checked {
    /*Other Browser*/
    background: #cc0000;
    /*For Old WebKit*/
    background: -webkit-gradient(
        linear, left top, left bottom,
        color-stop(0.00, #bc0015),
        color-stop(1.00, #a80012)
    );
    /*For Modern Browser*/
    background: linear-gradient(
        to bottom,
        #cc0000 0%,
        #b40000 100%
    );
    border: 1px solid #660000;
}

input[type="checkbox"]:checked:before {
    position: absolute;
    left: -2px;
    top: 13px;
    display: block;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .5);
    content: "";
    width: 10px;
    height: 4px;
    background: #ffffff;
    -webkit-transform: rotate(45deg);
    -webkit-transform-origin: right center;
}

input[type="checkbox"]:checked:after {
    display: block;
    position: absolute;
    left: 6px;
    top: 13px;
    content: "";
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .5);
    width: 16px;
    height: 4px;
    background: #ffffff;
    -webkit-transform: rotate(-53deg);
    -webkit-transform-origin: left center;
}

label{
	margin-right: 3%;
}

/* 20180207 追加 */
#formbox {
	text-align: left;
}

.contact_left dl:nth-of-type(1) dd br {
	display: none;
}

@media screen and (max-width: 500px) {
#contactform {
	margin-left:0;
	margin-right:0;
	width: 100%;
}

#contactform p {
	font-size: 1em;
	font-weight: bold;
}

#formbox {
	font-size: .8em;
	margin-left: 1%;
	margin-right: 1%;
	width: 98%;
}

#formbox dl {
	margin-top: 7%;
}

#formbox dl dt {
	font-weight: bold;
}

#formbox dl dd {
	margin-top: 5%;
}

#formbox article:nth-child(1) dl dd select {
	width: 18%;
}

#formbox article:nth-child(1) dl dd select:nth-child(2n) {
	width: 12%;
}

#formbox article:nth-child(1) dl:nth-child(4) dd select {
	width: 50%;
}

#formbox article:nth-child(2) dl:nth-child(1) dd input {
	width: 10%;
}

#formbox article:nth-child(2) dl dd select {
	width: 20%;
}

.contact_left{
	float: none;
	width: 100%;
}

.contact_left dl:nth-of-type(1) dd select {
	margin-top: 3%;
}

.contact_left dl:nth-of-type(1) dd br {
	display: block;
}


.contact_right{
	float: none;
	width: 100%;
}

article dd textarea {
	width: 100%;
}

article dd input {
	width: 100%;
}

article:nth-child(2) {
	border-top-style: none;
	margin-top: 1%;
	font-size: 120%;
	letter-spacing: 1px;
}

#formbox span input {
	width: 100%;
}
}

@media screen and (max-width: 400px) {
#formbox article:nth-child(2) dl:nth-child(8) dd select {
	width: 28%;
}
}
