/* カテゴリーアイコンを表示
---------------------------------------*/
.c-postThumb {
    overflow: hidden;
    position: relative;
    vertical-align: middle;
}
.p-postList__meta_kanta {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.c-postThumb__cat_k {
    color: #fff;
    background: var(--color_main);
    display: inline-block;
    font-size: 10px;
    overflow: hidden;
    font-size: 10px;
    line-height: 2;
    padding: 0 0.75em;
}
.c-postThumb__cat_k:before {
    margin-right: 0.4em;
}

/* フッター調整
---------------------------------------*/
#body_wrap {
    position: relative;
    padding-bottom: 79px;
    box-sizing: border-box;
  }
.l-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: url;
    background: url(https://www.crear-ac.co.jp/wp-content/uploads/sites/20/2024/01/fp-footer-useful-bg.png) 0 0 no-repeat;
    background-size: cover;
    min-height: 59px;
}
.copyright {
    padding-top: 20px;
    color: #fff;
}

/* サイドバー
---------------------------------------*/
/* ボタン調整 */
.custom-sidebar-section ul {
    margin-bottom: 20px;
}
.custom-sidebar-section ul li a {
    display: block;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 20px;    
    background: linear-gradient(90deg, #79B233 25.66%, #B4E07E 70.89%, #D6F0B6 116.12%);
    color: #FFF;
}
.custom-sidebar-section h2 {
    width: 50%;
    margin: 0 auto;
}

/* アイキャッチ調整用
---------------------------------------*/
.p-postList__meta_kanta {
    right: 0;
    left: auto;
}
.p-postList__meta_kanta.dummy {
    top: 6%;
}
.c-postThumb__figure {
    position: relative;
    top: 0;
}
.p-postList__thumb {
    box-shadow: none;
}
.c-postThumb__cat_k {
    background-color: #79B232;
}

/* 続きを読む
---------------------------------------*/
.p-postList__excerpt span {
    background-color: #79B92D;
    display: block;
    border-radius: 20px;
    padding: 4px 20px;
    width: 120px;
    text-align: center;
    color: #fff;
    position: relative;
    left: 0;
    top: 0;
    text-indent: -8px;
    margin-top: 8px;
}
.p-postList__excerpt span::before {
    content: "";
    position: absolute;
    top: 48%;
    left: 98px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left: 8px solid #fff;
}

/* カテゴリー一覧用の見出しデザイン
---------------------------------------*/
.c-pageTitle__inner {
    width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 26px;
	text-align: center;
}
.c-pageTitle__inner::before, .c-pageTitle__inner::after {
	content: '';
	width: 70px;
	height: 3px;
	background-color: #79b233;
}
.c-pageTitle__inner::before {
	margin-right: 20px;
}
.c-pageTitle__inner::after {
	margin-left: 20px;
}
.c-pageTitle[data-style=b_bottom] .c-pageTitle__inner {
    border: none;
}
.c-pageTitle[data-style=b_bottom] {
    border: none;
}

/* 一覧ページ用の見出しデザイン
---------------------------------------*/
h2.p-postList__title {
    position: relative!important;
    padding: 10px 10px calc(1rem + 6px)!important;
    background: #D6F0B6!important;
}
h2.p-postList__title::before {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 100%;
    height: 100%;
    content: ''!important;
    border: 4px solid #000;
}

/* ページネーション
---------------------------------------*/
[class*="page-numbers"] {
	border-radius: 20px;
}
[class*=page-numbers].current {
	background-color: #79B92D;
}
/* 記事ページ用のページネーション調整 */
.p-pnLinks .-next .p-pnLinks__link,
.p-pnLinks .-prev .p-pnLinks__link {
    border-radius: 10px;
}

/* 記事ページ調整
---------------------------------------*/
.p-articleThumb__img {
    box-shadow: none;
}
img.p-articleThumb__img.lazyloaded {
    box-shadow: none;
}

/* 見出しデザイン
---------------------------------------*/
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
    background: linear-gradient(135deg,transparent 25%,#318a1b26 25%,#318a1b2b 50%,transparent 50%,transparent 75%,#318a1b24 75%,rgba(38,144,238,.05));
    border-left: solid 8px #54B451;
    background-size: 4px 4px;
}
.post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before{
    background: -webkit-linear-gradient(135deg, transparent 25%,#318a1b 25%,#318a1b 50%,transparent 50%,transparent 75%,#318a1b 75%,#318a1b);
    background-size: 4px 4px;
}
.post_content h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
    padding: 0 0 0 16px;
    border-left: solid 2px #318a1b;
}

/* クレアのヒトコト（見出し）
---------------------------------------*/
h2.wp-block-heading.is-style-section_ttl.hitokoto {
    font-weight: bold;
    padding: 0 3em;
    width: fit-content;
    margin: 70px auto 30px;
    text-align: center;
    position: relative;
  }
  h2.wp-block-heading.is-style-section_ttl.hitokoto::before, h2.wp-block-heading.is-style-section_ttl.hitokoto::after {
    content: '';
    background: #79b233;
    width: 2em;
    height: 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }
  h2.wp-block-heading.is-style-section_ttl.hitokoto::before {
    left: 0;
  }
  h2.wp-block-heading.is-style-section_ttl.hitokoto::after {
    right: 0;
  }


/* 資料請求アイコン
---------------------------------------*/
.p-inner-scroll {
    width: 64px;
    height: 197px;
    position: fixed;
    bottom: 92px;
    right: 18px;
    font-size: 10px;
    font-weight: 700;
    display: none;
    text-align: center;
    z-index: 999;
}
.p-inner-scroll a {
    display: block;
    margin-bottom: 13px;
}
.fade-in {
    animation: fadeInAnimation 1s forwards;
}
.fade-out {
    animation: fadeOutAnimation 1s forwards;
}
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}
@keyframes fadeOutAnimation{
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* スマートフォン調整
---------------------------------------*/
@media (max-width: 599px){
    /* フッター調整 */
    .l-footer{
        background: url(https://www.crear-ac.co.jp/wp-content/uploads/sites/20/2024/01/fp-useful-footer-bg-sp-img.png) 0 0 no-repeat;
        background-size: cover;
    }
    /* アイキャッチ調整用 */
    .-type-list .p-postList__link {
        display: block;
    }
    .p-postList__thumb.c-postThumb {
        width: 100%;
    }
    .-type-list .p-postList__body {
        width: 100%;
    }
    figure.c-postThumb__figure {
        margin-bottom: 19px;
    }
    /* カテゴリーボタン */
    .custom-sidebar-section ul {
        margin: 0 20px;
        margin-bottom: 20px;
    }
}