/* 鳴白用Q&Aフロントエンドスタイル - エレガント黒×金デザイン */

.nakihaku-qa-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 1px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.nakihaku-qa-search-box {
    position: relative;
    margin-bottom: 30px;
}

.nakihaku-qa-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    color: #d4af37;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nakihaku-qa-search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: rgba(30, 30, 30, 0.9);
}

.nakihaku-qa-search-input::placeholder {
    color: rgba(212, 175, 55, 0.5);
}

.nakihaku-qa-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.6;
    pointer-events: none;
}

.nakihaku-qa-search-icon::before {
    content: "⌕";
    color: #d4af37;
    font-weight: bold;
}

.nakihaku-qa-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nakihaku-qa-item {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nakihaku-qa-item:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.15);
}

.nakihaku-qa-question-wrapper {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(20, 20, 20, 0.5);
    transition: background 0.3s ease;
}

.nakihaku-qa-question-wrapper:hover {
    background: rgba(30, 30, 30, 0.7);
}

.nakihaku-qa-q-label {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a961 100%);
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.nakihaku-qa-question-text {
    flex: 1;
    margin: 0;
    color: #d4af37;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.nakihaku-qa-question-text p {
    margin: 0;
}

.nakihaku-qa-question-text a {
    color: #d4af37;
    text-decoration: underline;
}

.nakihaku-qa-question-text a:hover {
    color: #f0c654;
}

.nakihaku-qa-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #d4af37;
    font-size: 24px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nakihaku-qa-item.active .nakihaku-qa-toggle {
    transform: rotate(45deg);
}

.nakihaku-qa-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(10, 10, 10, 0.6);
}

.nakihaku-qa-item.active .nakihaku-qa-answer-wrapper {
    max-height: 1000px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.nakihaku-qa-answer-wrapper > div {
    padding: 20px 25px;
    display: flex;
    gap: 15px;
}

.nakihaku-qa-a-label {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b7355 0%, #6b5d4f 100%);
    color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.nakihaku-qa-answer-text {
    flex: 1;
    color: #c9a961;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.nakihaku-qa-answer-text a {
    color: #d4af37;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.nakihaku-qa-answer-text a:hover {
    color: #f0c654;
    text-decoration: none;
}

.nakihaku-qa-answer-text p {
    margin-bottom: 10px;
}

.nakihaku-qa-answer-text p:last-child {
    margin-bottom: 0;
}

.nakihaku-qa-no-items,
.nakihaku-qa-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8b8b8b;
    font-size: 16px;
    font-style: italic;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nakihaku-qa-item {
    animation: fadeIn 0.5s ease;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nakihaku-qa-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .nakihaku-qa-question-wrapper {
        padding: 15px 18px;
        gap: 12px;
    }
    
    .nakihaku-qa-question-text {
        font-size: 16px;
    }
    
    .nakihaku-qa-answer-wrapper > div {
        padding: 15px 18px;
        gap: 12px;
    }
    
    .nakihaku-qa-answer-text {
        font-size: 15px;
    }
    
    .nakihaku-qa-q-label,
    .nakihaku-qa-a-label {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}