@charset "UTF-8";

/* ==========================================================================
   よくある質問（faq.html）専用スタイル
   ※ヘッダー・ページ見出し・フッターは common.css にあります
   ========================================================================== */

main.container {
    padding-top: 60px;
}

/* 上の説明文 */
.faq-lead {
    font-size: 15px;
    color: #555555;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 10px;
}

/* カテゴリー見出し */
.category-title {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 8px;
    margin: 50px 0 20px;
}

/* ---------- 質問（アコーディオン） ---------- */
.faq-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 14px;
    background-color: #ffffff;
}

.faq-question {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 50px 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none; /* 標準の▶マークを消す */
    border-left: 5px solid var(--green);
    transition: background-color 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none; /* Safari用 */
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::before {
    content: "Q.";
    flex-shrink: 0;
    color: var(--orange);
    font-size: 20px;
    margin-right: 10px;
}

/* 開閉の矢印 */
.faq-question::after {
    content: "▼";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999999;
    transition: transform 0.3s;
}

details[open] .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.faq-answer::before {
    content: "A.";
    flex-shrink: 0;
    color: var(--green);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-right: 10px;
}

.faq-answer-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
}

/* ---------- お問い合わせへの誘導 ---------- */
.page-cta {
    margin-top: 60px;
    padding: 35px 20px;
    text-align: center;
    background-color: var(--orange-light);
    border: 3px solid var(--orange);
}

.page-cta p {
    font-weight: 700;
    margin-bottom: 18px;
}

/* ==========================================================================
   スマホ
   ========================================================================== */
@media (max-width: 768px) {
    main.container {
        padding-top: 40px;
    }

    .faq-lead {
        text-align: left;
        font-size: 14px;
    }

    .category-title {
        font-size: 18px;
        margin-top: 40px;
    }

    .faq-question {
        padding: 14px 40px 14px 14px;
        font-size: 15px;
        align-items: flex-start;
    }

    .faq-question::before {
        font-size: 17px;
        line-height: 1.5;
    }

    .faq-question::after {
        right: 14px;
    }

    .faq-answer {
        padding: 16px 14px;
    }

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

    .page-cta {
        padding: 28px 16px;
    }
}
