/* ==========================================
   相続について（PC）
   ========================================== */

/* --- クッションページ --- */

.page_about_inheritance .section_intro {
    padding: 80px 0;
    background: #EEF3FA;
    text-align: center;
}

.page_about_inheritance .section_intro .intro_visual {
    max-width: 720px;
    height: 360px;
    margin: 0 auto 40px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.page_about_inheritance .section_intro .intro_visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page_about_inheritance .section_intro .catch {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 8px;
    text-align: center;
}

.page_about_inheritance .section_intro .catch .accent {
    color: #3B65A5;
}

.page_about_inheritance .section_intro .catch::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: #3B65A5;
    margin: 20px auto 0;
}

.page_about_inheritance .section_intro .lead {
    font-size: 16px;
    line-height: 2.1;
    color: #555;
    text-align: center;
    margin-top: 28px;
}

/* --- クッションページ：相続前/相続後 2択バナー --- */

.page_about_inheritance .section_branch {
    padding: 60px 0 80px;
}

.page_about_inheritance .section_branch ul.flex {
    justify-content: center;
    gap: 24px;
}

.page_about_inheritance .section_branch ul.flex li {
    width: 480px;
}

.page_about_inheritance .section_branch ul.flex li a {
    display: block;
    padding: 48px 24px;
    text-align: center;
    color: #fff;
    background: #3B65A5;
    transition: .3s;
}

.page_about_inheritance .section_branch ul.flex li.after a {
    background: #1A3B66;
}

.page_about_inheritance .section_branch ul.flex li a:hover {
    opacity: .8;
    color: #fff;
}

.page_about_inheritance .section_branch ul.flex li .label {
    font-size: 13px;
    letter-spacing: 0.12em;
    opacity: .85;
    margin-bottom: 8px;
}

.page_about_inheritance .section_branch ul.flex li .title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page_about_inheritance .section_branch ul.flex li .title .sub {
    font-size: 18px;
    font-weight: 700;
    margin-left: 4px;
}

.page_about_inheritance .section_branch ul.flex li .lead {
    font-size: 14px;
    opacity: .9;
}

/* --- 相続前/相続後トップページ：カード一覧 --- */

.page_about_inheritance_before .section_cards,
.page_about_inheritance_after .section_cards {
    padding-top: 0;
}

.page_about_inheritance_before .section_cards .section_heading,
.page_about_inheritance_after .section_cards .section_heading {
    text-align: center;
    margin-bottom: 44px;
}

.page_about_inheritance_before .section_cards .section_heading .label,
.page_about_inheritance_after .section_cards .section_heading .label {
    font-size: 13px;
    color: #6A86A7;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.page_about_inheritance_before .section_cards .section_heading .title,
.page_about_inheritance_after .section_cards .section_heading .title {
    font-size: 26px;
    font-weight: 700;
    position: relative;
    padding-bottom: 18px;
}

.page_about_inheritance_before .section_cards .section_heading .title::after,
.page_about_inheritance_after .section_cards .section_heading .title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: #3B65A5;
}

.page_about_inheritance_before .section_cards ul.flex,
.page_about_inheritance_after .section_cards ul.flex {
    justify-content: center;
    gap: 28px 24px;
}

.page_about_inheritance_before .section_cards ul.flex li,
.page_about_inheritance_after .section_cards ul.flex li {
    width: 340px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.15);
    transition: .3s;
    background: #fff;
}

.page_about_inheritance_before .section_cards ul.flex li:hover,
.page_about_inheritance_after .section_cards ul.flex li:hover {
    opacity: .7;
}

.page_about_inheritance_before .section_cards ul.flex li a,
.page_about_inheritance_after .section_cards ul.flex li a {
    display: block;
    color: #1A1A1A;
}

.page_about_inheritance_before .section_cards ul.flex li .image,
.page_about_inheritance_after .section_cards ul.flex li .image {
    overflow: hidden;
    height: 196px;
}

.page_about_inheritance_before .section_cards ul.flex li .image img,
.page_about_inheritance_after .section_cards ul.flex li .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page_about_inheritance_before .section_cards ul.flex li .text_box,
.page_about_inheritance_after .section_cards ul.flex li .text_box {
    padding: 14px 44px 14px 20px;
    background: url(/wp-content/themes/child/image/arrow.svg) no-repeat;
    background-position: right 16px center;
}

.page_about_inheritance_before .section_cards ul.flex li .text_box .title,
.page_about_inheritance_after .section_cards ul.flex li .text_box .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #1A1A1A;
}

.page_about_inheritance_before .section_cards ul.flex li .text_box .en,
.page_about_inheritance_after .section_cards ul.flex li .text_box .en {
    font-size: 12px;
    color: #6A86A7;
    margin-top: 4px;
}

/* --- 中ページ共通 --- */

.page_about_inheritance_child .wrap {
    width: 1140px;
}

.page_about_inheritance_child section {
    padding: 80px 0;
}

.page_about_inheritance_child .section_catch {
    text-align: center;
    background: #EEF3FA;
    border-bottom: 3px solid #D0DCF0;
}

.page_about_inheritance_child .section_catch .catch {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 8px;
}

.page_about_inheritance_child .section_catch .catch::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: #3B65A5;
    margin: 20px auto 0;
}

.page_about_inheritance_child .section_catch .catch .accent {
    color: #3B65A5;
}

.page_about_inheritance_child .section_catch .lead {
    font-size: 16px;
    line-height: 2;
    margin-top: 28px;
    margin-bottom: 28px;
    text-align: left;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.page_about_inheritance_child .section_catch .concern_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 20px auto 0;
    width: 100%;
    max-width: 860px;
    text-align: left;
}

.page_about_inheritance_child .section_catch .concern_list li {
    font-size: 15px;
    line-height: 1.7;
    padding: 10px 24px;
    background: rgba(255,255,255,0.75);
    border-left: 3px solid #3B65A5;
}

.page_about_inheritance_child .section_catch .concern_list li::before {
    content: none;
}

.page_about_inheritance_child .section_catch .catch_sub {
    font-size: 18px;
    font-weight: 700;
    color: #3B65A5;
    margin-top: 32px;
}

.page_about_inheritance_child .head_box {
    margin-bottom: 36px;
}

.page_about_inheritance_child .head_box .catch {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 16px;
    border-left: 4px solid #3B65A5;
    padding-left: 16px;
}

/* section_early はセンター揃えのため border-left を除去 */
.page_about_inheritance_child .section_early .head_box .catch {
    border-left: none;
    padding-left: 0;
}

/* CTAセクションはテーマ側スタイルを優先 */
.page_about_inheritance_child .section_common_cta .head_box .catch {
    border-left: none;
    padding-left: 0;
}

/* CTAセクション：電話・LINE・メールの3列表示（相続ページのみ） */
.page_about_inheritance_child .section_common_cta .cont .list_box ul {
    grid-template-columns: repeat(3, 1fr);
}

.page_about_inheritance_child .section_common_cta .cont .list_box ul li {
    border-right: 2px solid #B5B5B5;
}

.page_about_inheritance_child .section_common_cta .cont .list_box ul li:last-child {
    border-right: none;
}

.page_about_inheritance_child .section_common_cta .cont .list_box ul li .button.line_button a {
    background: #06C755;
}

.page_about_inheritance_child .head_box .catch .accent {
    color: #3B65A5;
}

.page_about_inheritance_child .head_box .lead {
    font-size: 16px;
    line-height: 2;
    color: #444;
}

.page_about_inheritance_child .section_title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    padding-left: 16px;
    border-left: 4px solid #3B65A5;
    line-height: 1.5;
}

.page_about_inheritance_child .text_lead {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 24px;
}

.page_about_inheritance_child .target_note {
    font-size: 15px;
    line-height: 1.9;
    margin-top: 28px;
    color: #444;
}

/* 背景色ユーティリティ */

.page_about_inheritance_child .bg_light {
    background: #F8F8F8;
}

/* チェックリスト */

.page_about_inheritance_child .check_list li {
    padding: 14px 16px 14px 50px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #E8EEF6;
    background-image: url(/wp-content/themes/child/image/icon_check.svg);
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.page_about_inheritance_child .bg_light .check_list li {
    background-color: #fff;
}

/* 番号付きリスト */

.page_about_inheritance_child .num_list {
    counter-reset: inh-num;
}

.page_about_inheritance_child .num_list li {
    counter-increment: inh-num;
    padding: 20px 24px 20px 72px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #E8EEF6;
    position: relative;
    font-size: 15px;
    line-height: 1.8;
}

.page_about_inheritance_child .bg_light .num_list li {
    background-color: #fff;
}

.page_about_inheritance_child .num_list li::before {
    content: counter(inh-num);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #3B65A5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.page_about_inheritance_child .num_list li .num_title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    color: #1A1A1A;
}

/* ポイントボックスリスト */

.page_about_inheritance_child .point_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.page_about_inheritance_child .point_list li .point_box {
    background: #fff;
    border: 1px solid #D0DCF0;
    border-top: 3px solid #3B65A5;
    border-radius: 2px;
    padding: 22px 24px;
    height: 100%;
}

.page_about_inheritance_child .bg_light .point_list li .point_box {
    background: #fff;
}

.page_about_inheritance_child .point_list li .point_box .box_title {
    font-size: 16px;
    font-weight: 700;
    color: #3B65A5;
    margin-bottom: 10px;
}

.page_about_inheritance_child .point_list li .point_box .box_lead {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

/* section_early センター揃え統一（健康診断ページ） */

.page_about_inheritance_child .section_early {
    text-align: center;
}

.page_about_inheritance_child .section_early .lead {
    text-align: left;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* フォームボタン（健康診断ページ） */

.page_about_inheritance_child .form_button_box {
    text-align: center;
    margin-top: 40px;
}

.page_about_inheritance_child .form_button_box .form_label {
    font-size: 15px;
    color: #444;
    margin-bottom: 16px;
}

.page_about_inheritance_child .form_button_box .form_button {
    display: inline-block;
    background: #3B65A5;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    padding: 22px 70px;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(59,101,165,0.35);
    transition: .3s;
    text-decoration: none;
    position: relative;
    padding-right: 100px;
}

.page_about_inheritance_child .form_button_box .form_button::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url(/wp-content/themes/child/image/arrow.svg) no-repeat center / contain;
    filter: brightness(0) invert(1);
}

.page_about_inheritance_child .form_button_box .form_button:hover {
    opacity: .85;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,101,165,0.45);
}

/* 相続診断結果例（健康診断ページ） */

.page_about_inheritance_child .section_result .section_heading {
    text-align: center;
    margin-bottom: 36px;
}

.page_about_inheritance_child .section_result .section_heading .section_title {
    display: inline-block;
}

.page_about_inheritance_child .section_result .section_heading .text_lead {
    margin-bottom: 0;
}

.page_about_inheritance_child .section_result .result_image {
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 1px 10px rgba(0,0,0,0.15);
}

/* 会長メッセージ（診断士会ページ） */

.page_about_inheritance_child .message_box {
    background: #fff;
    border: 1px solid #D0DCF0;
    border-left: 4px solid #3B65A5;
    padding: 32px 40px;
}

.page_about_inheritance_child .message_box .message_title {
    font-size: 18px;
    font-weight: 700;
    color: #3B65A5;
    margin-bottom: 20px;
}

.page_about_inheritance_child .message_box .message_text {
    font-size: 15px;
    line-height: 2;
    color: #444;
    margin-bottom: 24px;
}

.page_about_inheritance_child .message_box .message_name {
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    color: #1A1A1A;
    line-height: 1.8;
}


/* ==========================================
   相続について（SP）
   ========================================== */

@media (max-width: 750px) {

    /* --- クッションページ（SP） --- */

    .page_about_inheritance .section_intro {
        padding: 13.3vw 0;
    }

    .page_about_inheritance .section_intro .intro_visual {
        max-width: none;
        height: 46.2vw;
        margin: 0 auto 6.2vw;
        box-shadow: 0 0.5vw 2.6vw rgba(0,0,0,0.12);
    }

    .page_about_inheritance .section_intro .catch {
        font-size: 5.9vw;
        margin-bottom: 0;
    }

    .page_about_inheritance .section_intro .catch::after {
        margin: 4.1vw auto 0;
        width: 8vw;
        height: 0.5vw;
    }

    .page_about_inheritance .section_intro .lead {
        font-size: 3.6vw;
        line-height: 1.9;
        margin-top: 5.1vw;
    }

    /* --- クッションページ：相続前/相続後 2択バナー（SP） --- */

    .page_about_inheritance .section_branch {
        padding: 10.3vw 0 13.3vw;
    }

    .page_about_inheritance .section_branch ul.flex {
        display: block;
        gap: 0;
    }

    .page_about_inheritance .section_branch ul.flex li {
        width: 100%;
    }

    .page_about_inheritance .section_branch ul.flex li + li {
        margin-top: 4.6vw;
    }

    .page_about_inheritance .section_branch ul.flex li a {
        padding: 8vw 4.6vw;
    }

    .page_about_inheritance .section_branch ul.flex li a:hover {
        opacity: 1;
    }

    .page_about_inheritance .section_branch ul.flex li .label {
        font-size: 3.1vw;
        margin-bottom: 2.1vw;
    }

    .page_about_inheritance .section_branch ul.flex li .title {
        font-size: 6.9vw;
        margin-bottom: 3.1vw;
    }

    .page_about_inheritance .section_branch ul.flex li .title .sub {
        font-size: 3.8vw;
    }

    .page_about_inheritance .section_branch ul.flex li .lead {
        font-size: 3.3vw;
    }

    /* --- 相続前/相続後トップページ：カード一覧（SP） --- */

    .page_about_inheritance_before .section_cards .section_heading,
    .page_about_inheritance_after .section_cards .section_heading {
        margin-bottom: 7.2vw;
    }

    .page_about_inheritance_before .section_cards .section_heading .label,
    .page_about_inheritance_after .section_cards .section_heading .label {
        font-size: 3.1vw;
        margin-bottom: 2.1vw;
    }

    .page_about_inheritance_before .section_cards .section_heading .title,
    .page_about_inheritance_after .section_cards .section_heading .title {
        font-size: 5.6vw;
        padding-bottom: 3.3vw;
    }

    .page_about_inheritance_before .section_cards ul.flex,
    .page_about_inheritance_after .section_cards ul.flex {
        display: block;
    }

    .page_about_inheritance_before .section_cards ul.flex li,
    .page_about_inheritance_after .section_cards ul.flex li {
        width: 100%;
        box-shadow: 0 0.3vw 2.6vw rgba(0,0,0,0.1);
    }

    .page_about_inheritance_before .section_cards ul.flex li + li,
    .page_about_inheritance_after .section_cards ul.flex li + li {
        margin-top: 3.8vw;
    }

    .page_about_inheritance_before .section_cards ul.flex li:hover,
    .page_about_inheritance_after .section_cards ul.flex li:hover {
        opacity: 1;
    }

    .page_about_inheritance_before .section_cards ul.flex li a,
    .page_about_inheritance_after .section_cards ul.flex li a {
        display: flex;
    }

    .page_about_inheritance_before .section_cards ul.flex li .image,
    .page_about_inheritance_after .section_cards ul.flex li .image {
        width: 23.1vw;
        height: auto;
    }

    .page_about_inheritance_before .section_cards ul.flex li .image img,
    .page_about_inheritance_after .section_cards ul.flex li .image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page_about_inheritance_before .section_cards ul.flex li .text_box,
    .page_about_inheritance_after .section_cards ul.flex li .text_box {
        padding: 5.6vw 9vw 5.6vw 4.6vw;
        background-position: right 3.6vw center;
        background-size: 5.6vw;
        width: calc(100% - 23.1vw);
    }

    .page_about_inheritance_before .section_cards ul.flex li .text_box .title,
    .page_about_inheritance_after .section_cards ul.flex li .text_box .title {
        font-size: 3.8vw;
    }

    .page_about_inheritance_before .section_cards ul.flex li .text_box .en,
    .page_about_inheritance_after .section_cards ul.flex li .text_box .en {
        font-size: 2.8vw;
        margin-top: 1.5vw;
    }

    /* --- 中ページ共通（SP） --- */

    .page_about_inheritance_child .wrap {
        width: 750px;
    }

    .page_about_inheritance_child section {
        padding: 13.3vw 0;
    }

    .page_about_inheritance_child .section_catch {
        padding: 13.3vw 0;
    }

    .page_about_inheritance_child .section_catch .catch {
        font-size: 5.6vw;
        margin-bottom: 0;
    }

    .page_about_inheritance_child .section_catch .catch::after {
        margin: 4.1vw auto 0;
        width: 8vw;
        height: 0.5vw;
    }

    .page_about_inheritance_child .section_catch .lead {
        font-size: 3.6vw;
        margin-top: 4.6vw;
        margin-bottom: 4.6vw;
        max-width: none;
    }

    .page_about_inheritance_child .section_catch .concern_list li {
        font-size: 3.3vw;
        line-height: 1.7;
        padding: 2.6vw 4.6vw;
    }

    .page_about_inheritance_child .section_catch .catch_sub {
        font-size: 4.1vw;
        margin-top: 5.1vw;
    }

    .page_about_inheritance_child .head_box {
        margin-bottom: 5.6vw;
    }

    .page_about_inheritance_child .head_box .catch {
        font-size: 5.1vw;
        margin-bottom: 3.1vw;
        padding-left: 3.1vw;
    }

    /* CTAセクション：電話・LINE・メールの3列表示（相続ページのみ・SP） */
    .page_about_inheritance_child .section_common_cta .cont .list_box ul li {
        border-right: none;
        border-bottom: 2px solid #B5B5B5;
        padding-bottom: 2.6vw;
        margin-bottom: 3.3vw;
    }

    .page_about_inheritance_child .section_common_cta .cont .list_box ul li:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .page_about_inheritance_child .section_early .head_box .catch,
    .page_about_inheritance_child .section_common_cta .head_box .catch {
        padding-left: 0;
    }

    .page_about_inheritance_child .head_box .lead {
        font-size: 3.4vw;
    }

    .page_about_inheritance_child .section_title {
        font-size: 4.6vw;
        margin-bottom: 4.6vw;
        padding-left: 3.1vw;
    }

    .page_about_inheritance_child .text_lead {
        font-size: 3.4vw;
        margin-bottom: 4.1vw;
    }

    .page_about_inheritance_child .target_note {
        font-size: 3.3vw;
        margin-top: 4.6vw;
    }

    .page_about_inheritance_child .check_list li {
        padding: 3.6vw 3.6vw 3.6vw 11.3vw;
        margin-bottom: 2.1vw;
        background-position: 3.1vw center;
        background-size: 4.6vw;
        font-size: 3.4vw;
    }

    .page_about_inheritance_child .num_list li {
        padding: 4.1vw 4.1vw 4.1vw 14.9vw;
        margin-bottom: 2.6vw;
        font-size: 3.4vw;
    }

    .page_about_inheritance_child .num_list li::before {
        left: 3.6vw;
        width: 7.7vw;
        height: 7.7vw;
        font-size: 3.4vw;
    }

    .page_about_inheritance_child .num_list li .num_title {
        font-size: 3.8vw;
        margin-bottom: 2.1vw;
    }

    .page_about_inheritance_child .point_list {
        grid-template-columns: repeat(1, 1fr);
        gap: 3.1vw;
    }

    .page_about_inheritance_child .point_list li .point_box {
        padding: 4.6vw 5.1vw;
    }

    .page_about_inheritance_child .point_list li .point_box .box_title {
        font-size: 4.1vw;
        margin-bottom: 2.1vw;
    }

    .page_about_inheritance_child .point_list li .point_box .box_lead {
        font-size: 3.3vw;
    }

    .page_about_inheritance_child .form_button_box {
        margin-top: 7.2vw;
    }

    .page_about_inheritance_child .form_button_box .form_label {
        font-size: 3.4vw;
        margin-bottom: 3.1vw;
    }

    .page_about_inheritance_child .form_button_box .form_button {
        font-size: 4.4vw;
        padding: 5.1vw 10.3vw;
        padding-right: 14.9vw;
        box-shadow: 0 1.5vw 4.1vw rgba(59,101,165,0.35);
    }

    .page_about_inheritance_child .form_button_box .form_button::after {
        right: 6.2vw;
        width: 4.1vw;
        height: 4.1vw;
    }

    /* 相続診断結果例（健康診断ページ・SP） */

    .page_about_inheritance_child .section_result .section_heading {
        margin-bottom: 5.6vw;
    }

    .page_about_inheritance_child .section_result .result_image {
        max-width: 100%;
        box-shadow: 0 0.3vw 2.6vw rgba(0,0,0,0.1);
    }

    .page_about_inheritance_child .message_box {
        padding: 5.6vw 5.1vw;
    }

    .page_about_inheritance_child .message_box .message_title {
        font-size: 4.4vw;
        margin-bottom: 3.6vw;
    }

    .page_about_inheritance_child .message_box .message_text {
        font-size: 3.3vw;
        margin-bottom: 4.6vw;
    }

    .page_about_inheritance_child .message_box .message_name {
        font-size: 3.3vw;
    }

    .page_about_inheritance_child .section_common_cta .cont .list_box ul {
        grid-template-columns: repeat(1, 1fr);
    }
}
