/* FANZA Movie FAQ Block Styles */
.fanza-movie-faq {
    margin: 2em 0;
}

.fanza-movie-faq-heading {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 1em;
    color: #333;
}

.fanza-movie-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.fanza-movie-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.fanza-movie-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fanza-movie-faq-item[open] {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.fanza-movie-faq-question {
    font-weight: bold;
    font-size: 1.1em;
    padding: 1em 1.2em;
    color: #333;
    background-color: #f8f9fa;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.fanza-movie-faq-question::-webkit-details-marker {
    display: none;
}

.fanza-movie-faq-question-text {
    flex: 1;
}

.fanza-movie-faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    transform: rotate(90deg);
}

.fanza-movie-faq-item[open] .fanza-movie-faq-icon {
    transform: rotate(-90deg);
}

.fanza-movie-faq-item[open] .fanza-movie-faq-question {
    background-color: #e9ecef;
    border-bottom: 1px solid #e0e0e0;
}

.fanza-movie-faq-question:hover {
    background-color: #e9ecef;
}

.fanza-movie-faq-answer {
    padding: 1.2em 1.2em;
    color: #555;
    line-height: 1.8;
    background-color: #ffffff;
}

.fanza-movie-faq-answer p {
    margin: 0;
}

/* テーブル形式のスタイル */
.fanza-movie-faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.fanza-movie-faq-table thead {
    background-color: #f8f9fa;
}

.fanza-movie-faq-table th {
    padding: 1em 1.2em;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.fanza-movie-faq-table td {
    padding: 1.2em 1.2em;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.fanza-movie-faq-table tbody tr:last-child td {
    border-bottom: none;
}

.fanza-movie-faq-table tbody tr:hover {
    background-color: #f8f9fa;
}

.fanza-movie-faq-table-question {
    font-weight: bold;
    color: #333;
    width: 30%;
    min-width: 200px;
}

.fanza-movie-faq-table-answer {
    color: #555;
    line-height: 1.8;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .fanza-movie-faq-heading {
        font-size: 1.3em;
    }
    
    .fanza-movie-faq-question {
        font-size: 1em;
        padding: 0.9em 1em;
        padding-right: 2.5em;
    }
    
    .fanza-movie-faq-answer {
        padding: 1em;
        font-size: 0.95em;
    }
    
    /* テーブル形式のモバイル対応 */
    .fanza-movie-faq-table {
        display: block;
        overflow-x: auto;
    }
    
    .fanza-movie-faq-table thead {
        display: none;
    }
    
    .fanza-movie-faq-table tbody,
    .fanza-movie-faq-table tr,
    .fanza-movie-faq-table td {
        display: block;
        width: 100%;
    }
    
    .fanza-movie-faq-table tr {
        margin-bottom: 1em;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        background-color: #ffffff;
    }
    
    .fanza-movie-faq-table td {
        padding: 1em;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .fanza-movie-faq-table td:last-child {
        border-bottom: none;
    }
    
    .fanza-movie-faq-table-question {
        font-weight: bold;
        background-color: #f8f9fa;
        padding-bottom: 0.5em;
    }
    
    .fanza-movie-faq-table-question::before {
        content: 'Q: ';
        font-weight: bold;
        color: #666;
    }
    
    .fanza-movie-faq-table-answer::before {
        content: 'A: ';
        font-weight: bold;
        color: #666;
        display: block;
        margin-bottom: 0.5em;
    }
}
