/* ================================================
   Contact Page Styles
   ================================================ */

:root {
    --color-teal-contact: #0BFFB7;
    --color-dark-contact: #0F1214;
    --color-deep-contact: #111418;
    --color-light-bg: #F6F7F8;
}

/* ================================================
   Body & General
   ================================================ */

body {
    background: var(--color-dark-contact);
    margin: 0;
    padding: 0;
}

/* ================================================
   Particles Canvas
   ================================================ */

.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

/* Z-index Management */
.header {
    position: relative;
    z-index: 1000;
}

section {
    position: relative;
}

/* Content elements above particles */
section:not(.contact-hero) * {
    position: relative;
    z-index: 10;
}

.footer {
    background: var(--color-dark-contact) !important;
    position: relative;
    z-index: 10;
}

/* ================================================
   Hero Section
   ================================================ */

.contact-hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, rgba(17, 20, 24, 0.95) 0%, rgba(15, 18, 20, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: block !important;
    grid-template-columns: none !important;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.01em;
}

.hero-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-teal-contact), transparent);
    margin: 0 auto;
    box-shadow: 0 0 20px var(--color-teal-contact);
}

/* ================================================
   Consultation Topics
   ================================================ */

.consultation-topics {
    padding: 80px 0 60px;
    background: var(--color-light-bg);
}

.topics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.topics-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-dark-contact);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.topic-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(11, 255, 183, 0.1);
}

.topic-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #12ce96;
}

.topic-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(15, 18, 20, 0.8);
    margin: 0;
}

/* ================================================
   Contact Form Section
   ================================================ */

.contact-form-section {
    padding: 80px 0;
    background: var(--color-light-bg);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark-contact);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.optional {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(15, 18, 20, 0.5);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-dark-contact);
    background: #FFFFFF;
    border: 2px solid rgba(15, 18, 20, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-teal-contact);
    box-shadow: 0 0 0 3px rgba(11, 255, 183, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(15, 18, 20, 0.4);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-teal-contact);
}

.checkbox-text {
    font-size: 0.95rem;
    color: rgba(15, 18, 20, 0.8);
}

.privacy-link {
    color: #12ce96;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 0.7;
}

.form-submit {
    margin-top: 1rem;
}

.form-submit .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* ================================================
   Contact Flow
   ================================================ */

.contact-flow {
    padding: 80px 0;
    background: var(--color-light-bg);
}

.flow-header {
    text-align: center;
    margin-bottom: 4rem;
}

.flow-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark-contact);
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.flow-step-item {
    flex: 1 1 0;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.flow-step-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.step-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #12ce96;
    opacity: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark-contact);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(15, 18, 20, 0.7);
    margin: 0;
}

.flow-arrow {
    flex-shrink: 0;
    width: 60px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #12ce96;
    opacity: 0.8;
    padding: 0 10px;
}

.flow-arrow svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

/* ================================================
   Notes Section
   ================================================ */

.contact-notes {
    padding: 80px 0 100px;
    background: var(--color-light-bg);
}

.notes-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.7);
}

.notes-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-dark-contact);
    margin-bottom: 1.5rem;
    text-align: center;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem auto;
    max-width: 510px;
}

.notes-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(15, 18, 20, 0.8);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.notes-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #12ce96;
    font-weight: 700;
}

.notes-contact {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(15, 18, 20, 0.7);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 18, 20, 0.1);
    margin: 0;
}

.notes-contact a {
    color: #12ce96;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.notes-contact a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 1024px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .flow-arrow {
        width: 100%;
        height: 40px;
        margin: 0.5rem 0;
        transform: none;
    }

    .flow-arrow svg {
        width: 28px;
        height: 28px;
        transform: rotate(90deg);
    }

    .flow-step-item {
        max-width: 500px;
        width: 100%;
    }
}

/* PC版の間隔設定 */
@media (min-width: 769px) {
    .contact-hero .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .contact-hero .hero-line {
        margin-bottom: 2rem;
    }
    
    .contact-hero .hero-subtitle {
        margin-bottom: 3rem;
    }
}

/* SP版の間隔設定 */
@media (max-width: 768px) {
    .contact-hero .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .contact-hero .hero-title,
    .contact-hero h1 {
        order: 1 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        font-size: 2.5rem !important;
    }
    
    .contact-hero .hero-line,
    .contact-hero div.hero-line {
        order: 2 !important;
        margin-top: 1rem !important;
        margin-right: auto !important;
        margin-bottom: 1rem !important;
        margin-left: auto !important;
        padding: 0 !important;
    }
    
    .contact-hero .hero-subtitle,
    .contact-hero p {
        order: 3 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        font-size: 1rem !important;
    }

    .contact-hero {
        padding: 120px 0 80px;
    }

    .consultation-topics,
    .contact-form-section,
    .contact-flow,
    .contact-notes {
        padding: 60px 0;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .flow-step-item {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .flow-arrow {
        width: 100%;
        height: 35px;
        margin: 0.75rem 0;
    }

    .flow-arrow svg {
        width: 22px;
        height: 22px;
        transform: rotate(90deg);
    }

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

    .notes-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .flow-arrow {
        height: 30px;
        margin: 0.5rem 0;
    }

    .flow-arrow svg {
        width: 20px;
        height: 20px;
    }

    .form-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* ================================================
   Animation Utilities
   ================================================ */

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   reCAPTCHA Badge Styling
   ================================================ */

/* Hide reCAPTCHA badge (we show text in footer instead) */
.grecaptcha-badge {
    visibility: hidden !important;
}
