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

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

/************************************
** トップページ
************************************/
a {
    text-decoration: none;
}


main.main {
    padding: 0 16px;
}

.header-container-in.hlt-top-menu {
    padding: 12px 0 0;
}

#footer {
    background-image: url("/mygarden/wp-content/uploads/2026/01/bg.jpg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    margin: 0;
    height: clamp(250px, 30vw, 500px);
    color: #fff;
}

/* TOPのカテゴリーメニュー */
h2.widget-content-top-title.main-widget-label.widget-title {
    display: none;
}

aside#categories-5 {
    margin: 0;
}

div#content-top-in ul {
    display: flex;
    font-size: 14px;
    gap: 20px;
    padding-left: 1rem;
}



.list-title {
    display: none;
}

.card-thumb img {
    border-radius: 10px;
}

z

/*サムネ上のカテゴリ表示*/
.cat-label {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    border: 1px solid #eee;
    font-size: 10px;
    color: var(--cocoon-white-color);
    background-color: rgba(51, 51, 51, 0.7);
    padding: 1px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 40px;
    text-align: center;
    margin-left: auto;
}

/*記事タイトル*/
.related-entry-card-title,
.entry-card-title {
    font-weight: 500;
}

/*もっと見るボタン*/
.list-more-button {
    display: block;
}


.widget-entry-cards:not(.large-thumb-on) .card-title {
    padding: 4px 0;
}

/* パンくずリスト */
.breadcrumb.sbp-main-before,
.breadcrumb.sbp-footer-before,
.breadcrumb.pbp-main-before,
.breadcrumb.pbp-footer-before {
    padding: 0 1em;
}

/* カテゴリリスト */
.current-cat {
    border-bottom: 3px solid #ba3939;
}

.widget_categories ul li a {
    padding: 0 10px;
}

/************************************
** サイドバー
************************************/
.sidebar {
    padding: 0 0 0 40px;
}

.sidebar h2,
.sidebar h3 {
    padding: 0;
}

select {
    color: #757575;
}

/*プロフィール表示*/
.author-box {
    border: none;
}

.nwa .author-box .author-thumb {
    width: 180px;
}

.nwa .author-box .author-name {
    text-align: left;
}

.author-box p {
    font-size: 14px;
    line-height: 1.8;
}

.author-box.border-element.no-icon.cf {
    padding: 1rem 0;
}

.nwa .author-box .author-content {
    padding: 1rem 0;
}

.nwa .author-box .sns-follow-buttons {
    justify-content: center;
    display: none;
}

/************************************
** 下層ページ表示
************************************/
/*パンくずリストアイコン非表示*/
.fa-fw {
    display: none;
}

/*フォルダ、カレンダーアイコン非表示*/
.fa-calendar,
.fa-folder-open {
    display: none;
}


/*目次修正*/
#toc {
    background-color: #f2f2f2;
}

/*見出し修正*/
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
    padding: 1rem 0;
    margin-bottom: 1em;
    border-left: 0;
}

h2.wp-block-heading {
    font-size: 28px;
    border-left: 4px solid #0a0a0a;
    padding: 1rem;
}

/*管理人表示の非表示*/
.author-info {
    display: none;
}


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

    .nwa .author-box .author-thumb {
        margin: 0;
    }
}

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

    h2.wp-block-heading {
        font-size: 20px;
    }

}

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

    main.main {
        padding: 0;
    }

    .search-box {
        width: 100%;
        margin: 1em auto 2em;
    }

    /*一覧ページのサムネイル一列*/
    #list {
        row-gap: 0;
    }

    .ect-vertical-card {
        flex-direction: column;
        padding: 16px;
    }

    .ect-vertical-card .entry-card-wrap {
        width: 100%;
        padding: 5px;
        line-height: 1.3;
        margin-bottom: 4px;
        border-bottom: 2px dotted var(--cocoon-x-thin-color);
    }

    .ect-vertical-card .entry-card-wrap .entry-card {
        display: flex;
        flex-direction: row;
    }

    .ect-vertical-card .entry-card-wrap .entry-card-thumb {
        width: 120px;
    }


    /*記事ページのサムネイル表示*/
    .entry-content {
        padding: 0 16px;
    }

    .entry-title {
        padding: 0.6em 16px;
    }

    .archive-title {
        padding: 0 0.8em;
    }

    .date-tags {
        padding: 0 0.8em 0.6em;
    }

    .sidebar h2,
    .sidebar h3 {
        font-size: 1.1em;
    }

    .nwa .author-box .author-thumb {
        margin: 0 auto;
    }

    .nwa .author-box .author-name {
        text-align: center;
    }
}