@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){
  /*必要ならばここにコードを書く*/
}

.card-tags{
  margin-top:8px;
}

.card-tag{
  display:inline-block;
  margin-right:6px;
  margin-top:4px;
  padding:3px 8px;
  background:#f2f2f2;
  border-radius:4px;
  font-size:12px;
  color:#555;
}

.entry-card-content {
  display: flex;
  flex-direction: column;
}

.entry-card-title {
  min-height: 5.2em;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 8px;
  margin-bottom: 8px;
  overflow: visible;
}

.card-tag {
  display: inline-block;
  white-space: nowrap;
}

.entry-card-meta {
  margin-top: auto;
}



/* =========================================================
   女優別「記事一覧」ページ専用リスト
   画像左 / タイトル右 / シンプルな縦一覧
   ========================================================= */

/* =========================================================
   女優の記事一覧：[new_list] を検索結果と同じ見た目に
   ========================================================= */

.entry-content .new-entry-cards.widget-entry-cards .new-entry-card-link {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.entry-content .new-entry-cards.widget-entry-cards .new-entry-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;

    margin: 0 !important;
    padding: 20px 0 !important;

    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

/* 画像：元画像の縦横比をそのまま表示 */
.entry-content .new-entry-cards.widget-entry-cards .new-entry-card-thumb {
    float: none !important;
    flex: 0 0 31% !important;
    width: 31% !important;
    max-width: 270px !important;
    aspect-ratio: var(--junyu-image-ratio, 4 / 3) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.entry-content .new-entry-cards.widget-entry-cards .new-entry-card-thumb img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;
}

/* タイトル側 */
.entry-content .new-entry-cards.widget-entry-cards .new-entry-card-content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* タイトル */
.entry-content .new-entry-cards.widget-entry-cards .new-entry-card-title {
    display: block !important;

    margin: 0 0 8px !important;

    color: #333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;

    overflow: visible !important;
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
    white-space: normal !important;

    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    text-overflow: clip !important;
}

/* 不要なメタ情報は非表示 */
.entry-content .new-entry-cards.widget-entry-cards .new-entry-card-meta {
    display: none !important;
}


/* スマホ */
@media screen and (max-width: 700px) {

    .entry-content .new-entry-cards.widget-entry-cards .new-entry-card {
        gap: 12px !important;
        padding: 16px 0 !important;
    }

    .entry-content .new-entry-cards.widget-entry-cards .new-entry-card-thumb {
        flex: 0 0 47% !important;
        width: 47% !important;
        max-width: none !important;
    }

    .entry-content .new-entry-cards.widget-entry-cards .new-entry-card-title {
        font-size: 14px !important;
        line-height: 1.45 !important;
        margin-bottom: 6px !important;
    }
}

/* =========================================================
   トップページのサイドバーだけ
   最近のコメント・アーカイブ・カテゴリーを非表示
   ========================================================= */

/* 従来型ウィジェット */
.home #sidebar .widget_recent_comments,
.home #sidebar .widget_archive,
.home #sidebar .widget_categories,

/* IDで出力される場合 */
.home #sidebar [id^="recent-comments"],
.home #sidebar [id^="archives"],
.home #sidebar [id^="categories"],

/* ブロックウィジェットの場合 */
.home #sidebar .widget:has(.wp-block-latest-comments),
.home #sidebar .widget:has(.wp-block-archives),
.home #sidebar .widget:has(.wp-block-categories) {
    display: none !important;
}

/* =========================================================
   検索結果ページ：横型カード
   ========================================================= */

:is(.search, .category, .tag) .entry-card-wrap {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:is(.search, .category, .tag) .entry-card {
  display: flex !important;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0 !important;
  border-bottom: 1px solid #e5e5e5;
  background: transparent !important;
}

:is(.search, .category, .tag) .entry-card-thumb {
  float: none !important;
  flex: 0 0 42%;
  width: 42% !important;
  aspect-ratio: var(--junyu-image-ratio, 4 / 3) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  overflow: hidden !important;
}

:is(.search, .category, .tag) .entry-card-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

:is(.search, .category, .tag) .entry-card-content {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

:is(.search, .category, .tag) .entry-card-title {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

:is(.search, .category, .tag) .entry-card-snippet {
  display: none !important;
}

:is(.search, .category, .tag) .entry-card-meta {
  position: static !important;
  margin-top: 6px !important;
  text-align: left !important;
  font-size: 14px !important;
  color:#666 !important;
}

:is(.search, .category, .tag) .entry-card .cat-label {
  font-size: 12px !important;
}

/* スマホ */
@media screen and (max-width: 700px) {

  :is(.search, .category, .tag) .entry-card {
    gap: 12px;
    padding: 16px 0 !important;
  }

  :is(.search, .category, .tag) .entry-card-thumb {
    flex-basis: 47%;
    width: 47% !important;
  }

  :is(.search, .category, .tag) .entry-card-title {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
  }

  :is(.search, .category, .tag) .entry-card-meta {
    font-size: 13px !important;
  }
}

/* 検索結果：記事タイトルを省略せず全文表示 */
:is(.search, .category, .tag) .entry-card-title {
  display: block !important;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  white-space: normal !important;

  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  text-overflow: clip !important;
}

:is(.search, .category, .tag) .entry-card-title a {
  display: block !important;
  overflow: visible !important;
  max-height: none !important;
  white-space: normal !important;

  -webkit-line-clamp: unset !important;
  text-overflow: clip !important;
}

/* 検索結果：短いタイトルの余計な高さをなくす */
:is(.search, .category, .tag) .entry-card-title,
:is(.search, .category, .tag) .entry-card-title a {
  min-height: 0 !important;
  height: auto !important;
}

/* 検索結果：PCの画像サイズを競合寄せ */
@media screen and (min-width: 701px) {

  :is(.search, .category, .tag) .entry-card-thumb {
    flex: 0 0 31% !important;
    width: 31% !important;
    max-width: 270px !important;
  }

}
/* =========================================================
   一覧カード：タグを横並びにする
   ========================================================= */

.card-tags {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;

    width: 100% !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.card-tag {
    display: inline-flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;

    margin: 0 !important;
    white-space: nowrap !important;
}


/* =========================================================
   一覧カード：縦長画像だけ縦長用の表示枠に切り替える
   JSが .junyu-portrait-thumb を自動付与
   ========================================================= */

/* 検索・カテゴリー・タグ */
:is(.search, .category, .tag)
.entry-card-thumb.junyu-portrait-thumb {
    aspect-ratio: 1 / 1 !important;
}

/* 女優の記事一覧 [new_list] */
.entry-content
.new-entry-cards.widget-entry-cards
.new-entry-card-thumb.junyu-portrait-thumb {
    aspect-ratio: 1 / 1 !important;
}

/* portraitでも画像自体は切らない・歪めない */
:is(.search, .category, .tag)
.entry-card-thumb.junyu-portrait-thumb img,
.entry-content
.new-entry-cards.widget-entry-cards
.new-entry-card-thumb.junyu-portrait-thumb img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
}
/* =========================================================
   スマホ：タグを横並びで維持
   画像幅47%でも2タグが並びやすいように縮小
   ========================================================= */
@media screen and (max-width: 700px) {

    :is(.search, .category, .tag) .card-tags,
    .entry-content .new-entry-cards.widget-entry-cards .card-tags {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;

        width: auto !important;
        max-width: 100% !important;
        margin-top: 7px !important;
        margin-bottom: 7px !important;
        overflow: visible !important;
    }

    :is(.search, .category, .tag) .card-tag,
    .entry-content .new-entry-cards.widget-entry-cards .card-tag {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 2px 5px !important;

        font-size: 11px !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
    }
}


/* =========================================================
   一覧カード：アイキャッチ上の
   「個別作品」「まとめ記事」ラベルを非表示
   ========================================================= */
:is(.search, .category, .tag) .entry-card .cat-label,
.entry-content .new-entry-cards.widget-entry-cards .new-entry-card .cat-label {
    display: none !important;
}