@charset "UTF-8";

/*==================================================
 入力フィールド
================================================== */

select,
textarea,
input[type='tel'],
input[type='num'],
input[type='text'],
input[type='email'] {
    max-width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #dfdfdf;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(150, 150, 150, .1) inset;
    box-sizing: border-box;
    font-family: inherit;
}

textarea {
    width: 100%;
}


/* ボタン
-------------------------------------------------- */

input[type='button'],
input[type='submit'],
.contact-submits-wrap button{
    margin: 0 4px;
    padding: 1em 2em;
    font-size: 16px;
    border: none;
    border-radius: 2px;
    -webkit-appearance: none;
    transition: opacity 0.4s ease;
    background: #00c112;
    color: #fff;
    font-family: inherit;
}

input[type='button']:hover,
input[type='submit']:hover,
.contact-submits-wrap button:hover{
    opacity: .8;
    cursor: pointer;
}

input[type='button'][disabled],
input[type='submit'][disabled] {
    opacity: .7;
    pointer-events: none;
}


/* チェックボックス・ラジオボタン
-------------------------------------------------- */

input[type=radio],
input[type=checkbox] {
    display: inline-block;
    margin-right: 6px;
}

input[type=radio] + label,
input[type=checkbox] + label {
    position: relative;
    display: inline-block;
    margin-right: 12px;
    line-height: 30px;
    cursor: pointer;
}

input[type=radio],
input[type=checkbox] {
    display: none;
    margin: 0;
}

input[type=radio] + label,
input[type=checkbox] + label {
    margin-bottom: 5px;
    padding: 0 0 0 24px;
}

input[type=radio] + label::before,
input[type=checkbox] + label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: #FFF;
}

input[type=radio] + label::before {
    border: 2px solid #ccc;
    border-radius: 30px;
}

input[type=checkbox] + label::before {
    border: 2px solid #ccc;
}

input[type=radio]:checked + label::after,
input[type=checkbox]:checked + label::after {
    content: "";
    position: absolute;
    top: 50%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
}

input[type=radio]:checked + label::after {
    left: 5px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    background: #e74c3c;
    border-radius: 8px;
}

input[type=checkbox]:checked + label::after {
    left: 3px;
    width: 16px;
    height: 8px;
    margin-top: -8px;
    border-left: 3px solid #e74c3c;
    border-bottom: 3px solid #e74c3c;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}


/*==================================================
 テーブル
================================================== */

.contact-form-table {
    display: block;
    margin: 0 auto 50px;
    width: 100%;
    text-align: left;
    border: 1px solid #00c112;
}

.contact-form-table tbody{
    display: block;
}

.contact-form-table tr {
    display: flex;
    flex-wrap: wrap;
}

.contact-form-table tr:not(:last-child) th{
    border-bottom: 1px solid #fff;
}

.contact-form-table tr:not(:last-child) td{
    border-bottom: 1px solid #00c112;
}

.contact-form-table th,
.contact-form-table td {
    display: block;
    padding: 20px;
}

.contact-form-table th {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 35%;
    color: #fff;
    background: #00c112;
}

.contact-form-table td {
    width: 65%;
}


/* ご住所だけ2段なのでマージンを開ける */
input[name="items[address]"] {
    margin-top: 8px;
}

/* 「不正な送信です」「時間を空けて再度送信ください」などのセキュリティエラー文 */
.sec-error-text {
    line-height: 80px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    background: #e74c3c;
}

/* 「任意」「必須」マーク */
.optional-mark,
.required-mark {
    padding: 2px 4px;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    float: right;
}

.optional-mark {
    background: #3498db;
}

.required-mark {
    background: #e74c3c;
}

/* 「~が入力されていません」などの未記入エラー文 */
.error-text {
    margin: 0 0 4px;
    color: #e74c3c;
}

/* 送信・確認ボタン */
.contact-submits-wrap {
    text-align: center;
}

/* プライバシーポリシー */
.inline-privacy-policy {
    height: 250px;
    margin: 16px 0;
    border: 1px solid #dfdfdf;
    background: #fff;
}

.inline-privacy-policy-inner {
    width: 100%;
    height: 100%;

    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    display: inline-block;
}

.inline-privacy-policy iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* リキャプチャ */
.contact-recaptcha-wrap {
    margin: 16px auto;
    display: table;
}




/* スマホ表示時にはテーブルを縦向きにする */
@media screen and (max-width: 767px) {

    .contact-form-table,
    .contact-form-table tbody,
    .contact-form-table tr,
    .contact-form-table th,
    .contact-form-table td {
        width: auto;
        display: block;
    }

    .sp_size {
        width: 28%;
    }

    .sp_cer {
        text-align: center;
    }

    .contact-form-table th,
    .contact-form-table td {
        padding: 12px;
    }

    .contact-form-table tr {
        border: none;
    }

    .contact-submits-wrap input:not(:last-child) {
        margin-bottom: 20px;
    }
}
