/* css/contact.css */

/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

/* コンテナのスタイル */
.contact-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.intro-text {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
}

/* 成功・エラーメッセージのスタイル */
.success-message {
    color: green;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

/* フォームのスタイル */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group .required {
    color: red;
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* 確認ページのスタイル */
.contact-confirm {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-confirm dl {
    display: block;
}

.contact-confirm dt {
    font-weight: bold;
    margin-top: 20px;
    color: #333;
}

.contact-confirm dd {
    margin-left: 0;
    color: #555;
    line-height: 1.6;
}

.contact-confirm dt:first-of-type {
    margin-top: 0;
}

/* ボタンのスタイル */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.button-group .submit-button,
.button-group .back-button {
    width: 48%;
}

.back-button {
    padding: 14px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #5a6268;
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
    .contact-container {
        margin: 20px;
    }

    .contact-form,
    .contact-confirm {
        padding: 20px;
    }

    .submit-button,
    .back-button {
        font-size: 16px;
    }
}
