/* 全体レスポンス非表示 */
.wpcf7-response-output {
    display: none;
}

/* フォームの最大幅・中央寄せ */
.wrap_form {
    max-width: 850px;
    margin: 50px auto;
}

/* 各フォーム項目 */
.contact-item label {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
    gap: 5px;
}

/* ラベル部分 */
.contact-item label .label-text {
    font-weight: bold;
    flex: 0 0 30%; /* ラベル幅を固定30% */
    text-align: left;
    margin-bottom: 0; /* Safariで余白干渉防止 */
}

/* 必須マーク */
.contact-item label span.required {
    font-size: smaller;
    color: #69D6FF;
    padding: 3px 10px;
    border-radius: 3px;
    margin-right: 10px;
    border: solid #69D6FF 2px;
}

/* 入力欄の親ラップ */
.wpcf7-form-control-wrap {
    flex: 1 1 70%; /* 入力欄は残り幅 */
    min-width: 0; /* Safariで横幅暴走防止 */
}

/* input / textarea */
.contact-item input,
.contact-item textarea {
    width: 100%; /* 幅100%に統一 */
    box-sizing: border-box; /* padding込みで幅計算 */
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #f1f1f1;
    border: none;
    text-align: left;
}

/* フォーム内リンク */
.wpcf7-form p a {
    border-bottom: solid 1px #333;
}

/* 送信ボタン */
.wpcf7-form input.wpcf7-submit {
    background-color: #69D6FF;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50pc;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 250px;
    margin: 0 auto;
    display: block;
}

.wpcf7-form input.wpcf7-submit:hover {
    background-color: #9CBBF3;
}

/* モバイル対応 */
@media (max-width: 767px) {
    .contact-item label {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-item label .label-text,
    .wpcf7-form-control-wrap {
        width: 100%;
        flex: none; /* flex指定解除 */
    }
}
