        /* --- Contact Section (共通部分) --- */
        .contact-section {
            padding: 80px 20px;
            background-color: #ebebeb;
            text-align: center;
        }

        .contact-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

        .contact-title {
            font-size: 2.5em;
            color: #333;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .contact-description {
            font-size: 1.1em;
            color: #666;
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .form-group {
            text-align: left;
        }

        .form-label {
            display: block;
            font-size: 0.95em;
            color: #555;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .form-input,
        .form-textarea {
            width: 100%;
            padding: 14px 18px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 1em;
            font-family: 'Arial', sans-serif;
            color: #333;
            box-sizing: border-box;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .form-input:focus,
        .form-textarea:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
            outline: none;
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        .submit-button {
            background-color: #fff;
            color: var(--text-secondary-color);
            padding: 15px 30px 16px;
            border: 1px solid var(--text-color);
            border-radius: 32px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            align-self: center;
            width: auto;
            min-width: 200px;
            margin-top: 20px;
        }

        .submit-button:hover {
            background-color: #eee;
            color:#900;
            transform: translateY(-2px);
        }

        .submit-button:active {
            transform: translateY(0);
        }

        /* --- 確認画面と完了画面のスタイル --- */
        .confirmation-screen,
        .completion-screen {
            text-align: center;
            padding: 40px 20px;
            background-color: #fff;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 300px;
        }

        /* メッセージの改行を保持する */
        .pre-wrap {
            white-space: pre-wrap; /* 改行とスペースを保持 */
        }

        .confirmation-screen h3,
        .completion-screen h3 {
            font-size: 2em;
            color: #333;
            margin-bottom: 25px;
        }

        .confirmation-details {
            text-align: left;
            width: 100%;
            max-width: 500px;
            margin: 0 auto 30px;
            padding: 20px;
            background-color: #f9f9f9;
            border: 1px solid #eee;
            border-radius: 5px;
            word-wrap: break-word;
        }

        .confirmation-details p {
            margin-bottom: 10px;
            line-height: 1.6;
            color: #555;
        }

        .confirmation-details p:last-child {
            margin-bottom: 0;
        }

        .confirmation-details strong {
            color: #333;
        }

        .confirmation-actions,
        .completion-actions {
            display: flex;
            gap: 20px;
            justify-content: center;
            width: 100%;
        }

        /* 修正する / トップに戻る ボタンの共通スタイル */
        .button {
            background-color: #6c757d;
            color: #fff;
            padding: 14px 25px;
            border: none;
            border-radius: 6px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            min-width: 150px;
        }

        .button:hover {
            background-color: #5a6268;
            transform: translateY(-2px);
        }

/* error-messages は初期状態で非表示にする */
.error-messages {
    display: none; /* これを追加または確認 */
    /* 既存のスタイルもここに含める */
    list-style: none;
    padding: 15px;
    margin: 0 auto 20px;
    background-color: #ffe5e5;
    color: #d8000c;
    border: 1px solid #d8000c;
    border-radius: 5px;
    max-width: 500px;
    text-align: left;
}
        .error-messages li {
            margin-bottom: 5px;
        }

        /* --- レスポンシブ対応 --- */
        @media (max-width: 768px) {
            .contact-section { padding: 50px 15px; }
            .contact-container { padding: 25px; }
            .contact-title { font-size: 2em; }
            .contact-description { font-size: 1em; margin-bottom: 30px; }
            .contact-form { gap: 20px; }
            .form-input, .form-textarea { padding: 12px 15px; }
            .submit-button { padding: 14px 25px; font-size: 1em; min-width: 150px; }
            .confirmation-details { padding: 15px; }
        }

        @media (max-width: 480px) {
            .contact-section { padding: 30px 10px; }
            .contact-container { padding: 20px; box-shadow: none; }
            .contact-title { font-size: 1.8em; }
            .contact-description { font-size: 0.9em; margin-bottom: 20px; }
            .form-input, .form-textarea { font-size: 0.9em; }
            .submit-button { width: 100%; min-width: unset; }
            .confirmation-actions, .completion-actions {
                flex-direction: column;
                gap: 15px;
            }
            .button, .submit-button { width: 100%; min-width: unset; }
        }