/* --- ベース設定 --- */
.contact-form-wrapper {
    width: 100%;
    /* 最大幅などはサイトに合わせて調整してください */
    max-width: 800px; 
    margin: 0 auto;
    padding: 60px;
    background-color: #F2F0EE; /* 背景ベージュ */
    border-radius: 50px;
    box-sizing: border-box;
}

.contact-form {
    width: 100%;
}

/* --- 共通テキストカラー --- */
.contact-form, 
.contact-form input, 
.contact-form textarea,
.contact-form label {
    color: #707070; /* 濃いグレー */
}

/* --- フォームグループ --- */
.form-group {
    margin-bottom: 30px;
}

/* --- ラベル --- */
.form-label {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

/* --- 必須・任意バッジ --- */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 4px 8px;
    margin-left: 10px;
    border-radius: 4px;
    line-height: 1;
    vertical-align: middle;
}
.badge-required {
    background-color: #B34242; /* 必須赤 */
}
.badge-optional {
    background-color: #707070; /* 任意グレー */
}

/* --- 入力フィールド共通 --- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 16px;
    appearance: none; /* iOSのリセット */
}

textarea {
    resize: vertical;
    line-height: 1.6;
}

/* プレースホルダーの色変更 */
::placeholder {
    color: #C2C2C2;
}
:-ms-input-placeholder {
    color: #C2C2C2;
}
::-ms-input-placeholder {
    color: #C2C2C2;
}
/* --- ラジオボタン（単一選択） --- */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

/* ラジオボタンの本体（見た目をカスタム） */
.radio-group input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #707070; /* 枠線（濃いグレー） */
    border-radius: 50%;        /* まんまるにする */
    background-color: #fff;    /* 中は白 */
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

/* 選択された時の外側の丸（茶色になる） */
.radio-group input[type="radio"]:checked {
    border-color: #172A88;
}

/* 選択された時の内側の丸（茶色の点） */
.radio-group input[type="radio"]:checked::after {
    content: "";
    display: block;
    width: 10px;       /* 点の大きさ */
    height: 10px;
    border-radius: 50%;
    background-color: #172A88;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 真ん中に配置 */
}


/* --- 電話番号（3分割） --- */



/* --- 住所エリアの調整 --- */
.address-row {
    margin-bottom: 20px;
}
.address-label-sub {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
/* 郵便番号と注釈の横並び */
.zip-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.zip-group input {
    width: 180px; /* 郵便番号の幅 */
}
.zip-note {
    font-size: 12px;
    font-style: italic; /* 少し斜体っぽく見せるなら */
}

/* --- 送信ボタンエリア --- */
.form-submit-area {
    text-align: center;
    margin-top: 50px;
}
.submit-btn {
    display: inline-block;
    background-color: #B37642; /* 茶色 */
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    width: 320px;
    max-width: 100%;
    padding: 20px;
    border: none;
    border-radius: 50px; /* 丸み */
    cursor: pointer;
    transition: opacity 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.submit-btn:hover {
    opacity: 0.8;
}

/* --- プライバシーポリシー --- */
.privacy-text {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.5;
}
.privacy-text a {
    color: #172A88; /* リンク色（ヘッダーの青を使用または適宜変更） */
    text-decoration: underline;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .contact-form-wrapper {
        padding: 30px 20px;
        border-radius: 30px;
    }
    input[type="text"], input[type="email"], input[type="tel"], textarea{
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .zip-group input {
        width: 100%;
    }
}
