/* Contact ページ専用スタイル */

/* Hero Section */
.hero-section {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/top_contact.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 20px;
    color: #e5e7eb;
}

/* Contact Info Section */
.contact-info-section {
    background-color: #f9fafb;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.contact-card {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: #3b82f6;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.phone-main,
.phone-mobile {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.phone-main:hover,
.phone-mobile:hover {
    color: #2563eb;
}

.phone-mobile {
    font-size: 18px;
    font-weight: 600;
}

.business-hours {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.company-details {
    color: #6b7280;
    line-height: 1.6;
}

.company-details .company-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.company-details .representative {
    font-weight: 500;
    margin-bottom: 4px;
}

.company-details p {
    margin-bottom: 8px;
}

.company-details a {
    color: #3b82f6;
    text-decoration: none;
}

.company-details a:hover {
    color: #2563eb;
}

.service-highlight {
    color: #6b7280;
    text-align: center;
}

.service-highlight .highlight-text {
    font-weight: 600;
    color: #3b82f6;
}

.service-highlight .note {
    font-size: 14px;
    margin-top: 8px;
}

/* Form Section */
.form-section {
    background-color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: none;
    color: #6b7280;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: #3b82f6;
    color: white;
}

.form-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

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

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.form-submit {
    text-align: center;
    margin-top: 32px;
}

.submit-btn {
    padding: 16px 32px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status Messages */
.status-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.status-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Form Validation */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Hidden Form */
.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-card {
        padding: 24px;
    }
    
    .phone-main {
        font-size: 20px;
    }
    
    .phone-mobile {
        font-size: 16px;
    }
    
    .form-card {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 12px 16px;
    }
    
    .submit-btn {
        width: 100%;
        min-width: auto;
    }
}