/* Simple FAQ Accordion スタイル */

/* 全体のコンテナ */
.simple-faq {
    width: 100%; /* 幅を最大に */
    margin: 0 auto;
    padding: 20px 0;
    font-size: 16px;
}

/* FAQアイテム */
.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 質問部分 */
.faq-question {
    margin: 0;
    padding: 15px 40px 15px 15px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: #333333;
    outline: none;
}

/* アイコン（＋/－） */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: bold;
    color: inherit;
}

.faq-question.is-open::after,
.faq-question[aria-expanded="true"]::after {
    content: '−';
}



/* 回答部分 */
.faq-answer {
    padding: 0 15px 15px;
    font-size: 1em;
    line-height: 1.6;
    color: #444444;
    display: none;
}

.faq-answer p {
    margin: 0 0 1em; /* wpautop による <p> のマージン調整 */
}

.faq-question:hover,
.faq-question:focus {
    background-color: #ffffff;
    color: #000;
    outline: none;
}

/* アニメーション */
.faq-answer[style*="block"] {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        height: auto;
        padding-top: 0;
        padding-bottom: 15px;
    }
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .simple-faq {
        width: 100%; /* モバイルでも最大幅 */
        padding: 10px;
    }
    .faq-item {
        margin-bottom: 8px;
    }
    .faq-question {
        font-size: 1em;
        padding: 12px 35px 12px 12px;
    }
    .faq-answer {
        font-size: 0.95em;
    }
}
