HTML

							
							
					<table class="inquiry">
<tr>
<th>
<span class="must">必須</span><span>お名前</span>
</th>
<td>
[text* your-name class:textsp]
</td>
</tr>
<tr>
<th>
<span class="must">必須</span><span>メールアドレス</span>
</th>
<td>
[email* your-email class:mailsp]
</td>
</tr>
<tr>
<th>
<span class="must">必須</span><span>お問合わせ内容</span>
</th>
<td>
[textarea* your-message class:content]
</td>
</tr>
</table>
[acceptance acceptance-442 class:spam1]スパムメール防止のため、こちらのボックスにチェックを入れてから送信してください。
[submit id:formbtn "上記の内容で送信する"]				
			

CSS

							
							
					/*Contact Form 7カスタマイズ*/
.inquiry tr:first-child th{
 border-top:1px solid #d7d7d7!important;
}
/*スマホContact Form 7カスタマイズ*/
@media(max-width:768px){
.inquiry th,.inquiry td {
 display:block!important;
 width:100%!important;
 border-top:none!important;
 -webkit-box-sizing:border-box!important;
 -moz-box-sizing:border-box!important;
 box-sizing:border-box!important;
}

/* 必須・任意のサイズ調整 */	
.inquiry .haveto,.inquiry .any {	
font-size:10px;
}}

/* 記入欄の横幅 */
.wpcf7-text{
	width: 100%;
}

/*見出し欄*/
.inquiry th{
 text-align:left;
 font-size:14px;
 color:#444;
 padding-right:5px;
 width:30%;
 background:#fff;
 border:solid 1px #d7d7d7;
}
/*通常欄*/
.inquiry td{
 font-size:13px;
 border:solid 1px #d7d7d7;	
}
/*横の行とテーブル全体*/
.entry-content .inquiry tr,.entry-content table{
 border:solid 1px #d7d7d7;	
}
/*必須の調整*/
.must{
 font-size:7px;
 padding:5px;
 background:#AE0001;
 color:#fff;
 border-radius:2px;
 margin-right:5px;
 position:relative;
 bottom:1px;
}
/*任意の調整*/
.free{
 font-size:7px;
 padding:5px;
 background:#d7d7d7;
 color:#fff;
 border-radius:2px;
 margin-right:5px;
 position:relative;
 bottom:1px;
}
/*ラジオボタンを縦並び指定*/
.verticallist .wpcf7-list-item{
 display:block;
}

/*ラジオボタンの余白*/
.wpcf7-list-item-label{
    margin: 0 15px 0 5px;
}

/*送信ボタンのデザイン変更*/
#formbtn{
 display: block;
 padding:1em 0;
 margin-top:30px;
 width:100%;
 background:#1F1D4C;
 color:#fff;
 font-size:18px;
 font-weight:bold;	 
 border-radius:2px;
 border: none;
}
/*送信ボタンマウスホバー時*/
#formbtn:hover{
 background:rgb(31, 29, 76,0.8);
}