@charset "utf-8";

/* FAQ Layout */
.recruit-faq {
    padding: 60px 0 100px;
    background-color: #f7f8fa; /* Clean light background */
}

.recruit-faq__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.recruit-faq__container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.recruit-faq__sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.recruit-faq__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recruit-faq__nav a {
    display: block;
    padding: 18px 24px;
    background: #ffffff;
    border-radius: 40px; /* Large rounded corner */
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.recruit-faq__nav a:hover,
.recruit-faq__nav a.is-active {
    color: #e50012; /* JRC Red accent */
    border-color: #e50012;
    box-shadow: 0 4px 20px rgba(229, 0, 18, 0.1);
}

/* FAQ Content */
.recruit-faq__content {
    flex-grow: 1;
    min-width: 0;
}

.recruit-faq__category {
    margin-bottom: 80px;
}

.recruit-faq__category:last-child {
    margin-bottom: 0;
}

.recruit-faq__category-title {
    font-size: 28px;
    font-weight: 700;
    color: #e50012;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.recruit-faq__category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #e50012;
    border-radius: 3px;
}

.recruit-faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recruit-faq__item {
    background: #ffffff;
    border-radius: 24px; /* Large rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.recruit-faq__item[open] {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.recruit-faq__q {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    list-style: none;
    position: relative;
    color: #333333;
}

/* Hide default marker for Safari/Chrome */
.recruit-faq__q::-webkit-details-marker {
    display: none;
}

.recruit-faq__q-icon {
    font-size: 24px;
    color: #e50012;
    margin-right: 20px;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1;
}

.recruit-faq__q-text {
    flex-grow: 1;
    padding-right: 40px;
    line-height: 1.6;
}

.recruit-faq__toggle {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.recruit-faq__toggle::before,
.recruit-faq__toggle::after {
    content: '';
    position: absolute;
    background: #e50012;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.recruit-faq__toggle::before {
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
}

.recruit-faq__toggle::after {
    top: 0;
    left: 8px;
    width: 2px;
    height: 18px;
}

details[open] .recruit-faq__toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

.recruit-faq__a {
    padding: 0 30px 30px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.recruit-faq__a-inner {
    display: flex;
    align-items: flex-start;
    padding-top: 24px;
    border-top: 1px dashed #e0e0e0;
}

.recruit-faq__a-icon {
    font-size: 24px;
    color: #888888;
    margin-right: 20px;
    font-weight: 700;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1;
}

.recruit-faq__a-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
}

/* SP Layout */
@media screen and (max-width: 768px) {
    .recruit-faq {
        padding: 40px 0 60px;
    }

    .recruit-faq__container {
        flex-direction: column;
        gap: 30px;
    }

    .recruit-faq__sidebar {
        width: 100%;
        position: sticky;
        top: 60px; /* Adjust based on SP header height */
        z-index: 100;
        background: rgba(247, 248, 250, 0.95);
        padding: 15px 0;
        margin: -15px 0;
        backdrop-filter: blur(5px);
    }

    .recruit-faq__nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .recruit-faq__nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar */
    }

    .recruit-faq__nav li {
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .recruit-faq__nav a {
        padding: 12px 24px;
        font-size: 14px;
        white-space: nowrap;
    }

    .recruit-faq__category {
        margin-bottom: 50px;
    }

    .recruit-faq__category-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .recruit-faq__list {
        gap: 15px;
    }

    .recruit-faq__q {
        padding: 20px 24px;
        font-size: 15px;
    }

    .recruit-faq__q-icon {
        margin-right: 15px;
    }

    .recruit-faq__toggle {
        right: 20px;
    }

    .recruit-faq__q-text {
        padding-right: 25px;
    }

    .recruit-faq__a {
        padding: 0 24px 24px;
    }
    
    .recruit-faq__a-inner {
        padding-top: 20px;
    }

    .recruit-faq__a-icon {
        margin-right: 15px;
    }
}
