<style>
    /* 全体の背景と中央寄せ */
    .contact-main {
        background-color: #f8f9fa;
        padding: 60px 0;
        font-family: 'Roboto', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    }
    
    .container {
        max-width: 700px; /* フォームが広がりすぎないように制限 */
        margin: 0 auto;
        padding: 0 20px;
    }

    /* タイトルまわりの装飾 */
    .contact-title {
        text-align: center;
        color: #333;
        font-size: 2em;
        margin-bottom: 10px;
    }
    .contact-subtitle {
        text-align: center;
        color: #666;
        margin-bottom: 30px;
    }
    
    /* 電話案内ボックス */
    .contact-phone-info {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        margin-bottom: 40px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    .contact-phone-info i { color: #28a745; margin-right: 8px; }

    /* フォームの外枠（カード風にする） */
    .contact-form-container {
        background-color: #ffffff;
        padding: 40px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }

    /* 各入力項目の縦並び配置 */
    .form-group {
        margin-bottom: 25px;
        display: flex;
        flex-direction: column; /* ラベルを入力欄の上に配置 */
    }

    .form-group label {
        font-weight: bold;
        margin-bottom: 8px;
        color: #495057;
        font-size: 0.95em;
    }

    /* 必須項目のバッジ */
    .required-badge {
        background-color: #dc3545;
        color: white;
        font-size: 0.75em;
        padding: 2px 6px;
        border-radius: 4px;
        margin-left: 6px;
        vertical-align: middle;
    }

    /* 入力欄（テキスト、メール、セレクト、テキストエリア）の共通スタイル */
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 1em;
        box-sizing: border-box; /* paddingが外にはみ出るのを防ぐ */
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    /* 入力欄にフォーカスが当たったとき（緑色に光らせる） */
    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
        outline: none;
    }

    /* 同意チェックボックスの調整 */
    .contact-terms {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 30px 0;
    }
    .contact-terms input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    /* 送信ボタン（横幅いっぱいに綺麗に広げる） */
    .contact-submit-button {
        display: block;
        width: 100%;
        padding: 16px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 1.2em;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s, transform 0.1s;
    }
    .contact-submit-button:hover {
        background-color: #218838;
    }
    .contact-submit-button:active {
        transform: scale(0.98);
    }

    /* スマホ用の微調整 */
    @media screen and (max-width: 576px) {
        .contact-form-container { padding: 20px; }
        .contact-title { font-size: 1.6em; }
    }
</style>