#contact {
    padding: 13em 0 7em;
}
.eyebrow {
    color: #333333;
    font-size: 18px;
}
.lead {
    margin: 50px auto 70px;
    color: #333;
    text-align: center;
}


/* Contactform table */
.wrapper-contact {
    width: 1000px;
    margin: 0 auto;
    padding: 40px 60px 100px;
    background: #fff;
}
.contact-table {
    width: 100%;
    margin: 50px 0;
}
.contact-table tr{
    border-bottom: 1px solid #aaa;
}
.contact-table th{
    width: 32%;
    padding: 15px;
    font-weight: normal;
    text-align: left;
    padding-left: 30px;
    border-bottom: 1px solid #d9d9d9;
}
.contact-table th span{
    color: #c40404;
    font-size: 85%;
}
.contact-table td{
    border-bottom: 1px solid #d9d9d9;
    padding: 15px;
}

input, textarea{
	width: 100%;
	color: #333;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 15px;
    line-height: 20px;
}
input[type="file"] {
    border: none;
}
input[type="checkbox"] {
    margin-right: 13px;
}
/*
input[type="submit"]{
	width: 30%;
    margin: 30px;
    background: #004EA2;
}
input[type="submit"]:hover{
    background: #fff;
    color: #004EA2;
}
*/

.ckinput{
	font-size:16px;
}
.wpcf7-spinner{
    display: none!important;
}
.privacy_text{
    border: 1px solid #bbb;
    overflow-y: scroll;
    margin: 80px auto 50px;
    padding: 30px 50px;
    height: 270px;
    background: #fff;
}
.privacy_text h3{
    text-align: left;
    position: relative;
    color: #4d4d4d;
    padding: 10px;
    font-size: 15px;
    border-left: 4px solid #004EA2;
    border-bottom: 1px solid #004EA2;
}
.privacy_text h4{
    border-bottom: 1px solid #004EA2;
    border-left: 10px solid #004EA2;
    padding: 5px 10px;
    font-size: 18px;
    font-weight: 400;
}
.privacy_text p{
    font-size: 14px;
    margin: 10px 10px;
    line-height: 20px;
}
.privacy_chk{
    text-align: center;
}
::placeholder{
    color: #aaa;
}

.privacy_chk .wpcf7-list-item {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
}

.privacy_chk input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 10px 0 0 !important;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.privacy_chk label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.privacy_chk .wpcf7-list-item-label {
    line-height: 1;
    display: inline-block;
}

.submit-btn-wrap {
    text-align: center;
    width: 100%;
}

/*
input[type="submit"]#formbtn {
    display: inline-block;
    float: none;
    margin: 10px auto;
    width: 300px;
    max-width: 100%;
}
*/
input[type="submit"]#formbtn {
    display: inline-block;
    padding: 12px 45px;       /* ナビの余白感に合わせる（高さは調整） */
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: #004EA2;
    border: 1px solid #004EA2;
    cursor: pointer;
    width: 300px;             /* フォーム内での幅を維持 */
    max-width: 100%;
    margin: 10px auto;
    float: none;
}

/* ホバー時の動きを反映 */
input[type="submit"]#formbtn:hover {
    background: #fff;
    color: #004EA2;
    border: 1px solid #004EA2;
}

/* 最初（入力中や移動中）は警告メッセージを物理的に隠す */
.wpcf7-not-valid-tip {
    display: none !important;
}

/* 送信ボタンが押され、エラーがあると確定した時だけ警告を表示する */
.wpcf7-form.invalid .wpcf7-not-valid-tip {
    display: block !important;
    color: #f00; /* 赤色 */
    font-size: 14px;
    margin-top: 5px;
}

/* 成功メッセージだけでなく、下の判定ボックス全体を最初から非表示にする */
.wpcf7-response-output {
    display: none !important;
}

/* --- サンクスページのボタンをナビボタンと同じ配色にする
.section-button .btn-outline {
    background: #004EA2;       
    color: #fff;           
    border: 1px solid #004EA2;
    transition: all 0.3s ease; 
}

/* ホバー時の挙動
.section-button .btn-outline:hover {
    background: #fff;          
    color: #004EA2;           
    border: 1px solid #004EA2;
    opacity: 1;            
}
*/

@media (max-width: 1200px) {
    .wrapper-contact {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .lead {
        text-align: left;
    }
    #contact {
        padding: 9em 0 7em;
    }
}

@media (max-width: 480px) {
    .wrapper-contact {
        padding: 15px;
    }
    .contact-table {
        margin: 20px 0;
    }
    .contact-table th {
        border-bottom: none;
        display: block;
        width: 100%;
        padding: 15px 0 0 0;
        padding-left: 0;
    }
    .contact-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .privacy_text{
        padding: 20px 15px;
    }
}
