/* ===================================================
   faq.css
   FAQページ専用スタイル
   =================================================== */

/* style.cssのbody { color: white } を上書き */
body {
    color: #333;
}

/* ---------- ページタイトル ---------- */
.container .header {
    background: none;
    color: white;
    padding: 40px 0;
    margin: 10px 0 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: none;
}

.container .header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* ---------- FAQセクション ---------- */
.faq-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #4a8c4a;
}

.faq-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    border-radius: 15px;
    border: 2px solid #d4f4d4;
}

.faq-intro h2 {
    color: #2d5a2d;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.faq-intro p {
    font-size: 1.1rem;
    color: #3d6a3d;
}

/* ---------- Q&Aアコーディオン ---------- */
.faq-container {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: linear-gradient(135deg, #f8fdf8, #f0f8f0);
    border: 2px solid #d4f4d4;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    border-color: #4a8c4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 140, 74, 0.15);
}

.faq-item.active {
    border-color: #4a8c4a;
    box-shadow: 0 8px 20px rgba(74, 140, 74, 0.2);
}

.faq-question {
    padding: 25px;
    background: linear-gradient(135deg, #4a8c4a, #2d5a2d);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-question::before {
    content: "Q";
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

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

.faq-answer-content {
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
    color: #3d6a3d;
    line-height: 1.8;
}

.faq-answer-content::before {
    content: "A";
    background: linear-gradient(135deg, #4a8c4a, #2d5a2d);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ---------- 特別イベント ---------- */
.special-events {
    background: linear-gradient(135deg, #4a8c4a, #2d5a2d);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
}

.special-events h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-events h3::before {
    content: "🎉";
    margin-right: 10px;
    font-size: 1.8rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f0f8f0;
}

.event-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ---------- アニメーション ---------- */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .container .header h1 {
        font-size: 2rem;
    }

    .faq-section {
        padding: 25px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1.1rem;
    }

    .faq-answer-content {
        font-size: 1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}
