/* ========================================
   AITOLIE - FAQ Section
   Premium Dark Theme with Categories
   ======================================== */

.faq {
    position: relative;
    padding: 120px 0;
    background: #0a0a0a;
    overflow: hidden;
}

/* Diagonal Background Text */
.faq__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 200%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.faq__bg-text-row {
    display: flex;
    white-space: nowrap;
    animation: faqDiagonalScroll 25s linear infinite;
}

.faq__bg-text-row:nth-child(2) {
    animation-direction: reverse;
    margin-top: 40px;
}

.faq__bg-text-row span {
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 900;
    color: #fff;
    margin-right: 80px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes faqDiagonalScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header */
.faq__header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

/* Tabs */
.faq__tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.faq__tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.faq__tab:hover {
    border-color: rgba(201, 169, 98, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.faq__tab.is-active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 500;
}

/* Content */
.faq__content {
    display: none;
    position: relative;
    z-index: 1;
}

.faq__content.is-active {
    display: block;
    animation: faqFadeIn 0.4s ease;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ List */
.faq__list {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Item */
.faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.faq__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Question Button */
.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq__q-text {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1.6;
    padding-right: 20px;
    transition: color 0.3s ease;
}

.faq__q-text::before {
    content: 'Q.';
    color: var(--gold);
    font-weight: 600;
    margin-right: 12px;
}

.faq__question:hover .faq__q-text {
    color: var(--gold-light);
}

/* Icon */
.faq__icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background: var(--gold);
    transition: all 0.3s ease;
}

.faq__icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__item.is-active .faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Answer */
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.is-active .faq__answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq__a-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    padding-left: 28px;
}

.faq__a-text::before {
    content: 'A.';
    color: rgba(201, 169, 98, 0.7);
    font-weight: 600;
    margin-right: 12px;
    margin-left: -28px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq {
        padding: 80px 0;
    }

    .faq__tabs {
        gap: 8px;
    }

    .faq__tab {
        padding: 8px 14px;
        font-size: 11px;
    }

    .faq__q-text {
        font-size: 14px;
    }

    .faq__a-text {
        font-size: 13px;
    }
}