/* Contact Form7 */

.wpcf7 {
    width: 100%;
    margin: 2.5em 0 2.5em !important;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 14px;
}

.wpcf7 form {
    margin: 2.5em 1.5em 0;
}

.wpcf7 input, .wpcf7 textarea {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ccc;
    line-height: 1.2;
}

.wpcf7 h1 {
    font-size: 1.8rem;
}

.wpcf7 table tbody,.wpcf7 table th,.wpcf7 table td {
    border-bottom: none!important;
}

.wpcf7 input.wpcf7-submit, .wpcf7 input.wpcf7-submit::before, .wpcf7 input.wpcf7-submit::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.wpcf7 .wpcf7-submit, .wpcf7 .wpcf7-previous {
    -webkit-transition: all .3s;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    position: relative;
    width: 225px;
    height: 48px;
    margin: 30px auto 0;
    border: none !important;
    outline: none;
    background-color: #333333;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s;
}
.wpcf7 textarea {
    width: 100%;
}


.privacy-policy {
    height: 300px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
}
.privacy-policy h4 {
    font-size: 1.2rem;
}

/*　ContactForm7のテーブル化レスポンシブ調整　*/
 
/*テーブルを親要素の幅いっぱいに伸ばす*/
tbody, td, tfoot, th, thead {
    border-bottom: solid 1px #ccc!important;
}
.table-responsive {
    width: 100%;
	line-height: 1.5rem;
}
.table-responsive p {
    margin-bottom: 0;
}
.table-responsive th,.table-responsive td{
	background:none;
	padding: 0.5rem;
}
/*一番上の行だけボーダーなし*/
.table-responsive tr{
    border: none;
}


/*th（項目欄）は30%幅、テキストを右寄せ*/
.table-responsive th {
    width: 20%;
	text-align: right;
	vertical-align:top;
}
/*「必須」部分のスタイリング*/
.table-responsive .requied {
    font-size: 0.8em;
    color: #FFF;
    display: inline-block;
    padding: 0 0.5em;
    background: red;
    border-radius: 2px;
}
 
/*ここから768px以下の指定*/
 
@media only screen and (max-width: 768px) {
    .table-responsive td,.table-res-form td {
        width: 100%!important;
        display: block!important;
    }
	.table-responsive th,.table-res-form th {
        width: 100%!important;
        display: block!important;
	    padding-bottom: 0;
        text-align: left!important;
    }
    /*th（項目名）欄の不要な余白削除・テキスト左寄せ*/
    .table-responsive th {
        border: none!important;
        padding-bottom: 0!important;
    }
    .table-responsive td {
        padding-bottom: 0;
        text-align: left!important;
    }
    /*不要な最終行の左のthを非表示にする*/
    .table-responsive .empty {
        display: none;
    }

    .wpcf7 {
        width: 100%;
        margin: 0 0 2.5em !important;
        padding: 0;
    }
    .wpcf7 h1 {
        font-size: 1.2rem;
    }
    .wpcf7 h4 {
        font-size: 1rem;
    }

}
 
/*ここまで768px以下の指定---終わり*/
