/* ===================================
   アコーディオン（ルールセクション用）
   =================================== */

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(196, 30, 58, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.accordion-header:hover {
    background: rgba(196, 30, 58, 0.1);
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.accordion-header h4 i {
    color: #c41e3a;
    font-size: 1.2rem;
}

.accordion-icon {
    font-size: 1.2rem;
    color: #c41e3a;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
}

.accordion-content ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.accordion-content ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: bold;
}

.accordion-content .weight-classes-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
}

.accordion-content .weight-classes-list li::before {
    content: "●";
    font-size: 0.6rem;
    top: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-header h4 {
        font-size: 1rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 1rem;
    }
    
    .accordion-icon {
        font-size: 1rem;
    }
}
