/* =========================
   お問い合わせ
========================= */

.contact_form {
    padding: 80px 0 120px;
}


/* =========================
   説明文
========================= */

.contact_intro {
    width: 800px;
    max-width: 100%;
    margin: 0 auto 70px;
    text-align: center;
}

.contact_intro p {
    margin: 0;
    line-height: 2;
}

.contact_note {
    margin-top: 25px !important;
    font-size: 13px;
    color: #666;
}


/* =========================
   フォーム見出し
========================= */

.contact_form_title {
    width: 800px;
    max-width: 100%;
    margin: 0 auto 35px;
    text-align: center;
}

.contact_form_title span {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
    letter-spacing: 0.08em;
}

.contact_form_title h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 15px;
    font-size: 30px;
    font-weight: normal;
}

.contact_form_title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 280px;
    max-width: 80vw;
    height: 1px;
    background: #888;
}


/* =========================
   フォームの囲み枠・飾り
========================= */

.contact_form_box {
    position: relative;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #d8e7f7;
    background-color: #fff;
    box-sizing: border-box;
    overflow: visible;
}

/* 内側の二重ライン */
.contact_form_box::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 1px solid #d8e7f7;
    pointer-events: none;
}

/* 左上飾り */
.contact_form_box::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 45px;
    height: 45px;
    border-top: 4px solid #2d5f91;
    border-left: 4px solid #2d5f91;
    z-index: 2;
    pointer-events: none;
}

/* 右下飾り */
.contact_form_box>.corner_bottom_right {
    display: block;
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 45px;
    height: 45px;
    border-bottom: 4px solid #2d5f91;
    border-right: 4px solid #2d5f91;
    z-index: 3;
    pointer-events: none;
}


/* =========================
   フォームズ埋め込み用iFrame
========================= */

.formzu_iframe {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 850px;
    /* フォームの長さに合わせて数値を調整してください */
    border: none;
    overflow: hidden;
}


/* =========================
   スマホ対応
========================= */

@media screen and (max-width: 768px) {

    .contact_form {
        padding: 50px 20px 80px;
    }

    /* 説明文 */
    .contact_intro {
        width: 100%;
        margin-bottom: 50px;
    }

    .contact_intro p {
        font-size: 14px;
        line-height: 1.9;
    }

    .contact_note {
        font-size: 12px !important;
        line-height: 1.8 !important;
    }

    /* フォーム見出し */
    .contact_form_title {
        width: 100%;
        margin-bottom: 30px;
    }

    .contact_form_title span {
        font-size: 12px;
    }

    .contact_form_title h2 {
        font-size: 26px;
    }

    /* フォームの囲み */
    .contact_form_box {
        width: 100%;
        padding: 15px;
    }

    .contact_form_box::after {
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    /* 飾り（スマホサイズ） */
    .contact_form_box::before {
        width: 30px;
        height: 30px;
        border-top-width: 3px;
        border-left-width: 3px;
    }

    .contact_form_box>.corner_bottom_right {
        right: -1px;
        bottom: -1px;
        width: 30px;
        height: 30px;
        border-bottom-width: 3px;
        border-right-width: 3px;
    }

    /* スマホ用iFrameの高さ */
    .formzu_iframe {
        height: 950px;
    }
}