/* faq.css */

:root {
    --bittersweet: #ff7064; /* アクセントカラー */
    --saffron: #f6c53d; /* タブ・セクション背景 */
    --saffron-light: #f6c53db2; /* 透過サフラン */
    --sepia: #464646; /* 基本テキストカラー */
    --white: #ffffff; /* ベースカラー */
    --sidecar: #f6e7be; /* サフラン薄色バリエーション */
    --gray-light: #f8f9fa; /* 薄いグレー（背景用） */
    --gray-mid: #e9ecef; /* 中間グレー（ボーダー用） */
}

/* フォント定義 */
.inter-normal-sepia-14px {
    font-weight: 400;
    color: var(--sepia);
    font-size: 14px;
}

.inter-normal-sepia-16px {
    font-weight: 400;
    color: var(--sepia);
    font-size: 16px;
}

.inter-semi-bold-sepia-18px {
    font-weight: 600;
    color: var(--sepia);
    font-size: 18px;
}

.inter-semi-bold-sepia-28px {
    font-weight: 600;
    color: var(--sepia);
    font-size: 28px;
}

.inter-semi-bold-sepia-36px {
    font-weight: 600;
    color: var(--sepia);
    font-size: 36px;
}

/* レイアウト */
.faq-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* ヘッダー */
.faq-header {
    background-color: var(--sidecar);
    padding: 50px 0;
    margin-bottom: 30px;
}

.faq-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-header .row {
    margin: 0;
}

.faq-header .col-md-8 {
    padding: 0;
    max-width: 100%;
    flex: 0 0 100%;
}

.faq-title {
    margin-bottom: 20px;
}

/* カテゴリーグリッド */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    padding: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-mid);
    background-color: var(--white);
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
}

.category-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--saffron);
}

.category-button.active {
    background-color: var(--sidecar);
    border-color: var(--saffron);
}

.category-label {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.category-label i {
    margin-left: 8px;
}

.category-description {
    opacity: 0.85;
}

/* FAQ コンテンツ */
.faq-content {
    display: none;
}

.faq-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* FAQ アイテム */
.faq-item {
    border: 1px solid var(--gray-mid);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    background-color: var(--white);
}

.faq-question {
    padding: 18px 20px;
    background-color: var(--gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--sidecar);
}

.faq-question i {
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
    margin-left: 10px;
    color: var(--sepia);
}

.faq-question.active {
    background-color: var(--sidecar);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.faq-answer.show {
    padding: 20px;
    max-height: 1000px;
    border-top: 1px solid var(--gray-mid);
}

.faq-answer p {
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .faq-header {
        padding: 30px 15px;
    }

    .faq-header .container {
        padding: 0 10px !important;
    }

    .faq-title {
        font-size: 28px;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-answer.show {
        padding: 15px;
    }

    .faq-container {
        padding: 20px 15px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1439px) {
    .faq-container {
        padding: 30px 20px;
    }
}

@media screen and (min-width: 1440px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
