/* ============================================================
   よくあるご質問（FAQ）
   ============================================================ */

/* ----------------------------------------------------------
   FAQセクション全体
   ---------------------------------------------------------- */
.faq-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    /* background: var(--color-bg); */
}

.faq-section__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* 背景装飾画像（bg_news_01.png / bg_news_02.png を使用） */
.faq-section__bg-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: .45;
}

.faq-section__bg-deco--1 {
    top: -40px;
    right: -40px;
    width: 260px;
}

.faq-section__bg-deco--2 {
    bottom: -120px;
    left: -60px;
    width: 460px;
}

@media (max-width: 1024px) {
    .faq-section {
        padding: 64px 0 80px;
    }
}


@media (max-width: 768px) {
    .faq-section {
        padding: 48px 0 64px;
    }

    .faq-section__bg-deco--1 {
        width: 160px;
        top: -20px;
        right: -20px;
    }

    .faq-section__bg-deco--2 {
        width: 280px;
        bottom: -60px;
        left: -40px;
    }

    .faq-section__wrap {
        padding: 0 20px;
    }
}

/* ----------------------------------------------------------
   FAQリード文
   ---------------------------------------------------------- */
.faq-lead {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    font-size: clamp(1.5rem, 1.5vw, 1.6rem);
    line-height: 2;
    color: var(--color-text);
    text-align: center;
}

@media (max-width: 768px) {
    .faq-lead {
        margin-bottom: 28px;
        text-align: left;
    }
}

/* ----------------------------------------------------------
   カテゴリーナビ（クイックリンク）
   ※ news-filter__btn のスタイルを継承し形状のみ調整
   ---------------------------------------------------------- */
.faq-nav {
    max-width: 900px;
    margin: 0 auto 64px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.faq-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    border: 1.5px solid var(--color-main);
    background: transparent;
    color: var(--color-main);
    font-family: var(--font-gothic);
    font-size: clamp(1.4rem, 1.4vw, 1.6rem);
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.faq-nav__btn:hover {
    background: var(--color-main);
    color: var(--color-white);
}

@media (max-width: 1024px) {
    .faq-nav {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .faq-nav {
        margin-bottom: 36px;
        gap: 8px;
        justify-content: flex-start;
    }

    .faq-nav__btn {
        height: 36px;
        padding: 0 14px;
    }
}

/* ----------------------------------------------------------
   カテゴリーグループ
   ---------------------------------------------------------- */
.faq-group {
    max-width: 900px;
    margin: 0 auto 56px;
    padding: 0 20px;
}

.faq-group:last-of-type {
    margin-bottom: 0;
}

/* カテゴリー見出し */
.faq-group__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-main);
}

.faq-group__en {
    font-family: var(--font-en);
    font-size: clamp(1.3rem, 1.4vw, 1.6rem);
    color: var(--color-gold);
    letter-spacing: .08em;
    white-space: nowrap;
}

.faq-group__ja {
    font-family: var(--font-mincho);
    font-size: clamp(1.8rem, 2vw, 2.2rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

/* カテゴリー間区切り（contact-divider を流用） */
.faq-divider {
    max-width: 900px;
    margin: 0 auto 56px;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .faq-group {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .faq-group {
        margin-bottom: 36px;
    }

    .faq-group__head {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
}

/* ----------------------------------------------------------
   Q&A リスト
   ---------------------------------------------------------- */
.faq-list {
    /* border-top: 1px solid var(--color-border); */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ----------------------------------------------------------
   Q&A アイテム
   ---------------------------------------------------------- */
.faq-item {
    /* border-bottom: 1px solid var(--color-border); */
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

/* Q 行（クリッカブル） */
.faq-item__q {
    /* display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-gothic); */
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 24px 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    user-select: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-mincho);
}

/* Q アイコン（CSSで丸形テキスト） */
.faq-item__q-icon {
    display: block;
    width: auto;
    height: auto;
    margin-top: -2px;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-gold);
    font-family: var(--font-en);
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
}

.faq-item__q-icon::after {
    content: ".";
}

/* Q テキスト */
.faq-item__q-text {
    /* flex: 1;
    font-size: clamp(1.4rem, 1.4vw, 1.6rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.65;
    transition: color .2s; */
    flex: 1;
    min-width: 0;
    font-size: clamp(1.5rem, 1.6vw, 1.8rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.faq-item__q:hover .faq-item__q-text {
    color: var(--color-text-light);
}

.faq-item__toggle {
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: auto;
    flex-shrink: 0;
}

/* 共通 */
.faq-item__toggle::before,
.faq-item__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--color-main);
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

/* 横線 */
.faq-item__toggle::before {
    width: 16px;
    height: 2px;
}

/* 縦線 */
.faq-item__toggle::after {
    width: 2px;
    height: 16px;
    transition:
        transform 0.45s ease,
        opacity 0.35s ease;
}

.faq-item.is-open .faq-item__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* ----------------------------------------------------------
   A パネル（グリッドで滑らかに開閉）
   ---------------------------------------------------------- */
.faq-item__a {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}

.faq-item.is-open .faq-item__a {
    /* grid-template-rows: 1fr; */
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-item__a-inner {
    min-height: 0;
    overflow: hidden;
}

/* A 本文レイアウト */
.faq-item__a-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 0 24px;
}

/* A アイコン（CSSで丸形テキスト） */
.faq-item__a-icon {
    display: block;
    width: auto;
    height: auto;
    margin-top: 2px;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-main);
    font-family: var(--font-en);
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
}

.faq-item__a-icon::after {
    content: ".";
}

/* A テキスト */
.faq-item__a-text {
    flex: 1;
    font-size: clamp(1.5rem, 1.5vw, 1.6rem);
    line-height: 2;
    color: var(--color-text);
    padding-top: 4px;
}

/* Q&A内のリンク */
.faq-item__a-text a {
    color: var(--color-main);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.faq-item__a-text a:hover {
    opacity: .7;
}

@media (max-width: 768px) {

    /* Q&A アイテム */
    .faq-item__q {
        gap: 10px;
        padding: 16px 0;
    }

    .faq-item__q-icon,
    .faq-item__a-icon {
        width: 26px;
        height: 26px;
    }

    .faq-item__toggle {
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }

    .faq-item__toggle img {
        width: 14px;
        height: 14px;
    }

    .faq-item__a-body {
        gap: 10px;
        padding: 4px 0 16px;
    }

}

/* ----------------------------------------------------------
   FAQ CTA（inquiry クラス流用 + 微調整）
   ---------------------------------------------------------- */
.faq-cta {
    background: var(--color-gold);
}


.inquiry.faq-cta .inquiry__bg-deco--1,
.inquiry.faq-cta .inquiry__bg-deco--2 {
    opacity: .15;
}

@media (max-width: 1024px) {
    .faq-cta {
        padding: 64px 32px;
    }
}


@media (max-width: 768px) {
    .faq-cta {
        padding: 48px 20px;
    }

    .faq-cta__text {
        margin-left: 0;
        margin-right: 0;
    }

    .faq-cta .btn {
        width: 100%;
        max-width: 340px;
    }

    .faq-cta__bg-deco--1 {
        width: 180px;
        top: -30px;
        right: -30px;
    }
}

@media (max-width: 1024px) {
    .faq-divider {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .faq-divider {
        margin-bottom: 36px;
    }
}

@media (max-width: 599px) {
    .inquiry.faq-cta .inquiry__text {
        text-align: center;
    }
}