@charset "UTF-8";

/* =========================================
   FAQ List
   ========================================= */
.faq {
    background-color: var(--white);
    padding: 80px 0;
}

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

.faq-item {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    background: var(--white);
    border-radius: 4px;
    transition: all 0.3s;
}

.faq-item[open] {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #ccc;
}

/* =========================================
   FAQ Question (Summary)
   ========================================= */
.faq-question {
    list-style: none; /* デフォルトの三角マーカーを消す */
    cursor: pointer;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Webkit系ブラウザのマーカー消去 */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon-q {
    font-size: 1.4rem;
    font-weight: 900;
    margin-right: 20px;
    color: var(--text-color); /* Qは黒色 */
    font-family: serif; /* デザインに合わせて明朝系またはセリフ体に */
}

.faq-text {
    flex: 1;
    padding-right: 30px; /* 矢印アイコン分の余白 */
    line-height: 1.4;
}

/* 開閉アイコン（矢印） */
.faq-toggle-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: translateY(-70%) rotate(45deg); /* 下向き矢印 */
    transition: transform 0.3s;
}

/* 開いている時の矢印（上向き） */
.faq-item[open] .faq-toggle-icon {
    transform: translateY(-30%) rotate(225deg);
}

/* =========================================
   FAQ Answer
   ========================================= */
.faq-answer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    background-color: #fff; /* 背景色は白のまま */
    animation: fadeIn 0.3s ease;
}

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

.faq-icon-a {
    font-size: 1.4rem;
    font-weight: 900;
    margin-right: 20px;
    color: var(--text-color); /* Aも黒色 */
    font-family: serif;
    line-height: 1;
    margin-top: 2px; /* テキストとの位置合わせ */
}

.faq-answer-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    /* FAQ List */
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .faq-icon-q, .faq-icon-a {
        font-size: 1.2rem;
        margin-right: 15px;
    }

    .faq-toggle-icon {
        right: 15px;
    }

    .faq-answer {
        padding: 15px 20px 25px;
    }
}