/* フォームコンテナ */
#contact-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9; /* 背景を薄いグレーに */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
    font-family: Arial, sans-serif;
}

/* フォームグループ */
#contact-form .form-group {
    margin-bottom: 15px;
}

/* ラベル */
#contact-form .form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #555; /* テキストカラー */
}

/* 入力フィールド */
#contact-form .form-group input,
#contact-form .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* チェックボックス */
input[type="checkbox"] {
    display: inline-block !important; /* 横幅を広げずにインライン表示 */
    width: auto !important; /* デフォルトの幅に戻す */
    margin: 0 !important; /* 不要な余白を削除 */
}
#contact-form .inline-label {
    display: inline-block !important; /* 横幅を広げずにインライン表示 */
    align-items: left !important; /* ラベルとチェックボックスを左揃え */
    gap: 5px; /* チェックボックスとラベルの間に余白を追加 */
    white-space: nowrap; /* ラベルが折り返されないようにする */
}

/* フォーカス時のスタイル */
#contact-form .form-group input:focus,
#contact-form .form-group textarea:focus {
    border-color: #007BFF; /* フォーカス時に青で強調 */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* テキストエリア */
#contact-form .form-group textarea {
    resize: vertical; /* 縦方向のサイズ変更のみ許可 */
}

/* 送信ボタン */
#contact-form button {
    background-color: #007BFF; /* サイトカラーの青 */
    color: white;
    font-size: 16px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* ボタン幅を100%に */
    transition: background-color 0.3s;
}

/* ホバー時の送信ボタン */
#contact-form button:hover {
    background-color: #0056b3; /* 少し濃い青に変更 */
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    #contact-form-container {
        padding: 15px;
    }
    #contact-form button {
        font-size: 14px;
        padding: 8px;
    }
}
