@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
*/

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}/* トップページの記事カードを整える */
.ect-vertical-card .entry-card-wrap {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* マウスを乗せたとき */
.ect-vertical-card .entry-card-wrap:hover {
    box-shadow: 0 5px 18px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* アイキャッチ画像 */
.ect-vertical-card .entry-card-thumb img {
    border-radius: 3px;
}

/* 記事タイトル */
.ect-vertical-card .entry-card-title {
    line-height: 1.55;
    font-weight: 600;
}/* 人気記事を見やすく整える */
.widget-entry-cards.ranking-visible .widget-entry-card {
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

/* 最後の記事の下線を消す */
.widget-entry-cards.ranking-visible .widget-entry-card:last-child {
    border-bottom: none;
}

/* 人気記事のタイトル */
.widget-entry-cards.ranking-visible .widget-entry-card-title {
    line-height: 1.45;
    font-size: 14px;
}

/* サムネイルとタイトルの間隔 */
.widget-entry-cards.ranking-visible .card-thumb {
    margin-right: 10px;
}

/* ランキング番号 */
.widget-entry-cards.ranking-visible .card-thumb::before {
    font-weight: 700;
}/* 人気記事の余白をコンパクトに再調整 */
.widget-entry-cards.ranking-visible .widget-entry-card {
    padding: 7px 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

/* 人気記事リンク内の余白調整 */
.widget-entry-cards.ranking-visible .widget-entry-card-link {
    padding: 0 !important;
}

/* 人気記事タイトル */
.widget-entry-cards.ranking-visible .widget-entry-card-title {
    line-height: 1.4;
    margin: 0;
}/* =================================
   トップページ カテゴリーナビ
================================= */

.cs-category-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0 24px;
}/* =================================
   トップページ 記事タイトル調整
================================= */

.ect-vertical-card .entry-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    margin-top: 8px;
    margin-bottom: 6px;
}

/* スマホ */
@media screen and (max-width: 600px) {
    .ect-vertical-card .entry-card-title {
        font-size: 15px;
        line-height: 1.5;
    }
}

.cs-category-nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 12px 10px;
    background: #171717;
    border-left: 4px solid #b8944d;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-category-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.18);
}

.cs-category-nav span {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.cs-category-nav small {
    display: block;
    margin-top: 4px;
    color: #d6bd84;
    font-size: 11px;
    line-height: 1.4;
}

/* スマホ */
@media screen and (max-width: 600px) {
    .cs-category-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .cs-category-nav a {
        min-height: 64px;
        padding: 9px 5px;
    }

    .cs-category-nav span {
        font-size: 14px;
    }

    .cs-category-nav small {
        font-size: 10px;
    }
}/* =================================
   目的から探す 見出し
================================= */

.cs-category-heading {
    margin: 6px 0 12px;
    padding: 0 0 9px 12px;
    border-left: 5px solid #b8944d;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.cs-category-heading strong {
    color: #171717;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.cs-category-heading span {
    color: #666666;
    font-size: 13px;
    font-weight: 400;
}

/* スマホ */
@media screen and (max-width: 600px) {
    .cs-category-heading {
        display: block;
    }

    .cs-category-heading strong {
        display: block;
        font-size: 18px;
    }

    .cs-category-heading span {
        display: block;
        margin-top: 3px;
        font-size: 11px;
    }/* =================================
   トップページ 記事カード高さ・日付位置を統一
================================= */

.ect-vertical-card .entry-card-wrap {
    height: 100%;
}

.ect-vertical-card .entry-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ect-vertical-card .entry-card-info {
    margin-top: auto;
    padding-top: 10px;
}
}/* 初めて中古車を買う方へ */
.cs-first-guide {
    margin: 18px 0 22px;
    padding: 16px 18px;
    background: #171717;
    border-left: 4px solid #b8944d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cs-first-guide-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cs-first-guide-text strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.cs-first-guide-text span {
    color: #dddddd;
    font-size: 13px;
    line-height: 1.6;
}

.cs-first-guide a {
    display: inline-block;
    flex-shrink: 0;
    padding: 10px 16px;
    background: #b8944d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cs-first-guide a:hover {
    opacity: 0.85;
}

/* スマホ */
@media screen and (max-width: 600px) {
    .cs-first-guide {
        display: block;
        padding: 15px;
    }

    .cs-first-guide a {
        display: block;
        margin-top: 12px;
        text-align: center;
    }
}
/* 初めての方向け案内の横幅調整 */
.cs-first-guide-text {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.cs-first-guide-text span {
    max-width: 520px;
}/* 新着記事 見出し */
.cs-new-heading {
    margin: 24px 0 14px;
    padding: 10px 14px;
    border-left: 4px solid #b8944d;
    border-bottom: 1px solid #dddddd;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.cs-new-heading strong {
    color: #171717;
    font-size: 20px;
    font-weight: 700;
}

.cs-new-heading span {
    color: #666666;
    font-size: 13px;
    font-weight: 400;
}

/* スマホ */
@media screen and (max-width: 600px) {
    .cs-new-heading {
        display: block;
    }

    .cs-new-heading strong {
        display: block;
        font-size: 18px;
    }

    .cs-new-heading span {
        display: block;
        margin-top: 3px;
        font-size: 11px;
    }
}/* ========================================
   サイドバー おすすめカー用品
======================================== */

.cs-side-products {
    margin-top: 0;
}

.cs-side-products-title {
    background: #171717;
    color: #ffffff;
    border-left: 4px solid #b8944d;
    padding: 14px 16px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.cs-side-products a {
    display: block;
    padding: 11px 10px;
    border-bottom: 1px solid #eeeeee;
    color: #171717;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cs-side-products a:last-child {
    border-bottom: none;
}

.cs-side-products a:hover {
    background: #f7f7f7;
}

.cs-side-products strong {
    display: block;
    margin-bottom: 3px;
    color: #171717;
    font-size: 14px;
    font-weight: 700;
}

.cs-side-products span {
    display: block;
    color: #777777;
    font-size: 11px;
    line-height: 1.5;
}

.cs-side-products a::after {
    content: "›";
    float: right;
    margin-top: -27px;
    color: #b8944d;
    font-size: 20px;
    font-weight: 700;
}/* ========================================
   サイドバー 中古車購入ガイド
======================================== */

.cs-side-buyguide {
    margin-top: 0;
}

.cs-side-buyguide-title {
    background: #171717;
    color: #ffffff;
    border-left: 4px solid #b8944d;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 700;
}

.cs-side-buyguide-body {
    padding: 16px 14px;
    border: 1px solid #eeeeee;
    border-top: none;
    background: #ffffff;
}

.cs-side-buyguide-body strong {
    display: block;
    color: #171717;
    font-size: 15px;
    margin-bottom: 8px;
}

.cs-side-buyguide-body p {
    margin: 0 0 14px;
    color: #555555;
    font-size: 13px;
    line-height: 1.7;
}

.cs-side-buyguide-body a {
    display: block;
    background: #b8944d;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 8px;
    transition: opacity 0.2s ease;
}

.cs-side-buyguide-body a:hover {
    opacity: 0.85;
    color: #ffffff;
}