/* ========================================
   FAQ
======================================== */
.c-faq {
    padding: 36px 0 96px;
}

.c-faq .c-sectionHeading {
    text-align: center;
    margin-bottom: 48px;
}

.c-faq .c-sectionHeading__sub {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-teal);
}

.c-faq .c-sectionHeading__title {
    margin: 0;
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

.c-faq .c-sectionHeading__lead {
    margin: 0 auto;
    max-width: none;
    font-size: 1.6rem;
    line-height: 1.9;
    color: #666;
    white-space: nowrap;
}

.c-faqList {
    display: grid;
    gap: 16px;
}

/* ========================================
   FAQ Item
======================================== */
.c-faqItem {
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.c-faqItem:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.c-faqItem[open] {
    border-color: rgba(0, 128, 128, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* 質問 */
.c-faqItem__question {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 64px 24px 24px;
    list-style: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    color: #222;
}

.c-faqItem__question::-webkit-details-marker {
    display: none;
}

/* ＋ / − アイコン（回転っぽいアニメ） */
.c-faqItem__question::before,
.c-faqItem__question::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 16px;
    height: 2px;
    background: var(--brand-teal);
    border-radius: 999px;
    transform-origin: center;
    transition:
        transform 0.28s ease,
        opacity 0.22s ease,
        background-color 0.2s ease;
}

/* 横線 */
.c-faqItem__question::after {
    transform: translateY(-50%) rotate(0deg);
}

/* 縦線 */
.c-faqItem__question::before {
    transform: translateY(-50%) rotate(90deg);
}

/* 開いたとき：縦線が消えて − になる */
.c-faqItem[open] .c-faqItem__question::before {
    transform: translateY(-50%) rotate(180deg);
    opacity: 0;
}

.c-faqItem[open] .c-faqItem__question::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Q / A 丸 */
.c-faqItem__q,
.c-faqItem__a {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.c-faqItem__q {
    background: rgba(0, 128, 128, 0.1);
    color: var(--brand-teal);
}

.c-faqItem__a {
    background: #f5f5f5;
    color: #555;
    margin-top: 4px;
}

.c-faqItem__text {
    flex: 1;
}

/* ========================================
   ANSWER（ふわっと開く）
======================================== */
.c-faqItem__answer {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: start;
    column-gap: 16px;

    padding: 0 24px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    border-top: 1px solid transparent;
    transform: translateY(-6px);

    transition:
        max-height 0.45s ease,
        padding 0.35s ease,
        opacity 0.28s ease,
        transform 0.35s ease,
        border-top-color 0.25s ease;
}

.c-faqItem[open] .c-faqItem__answer {
    padding: 16px 24px 24px;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    border-top: 1px solid #f0f0f0;
}

.c-faqItem__answer p {
    margin: 0;
    padding-top: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

/* ========================================
   FAQ CTA
======================================== */
.c-faqCta {
    margin-top: 48px;
    padding: 32px 24px;
    text-align: center;
    background: #f8fafb;
    border-radius: 16px;
}

.c-faqCta__lead {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

.c-faqCta__text {
    margin: 0 0 20px;
    font-size: 1.4rem;
    color: #666;
}

.c-faqCta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 72px;
    padding: 0 40px;

    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;

    border-radius: 999px;

    background: #ffd400;
    color: #000;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.c-faqCta__btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 767px) {

    .c-faq {
        padding: 72px 0;
    }

    .c-faq .c-sectionHeading {
        margin-bottom: 32px;
    }

    .c-faq .c-sectionHeading__title {
        font-size: 2.6rem;
    }

    .c-faqItem__question {
        gap: 12px;
        padding: 20px 52px 20px 16px;
        font-size: 1.6rem;
    }

    .c-faqItem__question::before,
    .c-faqItem__question::after {
        right: 16px;
        width: 14px;
    }

    .c-faqItem__q,
    .c-faqItem__a {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 1.3rem;
    }

    .c-faqItem__answer {
        grid-template-columns: 36px 1fr;
        column-gap: 12px;
        padding: 0 16px;
    }

    .c-faqItem[open] .c-faqItem__answer {
        padding: 14px 16px 20px;
    }

    .c-faqItem__answer p {
        font-size: 1.5rem;
    }

    .c-faqCta {
        padding: 24px 16px;
    }

    .c-faqCta__btn {
        width: 100%;
        min-height: 64px;
        padding: 0 24px;
    }
}

/* ========================================
   FAQ CATEGORY NAVIGATION
======================================== */

.c-faqCategoryNav {
    max-width: 1120px;
    margin: 0 auto 80px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.c-faqCategoryNav__eyebrow {
    margin: 0 0 8px;

    color: #2aa7ad;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.14em;

    text-align: center;
}

.c-faqCategoryNav__guide {
    margin: 0 0 24px;

    color: #222;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 800;

    text-align: center;
}

.c-faqCategoryNav__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.c-faqCategoryNav__item {
    min-width: 0;
    min-height: 64px;
    padding: 12px 14px;

    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;

    color: #222;
    background: #fff;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;

    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.06);

    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.c-faqCategoryNav__item:hover {
    color: #111;
    background: #fff9d9;
    border-color: rgba(255, 196, 0, 0.7);

    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);

    transform: translateY(-2px);
}

.c-faqCategoryNav__number {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: #2aa7ad;
    border-radius: 50%;

    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.c-faqCategoryNav__label {
    min-width: 0;
}

.c-faqCategoryNav__arrow {
    color: #2aa7ad;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}


/* ========================================
   FAQ CATEGORY SECTIONS
======================================== */

.c-faqCategoryList {
    max-width: 1120px;
    margin: 0 auto;
}

.c-faqCategory {
    margin-bottom: 90px;
    scroll-margin-top: 140px;
}

.c-faqCategory__heading {
    margin-bottom: 24px;

    display: flex;
    align-items: center;
    gap: 16px;
}

.c-faqCategory__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: #2aa7ad;
    border-radius: 4px;

    font-size: 20px;
    line-height: 1;
}

.c-faqCategory__eyebrow {
    margin: 0 0 6px;

    color: #2aa7ad;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.c-faqCategory__title {
    margin: 0;

    color: #111;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.3;
    font-weight: 900;
}


/* ========================================
   FAQ CATEGORY RESPONSIVE
======================================== */

@media (max-width: 1000px) {
    .c-faqCategoryNav__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .c-faqCategoryNav {
        margin: 36px auto 60px;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .c-faqCategoryNav__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .c-faqCategoryNav__item {
        min-height: 58px;
    }

    .c-faqCategory {
        margin-bottom: 64px;
        scroll-margin-top: 100px;
    }

    .c-faqCategory__icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .c-faqCategory__title {
        font-size: 24px;
    }

    .c-faq .c-sectionHeading__lead {
        white-space: normal;
    }
}

/* スマホ：FAQの文字と余白を調整 */
@media (max-width: 767px) {
  .c-faq {
    padding: 24px 0 48px;
  }

  .c-faq .c-sectionHeading__sub {
    font-size: 11px;
  }

  .c-faq .c-sectionHeading__title {
    font-size: 24px;
  }

  .c-faq .c-sectionHeading__lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .c-faqCategory__title {
    font-size: 20px;
  }

  .c-faqItem__question {
    gap: 10px;
    padding: 16px 40px 16px 14px;
    font-size: 16px;
    line-height: 1.6;
  }

  .c-faqItem__text {
    min-width: 0;
  }

  .c-faqItem__q,
  .c-faqItem__a {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 14px;
  }

  .c-faqItem__answer {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
    padding: 0 14px;
  }

  .c-faqItem[open] .c-faqItem__answer {
    padding: 14px;
    max-height: none;
  }

  .c-faqItem__answer p {
    font-size: 14px;
    line-height: 1.8;
  }

  .c-faqCta__lead {
    font-size: 18px;
  }

  .c-faqCta__text {
    font-size: 14px;
  }

  .c-faqCta__btn {
    font-size: 16px;
  }
}