@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/*　見出し　*/

.article h2 {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 15px;
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
    color: #fff;
    text-align: left;
    letter-spacing: 2px;
    background-color: #0062a4;
    border-radius: 2px;
}

.article h2:before {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-block;
    width: 130px;
    height: 100%;
    content: "";
    background-image: url(./img/head_dot.png);
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 599px) {
    .article h2 {
        font-size: 20px;
    }
}

/*　共通　*/

.main, .sidebar {
    padding: 0;
    background-color: transparent;
}

/*　記事背景　*/
.article {
    padding: 20px 29px;
    background-color: #fff;
}

/*　↑　記事背景を白にしたことよる修正　*/
.category-content.article {
    padding: 0;
    background-color: transparent;
}

/* h1 */
.p-column__head_top_txt, .p-column__head_cate_txt {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

@media screen and (max-width: 599px) {
    .p-column__head_top_txt, .p-column__head_cate_txt {
        text-align: center;
        font-size: 23px;
    }
}

.p-column__head_top {
    position: relative;
    width: 100%;
    padding: 37px 0;
    margin-bottom: 7px;
    color: #fff;
    text-align: center;
    letter-spacing: 3px;
    background-color: #0062a4;
}

@media screen and (max-width: 1024px) {
    .p-column__head_top {
        box-sizing: border-box;
        padding: 37px 15px;
    }
}

@media screen and (max-width: 599px) {
    .p-column__head_top {
        padding: 25px 15px;
        font-size: 22px;
        line-height: 1.2;
        letter-spacing: 1px;
    }
}

.p-column__head_top::before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: inherit;
    height: 100%;
    vertical-align: middle;
    content: "";
    background-image: url(./img/head_dot_stripe.png);
    background-repeat: no-repeat;
    background-size: contain;
}

@media screen and (max-width: 1024px) {
    .p-column__head_top::before {
        display: none;
    }
}

.p-column__head_top::after {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: inherit;
    height: 100%;
    vertical-align: middle;
    content: "";
    background-image: url(./img/head_dot_stripe.png);
    background-repeat: no-repeat;
    background-size: contain;
    transform: scale(-1, -1);
}

@media screen and (max-width: 599px) {
    .p-column__head_top::after {
        width: 50%;
        background-position: right;
        background-size: cover;
    }
}

.p-column__head_top_sub {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 255, 255, 41%);
    text-align: center;
}

@media screen and (max-width: 599px) {
    .p-column__head_top_sub {
        font-size: 16px;
    }
}

/* 検索窓 */
.wp-block-search__inside-wrapper {
    margin: 0 auto;
}

.search-box {
    margin-top: 0;
}

/* カテゴリー見出し */
.p-column__head_cate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

@media screen and (max-width: 599px) {
    .p-column__head_cate {
        gap: 3px;
        margin-right: 13px;
    }
}

.p-column__head_cate_icon {
    width: 40px;
    height: auto;
}

@media screen and (max-width: 599px) {
    .p-column__head_cate_icon {
        width: 30px;
    }
}

/* h2 */
.p-column__head_dot, h2.p-column__head_dot {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 15px;
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
    color: #fff;
    text-align: left;
    letter-spacing: 2.5px;
    background-color: #0062a4;
    border-radius: 2px;
}

.p-column__head_dot::before {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-block;
    width: 130px;
    height: 100%;
    content: "";
    background-image: url("./img/head_dot.png");
    background-repeat: no-repeat;
    background-size: cover;
}

/*　記事詳細　h1　*/
.article h1.entry-title {
    position: relative;
    padding: 0 0 18px 0;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #0062a4;
}

.article h1.entry-title::before, .article h1.entry-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    content: '';
    background-color: #cfcfcf;
}

.article h1.entry-title::after {
    width: 125px;
    background-color: #0062a4;
}

/*　カテゴリ・タグ　*/
.entry-categories > .cat-link {
    padding: 0 8px 1px;
    font-size: 15px;
    color: #333;
    border: none;
    background-color: #e5e5e5;
}

.entry-tags .tag-link {
    padding: 0 8px 1px;
    font-size: 15px;
    color: #fff;
    border: none;
    background-color: #0062a4;
}

.entry-categories-tags {
    margin-bottom: 0;
}

.entry-categories-tags > div {
    margin-bottom: 0;
}

.date-tags {
    margin-bottom: 2px;
}

.ctdt-one-row > div {
    display: flex;
    gap: 5px;
}

.entry_label {
    text-align: right;
    margin-top: 3px;
    margin-right: 5px;
    width: 76px;
    font-size: 14px;
}

.entry-tag_wrap {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 5px;
}

.category-page-content.entry-content {
    margin-top: 0;
    margin-bottom: 20px;
}

.entry-content {
    margin-bottom: 0;
}

/*　パンくずリスト　*/
.p-column__breadcrumb {
    display: block;
    margin: 1em 0.4em 1.4em;
    width: 97%;
}

.breadcrumb.sbp-main-before, .breadcrumb.sbp-footer-before, .breadcrumb.pbp-main-before, .breadcrumb.pbp-footer-before {
    padding: 0;
    margin: 1em 0.4em 1.4em;
    background-color: transparent;
}

/*　サイドバー・カテゴリー　*/
.widget_categories, .widget_popular_entries {
    background-color: #fff;
    border-radius: 6px;
}

.widget_categories ul {
    padding: 10px;
}

.sidebar h3 {
    padding: 5px 10px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #0062A4;
    text-align: center;
    background-color: #CEE6ED;
    border-radius: 6px 6px 0 0;
}

.widget_categories ul li a {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 15px;
    transition: .2s;
}

.cat-item:not(:last-child) > a::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 95%;
    height: 1px;
    margin: auto;
    content: '';
    background-color: #E0E0E0;
}

.cat-item > a::after {
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: auto;
    content: "";
    border-top: 2px solid #C6C6C6;
    border-right: 2px solid #C6C6C6;
    transition: 0.2s;
    transform: rotate(45deg);
}

.widget_categories ul li a:hover {
    opacity: 0.7;
    background-color: #fff;
}

.widget_categories ul li a:hover::after {
    transform: translateX(8px) rotate(45deg);
}

/*　サイドバー・人気記事　*/
.widget-entry-cards .a-wrap {
    padding: 8px 5px;
    margin-bottom: 0;
}

.popular-entry-cards {
    padding: 4px 10px 6px;
}

.popular-entry-card-title {
    padding-top: 6px;
    font-size: 14px;
}

.widget-entry-cards figure {
    margin: 0;
    font-size: 0;
}

.widget-entry-card-content {
    margin-left: 130px;
}

.border-partition .a-wrap:last-of-type {
    border-bottom: none;
}

.border-partition .a-wrap:first-of-type {
    border-top: none;
}

/*　list-index.php（左サイドコンテンツ）　*/
.p-column__article_block {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 12px;
    margin-bottom: 30px;
}

/*　entry-card.php（投稿カード一つ一つ）　*/
.p-column__article_box {
    display: flex;
    flex-direction: column;
    width: calc((100% - 24px) / 3);
    background-color: #fff;
    border-radius: 4px;
    box-shadow: rgba(149, 157, 165, 20%) 0 8px 24px;
    text-decoration: none;
}

.p-column__article_box:hover .p-column__article_img {
    transform: scale(1.2);
}

.p-column__article_box:hover .p-column__article_txt {
    color: #0062A4;
}

.p-column__article_img_wrap {
    display: inline-block;
    overflow: hidden;
    width: 100%;
    height: 138px;
    border-radius: 4px 4px 0 0;
}

.p-column__article_img {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;
    transition-duration: .5s;
}

.p-column__article_img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.p-column__article_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 13px 13px;
    flex: 1;
}

.p-column__article_txt {
    display: inline-block;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition-duration: .5s;
}

.p-column__article_status {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.p-column__article_date {
    display: inline-block;
    padding: 0;
    margin-bottom: -7px;
    margin-right: -2px;
    width: 100%;
    text-align: right;
    color: #a3a3a3;
}

@media screen and (max-width: 599px) {
    .p-column__article_txt {
        font-size: 15px;
    }
}

.p-column__article_category_link {
    position: relative;
    display: inline-block;
    padding: 3px 11px 3px 28px;
    font-size: 13px;
    color: #0062A4;
    background-color: #E9F4F7;
}

@media screen and (max-width: 599px) {
    .p-column__article_category_link {
        padding: 3px 5px 3px 21px;
    }
}

.p-column__article_category_link::before {
    position: absolute;
    top: 1px;
    bottom: 0;
    left: 6px;
    width: 20px;
    height: auto;
    margin: auto;
    content: '';
    background-image: url("./img/tag_icon_blue.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@media screen and (max-width: 599px) {
    .p-column__article_category_link::before {
        left: 1px;
    }
}

/*　ページャー　*/
.b-pager {
    padding-top: 10px;
    font-size: 0;
    text-align: center;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: none;
    transition: .2s;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,7%);

    &:hover {
        opacity: .7;
    }
}

@media screen and (max-width: 599px) {
    .page-numbers {
        width: 50px;
        height: 50px;
    }
}


.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-size: 14px;
    color: #fff;
    border: none;
    background: none repeat scroll 0 0 #0062a4;
    pointer-events: none;
}

.next.page-numbers,
.prev.page-numbers {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 83px;
    font-size: 14px;
    color: #0062a4 !important;
    text-decoration: none;
    background: none repeat scroll 0 0 #deeef9 !important;
    border-radius: 3px;
    transition: .2s;

    &:hover {
        opacity: .7;
    }

    &::before {
        position: absolute;
        top: 15px;
        display: inline-block;
        width: 17px;
        height: 17px;
        content: '';
        background-image: url("/img/scrapped-car-dealer/arrow_blue.png");
        background-size: contain;
        /*@media screen and (max-width: 599px) {*/
        /*    display: none;*/
        /*}*/
    }
}

@media screen and (max-width: 599px) {
    .next.page-numbers,
    .prev.page-numbers {
    display: none;
    }
}

.prev.page-numbers {
    padding: 8px 5px 8px 25px;
    margin-right:10px;

    &::before {
        left: 14px;
        transform: scale(1, 1);
    }
}

@media screen and (max-width: 599px) {
    .prev.page-numbers {
        padding: 7px;
        margin-right:5px;
    }
}

.next.page-numbers {
    padding: 8px 25px 8px 5px;
    margin-left:10px;

    &::before {
        right: 14px;
        transform: scale(-1, 1);
    }
}

@media screen and (max-width: 599px) {
    .next.page-numbers {
    padding: 7px;
    margin-left:5px;
    }
}

.pagination-next-link {
    display: none;
}

@media screen and (max-width: 599px) {
.pagination-next-link {
    display: block;
    background-color: #0062a4;
    color: #fff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,7%); /*「次のページ」部分の影*/
    }
}

.b-pager__counter {
    color: #858585;
    text-align: center;
}

/*　記事詳細　*/
.eye-catch, .eye-catch img {
    width: 100%;
}

@media screen and (max-width: 599px){
    .article {
        padding: 18px 12px 25px;
    }
}

.rect-vertical-card .related-list {
    justify-content: flex-start;
    gap: 20px 12px;
}

.p-column__entry-categories-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
}

@media screen and (max-width: 599px){
    .p-column__entry-categories-wrap {
        margin-bottom: 0;
    }
}

.entry-categories-tags.ctdt-one-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*　次の記事　前の記事　*/
.prev-post-title, .next-post-title {
    font-size: 15px;
}

.pager-post-navi.post-navi-square {
    gap: 10px 30px;
}

.pager-post-navi.post-navi-square a {
    padding: 20px;
    background-color: #ebeced;
}

.pager-post-navi a.prev-post .prev-post-title {
    margin-left: 20px;
}

.pager-post-navi a.next-post .next-post-title {
    margin-right: 20px;
}

.pager-post-navi a.prev-post, .pager-post-navi a.next-post {
    position: relative;
    transition: .2s;
}

.pager-post-navi a.prev-post:hover, .pager-post-navi a.next-post:hover {
    opacity: .7;
}

.pager-post-navi a.prev-post::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    margin: auto;
    content: '';
    width: 6px;
    height: 6px;
    border: 0;
    border-top: solid 2px #333;
    border-left: solid 2px #333;
    transform: rotate(-45deg);
    transition: .2s;
}

.pager-post-navi a.prev-post:hover::before {
    left: 10px;
    opacity: .7;
}

.pager-post-navi a.next-post::before {
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    margin: auto;
    content: '';
    width: 6px;
    height: 6px;
    border: 0;
    border-top: solid 2px #333;
    border-right: solid 2px #333;
    transform: rotate(45deg);
    transition: .2s;
}

.pager-post-navi a.next-post:hover::before {
    right: 10px;
    opacity: .7;
}

/*　関連記事　*/
.related-entry-card, .entry-card {
    display: flex;
    flex-direction: column;
    font-size: 0;
}

/* プロフィール */
.author-description > p {
    font-size: 13px;!important
}

/*　目次　*/

.toc-list.open li::marker {
    color: #0062a4;
    font-weight: bold;
}

/*　小さい文字対策　*/

.post-date, .post-update, .post-author, .amp-back, .entry-category {
    font-size: 14px;
}

.wp-element-caption {
    font-size: 14px;
}

blockquote cite {
    font-size: 14px;
}

/*　フォーマット　*/

.wp-block-preformatted {
    font-family: "Noto Sans JP";
}

.badge-grey, .badge-brown, .badge-yellow, .badge-green, .badge-blue, .badge-purple, .badge-pink, .badge-red, .badge, .ref, .reffer, .sankou {
    padding: 2px 6px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/

    main.main, div.sidebar {
        padding: 6px 9px;
    }

    /*　entry-card.php（投稿カード一つ一つ）のCSS　*/
    .p-column__article_box {
        width: calc((100% - 12px) / 2);
    }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
