/* ============================================================
   葬儀・家族葬の知識ページ (/knowledge/index.php)
============================================================ */

/* ------------------------------------------------------------
   1_知識セクション (.knowledge_sec)
------------------------------------------------------------ */
.knowledge_sec {
    padding: 60px 20px 100px;
}
.knowledge_sec_inner {
    max-width: 1200px;
    margin: 0 auto;
}
.knowledge_sec_lead {
    margin: 0 0 50px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
}

.knowledge_sec_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.knowledge_sec_card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
}
.knowledge_sec_card_img {
    margin: 0 0 24px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.knowledge_sec_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.knowledge_sec_card_title {
    margin: 0 25px 16px;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--col_brown);
}
.knowledge_sec_card_desc {
    flex: 1 0 auto;
    margin: 0 25px 28px;
    font-size: 1.8rem;
    line-height: 1.8;
}
.knowledge_sec_card_btn {
    margin: 0 25px 25px;
    text-align: center;
}
.knowledge_sec_card_btn_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background-image: linear-gradient(0deg, #d14a19, #e55927 10% 90%, #ff8b61);
    border-radius: 8px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s;
}
.knowledge_sec_card_btn_link:hover {
    opacity: 0.85;
    color: #fff;
}
.knowledge_sec_card_btn_arrow {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

/* ------------------------------------------------------------
   SP (≤768px)
------------------------------------------------------------ */
@media screen and (max-width: 768px) {
    .knowledge_sec {
        padding: 40px 16px 60px;
    }
    .knowledge_sec_lead {
        margin-bottom: 30px;
        font-size: 1.8rem;
    }
    .knowledge_sec_list {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .knowledge_sec_card_title {
        font-size: 2.2rem;
    }
    .knowledge_sec_card_desc {
        font-size: 1.6rem;
    }
    .knowledge_sec_card_btn_link {
        font-size: 1.6rem;
        padding: 14px 16px;
    }
}

/* ------------------------------------------------------------
   2_ブログセクション (.knowledge_blog_sec)
   - 上端 wave は --knowledge-blog-wave-pc / -sp で差し替え (bg_wave_top_12)
------------------------------------------------------------ */
.knowledge_blog_sec {
    position: relative;
    width: 100%;
    background: var(--col_l_beige);
    padding: 200px 20px 100px;
    box-sizing: border-box;
    overflow: hidden;
}
.knowledge_blog_sec::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: var(--knowledge-blog-wave-pc, url("../images/module/bg_wave_top_12_pc.webp")) no-repeat top center / 100% auto;
    z-index: 0;
}
.knowledge_blog_sec_inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}
.knowledge_blog_sec_title {
    margin: 0 0 40px;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.knowledge_blog_sec_slider {
    margin: 0 auto 40px;
}
/* 記事が1件のみの場合は slick を初期化せず中央寄せ表示 (knowledge.js) */
.knowledge_blog_sec_slider.is-single {
    display: flex;
    justify-content: center;
}
.knowledge_blog_sec_slider.is-single .knowledge_blog_sec_slide {
    width: 33.3333%;
}
@media screen and (max-width: 768px) {
    .knowledge_blog_sec_slider.is-single .knowledge_blog_sec_slide {
        width: 84%;
    }
}
.knowledge_blog_sec_slide {
    padding: 0 15px 15px;
    box-sizing: border-box;
}
.knowledge_blog_sec_card {
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.knowledge_blog_sec_card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    color: inherit;
}
.knowledge_blog_sec_card_img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.knowledge_blog_sec_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.knowledge_blog_sec_card_date {
    margin: 16px 20px 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    color: #555;
}
.knowledge_blog_sec_card_title {
    margin: 0 20px 16px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.knowledge_blog_sec_card_cat {
    margin: 0;
    padding: 0 20px 20px;
}
.knowledge_blog_sec_card_cat span {
    display: inline-block;
    padding: 3px 14px;
    background: var(--col_l_beige);
    border-radius: 999px;
    font-size: 1.6rem;
    color: #555;
}

/* slick — SP の矢印 (中央下白丸 + オレンジシェブロン) / dots (hall/area-detail.php .detail_event_sec_slider と同仕様) */
.knowledge_blog_sec_slider .slick-prev,
.knowledge_blog_sec_slider .slick-next {
    top: auto;
    bottom: -56px;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transform: none;
}
.knowledge_blog_sec_slider .slick-prev { left: calc(50% - 100px); }
.knowledge_blog_sec_slider .slick-next { right: calc(50% - 100px); }
.knowledge_blog_sec_slider .slick-prev::before,
.knowledge_blog_sec_slider .slick-next::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--col_orange);
    border-right: 2px solid var(--col_orange);
    opacity: 1;
}
.knowledge_blog_sec_slider .slick-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}
.knowledge_blog_sec_slider .slick-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}
.knowledge_blog_sec_slider .slick-dots {
    bottom: -44px;
}
.knowledge_blog_sec_slider .slick-dots li button::before {
    color: #d4d4d4;
    opacity: 1;
    font-size: 8px;
}
.knowledge_blog_sec_slider .slick-dots li.slick-active button::before {
    color: var(--col_orange);
}

.knowledge_blog_sec_more {
    text-align: center;
}
.knowledge_blog_sec_arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--col_orange);
    position: relative;
    display: inline-block;
}
.knowledge_blog_sec_arrow::before {
content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-65%, -50%) rotate(45deg);
}

/* ------------------------------------------------------------
   SP (≤768px)
------------------------------------------------------------ */
@media screen and (max-width: 768px) {
    .knowledge_blog_sec {
        padding: 80px 0 60px;
    }
    .knowledge_blog_sec::before {
        height: 60px;
        background-image: var(--knowledge-blog-wave-sp, url("../images/module/bg_wave_top_12_sp.webp"));
    }
    .knowledge_blog_sec_title {
        margin-bottom: 24px;
        font-size: 2.7rem;
    }
    .knowledge_blog_sec_slider {
        margin-bottom: 80px;     /* 矢印・dots 用の余白 */
    }
    .knowledge_blog_sec_card_date {
        font-size: 1.5rem;
    }
    .knowledge_blog_sec_card_title {
        font-size: 1.6rem;
    }
    .knowledge_blog_sec_card_cat span {
        font-size: 1.5rem;
    }
    .knowledge_blog_sec_more {
        margin-top: 90px;
    }
}

/* ------------------------------------------------------------
   3_流れセクション (.flow_sec) — /knowledge/flow.php
   タブ切替 (.chenge_tub / .panel) は site.js の汎用機能を利用
------------------------------------------------------------ */
.flow_sec {
    padding: 60px 20px 100px;
}
.flow_sec_inner {
    max-width: 1200px;
    margin: 0 auto;
}
.flow_sec_lead {
    margin: 0 0 40px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
}

/* タブ (家族葬 / 一日葬 / 直葬・火葬式) */
.flow_sec_tabs {
    display: flex;
    list-style: none;
    margin: 0 0 50px;
    padding: 0;
    border-bottom: 2px solid #ef8767;
    gap: 6px;
    align-items: flex-end;
}
.flow_sec_tab {
    flex: 1 0 0;
    padding: 8px 10px 10px;
    background: #fff;
    border: 1px solid #808080;
    border-bottom: none;
    font-size: 2.2rem;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 8px 8px 0 0;
    -moz-border-radius: 8px 8px 0 0;
    -webkit-border-radius: 8px 8px 0 0;
}
.flow_sec_tab_sub {
    display: inline-block;
    font-size: 2.2rem;
    display: block;
}
.flow_sec_tab.is-active {
    font-weight: 700;
    background: #ef8767;
    border-color: #ef8767;
    padding: 12px 10px 14px;
    color: #fff;
}

/* ステップ */
.flow_sec_steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.flow_sec_step {
    position: relative;
    display: grid;
    grid-template-columns: 43% 1fr;
    gap: 50px;
    align-items: center;
    padding: 40px;
    background: var(--col_cream);
    border-radius: 8px;
    box-sizing: border-box;
}
.flow_sec_step + .flow_sec_step {
    margin-top: 55px;
}
.flow_sec_step + .flow_sec_step::before {
    content: "";
    position: absolute;
    top: -55px;
    left: 24%;
    width: 8px;
    height: 55px;
    background: #f7b7a9;
    transform: translateX(-1px);
}
.flow_sec_step_img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
}
.flow_sec_step_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.flow_sec_step_badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 22px;
    background: #ef8767;
    border-radius: 999px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.flow_sec_step_title {
    margin: 0 0 16px;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.5;
}
.flow_sec_step_desc {
    margin: 0;
    font-size: 2rem;
    line-height: 1.8;
}
.flow_sec_step_desc a {
    color: #2673c3;
    text-decoration: underline;
}

/* ------------------------------------------------------------
   SP (≤768px)
------------------------------------------------------------ */
@media screen and (max-width: 768px) {
    .flow_sec {
        padding: 40px 16px 60px;
    }
    .flow_sec_lead {
        margin-bottom: 30px;
        font-size: 1.8rem;
    }
    .flow_sec_tabs {
        margin-bottom: 20px;
    }
    .flow_sec_tab {
        padding: 12px 0;
        font-size: 1.7rem;
    }
    .flow_sec_tab.is-active {
        padding: 12px 0;
    }
    .flow_sec_tab_sub {
        font-size: 1.2rem;
    }
    .flow_sec_step {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .flow_sec_step + .flow_sec_step {
        margin-top: 40px;
    }
    .flow_sec_step + .flow_sec_step::before {
        top: -40px;
        left: 50%;
        height: 40px;
    }
    .flow_sec_step_badge {
        font-size: 1.8rem;
        padding: 4px 18px;
    }
    .flow_sec_step_title {
        font-size: 2rem;
    }
    .flow_sec_step_desc {
        font-size: 1.6rem;
    }

}

/* ------------------------------------------------------------
   4_よくあるご質問セクション (.faq_full_sec) — /knowledge/faq/index.php
   - アコーディオン本体 (.faq_sec_group / .faq_sec_item など) は
     template.css の .faq_sec 用クラスをそのまま流用
------------------------------------------------------------ */
.faq_full_sec {
    padding: 60px 20px 100px;
}
.faq_full_sec_inner {
    max-width: 1200px;
    margin: 0 auto;
}
.faq_full_sec_lead {
    margin: 0 0 100px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
}

/* SP: カテゴリ選択プルダウン (PC では非表示) */
.faq_full_sec_select_wrap {
    display: none;
    position: relative;
}
.faq_full_sec_select_wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-bottom: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
    pointer-events: none;
}
.faq_full_sec_select {
    display: block;
    width: 100%;
    padding: 16px 44px 16px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.8rem;
    color: #333;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.faq_full_sec_select option {
    color: #333;
}

.faq_full_sec_layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* PC: カテゴリサイドバー */
.faq_full_sec_nav {
    background: var(--col_cream);
    border-radius: 8px;
    padding: 17px 0;
}
.faq_full_sec_nav_list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.faq_full_sec_nav_list a {
    display: block;
    padding: 9px 24px;
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.faq_full_sec_nav_list a::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 7px 3px 0;
    border-top: 2px solid var(--col_orange);
    border-right: 2px solid var(--col_orange);
    transform: rotate(45deg);
    content: "";
    vertical-align: middle;
}
.faq_full_sec_nav_list a:hover {
    color: var(--col_orange);
}

.faq_full_sec_body .faq_sec_group {
    margin-bottom: 50px;
}
.faq_full_sec_body .faq_sec_group:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   SP (≤768px)
------------------------------------------------------------ */
@media screen and (max-width: 768px) {
    .faq_full_sec {
        padding: 40px 16px 60px;
    }
    .faq_full_sec_lead {
        margin-bottom: 24px;
        font-size: 1.8rem;
    }
    .faq_full_sec_select_wrap {
        display: block;
        margin-bottom: 30px;
    }
    .faq_full_sec_layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    /* SP はプルダウンに集約するためサイドバーは非表示 */
    .faq_full_sec_nav {
        display: none;
    }
    .faq_full_sec_body .faq_sec_group {
        margin-bottom: 30px;
    }
}

/* ------------------------------------------------------------
   5_補助金制度セクション (.subsidy_sec) — /knowledge/subsidy-system.php
------------------------------------------------------------ */
.subsidy_sec {
    padding: 60px 20px 100px;
}
.subsidy_sec_inner {
    max-width: 1200px;
    margin: 0 auto;
}
.subsidy_sec_lead {
    margin: 0 0 40px;
    font-size: 2rem;
    line-height: 1.8;
}

/* 2カラム比較カード */
.subsidy_sec_cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 0 60px;
}
.subsidy_sec_card {
    background: var(--col_cream);
    border-radius: 12px;
    overflow: hidden;
}
.subsidy_sec_card_head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    padding: 30px 25px;
    background: #EDE2D6;
    box-sizing: border-box;
    text-align: center;
}
.subsidy_sec_card_head_text {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.5;
}
.subsidy_sec_card_tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    width: 100%;
}
.subsidy_sec_card_tags li {
    padding: 3px 0px;
    background: var(--col_cream);
    border-radius: 6px;
    font-size: 2rem;
    font-weight: 500;
    min-width: 30%;
}
.subsidy_sec_card_body {
    padding: 24px 20px;
}
.subsidy_sec_card_desc {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.8;
}

/* 地域別ご支給額 (見出しは .sec_title_bar を共通利用) */
.subsidy_sec_table_lead {
    margin: 0 0 24px;
    font-size: 1.8rem;
    line-height: 1.8;
}

.subsidy_sec_table_wrap {
    overflow-x: auto;
}
.subsidy_sec_table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}
.subsidy_sec_table th,
.subsidy_sec_table td {
    padding: 18px 24px;
    font-size: 1.8rem;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #d4d4d4;
    box-sizing: border-box;
}
.subsidy_sec_table thead th {
    font-weight: 700;
}
.subsidy_sec_table thead th:first-of-type {
    background: #fbf8f5;
    text-align: left;
}
.subsidy_sec_table tbody th {
    background: #fbf8f5;
    font-weight: 700;
    text-align: left;
}
.subsidy_sec_table tbody td {
    color: var(--col_orange);
}
/* ------------------------------------------------------------
   SP (≤768px)
------------------------------------------------------------ */
@media screen and (max-width: 768px) {
    .subsidy_sec {
        padding: 40px 16px 60px;
    }
    .subsidy_sec_lead {
        margin-bottom: 30px;
        font-size: 1.8rem;
    }
    .subsidy_sec_cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    .subsidy_sec_card_head_text {
        font-size: 1.8rem;
    }
    .subsidy_sec_card_tags li {
        font-size: 1.6rem;
    }
    .subsidy_sec_table_lead {
        font-size: 1.6rem;
    }
    .subsidy_sec_table {
        min-width: 610px;
    }
    .subsidy_sec_table th,
    .subsidy_sec_table td {
        padding: 14px 16px;
        font-size: 1.6rem;
    }
    .subsidy_sec_card_head {
        min-height: inherit;
    }
    .subsidy_sec_card_desc {
        font-size: 1.6rem;
    }
}
