/* FAQ 共通（/faq・/service）— モック準拠 */
.faq-section {
    --faq-section-bg: #f9f9f9;
    --faq-mark-q-size: 36px;
    --faq-mark-a-size: 34px;
    --faq-mark-q-bg: var(--page-accent, #745aad);
    --faq-mark-a-bg: #7b6fd6;
    --faq-answer-bg: #f4f2fa;
    --faq-answer-inset-x: clamp(12px, 2vw, 18px);
    --faq-item-radius: 14px;
    --faq-item-gap: 20px;

    position: relative;
    overflow: hidden;
    padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
    background: var(--faq-section-bg);
}

.faq-section__deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.faq-section__deco-dots {
    position: absolute;
    top: 18%;
    left: -2%;
    width: min(34vw, 280px);
    height: min(34vw, 280px);
    background-image: radial-gradient(circle, rgba(var(--page-accent-rgb, 116, 90, 173), 0.18) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.45;
    mask-image: radial-gradient(circle at center, #000 42%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at center, #000 42%, transparent 78%);
}

.faq-section__deco-circle {
    position: absolute;
    top: 28%;
    left: -6%;
    width: min(42vw, 360px);
    height: min(42vw, 360px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--page-accent-rgb, 116, 90, 173), 0.14) 0%, rgba(var(--page-accent-rgb, 116, 90, 173), 0) 72%);
}

.faq-section__deco-wave {
    position: absolute;
    width: min(36vw, 320px);
    height: min(36vw, 320px);
    border: 1px solid rgba(var(--page-accent-rgb, 116, 90, 173), 0.14);
    border-radius: 46% 54% 42% 58% / 58% 42% 58% 42%;
    opacity: 0.55;
}

.faq-section__deco-wave--left {
    bottom: 8%;
    left: -8%;
    transform: rotate(-18deg);
}

.faq-section__deco-wave--right {
    top: 10%;
    right: -10%;
    transform: rotate(24deg);
}

.faq-section__inner {
    position: relative;
    z-index: 1;
    max-width: min(100%, 940px);
    margin: 0 auto;
}

.faq-section__header {
    margin-bottom: clamp(28px, 3.5vw, 40px);
    text-align: center;
}

.faq-section__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(var(--page-accent-rgb, 116, 90, 173), 0.12);
    color: var(--page-accent, #745aad);
    font-family: 'Roboto Condensed', 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.faq-section__heading {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--page-text, #022254);
}

.faq-section__lead {
    max-width: 42em;
    margin: clamp(12px, 1.6vw, 16px) auto 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.875rem, 1.1vw, 0.975rem);
    line-height: 1.75;
    color: var(--page-text-body, #242b6a);
}

.faq-section__items {
    display: flex;
    flex-direction: column;
    gap: var(--faq-item-gap);
    border: none;
    background: transparent;
    box-shadow: none;
}

/* 1項目：1つの白カード（Q＋A）。グレー背景の上に影 */
.faq-section details.faq-section__item,
.faq-section .faq-section__item {
    border: none;
    border-radius: var(--faq-item-radius);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(var(--page-accent-rgb, 116, 90, 173), 0.08);
    outline: none;
    overflow: visible;
    transition: box-shadow 0.2s ease;
}

.faq-section .faq-section__item:not([open]) {
    padding-bottom: 0;
}

.faq-section .faq-section__item[open] {
    box-shadow: 0 4px 16px rgba(var(--page-accent-rgb, 116, 90, 173), 0.1);
    padding-bottom: clamp(14px, 2vw, 18px);
}

.faq-section .faq-section__summary {
    display: grid;
    grid-template-columns: var(--faq-mark-q-size) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 16px;
    padding: clamp(16px, 2vw, 20px) clamp(18px, 2.4vw, 24px);
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 700;
    line-height: 1.55;
    color: var(--page-text, #022254);
    cursor: pointer;
    list-style: none;
    outline: none;
}

.faq-section__summary::-webkit-details-marker {
    display: none;
}

.faq-section__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--page-accent, #745aad);
    color: #ffffff;
    font-family: 'Roboto Condensed', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1;
}

.faq-section__mark--q {
    width: var(--faq-mark-q-size);
    height: var(--faq-mark-q-size);
    background: var(--faq-mark-q-bg);
    font-size: 1rem;
}

.faq-section__mark--a {
    width: var(--faq-mark-a-size);
    height: var(--faq-mark-a-size);
    background: var(--faq-mark-a-bg);
    font-size: 0.9375rem;
    margin-top: 0.2em;
}

.faq-section__question {
    min-width: 0;
}

.faq-section__toggle {
    flex-shrink: 0;
    font-size: 1.625rem;
    font-weight: 300;
    line-height: 1;
    color: var(--page-accent, #745aad);
    transition: transform 0.2s ease;
}

.faq-section__item[open] .faq-section__toggle {
    transform: rotate(180deg);
}

/* 回答：白カード内にラベンダー色の角丸ボックス（左右インセット） */
.faq-section .faq-section__body {
    display: grid;
    grid-template-columns: var(--faq-mark-a-size) minmax(0, 1fr);
    gap: 12px 18px;
    align-items: start;
    box-sizing: border-box;
    width: calc(100% - (var(--faq-answer-inset-x) * 2));
    margin: clamp(10px, 1.4vw, 14px) var(--faq-answer-inset-x) 0;
    padding: clamp(18px, 2.2vw, 24px) clamp(18px, 2.2vw, 22px);
    border: none;
    border-radius: 12px;
    background: var(--faq-answer-bg);
    box-shadow: none;
}

.faq-section__answer {
    min-width: 0;
}

.faq-section__answer p {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--page-text-body, #242b6a);
}

.faq-section__answer p + p {
    margin-top: 14px;
}

.faq-section__answer-link-wrap {
    margin: 16px 0 0;
}

.faq-section__answer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--page-accent, #745aad);
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(var(--page-accent-rgb, 116, 90, 173), 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-section__answer-link:hover,
.faq-section__answer-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--page-accent-rgb, 116, 90, 173), 0.28);
}

.faq-section__answer-link-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.faq-section__cta {
    margin-top: clamp(32px, 4vw, 48px);
}

.faq-section__cta .page-cta-pair--flow {
    margin: 0 auto;
}

@media (max-width: 700px) {
    .faq-section {
        --faq-mark-q-size: 32px;
        --faq-mark-a-size: 30px;
        --faq-item-gap: 16px;
    }

    .faq-section__mark--q {
        font-size: 0.9375rem;
    }

    .faq-section__mark--a {
        font-size: 0.875rem;
    }

    .faq-section__deco-dots,
    .faq-section__deco-circle {
        opacity: 0.35;
    }

    .faq-section__deco-wave {
        opacity: 0.35;
    }

    .faq-section__body {
        width: calc(100% - (var(--faq-answer-inset-x) * 2));
        padding: 16px 18px;
    }

    .faq-section__summary {
        gap: 12px;
    }
}
