/* ============================================
   よくある質問ページ専用スタイル
   ============================================ */

/* FAQセクション */
.faq-main {
    padding: 60px 40px 100px;
    background: white;
}

.faq-main-inner {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.faq-item-question {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 25px 30px;
    text-align: left;
    transition: background 0.3s;
    outline: none;
}

.faq-item-question:focus,
.faq-item-question:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.faq-item-question:hover {
    background: #e9ecef;
}

.faq-item-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #5B8490;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.faq-item-answer .faq-item-icon {
    background: transparent;
    color: #FF5409;
}

.faq-item-question-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    flex: 1;
}

.faq-item-toggle {
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item--active .faq-item-toggle {
    transform: rotate(225deg);
}

.faq-item-answer {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 30px;
    background: white;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item--active .faq-item-answer {
    max-height: 500px;
    opacity: 1;
    padding: 25px 30px;
}

.faq-item-answer-text {
    flex: 1;
}

.faq-item-answer-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   レスポンシブ対応（タブレット: 1024px以下）
   ============================================ */
@media (max-width: 1024px) {
    .faq-main {
        padding: 50px 30px 80px;
    }

    .faq-main-inner {
        max-width: 100%;
    }
}

/* ============================================
   レスポンシブ対応（スマホ: 768px以下）
   ============================================ */
@media (max-width: 768px) {
    .faq-main {
        padding: 40px 20px 60px;
    }

    .faq-list {
        gap: 15px;
    }

    .faq-item-question {
        padding: 20px;
        gap: 15px;
    }

    .faq-item-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .faq-item-question-text {
        font-size: 16px;
    }

    .faq-item-answer {
        padding: 0 20px;
        gap: 15px;
    }

    .faq-item--active .faq-item-answer {
        padding: 20px;
    }

    .faq-item-answer-text p {
        font-size: 14px;
    }
}

/* ============================================
   レスポンシブ対応（極小スマホ: 480px以下）
   ============================================ */
@media (max-width: 480px) {

    .faq-item-question {
        padding: 15px;
        gap: 12px;
    }

    .faq-item-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .faq-item-question-text {
        font-size: 14px;
    }

    .faq-item-answer {
        padding: 0 15px;
        gap: 12px;
    }

    .faq-item--active .faq-item-answer {
        padding: 15px;
    }
}

