/* ========================================
   お問い合わせページ - モダンデザイン
   ======================================== */

header {
    position: static;
}

main {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--secondary);
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

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

.contact-form .btn {
    display: block;
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.error-list {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: none;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    color: #dc2626;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}

.error-list ul {
    margin-left: 1.25rem;
}

.error-list li {
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light);
}

.back-link a {
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: var(--primary);
}

/* フッター */
footer {
    margin-top: 0;
    text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem 3rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}
