/* ========================================
   FAQ共通セクションタイトル
======================================== */
.faq_section_heading {
    position: relative;
    width: 100%;
    margin: 0 auto 35px;
    padding-bottom: 22px;
    text-align: center;
}

.faq_section_heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 10px;
    background: #ed8599;
    transform: translateX(-50%);
}

.faq_section_heading_en {
    display: block;
    margin-bottom: 7px;
    color: #ed8599;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.elementor-kit-97 .faq_section_heading h2,
.faq_section_heading h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

.faq_section_heading p {
    margin: 9px 0 0;
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}


/* ========================================
   FAQ検索
======================================== */
.faq_search {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 85px;
}

.faq_search_inner {
    position: relative;
    align-items: center;
    width: 100%;
}

.faq_search_icon {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #0a7c65;
    border-radius: 50%;
    transform: translateY(-55%);
    pointer-events: none;
    z-index: 2;
}

.faq_search_icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    background: #0a7c65;
    border-radius: 2px;
    transform: rotate(45deg);
    transform-origin: left center;
}

#faqSearchInput {
    width: 100%;
    height: 62px;
    padding: 0 60px 0 56px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
    -webkit-appearance: none;
    appearance: none;
}

#faqSearchInput::placeholder {
    color: #999;
}

#faqSearchInput:focus {
    border-color: #0a7c65;
    box-shadow:
        0 0 0 3px rgba(10, 124, 101, .10),
        0 5px 20px rgba(0, 0, 0, .06);
}

#faqSearchInput::-webkit-search-cancel-button {
    display: none;
}

.faq_search_clear {
    position: absolute;
    right: 13px;
    top: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: #f3f3f3 !important;
    color: #777 !important;
    cursor: pointer;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
    transition:
        background .2s ease,
        color .2s ease;
}

.faq_search_clear:hover {
    background: #e9e9e9 !important;
    color: #333 !important;
}

.faq_search_clear.is-visible {
    display: flex;
}

.faq_search_status {
    min-height: 24px;
    margin-top: 12px;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.faq_search_status strong {
    color: #0a7c65;
    font-weight: 700;
}

.faq_search_no_result {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}


/* ========================================
   検索中
======================================== */
.insurance_contents.is-searching .insurance_panel {
    display: block;
}

.insurance_contents.is-searching .insurance_panel.is-search-hidden {
    display: none;
}

.insurance_contents.is-searching .index_menu {
    display: none;
}

.insurance_contents.is-searching .insurance_panel_title {
    margin-top: 55px;
    margin-bottom: 20px;
}

.insurance_contents.is-searching
.insurance_panel:first-child
.insurance_panel_title {
    margin-top: 0;
}

.insurance_contents.is-searching .faq_category {
    display: block;
}

.insurance_contents.is-searching
.faq_category.is-search-hidden {
    display: none;
}


/* ========================================
   カテゴリー選択エリア
======================================== */
.faq_category_select {
    position: relative;
    width: 100%;
    margin: 0 auto 70px;
    padding: 55px 35px 50px;
    border-radius: 16px;
    background: #fafafa;
}


/* ========================================
   保険タブ
======================================== */
.insurance_tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

.insurance_tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 62px;
    padding: 14px 28px;
    border: 1px solid #0a7c65 !important;
    border-radius: 50px;
    background: #fff !important;
    color: #0a7c65 !important;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease !important;
}

.insurance_tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.insurance_tab.is-active {
    background: #0a7c65 !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(10, 124, 101, .20);
}


/* ========================================
   保険パネル
======================================== */
.insurance_panel {
    display: none;
}

.insurance_panel.is-active {
    display: block;
    animation: faqPanelFade .35s ease;
}

@keyframes faqPanelFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ========================================
   全体
======================================== */
section.whole_content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 50px;
    padding: 0 20px;
    color: #333;
}


/* ========================================
   現在表示中の共済タイトル
======================================== */
.insurance_panel_title {
    position: relative;
    text-align: center;
    margin: 0 auto 40px;
    padding-bottom: 24px;
}

.insurance_panel_title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 52px;
    height: 3px;
    background: #ed8599;
    transform: translateX(-50%);
}

.insurance_panel_title > span {
    display: block;
    margin-bottom: 8px;
    color: #ed8599;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .15em;
}

.insurance_panel_title h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

.insurance_panel_title p {
    margin: 8px 0 0;
    color: #777;
    font-size: 14px;
}


/* ========================================
   質問カテゴリへのジャンプメニュー
======================================== */
ul.index_menu {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 70px;
    padding: 0;
    background: transparent;
    border: 0;
    list-style: none;
}

ul.index_menu li {
    margin: 0;
    border: 0;
}

ul.index_menu li:hover {
    opacity: 1;
}

ul.index_menu a,
.elementor-kit-97 .index_menu a {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 82px;
    height: 100%;
    margin: 0;
    padding: 15px 42px 15px 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    color: #333 !important;
    text-decoration: none !important;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, .04);
    transition:
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

ul.index_menu a::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ed8599;
    border-bottom: 2px solid #ed8599;
    transform:
        translateY(-70%)
        rotate(45deg);
    transition:
        transform .25s ease;
}

ul.index_menu a:hover {
    background: #fffafa;
    border-color: #ed8599;
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px
        rgba(237, 133, 153, .13);
}

ul.index_menu a:hover::after {
    transform:
        translateY(-40%)
        rotate(45deg);
}

.index_menu_number {
    flex-shrink: 0;
    margin-right: 13px;
    color: #ed8599;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
}

.index_menu_text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}


/* ========================================
   各FAQカテゴリー
======================================== */
.faq_category {
    scroll-margin-top: 120px;
}


/* ========================================
   FAQ見出し
======================================== */
.elementor-kit-97 .faq_category h3,
.faq_category h3 {
    position: relative;
    margin-top: 70px;
    margin-bottom: 15px;
    padding: 12px 20px;
    border-left: 4px solid #ed8599;
    color: #555;
    font-size: 26px;
    font-weight: 500;
}


/* ========================================
   Accordion
======================================== */
.accordion-header {
    position: relative;
    padding:
        20px 55px
        20px 20px;
    border-bottom:
        1px solid #e8e8e8;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition:
        background .2s ease,
        color .2s ease;
}

.accordion-header:hover {
    background: #fffafa;
}

.accordion-header::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    color: #ed8599;
    font-size: 25px;
    font-weight: 400;
    transform: translateY(-50%);
}

.accordion-header.is-open {
    color: #0a7c65;
}

.accordion-header.is-open::after {
    content: "−";
}

.accordion-content {
    display: block;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    opacity: 0;
    background: #fafafa;
    line-height: 1.9;
    transition:
        max-height .65s cubic-bezier(.22, 1, .36, 1),
        padding .5s cubic-bezier(.22, 1, .36, 1),
        opacity .4s ease;
}

.accordion-content.is-open {
    padding: 20px;
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}


/* ========================================
   共通トップ画像（固定ページ）
======================================== */
.top_img_common {
    position: relative;
    margin-top: 40px;
    padding: 240px 0;
    background-image:
        url(
            https://anata.gr.jp/wp-content/uploads/2026/06/Various_applications_bg_img-scaled.jpg
        );
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 100px;
}

.top_img_common::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        rgb(15 24 63 / 40%);
}

.top_img_common h2 {
    font-size: 61px;
    color: #fff;
}

.top_img_common hgroup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

hgroup span {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}


/* ========================================
   Elementor上書き
======================================== */
.standalone-faq .top_img_common {
    min-height: 480px;
    margin: 0 0 100px;
    padding: 0;
}

.standalone-faq section.whole_content {
    width: min(100% - 40px, 1200px);
    margin: 0 auto 100px;
    padding: 0;
}


/* ========================================
   Tablet
======================================== */
@media (max-width: 900px) {

    .faq_category_select {
        padding: 45px 25px;
    }

    .insurance_tab {
        min-width: 210px;
    }

    ul.index_menu {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ========================================
   Smartphone
======================================== */
@media (max-width: 768px) {

    .faq_section_heading {
        margin-bottom: 27px;
        padding-bottom: 18px;
    }

    .elementor-kit-97
    .faq_section_heading h2,
    .faq_section_heading h2 {
        font-size: 24px !important;
    }

    .faq_section_heading p {
        margin-top: 7px;
        font-size: 13px;
    }


    .top_img_common h2 {
        font-size: 32px;
        margin: 0 0 5px;
    }

    hgroup span {
        font-size: 24px;
    }

    .standalone-faq .top_img_common {
        min-height: 300px;
        padding: 0;
        background-size: cover;
        background-position:
            center center;
    }

    .standalone-faq section.whole_content {
        width: calc(100% - 32px);
        margin-bottom: 70px;
    }


    /* ========================================
       検索
    ======================================== */
    .faq_search {
        margin-bottom: 65px;
    }

    #faqSearchInput {
        height: 56px;
        padding:
            0 52px
            0 50px;
        font-size: 15px;
    }

    .faq_search_icon {
        left: 18px;
    }


    /* ========================================
       カテゴリー
    ======================================== */
    .faq_category_select {
        margin-bottom: 50px;
        padding: 38px 18px;
        border-radius: 12px;
    }

    .insurance_tabs {
        gap: 9px;
        margin: 0;
    }

    .insurance_tab {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 12px 15px;
        font-size: 14px;
    }


    /* ========================================
       共済タイトル
    ======================================== */
    .insurance_panel_title {
        margin-bottom: 28px;
    }

    .insurance_panel_title h2 {
        font-size: 23px !important;
    }

    .insurance_contents.is-searching
    .insurance_panel_title {
        margin-top: 40px;
    }


    /* ========================================
       ジャンプメニュー
    ======================================== */
    ul.index_menu {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 50px;
    }

    ul.index_menu a,
    .elementor-kit-97 .index_menu a {
        min-height: 62px;
        padding:
            12px 40px
            12px 15px;
    }

    .index_menu_text {
        font-size: 14px;
    }


    /* ========================================
       FAQ
    ======================================== */
    .faq_category {
        scroll-margin-top: 90px;
    }

    .elementor-kit-97 .faq_category h3,
    .faq_category h3 {
        margin-top: 50px;
        padding: 10px 12px;
        font-size: 21px;
    }

}


@media (max-width: 575px) {

    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-footer:not(.dynamic-footer),
    .site-header .header-inner,
    .site-header:not(.dynamic-header),
    body:not([class*=elementor-page-]) .site-main {
        padding-inline-end:
            0 !important;
        padding-inline-start:
            0 !important;
    }

}
