/* フォーム全体のラッパー */
.custom-form {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* 各項目のブロックと区切り線 */
.form-item {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

/* 最後の項目の下線も表示する（ボタンの上） */
.form-item:last-of-type {
    margin-bottom: 50px;
}

/* ラベルテキスト（氏名など） */
.item-label {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    margin-top: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.5;
}

/* ドットマークの共通設定 */
.item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

/* 必須項目のオレンジドット */
.item-label.required::before {
    background-color: #F65200;
}

/* 任意項目のグレードット */
.item-label.optional::before {
    background-color: #D6D2CD;
}

/* 入力フィールドの装飾 */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 12px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

/* 入力中の枠線色 */
.custom-form input:focus,
.custom-form textarea:focus {
    border-color: #D6D2CD;
}

/* テキストエリアの高さ */
.custom-form textarea {
    height: 160px;
    resize: vertical;
}

/* 送信ボタンのラッパー（中央寄せ） */
.custom-form .submit-wrap {
    text-align: center;
}

/* 送信ボタンのデザイン */
.custom-form .wpcf7-submit {
    background-color: transparent;
    border: none;
    border-bottom: 2px dotted #555;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    padding: 0 5px 5px 5px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

/* ボタンホバー時 */
.custom-form .wpcf7-submit:hover {
    opacity: 0.6;
}

/* Contact Form 7出力時の不要な余白をリセット */
.custom-form p {
    margin: 0;
}

.custom-form .wpcf7-form-control-wrap {
    display: block;
}