/* お問い合わせページ全体 */
.contact-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-page h1 {
    text-align: center;
    color: #2c5aa0;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
}

.contact-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f4c430, #daa520);
    border-radius: 2px;
}

/* Contact Form 7 スタイル */
.wpcf7 {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* 必須マークの追加 */
.wpcf7-form label::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* 入力フィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: #2c5aa0;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    background: #ffeaea;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #e74c3c !important;
    background: #ffeaea;
}

/* 成功・エラーメッセージ */
.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.wpcf7-validation-errors {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-page {
        padding: 20px 15px;
    }
    
    .wpcf7 {
        padding: 25px 20px;
    }
    
    .contact-page h1 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
        min-width: auto;
    }
}

/* アニメーション効果 */
.wpcf7-form p {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.wpcf7-form p:nth-child(1) { animation-delay: 0.1s; }
.wpcf7-form p:nth-child(2) { animation-delay: 0.2s; }
.wpcf7-form p:nth-child(3) { animation-delay: 0.3s; }
.wpcf7-form p:nth-child(4) { animation-delay: 0.4s; }
.wpcf7-form p:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}