.modern-faq-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.modern-faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: #070096;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(7, 0, 150, 0.1);
}

.modern-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-faq-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(7, 0, 150, 0.1);
}

.modern-faq-item:hover {
    box-shadow: 0 4px 12px rgba(7, 0, 150, 0.1);
}

.modern-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    color: #070096;
    background-color: rgba(7, 0, 150, 0.03);
    transition: all 0.3s ease;
}

.modern-faq-question:hover {
    background-color: rgba(7, 0, 150, 0.07);
}

.faq-toggle-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.faq-toggle-icon svg {
    stroke: #070096;
}

.faq-item-open .faq-toggle-icon {
    transform: rotate(45deg);
}

.modern-faq-answer {
    font-size:1.1rem;
    text-align:left;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    line-height: 1.6;
    color: #444;
    background-color: white;
    transition: all 0.3s ease;
}

.faq-item-open .modern-faq-answer {
    padding: 1.5rem;
    max-height: 1000px; /* 適切な値に調整 */
}

/* Dark テーマ */
.faq-theme-dark {
    background: #1a1a2e;
}

.faq-theme-dark .modern-faq-title {
    color: #eef2f7;
    border-bottom-color: rgba(230, 230, 255, 0.1);
}

.faq-theme-dark .modern-faq-item {
    border-color: rgba(230, 230, 255, 0.1);
}

.faq-theme-dark .modern-faq-question {
    color: #e6e6ff;
    background-color: rgba(230, 230, 255, 0.05);
}

.faq-theme-dark .modern-faq-question:hover {
    background-color: rgba(230, 230, 255, 0.1);
}

.faq-theme-dark .faq-toggle-icon svg {
    stroke: #e6e6ff;
}

.faq-theme-dark .modern-faq-answer {
    color: #cccccc;
    background-color: #1a1a2e;
}

/* Gradient テーマ */
.faq-theme-gradient .modern-faq-question {
    background: linear-gradient(135deg, rgba(7, 0, 150, 0.05) 0%, rgba(7, 0, 150, 0.1) 100%);
}

.faq-theme-gradient .modern-faq-question:hover {
    background: linear-gradient(135deg, rgba(7, 0, 150, 0.1) 0%, rgba(7, 0, 150, 0.15) 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modern-faq-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .modern-faq-title {
        font-size: 1.5rem;
    }
    
    .modern-faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-item-open .modern-faq-answer {
        padding: 1rem;
    }
}