/* =========================================
   WOOOLY ANJO
   FAQ
========================================= */


/* =========================================
   ページ全体
========================================= */

.faq-page {
    width: min(calc(100% - 40px), 1000px);
    margin: 0 auto;
    padding: 55px 0 120px;
}


/* =========================================
   ヘッダー
========================================= */

.faq-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.faq-kicker {
    margin: 0 0 12px;

    color: #a99582;

    font-size: 0.75rem;
    letter-spacing: 0.22em;
}

.faq-header h1 {
    margin: 0 0 22px;

    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.faq-lead {
    margin: 0 auto;

    color: #6f6862;

    font-size: 0.95rem;
    line-height: 2;
}


/* =========================================
   カテゴリーナビ
========================================= */

.faq-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 9px;

    margin: 0 auto 55px;
}

.faq-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 17px;

    border: 1px solid rgba(190, 170, 150, 0.5);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.76);

    color: #75695f;

    font-size: 0.78rem;
    text-decoration: none;

    box-shadow:
        0 3px 12px rgba(70, 55, 40, 0.04);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.faq-category-link:hover {
    transform: translateY(-2px);

    background: #fff;

    box-shadow:
        0 6px 16px rgba(70, 55, 40, 0.09);
}


/* =========================================
   FAQカテゴリー
========================================= */

.faq-section {
    margin-bottom: 60px;

    scroll-margin-top: 30px;
}

.faq-section-header {
    margin-bottom: 20px;
    text-align: center;
}

.faq-section-number {
    display: block;

    margin-bottom: 5px;

    color: #c3a98f;

    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.faq-section-title {
    margin: 0;

    color: #514a44;

    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}


/* =========================================
   FAQカード
========================================= */

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;

    border: 1px solid rgba(190, 170, 150, 0.32);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 5px 18px rgba(70, 55, 40, 0.055);

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.faq-item.has-answer:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 24px rgba(70, 55, 40, 0.09);
}


/* =========================================
   質問
========================================= */

.faq-question {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px 22px;

    border: 0;

    background: transparent;

    color: #4c4641;

    text-align: left;

    cursor: pointer;
}

.faq-question:disabled {
    cursor: default;
}

.faq-q {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #f2e6e2;

    color: #b86f80;

    font-family: Georgia, serif;
    font-size: 1rem;
}

.faq-question-text {
    flex: 1;

    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.7;
}


/* =========================================
   ＋ −
========================================= */

.faq-icon {
    position: relative;

    flex: 0 0 auto;

    width: 24px;
    height: 24px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 14px;
    height: 1px;

    background: #a99582;

    transform:
        translate(-50%, -50%);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.faq-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.faq-item.open .faq-icon::after {
    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(0);
}


/* =========================================
   回答未登録
========================================= */

.faq-item.no-answer {
    opacity: 0.82;
}

.faq-item.no-answer .faq-icon {
    display: none;
}


/* =========================================
   回答
========================================= */

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.35s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-answer-content {
    display: flex;

    gap: 15px;

    margin: 0 22px;
    padding: 0 0 22px;

    border-top:
        1px solid rgba(190, 170, 150, 0.25);
}

.faq-a {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin-top: 20px;

    border-radius: 50%;

    background: #eee8df;

    color: #8c7968;

    font-family: Georgia, serif;
}

.faq-answer-text {
    padding-top: 19px;

    color: #6b645e;

    font-size: 0.9rem;
    line-height: 1.9;
}

.faq-answer-text p {
    margin: 0 0 12px;
}

.faq-answer-text p:last-child {
    margin-bottom: 0;
}


/* =========================================
   お問い合わせ
========================================= */

.faq-contact {
    max-width: 720px;

    margin: 80px auto 0;
    padding: 42px 30px;

    border:
        1px solid rgba(190, 170, 150, 0.3);

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.82);

    text-align: center;

    box-shadow:
        0 10px 30px rgba(70, 55, 40, 0.07);
}

.faq-contact-kicker {
    margin: 0 0 7px;

    color: #b29a83;

    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.faq-contact h2 {
    margin: 0 0 14px;

    font-size: 1.35rem;
    font-weight: 500;
}

.faq-contact > p:not(.faq-contact-kicker) {
    margin: 0;

    color: #716a64;

    font-size: 0.9rem;
    line-height: 1.9;
}

.faq-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 25px;
    padding: 13px 24px;

    border-radius: 999px;

    background: #cdb69f;
    color: #fff;

    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 600;

    box-shadow:
        0 5px 16px rgba(80, 60, 40, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.faq-contact-button:hover {
    transform: translateY(-2px);

    background: #bda388;

    box-shadow:
        0 8px 20px rgba(80, 60, 40, 0.22);
}


/* =========================================
   スマートフォン
========================================= */

@media (max-width: 600px) {

    .faq-page {
        width: calc(100% - 28px);
        padding:
            38px 0
            100px;
    }

    .faq-header {
        margin-bottom: 35px;
    }

    .faq-lead {
        font-size: 0.88rem;
        line-height: 1.9;
    }

    .faq-category-nav {
        gap: 7px;

        margin-bottom: 42px;
    }

    .faq-category-link {
        padding: 8px 12px;

        font-size: 0.7rem;
    }

    .faq-section {
        margin-bottom: 48px;
    }

    .faq-section-title {
        font-size: 1.15rem;
    }

    .faq-question {
        gap: 11px;

        padding: 17px 15px;
    }

    .faq-q,
    .faq-a {
        width: 30px;
        height: 30px;

        font-size: 0.88rem;
    }

    .faq-question-text {
        font-size: 0.86rem;
    }

    .faq-answer-content {
        gap: 11px;

        margin: 0 15px;
        padding-bottom: 18px;
    }

    .faq-answer-text {
        padding-top: 16px;

        font-size: 0.84rem;
    }

    .faq-a {
        margin-top: 17px;
    }

    .faq-contact {
        margin-top: 60px;
        padding: 32px 20px;
    }

}

/* =========================================
   FAQ 内部リンク
========================================= */

.faq-inline-link {
    color: #8b6f55;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.faq-inline-link:hover {
    color: #b18463;
}

.faq-inline-link:focus-visible {
    outline: 2px solid #b18463;
    outline-offset: 3px;
    border-radius: 3px;
}