/* ==========================================================
   よくあるご質問（/faq/）
   質問の見た目は各診療ページの「よくあるご質問」に合わせる
========================================================== */

.fq-container {
    width: min(980px, calc(100% - 80px));
    margin: 0 auto;
}

/* パンくず */

.fq-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e1e5e7;
}

.fq-breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    padding: 18px 0;
    color: #818a90;
    font-size: 11px;
    letter-spacing: .04em;
}

.fq-breadcrumb__inner a {
    color: #173f5b;
}

/* カテゴリへのジャンプ */

.fq-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 60px 0 10px;
    padding: 0;
    list-style: none;
}

.fq-index a {
    display: block;
    padding: 10px 20px;
    color: #173f5b;
    font-size: 14px;
    background: #fff;
    border: 1px solid #d9d2c5;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}

.fq-index a:hover {
    color: #fff;
    background: #b49661;
    border-color: #b49661;
}

/* セクション */

.fq-section {
    padding: 80px 0;
    background: #fff;
    scroll-margin-top: 120px;
}

.fq-section--gray {
    background: #f8f6f3;
}

.fq-heading {
    margin: 0 0 40px;
    text-align: center;
}

.fq-heading__en {
    margin: 0 0 12px;
    color: #b49661;
    font-family: "Times New Roman", serif;
    font-size: 13px;
    letter-spacing: .24em;
}

.fq-heading h2 {
    margin: 0;
    color: #1f2d3d;
    font-family: "Noto Serif JP", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .06em;
}

/* 質問 */

.fq-item {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
}

.fq-item summary {
    position: relative;
    padding: 24px 70px 24px 28px;
    color: #173f5b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
    transition: background .3s ease;
}

.fq-item summary::-webkit-details-marker {
    display: none;
}

.fq-item summary:hover {
    background: #f7fafc;
}

.fq-item summary::after {
    position: absolute;
    top: 50%;
    right: 28px;
    color: #173f5b;
    font-size: 30px;
    font-weight: 400;
    content: "+";
    transform: translateY(-50%);
}

.fq-item[open] summary::after {
    content: "−";
}

.fq-item > div {
    padding: 0 28px 26px;
}

.fq-item p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 2;
}

.fq-item a {
    color: #173f5b;
    text-decoration: underline;
}

/* 治療別のリンク */

.fq-lead {
    margin: -10px 0 30px;
    color: #555;
    font-size: 15px;
    text-align: center;
}

.fq-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e6e0d6;
}

.fq-links li {
    border-bottom: 1px solid #e6e0d6;
}

.fq-links a {
    position: relative;
    display: block;
    padding: 18px 30px 18px 0;
    color: #1f2d3d;
    font-size: 15px;
}

.fq-links a::after {
    position: absolute;
    top: 50%;
    right: 6px;
    color: #b49661;
    content: "→";
    transform: translateY(-50%);
}

/* 相談 */

.fq-cta {
    padding: 90px 0;
    background: #f8f6f3;
    text-align: center;
}

.fq-cta h2 {
    margin: 0 0 32px;
    color: #1f2d3d;
    font-family: "Noto Serif JP", serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.7;
}

.fq-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.fq-cta__button {
    display: inline-block;
    min-width: 200px;
    padding: 17px 26px;
    color: #1f2d3d;
    font-size: 15px;
    letter-spacing: .06em;
    background: #fff;
    border: 1px solid #1f2d3d;
    transition: opacity .2s ease;
}

.fq-cta__button--primary {
    color: #fff;
    background: #b49661;
    border-color: #b49661;
}

.fq-cta__button:hover {
    opacity: .8;
}


/* ==========================================================
   SP
========================================================== */

@media (max-width: 767px) {

    .fq-container,
    .fq-breadcrumb__inner {
        width: calc(100% - 40px);
    }

    .fq-index {
        justify-content: flex-start;
        margin-top: 36px;
    }

    .fq-index a {
        padding: 8px 14px;
        font-size: 13px;
    }

    .fq-section {
        padding: 56px 0;
        scroll-margin-top: 80px;
    }

    .fq-heading {
        margin-bottom: 28px;
    }

    .fq-heading h2 {
        font-size: 22px;
    }

    .fq-item summary {
        padding: 20px 52px 20px 20px;
        font-size: 16px;
    }

    .fq-item summary::after {
        right: 20px;
        font-size: 26px;
    }

    .fq-item > div {
        padding: 0 20px 22px;
    }

    .fq-links {
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }

    .fq-links a {
        padding: 15px 22px 15px 0;
        font-size: 14px;
    }

    .fq-cta {
        padding: 64px 0;
    }

    .fq-cta h2 {
        font-size: 20px;
    }

    .fq-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }

}
