.contact-head {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: auto;
    margin-bottom: 4rem;
    border: 1px solid #cecece;
    border: 2px solid #191970;
    border-radius: 10px;
    width: 90%;
}

@media screen and (min-width: 992px) {
    .contact-head {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        width: 880px;
        width: 75%;
        margin: 0 auto 9rem;
    }
}

.contact-head .contact-head__title {
    padding: 2rem;
}

@media screen and (min-width: 992px) {
    .contact-head .contact-head__title {
        padding: 4.9rem;
    }
}

.contact-head .contact-head__title h2 {
    font-weight: 700;
    font-size: 1.7rem;
    text-align: left;
    line-height: 1.4;
}

@media screen and (min-width: 375px) {
    .contact-head .contact-head__title h2 {
        font-size: 1.9rem;
        font-size: 1.35rem;
    }
}

@media screen and (min-width: 992px) {
    .contact-head .contact-head__title h2 {
        font-size: 2.2rem;
        font-size: 1.7rem;
    }
}

.contact-head .contact-head__title p {
    font-size: 1rem;
    text-align: left;
    line-height: 1;
}

@media screen and (min-width: 375px) {
    .contact-head .contact-head__title p {
        font-size: 1.3rem;
    }
}

@media screen and (min-width: 992px) {
    .contact-head .contact-head__title p {
        font-size: 1.6rem;
    }
}

.contact-head .contact-head__phone {
    position: relative;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 2.4rem;
}

@media screen and (min-width: 992px) {
    .contact-head .contact-head__phone {
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        padding-left: 7rem;
        padding-left: 3.5rem;
    }
}

.contact-head .contact-head__phone:hover,
.contact-head .contact-head__phone:focus {
    text-decoration: none;
}

.contact-head .contact-head__phone:before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background-image: -webkit-linear-gradient(left, #cecece, #cecece 3px, transparent 3px, transparent 8px);
    background-image: -o-linear-gradient(left, #cecece, #cecece 3px, transparent 3px, transparent 8px);
    background-image: linear-gradient(to right, #cecece, #cecece 3px, transparent 3px, transparent 8px);
    background-size: 8px 2px;
    background-repeat: repeat-x;
}

@media screen and (min-width: 992px) {
    .contact-head .contact-head__phone:before {
        background-image: -webkit-linear-gradient(top, #cecece, #cecece 3px, transparent 3px, transparent 8px);
        background-image: -o-linear-gradient(top, #cecece, #cecece 3px, transparent 3px, transparent 8px);
        background-image: linear-gradient(to bottom, #cecece, #cecece 3px, transparent 3px, transparent 8px);
        background-size: 2px 8px;
        background-size: 5px 10px;
        background-repeat: repeat-y;
    }
}

.contact-head .contact-head__phone svg {
    width: 25px;
    height: 25px;
    margin-right: 0.6rem;
}

@media screen and (min-width: 992px) {
    .contact-head .contact-head__phone svg {
        width: 30px;
        height: 30px;
        width: 55px;
        height: 55px;
        margin-right: 1.5rem;
    }
}

.contact-head .contact-head__phone svg .svg_phone {
    fill: #5d7283;
}

.contact-head .contact-head__phone .num {
    font-weight: 700;
    font-size: 2.5rem;
    color: #808080;
}

@media screen and (min-width: 992px) {
    .contact-head .contact-head__phone .num {
        font-size: 3.5rem;
        font-size: 4rem;
    }
}


/*
a[href*="tel"] {
  pointer-events: none;
}
*/


/* */


/*　フォーム全体　*/

.contact_post_container {
    width: 80%;
    max-width: 100%;
    margin: auto;
    margin-bottom: 3.5rem;
}

#cf7-area {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.cf7-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0 0 1.75em;
}

.cf7-q {
    width: 30%;
    margin: 0 0 0 10px;
}

.cf7-a {
    width: 60%;
    border: 1px solid #c0c0c0;
}

.cf7-a p {
    padding: 5px;
}


/*　見出し　*/

.form-heading {
    width: 100%;
    background-color: #191970;
    border-left: 1em solid #6495ed;
    border-radius: 2px;
    color: #ffffff;
    font-weight: bold;
    padding: 1em 0.8em;
    margin: 0 0 2em;
}

.form-heading p {
    margin: 0;
}


/* 各項目共通 */

#cf7-area label {
    font-weight: bold;
}

#cf7-area input[type="text"],
#cf7-area input[type="email"],
#cf7-area input[type="tel"],
#cf7-area textarea {
    /*
  background: #f0f8ff;
  */
    width: 500px;
    margin-left: 10px;
}

#cf7-area input[type="text"]:focus,
#cf7-area input[type="email"]:focus,
#cf7-area input[type="tel"]:focus,
#cf7-area textarea:focus {
    background: #ffe4e1;
    border: 2px solid #ff1493;
    outline: 0;
}

#cf7-area input[type="checkbox"],
#cf7-area input[type="radio"] {
    appearance: auto;
}

#cf7-area .wpcf7-list-item {
    display: block;
}

#cf7-area textarea {
    height: 200px;
    padding: 0.625em 0.4375em;
}

.cf7-accept-check {
    text-align: center;
    margin: 50px auto;
}

.cf7-submit {
    width: 40%;
    margin: 0 auto;
    text-align: center;
}

#cf7-area input[type="submit"] {
    width: 100%;
    background-color: #191970;
    color: #ffffff;
    border-radius: 5px;
    font-size: 1.2em;
    /*
  padding: 1em 10px;
  */
}

#cf7-area input[type="submit"]:hover {
    background-color: #ffffff;
    border: 2px solid #191970;
    color: #191970;
}

.cf7-btn {
    width: 40%;
    margin: 0 auto;
    text-align: center;
}


/*　必須ラベル　*/

.cf7-req {
    font-size: 0.8em;
    padding: 4px 6px;
    background: #eb2a2a;
    color: #ffffff;
    margin-left: 10px;
    display: inline-block;
}

@media screen and (max-width: 768px) {
    .cf7-item {
        display: block;
    }
    #cf7-area label {
        display: block;
        margin-bottom: 10px;
    }
    .cf7-q {
        width: 100%;
        margin: 0;
    }
    .cf7-a {
        width: 100%;
    }
    #cf7-area input[type="text"],
    #cf7-area input[type="email"],
    #cf7-area input[type="tel"],
    #cf7-area textarea {
        margin-left: 0;
    }
    .cf7-submit {
        width: 90%;
    }
}


/* エラー文 */

.wpcf7-not-valid-tip {
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #e50031;
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px 10px;
    position: relative;
}

.wpcf7-not-valid-tip::before {
    content: "";
    border: 10px solid transparent;
    border-bottom: 15px solid #e50031;
    position: absolute;
    top: -25px;
    left: 5%;
}


/* エラーメッセージの上部を消去 */

div.screen-reader-response {
    display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
    /* 送信ボタン下完了時 */
    border-color: #8cebe5;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    /* 送信ボタン下未入力警告 */
    border-color: #f88;
}