/* ヘッダー */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: white;
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* お問い合わせ選択 */
.contact-select {
    padding: 80px 20px 40px;
    background: #f8f9fa;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.contact-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea05 0%, #764ba205 100%);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.contact-description {
    color: #666;
    font-size: 0.95rem;
}

/* フォームセクション */
.form-section {
    padding: 60px 20px 80px;
    background: white;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Form 7のスタイル調整 */
.contact-form-wrapper {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Contact Form 7デフォルトスタイルのカスタマイズ */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.wpcf7-form label .required {
    color: #ff6b6b;
    margin-left: 5px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form .form-group {
    margin-bottom: 25px;
}

.wpcf7-form .submit-wrapper {
    text-align: center;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    margin-top: 20px;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.wpcf7-spinner {
    margin-left: 15px;
}

.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* その他の連絡方法 */
.other-contact {
    padding: 60px 20px;
    background: #f8f9fa;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-method {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.method-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.method-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.method-info {
    color: #666;
    margin-bottom: 15px;
}

.method-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 25px;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s;
}

.method-link:hover {
    background: #667eea;
    color: white;
}

/* プライバシーポリシー */
.privacy-section {
    padding: 40px 20px;
    background: white;
    text-align: center;
}

.privacy-note {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}

.privacy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.privacy-link:hover {
    text-decoration: underline;
}

.rechaptha-policy {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* レスポンシブ */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .contact-form-wrapper,
    .form-mockup {
        padding: 25px;
    }

    .form-checkbox-group {
        flex-direction: column;
    }
}
