main {
    margin: 0 5rem 0 5rem;
}

.contact_text_container h1 {
    font: 3.5rem/5.1rem "Noto Sans JP";
    color: #003A98;
    font-weight: 500;
}

.contact_text_container {
    margin-top: 20.1rem;
}

.contact_text_container_text {
    font: 1.6rem/3rem "Noto Sans JP";
    color: #000000;
    font-weight: 500;
    margin-top: 1.2rem;
}

.line_tel_container {
    margin-top: 5.5rem;
}

.contact_line h2,
.contact_tel h2 {
    font: 2rem/2.9rem "Noto Sans JP";
    color: #000000;
    font-weight: 500;
}

.contact_line h2 {
    margin-top: 0.8rem;
}

.telnumber {
    font: 2.6rem/3.7rem "Noto Sans JP";
    font-weight: 500;
    margin-top: -0.5rem;
}

.contact_line {
    display: flex;
    margin-top: -0.4rem;
}

.contact_tel {
    display: flex;
    margin-top: 3.7rem;
}

.contact_line img {
    width: 14.5rem;
    height: 4.5rem;
    margin-left: 17rem;
}

.contact_tel img {
    width: 3.5rem;
    height: 3.5rem;
    margin-left: 15.3rem;
    margin-right: 1.2rem;
    margin-top: -0.3rem;
}

.telnumber:hover {
    color: #003A98
}

/* お問い合わせフォーム */
.wp-block-contact-form-7-contact-form-selector {
    width: 100%;
}

.form_wrap {
    display: flex;
    margin-top: 5rem;
    justify-content: space-between;
}

.wrap_title {
    margin-top: 3.8rem;
}

.wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    bottom: -4rem;
    font-size: 1.2rem;
    color: #D94242;
    width: 100%;
    line-height: 1.3;
}

.form_box {
    width: 50rem;
    height: 5rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 1.6rem;
    line-height: 3;
    padding-left: 1.3rem;
    background-color: #FFFFFF;
}

.form_box::placeholder {
    color: #838383;
}

.wpcf7-form-control {
    border: solid 0.1rem #707070;
    border-radius: 0.5rem;
}

.label {
    font: 1.6rem/4.4rem "Noto Sans JP";
    font-weight: 500;
    color: #000000;
    display: flex;
    padding-top: 0.3rem;
}

/* ラベルの先頭 */
.label_name {
    margin-bottom: 0rem;
}

.label_ruby {
    margin-bottom: 0rem;
}

.label_tell {
    margin-bottom: 0rem;
}

.label_contact_us {
    margin-bottom: 0rem;
    padding-top: 1rem;
}

.label_contact {
    margin-bottom: 0rem;
}

.textarea_label {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 1.6rem;
    line-height: calc(32em / 16);
    color: #2D2D2D;
    display: flex;
    align-items: center;
}

.contact_us {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
    padding-left: 1.8rem;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
}

.textarea::placeholder {
    padding-left: 0rem;
    padding-top: 0rem;
}

.wpcf7-form-control.wpcf7-submit.has-spinner.submit {
    border: none;
}


.textarea {
    width: 50rem;
    height: auto;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 1.6rem;
    line-height: calc(32em / 16);
    background-color: #FFFFFF;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.2rem;
}


.contact_container {
    display: flex;
    margin-top: 10rem;
    position: relative;
    background-color: #F8F8F8;
    justify-content: space-between;
    padding: 1.3rem 25.8rem 6.3rem 25.8rem;
    margin-bottom: 25.7rem;
}

/* 確認 */
.submit_position {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: #FFFFFF;
    background-color: #003A98;
    width: 27.5rem;
    height: 5rem;
    position: absolute;
    bottom: -10.4rem;
    left: 45.2rem;
    text-align: center;
    padding-top: 0.9rem;
}

.wpcf7-spinner {
    margin: 0;
    padding: 0;
    opacity: 1;
    display: none;
}

footer {
    margin-top: 0rem;
}

.contact_form_tri {
    position: relative;
}

.wpcf7-form-control-wrap {
    color: #000000;
}

.triangle {
    width: 0;
    height: 0;
    border-right: 0.7rem solid transparent;
    border-left: 0.7rem solid transparent;
    border-top: 1.2rem solid #707070;
    position: absolute;
    top: 2.7rem;
    right: 2.25rem;
    pointer-events: none;
}

.br_sp {
    display: none;
}


@media screen and (max-width: 699.98px) {
    main {
        margin: 0 1rem 0 1rem;
        max-width: 37.5rem;
    }

    .contact_text_container {
        margin-top: 9.2rem;
    }

    .contact_text_container h1 {
        font: 2.5rem/3.6rem "Noto Sans JP";
        color: #003A98;
        font-weight: 500;
    }

    .contact_text_container_text {
        padding: 0 1.2rem 0 0.9rem;
        margin-top: 1rem;
    }

    .line_tel_container {
        margin-top: 5.2rem;
    }

    .contact_line h2,
    .contact_tel h2 {
        font: 1.6rem/2.4rem "Noto Sans JP";
        color: #000000;
        font-weight: 500;
    }

    .contact_line h2 {
        margin-top: 0.7rem;
    }

    .contact_tel h2 {
        padding-top: 0rem;
    }

    .contact_tel {
        margin-top: -0.8rem;
    }

    .telnumber {
        font: 2rem/2.9rem "Noto Sans JP";
        font-weight: 500;
        color: #000000;
        margin-top: -0.3rem;
    }

    .contact_line {
        margin-bottom: 3.3rem;
    }

    .contact_line img {
        width: 13rem;
        height: 4rem;
        margin-left: 3.5rem;
    }

    .contact_tel img {
        width: 2.5rem;
        height: 2.5rem;
        margin-left: 2rem;
        margin-right: 0.4rem;
    }

    .contact_img_wrap {
        display: none;
    }

    .label {
        padding-top: 1.1rem;
    }

    .label_text_area {
        padding-top: 1rem;
    }

    .contact_container {
        display: block;
        margin-top: 3rem;
        padding: 0;
    }

    .form_wrap {
        flex-direction: column;
        margin-top: -0.1rem;
    }

    .contact_text_wrap {
        display: flex;
        justify-content: center;
        margin-top: -4.4rem;
        margin-left: -0.9rem;
    }

    .contact_title {
        font-size: 3rem;
        margin-top: 3.6rem;
    }

    .contact_title::after {
        content: "";
        width: 3.2rem;
        height: 0.1rem;
        background-color: #707070;
        position: absolute;
        bottom: -0.75rem;
        left: 17.05rem;
    }

    .contact_text::before {
        content: "";
        width: 15.2rem;
        height: 0.1rem;
        background-color: #2D2D2D;
        position: absolute;
        bottom: 3.8rem;
        left: -0.2rem;
    }

    .contact_text::after {
        content: "";
        width: 33.5rem;
        height: 0.1rem;
        background-color: #2D2D2D;
        position: absolute;
        bottom: 0.1rem;
        left: -0.2rem;
    }

    .contact_text {
        font-family: "Noto Sans JP", sans-serif;
        font-size: 1.8rem;
        line-height: calc(37.2em / 18);
        font-weight: bold;
        text-align: left;
    }

    .contact_us {
        font-family: "Noto Sans JP", sans-serif;
        font-size: 1.6rem;
        padding-left: 1.8rem;
    }

    .label_contact_us {
        margin-top: -0.2rem;
    }

    .textarea::placeholder {
        padding-top: 0rem;
        padding-left: 0rem;
    }

    .contact_entry {
        width: 33.5rem;
        margin: 0 auto;
        padding-bottom: 5rem;
        position: relative;
    }

    .form_box {
        width: 33.5rem;
        height: 5rem;
        margin-top: 0rem;
        padding-left: 1.5rem;
    }

    .textarea {
        width: 33.5rem;
        height: 20rem;
        padding-top: 1.1rem;
        padding-left: 1.2rem;
    }

    .submit_position {
        position: absolute;
        bottom: -7.4rem;
        left: 3.9rem;
    }

    .wpcf7-form-control-wrap {
        color: #000000;
        position: relative;
    }

    .submit_position {
        width: 27.1rem;
        height: 4.6rem;
        font-size: 1.7rem;
    }

    .triangle {
        width: 0;
        height: 0;
        border-right: 0.7rem solid transparent;
        border-left: 0.7rem solid transparent;
        border-top: 1.2rem solid #707070;
        position: absolute;
        top: 1.8rem;
        right: 1.15rem;
        pointer-events: none;
    }

    .wpcf7-not-valid-tip {
        position: absolute;
        left: 0;
        bottom: -3.3rem;
        font-size: 1.2rem;
        color: #D94242;
        width: 100%;
        line-height: 1.3;
    }

    .submit_position {
        padding-top: 0.9rem;
    }

    .contact_container {
        margin-bottom: 14.3rem;
    }
}