/* 共通 */


/* メインコンテンツ */
.l-page {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-top: 100px;
}

.content_space {
    width: calc(100% - 40px);
    margin: 0 auto;
}


.category_detail_hed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category_detail_hed_text,
.update_date_text {
    font-size: 14px;
    font-weight: 400;
    line-height: calc(20 / 14);
}

.update_date_text {
    display: flex;
    align-items: center;
    gap: 3px;
}

.update_date_text::before {
    content: "";
    background: url("../images/blog-detail/update_date_icon.png") center / cover no-repeat;
    width: 12px;
    height: 12px;
}

/* タグ */
.tag_list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 8px;
    margin-bottom: 40px;
}


.tag_item a {
    width: 104px;
    background: #fff;
    border-radius: 2px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 400;
    color: var(--main-color);
    line-height: calc(20 / 14);
    font-family: var(--main-font);
    overflow: hidden;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    transition: .5s;
}

.tag_icon {
    width: 16px;
    height: 16px;
    background: url("../images/blog-detail/tag_icon.png") center / cover no-repeat;
}

/* ホバー時 */

.tag_item a:hover {
    background: var(--gold-color);
    color: var(--point-color);
}

.tag_item a:hover .tag_icon {
    background: url("../images/blog-detail/tag_icon_on.png") center / cover no-repeat;
}

@media (min-width:768px) {

    .l-page {
        padding-top: 150px;
    }

    .content_space {
        max-width: 1236px;
        width: 100%;
        margin: 0 auto;
    }

    /* カラム調整 */
    .container {
        display: flex;
        align-items: flex-start;
    }

    .main-content {
        max-width: 870px;
        padding-bottom: 130px;
        margin-right: 80px;
        position: relative;
    }

    .main-content::after {
        content: "";
        position: absolute;
        background: #C0C0C0;
        width: 1px;
        height: 2775px;
        top: 0;
        right: -40px;
    }

    .category_detail_hed {
        margin-bottom: 50px;
    }

    /* タグ */
    .tag_list {
        justify-content: flex-start;
        gap: 16px;
        margin-bottom: 50px;
    }


    .tag_item a {
        width: 120px;
        padding: 4px 16px;
    }
}


/*---------
ブログ
----------*/

.section_content--blog_box {
    display: flex;
    flex-direction: column;
    /* gap: 40px; */
    padding-bottom: 80px;
}

.blog_article {
    display: flex;
    flex-direction: column;
    /* gap: 40px; */
}

.blog_heading_title_block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

/* 共通ブロック */
[class*="blog_heading"] {
    font-weight: 500;
}

.blog_heading--lv1 {
    font-size: 24px;
    line-height: calc(32 / 24);
    /* margin-bottom: 25px; */
}

.blog_heading--lv2 {
    font-size: 22px;
    line-height: calc(32 / 22);
    margin: 0 20px;
}

.blog_article h2 {
    font-size: 22px;
    line-height: calc(32 / 22);
    margin: 0 20px;
}

.blog_heading--lv3 {
    font-size: 20px;
    color: var(--point-color);
    line-height: calc(24 / 20);
    background: var(--gold-color);
    padding: 12px;
    margin-bottom: 25px;
}

.blog_article h3 {
    font-size: 20px;
    color: var(--point-color);
    line-height: calc(24 / 20);
    background: var(--gold-color);
    padding: 12px;
    margin-bottom: 25px;
}

.blog_heading--lv4 {
    font-size: 20px;
    line-height: calc(24 / 20);
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #7B682C;
    gap: 8px;
    padding: 20px 0;
    margin-bottom: 25px;
}

.blog_article h4 {
    font-size: 20px;
    line-height: calc(24 / 20);
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #7B682C;
    gap: 8px;
    padding: 20px 0;
    margin-bottom: 25px;
}

.blog_heading--lv5 {
    font-size: 18px;
    line-height: calc(22 / 18);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #7B682C;
    gap: 8px;
    padding-right: 16px;
    margin-bottom: 25px;
}

.blog_article h5 {
    font-size: 18px;
    line-height: calc(22 / 18);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #7B682C;
    gap: 8px;
    padding-right: 16px;
    margin-bottom: 25px;
}

/* 装飾 */

.blog_heading_decoration_span {
    display: block;
    background: url("../images/blog-detail/sp-frame_decoration_img.png") center / cover no-repeat;
    width: 100%;
    height: 12px;
}

.blog_heading_decoration_span:last-child {
    transform: scale(1, -1);
}

/* 疑似要素 */

.blog_heading--lv4::before {
    content: "";
    background: url("../images/blog-detail/bell_decoration_img.png") center / cover no-repeat;
    width: 100%;
    height: 28px;
    max-width: 24px;
}

.blog_article h4::before {
    content: "";
    background: url("../images/blog-detail/bell_decoration_img.png") center / cover no-repeat;
    width: 100%;
    height: 28px;
    max-width: 24px;
}

.blog_heading--lv5::before {
    content: "";
    background: var(--gold-color);
    width: 8px;
    height: 76px;
}

.blog_article h5::before {
    content: "";
    background: var(--gold-color);
    width: 8px;
    height: 76px;
}

.blog_detail_text {
    font-size: 18px;
    line-height: calc(36 / 18);
    font-weight: 400;
}

.blog_article p {
    font-size: 18px;
    line-height: calc(36 / 18);
    font-weight: 400;
}

.blog_photo {
    aspect-ratio: 328/219;
    max-width: 328px;
    width: 100%;
    margin: 0 auto;
}

.blog_photo_flex {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog_article table tr {
    display: flex;
    flex-flow: column nowrap;
}

.blog_article table tr td {
    width: 100% !important;
    margin-bottom: 20px;
}



@media (min-width:768px) {

    .section_content--blog_box {
        /* gap: 60px; */
        padding-bottom: 55px;
    }

    .blog_article {
        /* gap: 70px; */
    }

    .blog_heading_title_block {
        margin-bottom: 30px;
    }

    /* 共通ブロック */

    .blog_heading--lv1 {
        font-size: 36px;
        line-height: calc(54 / 36);
        margin-bottom: 50px;
    }

    .blog_heading--lv2 {
        font-size: 32px;
        line-height: calc(32 / 32);
        margin: 0 30px;
    }

    .blog_article h2 {
        font-size: 32px;
        line-height: calc(32 / 32);
        margin: 0 30px;
    }

    .blog_heading--lv3 {
        font-size: 28px;
        line-height: calc(24 / 28);
        padding: 20px 12px;
    }

    .blog_article h3 {
        font-size: 28px;
        line-height: calc(24 / 28);
        padding: 20px 12px;
    }

    .blog_heading--lv4 {
        font-size: 24px;
        line-height: calc(24 / 24);
        padding: 20px 12px;
    }

    .blog_article h4 {
        font-size: 24px;
        line-height: calc(24 / 24);
        padding: 20px 12px;
    }

    .blog_heading--lv5 {
        font-size: 20px;
        line-height: calc(24 / 20);
        padding-right: 8px;
    }

    .blog_article h5 {
        font-size: 20px;
        line-height: calc(24 / 20);
        padding-right: 8px;
    }

    /* 装飾 */

    .blog_heading_decoration_span {
        background: url("../images/blog-detail/pc-frame_decoration_img.png") center / cover no-repeat;
    }

    /* 疑似要素 */

    .blog_heading--lv5::before {
        height: 64px;
    }

    .blog_article h5::before {
        height: 64px;
    }

    .blog_detail_text {
        margin: 0 30px;
    }

    .blog_article p {
        margin: 0 30px;
    }

    .blog_photo {
        aspect-ratio: 720/481;
        max-width: 720px;
    }

    .blog_photo_flex {
        flex-direction: row;
        justify-content: center;
    }

    .blog_photo_flex .blog_photo {
        aspect-ratio: 395/264;
        max-width: 395px;
        margin: 0;
    }

    .blog_article table tr {
        display: flex;
        flex-flow: inherit;
    }

    .blog_article table tr td:nth-child(odd) {
        margin-right: 24px;
    }

    .blog_article table tr td {
        width: calc((100% - 24px) / 2) !important;
    }
}




/*---------
無料相談
----------*/

.section_content--consul {
    padding-bottom: 80px;
}

.consul_box {
    background: var(--gold-color);
    border-radius: 8px;
    padding: 40px 50px;
}

.consul_title {
    font-size: 20px;
    line-height: calc(28 / 20);
    font-weight: 500;
    color: var(--point-color);
    font-family: var(--main-font);
    text-align: center;
    margin-bottom: 25px;
}

.consul_text {
    font-size: 16px;
    line-height: calc(24 / 16);
    font-weight: 400;
    color: var(--point-color);
    font-family: var(--main-font);
    text-align: center;
    margin-bottom: 25px;
}


.cosul_info-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cosul_info_btn {
    width: 100%;
    height: 58px;
    max-width: 240px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(24 / 20);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    position: relative;
}

.cosul_info-item--contact .cosul_info_btn {
    background: #9D0505;
}

.cosul_info-item--tel .cosul_info_btn {
    background: #B99523;
    font-size: 24px;
}

.cosul_info-item--line .cosul_info_btn {
    background: #00B900;
}

.cosul_info_btn::before {
    content: "";
    width: 24px;
    height: 24px;
}

.cosul_info-item--contact .cosul_info_btn::before {
    background: url("../images/common/ic_contact.png") center / cover no-repeat;
}

.cosul_info-item--tel .cosul_info_btn::before {
    background: url("../images/common/ic_tel.png") center / cover no-repeat;
}

.cosul_info-item--line .cosul_info_btn::before {
    background: url("../images/common/ic_line.png") center / cover no-repeat;
}


@media (min-width:768px) {

    .section_content--consul {
        padding: 0;
    }

    .consul_box {
        padding: 40px 30px;
        margin-bottom: 55px;
    }

    .consul_title {
        font-size: 24px;
        line-height: calc(32 / 24);
    }

    .consul_text {
        font-size: 18px;
        line-height: calc(24 / 18);
    }

    .cosul_info-block {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cosul_info_btn_wrap {
        display: inline-block;
        background: #DFD8C3;
        border-radius: 8px;
        padding: 4px;
        box-shadow: 0 3px 0 #2F2F2F;
        transition: transform .35s ease, box-shadow .35s ease;
    }

    .cosul_info_btn {
        width: 240px;
        height: 54px;
        font-weight: bold;
        color: var(--main-color);
        line-height: calc(20 / 20);
        transition:
            transform 0.75s cubic-bezier(.19, 1, .22, 1),
            opacity 0.75s ease-out;
        opacity: 1;
    }

    .cosul_info-item--contact .cosul_info_btn,
    .cosul_info-item--tel .cosul_info_btn,
    .cosul_info-item--line .cosul_info_btn {
        background: linear-gradient(to bottom, #FFFFFF 0%, #DADADA 100%);
    }


    .cosul_info-item--contact .cosul_info_btn::before {
        background: url("../images/common/ic_contact_black.png") center / cover no-repeat;
    }

    .cosul_info-item--tel .cosul_info_btn::before {
        background: url("../images/common/ic_tel_black.png") center / cover no-repeat;
    }

    .cosul_info-item--line .cosul_info_btn::before {
        background: url("../images/common/ic_line_black.png") center / cover no-repeat;
    }

    /* ホバー時：押し込まれた感じ */
    .cosul_info_btn_wrap:hover {
        transform: translateY(3px);
        box-shadow: 0 0 0 #2F2F2F;
    }

    .cosul_info-item--contact .cosul_info_btn_wrap:hover {
        background: #9D0505;
    }

    .cosul_info-item--contact .cosul_info_btn_wrap:hover .cosul_info_btn {
        color: #fff;
        background: #9D0505;
        transform: translateY(2px);
    }

    .cosul_info-item--contact .cosul_info_btn_wrap:hover .cosul_info_btn::before {
        background: url("../images/common/ic_contact.png") center / cover no-repeat;
    }

    .cosul_info-item--tel .cosul_info_btn_wrap:hover {
        color: #fff;
        background: #665623;
    }

    .cosul_info-item--tel .cosul_info_btn_wrap:hover .cosul_info_btn {
        color: #fff;
        background: #665623;
    }

    .cosul_info-item--tel .cosul_info_btn_wrap:hover .cosul_info_btn::before {
        background: url("../images/common/ic_tel.png") center / cover no-repeat;
    }

    .cosul_info-item--line .cosul_info_btn_wrap:hover {
        color: #fff;
        background: #00B900;
    }

    .cosul_info-item--line .cosul_info_btn_wrap:hover .cosul_info_btn {
        color: #fff;
        background: #00B900;
    }

    .cosul_info-item--line .cosul_info_btn_wrap:hover .cosul_info_btn::before {
        background: url("../images/common/ic_line.png") center / cover no-repeat;
    }
}

/* ページャー */

.blog_pager.pc_in {
    display: none;
}

.blog_pager {
    margin-top: 40px;
}

.blog_pager {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

/* 共通リンク */
.blog_pager__link {
    display: flex;
    align-items: center;
    max-width: 40%;
    padding-bottom: 8px;
    border-bottom: 1px solid #979797;
}

.blog_pager__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.blog_pager__link--next {
    margin-left: auto;
    margin-right: 0;
}

.blog_pager__link--prev .blog_pager__icon {
    background: url("../images/blog-detail/pager_arrow-left.png") center / cover no-repeat;
}

.blog_pager__link--next .blog_pager__icon {
    background: url("../images/blog-detail/pager_arrow-right.png") center / cover no-repeat;
}

.blog_pager__label {
    font-size: 11px;
    font-weight: 400;
    color: #000;
    line-height: calc(14 / 11);
}

/* 前の記事（左寄せ） */
.blog_pager__link--prev,
.blog_pager__link--next {
    text-align: left;
}


@media (min-width:768px) {

    /* 非表示 */
    .blog_pager.sp_in {
        display: none;
    }

    .blog_pager.pc_in {
        display: flex;
    }

    /* 共通リンク */
    .blog_pager__link {
        max-width: 50%;
        gap: 10px;
    }

    .blog_pager__icon {
        width: 24px;
        height: 24px;
    }

    .blog_pager__label {
        font-size: 14px;
        line-height: calc(14 / 14);
    }

}

/*---------
サイドバー
----------*/

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 80px;
}

.sidebar_content_box--category,
.sidebar_content_box--article,
.sidebar_content_box--worries {
    margin: 0 20px;
    overflow: visible;
}

.sidebar_title {
    font-size: 20px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(29 / 20);
    text-align: center;
    background: var(--gold-color);
    padding: 8px 15px;
    margin-bottom: 25px;
}

/*-- カテゴリ --*/

.sidebar_category_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar_category_title {
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F4F4F4;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;

}

.sidebar_category_icon {
    display: block;
    max-width: 24px;
    height: 24px;
    width: 100%;
}

.sidebar_category_nav_text {
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    color: var(--main-color);
    line-height: calc(18 / 18);
    position: relative;
}

/* 矢印（閉） */
.sidebar_category_nav_text::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 8px;
    border-color: transparent transparent transparent #9D0505;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(90deg);
    transition: transform .45s ease;
}

/* 矢印（開） */
.sidebar_category_item.is-open .sidebar_category_nav_text::after {
    transform: rotate(-90deg);
}

.category_accordion_box {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    transition: max-height .45s ease, margin-top .45s ease, margin-bottom .45s ease;
}

/* 開いているときは is-open を親に付ける */
.sidebar_category_item.is-open .category_accordion_box {
    margin-top: 25px;
    margin-bottom: 25px;
    max-height: 500px;
}

.category_accordion_list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category_accordion_item a {
    font-size: 16px;
    font-weight: 500;
    color: var(--main-color);
    line-height: calc(23 / 16);
}

/*-- 関連記事 --*/

.sidebar_content_box--article {
    margin-bottom: 40px;
}

.article_title_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article_title_item .article_title_item_link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article_photo {
    aspect-ratio: 80 / 53;
    max-width: 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.article_photo img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    object-fit: cover;
    transform: translateY(-50%) translateX(-50%);
}

.article_title_item__title {
    font-size: 16px;
    font-weight: 400;
    color: var(--main-color);
    line-height: calc(24 / 16);
}

.sidebar_content_box--worries .tag_list {
    gap: 16px;
    margin: 0;
}


@media (min-width:768px) {

    .sidebar {
        position: relative;
        padding-bottom: 0;
        flex: 1;
    }

    .sidebar_follow {
        will-change: transform;
    }

    .sidebar_content_box--category,
    .sidebar_content_box--worries {
        margin: 0;
    }

    .sidebar_content_box--article {
        margin: 0 0 40px;
    }

    .sidebar_title {
        font-size: 20px;
        line-height: calc(29 / 20);
        white-space: normal;
        word-break: keep-all;
        padding: 8px 0;
    }

    .sidebar_content_box--category {
        margin-bottom: 60px;
    }

    .sidebar_content_box--worries .tag_list {
        justify-content: center;
    }
}