/* ================================================
   Contact Form 7 カスタムスタイル
   contact.cssと合わせて読み込まれます
================================================ */

/* フォーム全体ラッパー */
.wpcf7 {
    width: 100%;
}

/* フォームの dl レイアウトに合わせる */
.wpcf7 form {
    width: 100%;
}


/* ラベル（項目名） */
.wpcf7 .wpcf7-form-control-wrap,
.wpcf7 label {
    display: block;
    color: var(--primary-black);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.2;
    letter-spacing: 0.2rem;
}

/* 必須マーク */
.wpcf7 .required {
    font-size: 1.4rem;
    padding-left: 20px;
}

/* テキスト・メール・電話 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    display: block;
    width: 300px;
    height: 40px;
    background-color: white;
    border: 1px solid var(--primary-lightGrey);
    padding: 0 10px;
    font-size: 1.4rem;
    color: var(--primary-black);
}

/* フォーカス時の青枠を #033C75 に変更 */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: 2px solid #033C75;
    outline-offset: 0;
}

/* テキストエリア */
.wpcf7 textarea {
    display: block;
    width: 100%;
    height: 120px;
    background-color: white;
    border: 1px solid var(--primary-lightGrey);
    padding: 10px;
    font-size: 1.4rem;
    color: var(--primary-black);
    resize: vertical;
}

/* ラジオボタン グループ */
.wpcf7 .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 50px;
}

/* ラジオボタン 各アイテム */
.wpcf7 .wpcf7-radio .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.wpcf7 .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
}

/* ラジオボタン本体をカスタム丸に */
.wpcf7 .wpcf7-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-lightGrey);
    border: 2px solid var(--primary-lightGrey);
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.wpcf7 .wpcf7-radio input[type="radio"]:checked {
    background-color: #033C75;
    border-color: #033C75;
    box-shadow: inset 0 0 0 3px var(--primary-lightGrey);
}

/* 送信ボタン */

.submit-wrap {
    text-align: center;
    margin: 40px 0 120px;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.2rem;
    background-color: var(--primary-black);
    width: 260px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
    background-color: #033C75;
    outline: none;
}

/* バリデーションエラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
    color: var(--primary-red);
    font-size: 1.2rem;
    line-height: 2;
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
    font-size: 1.4rem;
    line-height: 2;
    padding: 10px 20px;
    margin: 0 !important;
    border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
    color: var(--primary-green);
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-validation-errors {
    color: var(--primary-red);
}

/* SP < 768 */
@media screen and (max-width: 768px) {
    .wpcf7 form {
        margin: 50px 5%;
        gap: 10px;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"] {
        width: 100%;
    }

    .wpcf7 .wpcf7-radio {
        gap: 10px 20px;
    }

    .wpcf7 input[type="submit"] {
        width: 200px;
        height: 34px;
        font-size: 1.6rem;
    }
}
