@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){
  /*必要ならばここにコードを書く*/
}


/* PC表示：サイドバーを左側にする */
@media screen and (min-width: 1024px) {
  .content-in {
    flex-direction: row-reverse;
  }
}

/* トップページの記事一覧：サムネイルを250×150pxにする */
@media screen and (min-width: 1024px) {
  .entry-card-thumb {
    width: 250px;
    min-width: 250px;
    height: 150px;
  }

  .entry-card-thumb img {
    width: 250px;
    height: 150px;
    object-fit: cover;
  }
}



/* アイキャッチ未設定の記事は画像だけ透明にする */
.entry-card-thumb img.no-image {
  opacity: 0;
}



/* トップページの記事一覧からアクセス数表示を消す */
.entry-card .admin-pv {
    display: none !important;
}


/* トップページの記事一覧：カテゴリーラベルを非表示 */
.entry-card .cat-label {
    display: none !important;
}














/* PC: expand content to 950px; preserve sidebar and mobile layout. */
@media screen and (min-width: 1256px) {
  body:not(.no-sidebar) #content-in {
    width: 1406px;
    max-width: 100%;
  }

  body:not(.no-sidebar) #content-in > .main {
    width: calc(100% - 396px);
  }
}

/* PC: front-page entry list and column borders. */
@media screen and (min-width: 1024px) {
  :is(.home,.mrf-list-context) #list > .entry-card-wrap ~ .entry-card-wrap {
    border-top: 2px solid #e0e0e0;
  }

  :is(.home,.mrf-list-context) #list .entry-card-title {
    font-family: Helvetica, Verdana, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2E90C5;
    line-height: 1.2;
    letter-spacing: 1px;
  }

  :is(.home,.mrf-list-context) #list .entry-card-info > .post-date {
    font-family: Helvetica, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #808080;
    line-height: 1.2;
  }

  :is(.home,.mrf-list-context) #list .entry-card-info > .post-comment-count {
    font-family: Helvetica, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #2E90C5;
  }

  :is(.home,.mrf-list-context) #list .entry-card-content {
    margin-left: 280px;
  }

  :is(.home,.mrf-list-context) #main,
  :is(.home,.mrf-list-context) #sidebar {
    border: 1px solid #e0e0e0;
  }
}

/* Desktop sidebar: match the legacy blog without changing mobile widgets. */
.ld-pc-sidebar { display: none; }
@media screen and (min-width: 1024px) {
  #content-in > #sidebar {
    box-sizing: border-box;
    width: 300px;
    padding: 15px;
    border: 0;
    background: #F8F8F8;
  }
  .ld-pc-sidebar { display: block; }
  .ld-legacy-sidebar { display: none; }
  .ld-pc-sidebar,
  .ld-pc-sidebar input,
  .ld-pc-sidebar button,
  .ld-pc-sidebar .widget-entry-card {
    font-family: Helvetica, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #080000;
  }
  .ld-pc-sidebar a { color: #2E90C5; }
  .ld-widget {
    width: 100%;
    padding: 20px 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #D8D8D8;
    box-shadow: 0 1px 0 #FCFCFC;
  }
  .ld-widget:first-of-type { padding-top: 0; }
  #sidebar .ld-widget-title {
    font-family: Helvetica, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    line-height: 1.5;
    background: #F0F0F0;
    border: 1px solid #AAAAAA;
    padding: 5px 10px;
    margin: 0 0 5px;
  }
  .ld-widget p { margin: 1.5em 0 0; }
  .ld-search { display: flex; width: 100%; margin: 0; }
  .ld-search input {
    box-sizing: border-box;
    width: 75%;
    min-width: 0;
    height: 20px;
    padding: 0 5px;
    margin: 0;
    border: 1px solid #AAAAAA;
    border-radius: 0;
    background: #FFFFFF;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
  }
  .ld-search button {
    box-sizing: border-box;
    width: 25%;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 1px solid #AAAAAA;
    border-left: 0;
    border-radius: 0;
    background: linear-gradient(#FEFEFE, #F1F1F1);
    cursor: pointer;
  }
  .ld-archive-year { margin: 0 0 7px; padding: 0; border: 0; }
  .ld-archive-year > summary {
    display: block;
    color: #2E90C5;
    cursor: pointer;
    list-style: none;
  }
  .ld-archive-year > summary::-webkit-details-marker { display: none; }
  .ld-archive-toggle::after { content: "[+]"; }
  .ld-archive-year[open] > summary .ld-archive-toggle::after { content: "[-]"; }
  .ld-popular .widget-entry-cards .a-wrap {
    padding: 0;
    margin: 0 0 5px;
    border: 0;
    line-height: 1.5;
  }
  .ld-popular .widget-entry-card { min-height: 50px; }
  .ld-popular .widget-entry-cards figure {
    width: 40px;
    height: 40px;
    margin: 0 10px 10px 0;
  }
  .ld-popular .widget-entry-cards figure img {
    width: 40px;
    height: 40px;
    object-fit: cover;
  }
  .ld-popular .widget-entry-card-content { margin-left: 50px; padding: 0; }
  .ld-popular .widget-entry-card-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 10px;
  }
}
/* Keep the existing 950px main content with the narrower sidebar. */
@media screen and (min-width: 1256px) {
  body:not(.no-sidebar) #content-in { width: 1330px; }
  body:not(.no-sidebar) #content-in > .main { width: calc(100% - 320px); }
}

/* PC: 336px ad slots, adjacent columns, and text-only article links. */
@media screen and (min-width: 1024px) {
  body:not(.no-sidebar) #content-in {
    width: 1196px;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
  }
  #content-in > #sidebar {
    width: 366px;
    flex: 0 0 366px;
    margin: 0;
  }
  body:not(.no-sidebar) #content-in > .main {
    width: calc(100% - 366px);
    max-width: 830px;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    padding-left: 9px;
    padding-right: 9px;
  }
  .ld-ad-slot {
    width: 336px;
    height: 280px;
    outline: 1px dashed #AAAAAA;
    outline-offset: -1px;
  }
  :is(.home,.mrf-list-context) #list > .ld-text-link-card,
  :is(.home,.mrf-list-context) #list > .ld-text-link-card:hover {
    background: transparent;
    color: inherit;
    cursor: default;
  }
  :is(.home,.mrf-list-context) #list .ld-entry-title-link,
  :is(.home,.mrf-list-context) #list .ld-entry-comments-link {
    color: #2E90C5;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
  }
  :is(.home,.mrf-list-context) #list .ld-entry-title-link:hover,
  :is(.home,.mrf-list-context) #list .ld-entry-comments-link:hover {
    color: #197BB0;
    text-decoration: underline;
  }
}


/* Desktop banner aligned with the existing adjacent columns. */
.ld-desktop-banner { display: none; }
@media screen and (min-width: 1024px) {
  #header-container, #header-container-in, #header, #header-in {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
    height: auto;
  }
  #header-in {
    width: 1196px;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  #header-in > .logo-header,
  #header-in > .tagline { display: none; }
  #header-in > .ld-desktop-banner {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
  }
  .ld-desktop-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }
  #content { margin-top: 0; }
}

/* Hide featured-image category overlays on individual posts only. */
body.single .eye-catch .cat-label { display: none !important; }
