/* ==============================================
   FAQ（よくある質問）ページ
   対象テンプレート: page-faq.php
   ============================================== */

.faq-page {
    background: #fafafa;
    padding: 3rem 1rem 4rem;
    color: #2c2c2c;
}

.faq-page__inner {
    max-width: 820px;
    margin: 0 auto;
}

.faq-page__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-page__title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.8rem;
    color: #1E2A25;
    position: relative;
    padding-bottom: 1rem;
}

.faq-page__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-dark));
    border-radius: 2px;
}

.faq-page__lead {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ========== セクション ========== */

.faq-section {
    margin-bottom: 2.5rem;
}

.faq-section__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-secondary-dark);
    margin: 0 0 1rem;
    padding: 0.6rem 0.8rem 0.6rem 1rem;
    background: var(--color-secondary-light);
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 6px 6px 0;
}

/* ========== FAQアイテム（アコーディオン） ========== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--color-secondary);
    box-shadow: 0 2px 10px rgba(240, 149, 106, 0.08);
}

.faq-item__q {
    list-style: none;
    cursor: pointer;
    padding: 1rem 2.8rem 1rem 3rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
    color: #2c2c2c;
    position: relative;
    transition: color 0.2s;
}

.faq-item__q::-webkit-details-marker {
    display: none;
}

/* Q マーク */
.faq-item__q::before {
    content: "Q";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* 開閉アイコン */
.faq-item__q::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-secondary);
    border-bottom: 2px solid var(--color-secondary);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s;
}

.faq-item[open] .faq-item__q::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-item[open] .faq-item__q {
    color: var(--color-secondary-dark);
}

.faq-item__q:hover {
    color: var(--color-secondary-dark);
}

/* 回答部分 */
.faq-item__a {
    padding: 0 1.5rem 1.2rem 3rem;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #444;
    position: relative;
    animation: faqSlide 0.2s ease-out;
}

.faq-item__a::before {
    content: "A";
    position: absolute;
    left: 1rem;
    top: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #fff;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.faq-item__a p {
    margin: 0 0 0.7rem;
}
.faq-item__a p:last-child { margin-bottom: 0; }

.faq-item__a a {
    color: var(--color-secondary-dark);
    text-decoration: underline;
    font-weight: 500;
}
.faq-item__a a:hover {
    color: var(--color-primary);
}

.faq-item__a strong {
    font-weight: 700;
    color: #1E2A25;
}

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

/* ========== お問い合わせ誘導 ========== */

.faq-contact {
    background: linear-gradient(135deg, var(--color-secondary-light), #fff);
    border: 1.5px solid var(--color-secondary);
    border-radius: 10px;
    padding: 1.8rem 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.faq-contact__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-secondary-dark);
    margin: 0 0 0.5rem;
}

.faq-contact p {
    color: var(--color-text-secondary);
    margin: 0 0 1.2rem;
    font-size: 0.92rem;
}

.faq-contact .btn {
    min-width: 200px;
}

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

@media (max-width: 640px) {
    .faq-page {
        padding: 1.5rem 0.5rem 3rem;
    }
    .faq-page__title {
        font-size: 1.45rem;
    }
    .faq-page__lead {
        font-size: 0.88rem;
    }
    .faq-section__title {
        font-size: 1rem;
        padding: 0.5rem 0.7rem 0.5rem 0.9rem;
    }
    .faq-item__q {
        font-size: 0.92rem;
        padding: 0.85rem 2.5rem 0.85rem 2.8rem;
    }
    .faq-item__q::before,
    .faq-item__a::before {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.78rem;
        left: 0.7rem;
    }
    .faq-item__a {
        padding: 0 1rem 1rem 2.8rem;
        font-size: 0.88rem;
    }
    .faq-contact {
        padding: 1.4rem 1rem;
    }
}
