/* --- お問い合わせフォーム セクション全体のスタイル --- */
.contact-section {
    padding: 100px 0;
    background-color: #f8f9fa; /* 薄いグレーの背景でフォームを際立たせる */
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* ヘッダー部分 */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.contact-header p {
    color: #888;
    font-size: 0.9rem;
}

/* フォームアイテムのレイアウト */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 10px;
}

.form-group label .required {
    background: #ff4d4d;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力フィールドの装飾 */
.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fdfdfd;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #007AFF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 18px 0;
    background: #007AFF;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.2);
}

.btn-submit:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.3);
}



/* 完了・エラーメッセージ */
.status-msg {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.status-msg.success {
    background: #e7f9ee;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.status-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 完了後の「トップページへ戻る」リンク */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid #007AFF;
    color: #007AFF ;
    background-color: #ffffff;
    text-decoration: none ;
    margin-bottom: 30px !important;
}

.btn-back:hover {
    background-color: #007AFF;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 122, 255, 0.25);
    transform: translateY(-2px);
}


/* スマホ対応 */
@media (max-width: 768px) {
    .contact-container {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
}
