/* =========================
 * FAQ フロントページ用CSS
 * ========================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item-front {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.faq-item-front:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item-front.is-open {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 質問部分 */
.faq-question {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 15px;
    font-weight: bold;
    color: var(--text-base, #333);
}

.faq-icon-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--main-color, #0056b3);
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
    padding-bottom: 3px;
}

.faq-question-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-arrow {
    transition: transform 0.3s;
    color: #aaa;
    flex-shrink: 0;
}

/* 回答部分（アコーディオン） */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer-inner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.8;
}

.faq-icon-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--sub-color, #ff9800);
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
    padding-bottom: 3px;
}

.faq-answer-text {
    flex: 1;
    font-size: 0.95rem;
}

/* ページ説明文 */
.page-desc {
    color: #fff;
    opacity: 0.85;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* =========================
 * 管理画面FAQ用CSS
 * ========================= */

.faq-drag-handle {
    cursor: grab;
    padding-top: 10px;
}

.faq-drag-handle:active {
    cursor: grabbing;
}

.faq-sortable-ghost {
    opacity: 0.4;
    background: #f0f7ff;
    border: 2px dashed var(--main-color, #0056b3);
}

/* =========================
 * レスポンシブ
 * ========================= */

@media (max-width: 576px) {
    .faq-question {
        padding: 14px 15px;
        gap: 10px;
    }

    .faq-icon-q,
    .faq-icon-a {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .faq-question-text {
        font-size: 0.9rem;
    }

    .faq-answer-inner {
        padding: 0 15px 15px 15px;
        gap: 10px;
    }
}
