/*!
 * Bootstrap v3.3.5 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

body {
    background: #f7f6f1;
    color: #333333;
    font-family: 'Lucida Grande', Arial, 'Hiragino Kaku Gothic Pro', Meiryo, 'メイリオ', sans-serif;
}
body > div:first-child {
    background-color: #861309;
}
body > div:nth-child(2) {
    box-shadow: 0 1px 1px 0 rgba(5, 0, 1, 0.2);
    background: #fff;
    margin-bottom: 50px;
}
body > div:nth-child(3) {
    width: 760px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
body > div > h1 {
    color: #fff;
    font-size: 29px;
    width: 80%;
    padding-right: 15px;
    padding-left: 15px;
    margin: 0 auto;
    height: 65px;
    line-height: 65px;
}
body > div > h2 {
    font-size: 20px;
    width: 80%;
    padding-right: 15px;
    padding-left: 15px;
    margin: 0 auto;
    height: 50px;
    line-height: 50px;
}
body > div h2 + p {
    margin-bottom: 20px;
}
form {
   
    padding: 30px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 50px;
max-width: 760px;
    margin: 60px auto;
}
form h1 {
    letter-spacing: 2px;
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
}
body > div:nth-child(3) > div {
    border: solid 1px #ddd;
    padding: 30px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background-color: #fff;
}
body > div:nth-child(3) > div > h1 {
    letter-spacing: 2px;
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    padding-left: 0;
}
form > div {
    border-radius: 3px;
    background-color: #f6f6f6;
    vertical-align: middle;
    border: 1px solid #dddddd;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 7px;
}
form > div > div {
    border-radius: 3px;
    padding: 40px 0px;
}
form > div > div > p {
    width: 405px;
    float: left;
    margin: 0 15px;
  font-size:18px;
}
form > div > div:before, form > div > div:after {
    display: table;
    content: " ";
    clear: both;
}
form > div input[type=text], form > div input[type=email], form > div textarea, form > div select {
    display: block;
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    margin: 20px auto;
    width:90%;

}
form > div textarea {
    height: auto;
}
input[type=radio] {
    margin-left: 25px;
    margin-top: 8px;

}

body > div label {
    margin-bottom: 0;
    width: 100%;
    
    
    min-height: 1px;
    padding-right: 15px;
    
}
body > div label span {
    color: #fff;
    background: #fb3b6f;
    display: inline-block;
    padding: 2px 5px;
    font-size: 10px;
    font-size: 1rem;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    margin-left: 10px;
 
}
.container label + div {
    width: 75%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
button {
    display: block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 0 auto;
}
button:hover {
    background: #e6ba08;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(1, #e6ba08), color-stop(0, #e6ba08));
    background: -webkit-linear-gradient(#e6ba08, #e6ba08);
}
button {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}
body > div > a > button {
    margin-left: 0;
    margin: 0 auto;
    display: block;
}
a + button {
    margin-left: 20px
}
a {
    text-decoration: none;
}
a:focus, a:hover {
    outline: none;
    text-decoration: none;
}
input::-webkit-input-placeholder {
    color:   #777;
}
button {
    padding: 10px 13px 11px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    border: 1px solid #e6ba08;
    color: #ffffff;
    background: #e6ba08;
    box-shadow: 0px 1px 1px rgba(0,0,0,0.28),inset 0px 2px 0px -1px #e6ba08;
}
input[type=button] {
    padding: 10px 13px 11px;
    font-size: 18px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    border: 1px solid #c3c3c3;
    color: #7c7c7c;
    background: #ffffff;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.13);
    -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.28);
    -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.28);
    box-shadow: 0px 1px 1px rgba(0,0,0,0.28);
    margin-left: 180px;
    margin-right: 25px;
}
input[type=button] + button {
    display: inline-block;
}
input + div, select + div, textarea + div {
    /*float: left;
    width: 420px;*/
    /*color: red;*/
    margin-bottom: -10px;
}
.error-form {
    border-color: #fb9a93 !important;
}
label span{
    color: red;
    padding-left: 20px;
    font-size: 80%;
}
/* 全体ラッパー */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ラベルと入力の間隔 */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

/* 入力・textareaの幅 */
input[type="text"],
input[type="email"],
textarea,
select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* ボタン */
button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background-color: #007acc;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background-color: #005fa3;
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
    .form-wrapper {
        padding: 10px;
    }
    button {
        width: 100%;
        margin-top: 10px;
    }
}
