/*
 * Contact-Formカスタマイズ
 */
/* チェックボックス関連 */
/* 1. ラジオボタン/チェックボックスのラベル位置と高さを揃える */
.vk-radio-group .wpcf7-list-item {
    display: inline-block !important; /* flexから戻して安定させる */
    margin: 0 15px 10px 0 !important;
    vertical-align: top;
}

.vk-radio-group .wpcf7-list-item-label {
    display: inline-block !important;
    position: relative;
    padding-left: 25px; /* ボタンのスペースを確保 */
    line-height: 1.5;
    cursor: pointer;
}

/* ボタン（外枠）の位置調整 */
.vk-radio-group .wpcf7-list-item-label::before {
    top: 50% !important;
    transform: translateY(-50%) !important; /* 垂直方向の真ん中に固定 */
    left: 0 !important;
    margin-top: 0 !important;
}

/* 中の点（チェック時）の位置調整 */
.vk-radio-group input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 5px !important; /* 以前の設定に合わせて調整 */
    margin-top: 0 !important;
}

/* 2. チェックボックスを丸くする（見た目ラジオボタン） */
.vk-radio-group span.wpcf7-list-item.exclusive .wpcf7-list-item-label::before {
    border-radius: 50% !important;
}

/* 3. 自由入力欄を確実に「次の行」へ落とし、幅を広げる */
.vk-radio-group {
    display: block !important;
}

.vk-radio-group .wpcf7-free-text {
    display: block !important; /* インラインではなくブロック要素にする */
    width: 100% !important;   /* 横幅いっぱい */
    max-width: 100% !important;
    margin: 10px 0 15px 0 !important; /* 上下に余白を作る */
    padding: 8px 12px !important;    /* 入力しやすくする */
    clear: both;               /* 前の要素の横並びを強制解除 */
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 4. Chrome等のブラウザで入力欄が突き抜けないための保険 */
.col-md-8 {
    word-break: break-all;
}

ata-name="your-henkou"] span.wpcf7-list-item {
    display: block !important; /* 1項目1行にする */
    margin: 0 0 8px 0 !important; /* 下に少し隙間を作る */
}

/* 住所変更（your-henkou）の選択肢を縦並びにする */
[data-name="your-henkou"] span.wpcf7-list-item {
    display: block !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

/* 縦並び用のラベル調整（高さを合わせる） */
[data-name="your-henkou"] .wpcf7-list-item-label {
    display: inline-flex !important; /* flexを再適用 */
    align-items: center !important;  /* これで上下中央に揃う */
    position: relative;
    padding-left: 5px; /* ボタンと文字の距離 */
    line-height: 1.5;
    cursor: pointer;
}

/* 住所変更（your-henkou）の入力欄を幅広にする */
[data-name="your-henkou"] .wpcf7-free-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 5px !important;
    margin-left: 0 !important;
    padding: 8px !important;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ボタンの位置を微調整（もし浮いて見える場合） */
[data-name="your-henkou"] .wpcf7-list-item-label::before {
    margin-top: 0 !important; /* 余計なマージンをリセット */
    flex-shrink: 0; /* ボタンが潰れないように固定 */
}