.fukei-faq {
    --fukei-faq-bg: #F7F7F5;
    --fukei-faq-title-color: #16483E;
    --fukei-faq-subtitle-color: #646A67;
    --fukei-faq-card-bg: #FFFFFF;
    --fukei-faq-question-color: #16483E;
    --fukei-faq-answer-color: #58635F;
    --fukei-faq-icon-color: #16483E;
    --fukei-faq-max-width: 920px;
    --fukei-faq-ease: cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--fukei-faq-bg);
    box-sizing: border-box;
    color: var(--fukei-faq-question-color);
    padding: 72px 20px 80px;
    width: 100%;
}

.fukei-faq *,
.fukei-faq *::before,
.fukei-faq *::after {
    box-sizing: border-box;
}

.fukei-faq__inner {
    margin: 0 auto;
    max-width: var(--fukei-faq-max-width);
    width: 100%;
}

.fukei-faq__header {
    margin: 0 auto 58px;
    max-width: 760px;
    text-align: center;
}

.fukei-faq--no-header .fukei-faq__inner {
    padding-top: 0;
}

.fukei-faq__title {
    color: var(--fukei-faq-title-color);
    font-size: 50px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    overflow-wrap: anywhere;
}

.fukei-faq__subtitle {
    color: var(--fukei-faq-subtitle-color);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    margin: 22px auto 0;
    max-width: 720px;
    overflow-wrap: anywhere;
}

.fukei-faq__items {
    display: grid;
    gap: 20px;
}

.fukei-faq__item {
    background: var(--fukei-faq-card-bg);
    border: 1px solid rgba(22, 72, 62, 0.05);
    border-radius: 30px;
    box-shadow: 0 10px 34px rgba(22, 72, 62, 0.045);
    overflow: hidden;
    transform: translateZ(0);
    transition:
        box-shadow 420ms var(--fukei-faq-ease),
        transform 420ms var(--fukei-faq-ease),
        border-color 420ms var(--fukei-faq-ease);
}

.fukei-faq__item:hover,
.fukei-faq__item.is-open {
    border-color: rgba(22, 72, 62, 0.1);
    box-shadow: 0 16px 44px rgba(22, 72, 62, 0.075);
    transform: translateY(-1px);
}

.fukei-faq__question {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: inherit;
    color: var(--fukei-faq-question-color);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 24px;
    justify-content: space-between;
    margin: 0;
    min-height: 92px;
    padding: 0 44px 0 48px;
    text-align: left;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    width: 100%;
}

.fukei-faq__question:hover,
.fukei-faq__question:active,
.fukei-faq__question:focus {
    background: transparent;
}

.fukei-faq__question:focus-visible {
    outline: 2px solid var(--fukei-faq-icon-color);
    outline-offset: -8px;
}

.fukei-faq__question-text {
    color: var(--fukei-faq-question-color);
    flex: 1 1 auto;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.fukei-faq__icon {
    color: var(--fukei-faq-icon-color);
    display: inline-flex;
    flex: 0 0 24px;
    height: 24px;
    position: relative;
    transition: transform 460ms var(--fukei-faq-ease);
    width: 24px;
}

.fukei-faq__icon::before,
.fukei-faq__icon::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 460ms var(--fukei-faq-ease), opacity 320ms var(--fukei-faq-ease);
}

.fukei-faq__icon::before {
    height: 2px;
    width: 20px;
}

.fukei-faq__icon::after {
    height: 20px;
    width: 2px;
}

.fukei-faq__item.is-open .fukei-faq__icon {
    transform: rotate(45deg);
}

.fukei-faq__item.is-open .fukei-faq__icon::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.fukei-faq__answer {
    color: var(--fukei-faq-answer-color);
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 520ms var(--fukei-faq-ease),
        opacity 360ms var(--fukei-faq-ease);
}

.fukei-faq__item.is-open .fukei-faq__answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.fukei-faq__answer-inner {
    font-size: 16px;
    line-height: 1.7;
    min-height: 0;
    overflow: hidden;
    padding: 0 76px 0 48px;
    transform: translateY(-8px);
    transition:
        padding 520ms var(--fukei-faq-ease),
        transform 520ms var(--fukei-faq-ease);
}

.fukei-faq__item.is-open .fukei-faq__answer-inner {
    padding-bottom: 32px;
    transform: translateY(0);
}

.fukei-faq__answer-inner p {
    margin: 0 0 14px;
}

.fukei-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

.fukei-faq-empty {
    background: #fff;
    border-radius: 8px;
    color: #58635F;
    margin: 0;
    padding: 16px 18px;
}

@media (max-width: 767px) {
    .fukei-faq {
        padding: 52px 16px 58px;
    }

    .fukei-faq__header {
        margin-bottom: 36px;
    }

    .fukei-faq__title {
        font-size: 36px;
    }

    .fukei-faq__subtitle {
        font-size: 15px;
        margin-top: 16px;
    }

    .fukei-faq__items {
        gap: 14px;
    }

    .fukei-faq__item {
        border-radius: 22px;
    }

    .fukei-faq__question {
        gap: 16px;
        min-height: 74px;
        padding: 0 22px 0 24px;
    }

    .fukei-faq__question-text {
        font-size: 17px;
    }

    .fukei-faq__icon {
        flex-basis: 20px;
        height: 20px;
        width: 20px;
    }

    .fukei-faq__icon::before {
        width: 17px;
    }

    .fukei-faq__icon::after {
        height: 17px;
    }

    .fukei-faq__answer-inner {
        font-size: 15px;
        padding-left: 24px;
        padding-right: 48px;
    }

    .fukei-faq__item.is-open .fukei-faq__answer-inner {
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fukei-faq__item,
    .fukei-faq__icon,
    .fukei-faq__icon::before,
    .fukei-faq__icon::after,
    .fukei-faq__answer,
    .fukei-faq__answer-inner {
        transition-duration: 1ms;
    }
}
