/* --- Section 8: FAQ (Final C: BADGE STYLE + NEON BOTTOM) --- */
.sec8-faq {
    padding: 100px 5%;
    background: #fcfcfc;
}

.sec8-inner {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .sec8-inner {
        padding: 40px 20px;
    }
}

.sec8-header {
    text-align: center;
    margin-bottom: 50px;
}

.sec8-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.sec8-divider {
    width: 60px;
    margin: 0 auto;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- FAQ Items --- */
.sec8-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sec8-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
}

/* 底面のネオンライン演出（擬似要素で滑らかに） */
.sec8-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #007AFF, #00ffcc);
    transition: width 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 10;
}

.sec8-item.is-active::after {
    width: 100%;
}

/* Hover effect */
.sec8-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.sec8-item.is-active {
    box-shadow: 0 20px 40px rgba(0,122,255,0.1);
}

/* --- Question Area --- */
.sec8-question {
    position: relative;
    padding: 25px 50px 25px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    z-index: 2;
}

.sec8-question p {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* Q Badge */
.sec8-q-badge {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    background: var(--primary); /* ベースの色 */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Q Badge グラデーションレイヤー（滑らかなフェード用） */
.sec8-q-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #007AFF, #00ffcc);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.sec8-item.is-active .sec8-q-badge::before {
    opacity: 1;
}

/* テキストを最前面に */
.sec8-q-badge span {
    position: relative;
    z-index: 1;
}

/* Plus/Minus Icon */
.sec8-question::after {
    content: '+';
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--primary);
    transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    width: 24px;
    text-align: center;
}

.sec8-item.is-active .sec8-question::after {
    content: '−';
    transform: rotate(180deg);
}

/* --- Answer Area --- */
.sec8-answer-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.sec8-answer-inner {
    position: relative;
    padding: 0 30px 30px 70px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sec8-item.is-active .sec8-answer-inner {
    opacity: 1;
    transition-delay: 0.1s;
}

/* A Badge */
.sec8-a-badge {
    position: absolute;
    left: 20px;
    top: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    background: #333;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.sec8-answer-text {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .sec8-question {
        padding-left: 60px;
        padding-right: 40px;
    }
    .sec8-q-badge, .sec8-a-badge {
        width: 28px;
        height: 28px;
        left: 15px;
    }
    .sec8-answer-inner {
        padding-left: 60px;
    }
}
