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

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

/* ==================================================
   共通設定
================================================== */

/* 記事カード上のカテゴリラベルを非表示 */
.cat-label {
  display: none;
}

/* サイドバーのリスト文字 */
.widget-sidebar ul li a {
  font-size: 0.9em;
}

/* プロフィールの説明文 */
.nwa .author-box .author-description {
  font-size: 0.8em;
}

/* スマホではPC用ヘッダーメニューを非表示 */
@media screen and (max-width: 834px) {
  #navi,
  .navi {
    display: none !important;
  }
}


/* ==================================================
   通常の記事一覧カード
   カテゴリページ・検索結果など
================================================== */

.entry-card-wrap {
  display: block;
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #9de3e8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

/* 通常記事カードのタイトル */
.entry-card-title {
  color: #23395d;
  font-weight: 700;
  line-height: 1.5;
}

/* 日付 */
.entry-card-date {
  color: #888888;
  font-size: 0.8em;
}


/* ==================================================
   PC版：通常の記事一覧
================================================== */

@media screen and (min-width: 835px) {

  .entry-card {
    display: flex;
    align-items: center;
  }

  .entry-card .card-thumb,
  .entry-card-thumb {
    width: 170px !important;
    min-width: 170px !important;
    flex: 0 0 170px !important;
    margin-right: 24px !important;
  }

  .entry-card .card-content,
  .entry-card-content {
    flex: 1;
    min-width: 0;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .entry-card-thumb img,
  .entry-card .card-thumb img {
    width: 170px !important;
    height: auto !important;
  }
}


/* ==================================================
   トップページ：カテゴリ別エリア
================================================== */

/* トップページのカテゴリを1カラム表示 */
.home .list-columns {
  display: block !important;
  width: 100%;
}

/* カテゴリ同士の間隔 */
.home .list-columns > * {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 52px !important;
}

/* 最後のカテゴリだけ下余白を小さくする */
.home .list-columns > *:last-child {
  margin-bottom: 0 !important;
}

/* 各カテゴリブロック */
.home .list-columns > * {
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}


/* ==================================================
   トップページ：カテゴリ見出し
================================================== */

.home .list-columns .list-title {
  display: flex !important;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  width: 100%;
  margin: 0 0 16px;
  padding: 10px 15px;

  color: #ffffff;
  background: #74d4d9;
  border: 0;
  border-radius: 4px;

  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center !important;
}

/* Cocoon標準の線と疑似要素を非表示 */
.home .list-columns .list-title::before,
.home .list-columns .list-title::after,
.home .list-columns .list-title > *::before,
.home .list-columns .list-title > *::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
}


/* ==================================================
   トップページ：カテゴリ別記事カード
================================================== */

/* カードを囲むリンク */
.home .list-columns .new-entry-card-link,
.home .list-columns .new-entry-card-wrap {
  display: block;
  margin-bottom: 9px;
  color: #23395d;
  text-decoration: none;
}

/* カード本体 */
.home .list-columns .new-entry-card {
  position: relative;
  display: flex;
  align-items: flex-start;

  box-sizing: border-box;
  width: 100%;
  min-height: 116px;
  height: auto !important;
  padding: 8px;

  background: #ffffff;
  border: 1px solid #74d4d9;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* ホバー時 */
.home .list-columns .new-entry-card-link:hover .new-entry-card,
.home .list-columns .new-entry-card-wrap:hover .new-entry-card {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.09);
}

/* サムネイル */
.home .list-columns .new-entry-card-thumb {
  width: 155px !important;
  min-width: 155px !important;
  flex: 0 0 155px !important;
  margin-right: 14px !important;
}

.home .list-columns .new-entry-card-thumb img {
  display: block;
  width: 155px !important;
  height: 87px !important;
  object-fit: cover;
  border-radius: 3px;
}

/* タイトル側 */
.home .list-columns .new-entry-card-content {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 1px 23px 1px 0 !important;
}

/* タイトルを省略せず全文表示 */
.home .list-columns .new-entry-card-title {
  display: block !important;
  overflow: visible !important;

  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;

  color: #23395d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;

  white-space: normal !important;
  text-overflow: clip !important;
  word-break: normal;
  overflow-wrap: anywhere;

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

/* 右側の矢印 */
.home .list-columns .new-entry-card::after {
  right: 9px;
  color: #23395d;
}


/* ==================================================
   トップページ：カテゴリ別「もっと見る」
================================================== */

.home .list-columns .list-more-button-wrap {
  margin-top: 20px;
  text-align: center;
}

.home .list-columns .list-more-button {
  display: inline-block;
  min-width: 150px;
  padding: 8px 24px;

  color: #23395d;
  background: #ffffff;
  border: 1px solid #74d4d9;
  border-radius: 999px;

  font-size: 14px;
  text-decoration: none;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.home .list-columns .list-more-button:hover {
  color: #ffffff;
  background: #74d4d9;
  transform: translateY(-1px);
}


/* ==================================================
   新着記事の初期表示ちらつき防止
================================================== */

/* JavaScriptで移動する前は非表示 */
.home .list-new-entries {
  display: none !important;
}

/* 下へ移動してクラスが付いたら表示 */
.home .list-new-entries.bottom-new-entries {
  display: block !important;
}


/* ==================================================
   トップページ下部：新着記事
================================================== */

/*
 * JavaScriptで下へ移動した新着記事に
 * bottom-new-entries クラスが付与される
 */
.home .bottom-new-entries {
  clear: both;
  width: 100%;
  margin-top: 68px;
  padding-top: 0;
}


/* ==================================================
   新着記事：見出し
================================================== */

.home .bottom-new-entries .list-title {
  display: flex !important;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  width: 100%;
  margin: 0 0 18px;
  padding: 11px 16px;

  color: #ffffff;
  background: #74d4d9;
  border: 0;
  border-radius: 4px;

  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center !important;
}

/* Cocoon標準の線と疑似要素を非表示 */
.home .bottom-new-entries .list-title::before,
.home .bottom-new-entries .list-title::after,
.home .bottom-new-entries .list-title > *::before,
.home .bottom-new-entries .list-title > *::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
}


/* ==================================================
   新着記事：サムネイルなしの一覧
================================================== */

/* サムネイルを非表示 */
.home .bottom-new-entries .entry-card-thumb,
.home .bottom-new-entries .card-thumb {
  display: none !important;
}

/* 一覧を横線だけのデザインにする */
.home .bottom-new-entries .entry-card-wrap {
  display: block;
  margin: 0;
  padding: 0;

  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

/* 最初の記事の上にも横線 */
.home .bottom-new-entries .entry-card-wrap:first-of-type {
  border-top: 1px solid #e5e5e5;
}

/* ホバー時 */
.home .bottom-new-entries .entry-card-wrap:hover {
  background: #f7fcfc;
  box-shadow: none;
  transform: none;
}

/* 新着記事カード本体 */
.home .bottom-new-entries .entry-card {
  display: block !important;
  min-height: 0;
  padding: 16px 6px;
}

/* 内容部分を全幅にする */
.home .bottom-new-entries .entry-card-content,
.home .bottom-new-entries .card-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;

  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* タイトル */
.home .bottom-new-entries .entry-card-title {
  order: 2;
  display: block !important;
  overflow: visible !important;

  box-sizing: border-box;
  width: calc(100% - 125px);
  height: auto !important;
  max-height: none !important;
  margin: 0;
  padding-left: 18px;

  color: #4b4b4b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;

  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;

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

/* 抜粋文を非表示 */
.home .bottom-new-entries .entry-card-snippet {
  display: none !important;
}


/* ==================================================
   新着記事：投稿日・PV数
================================================== */

.home .bottom-new-entries .entry-card-meta,
.home .bottom-new-entries .entry-card-info {
  order: 1;

  box-sizing: border-box;
  width: 125px;
  margin: 2px 0 0 !important;
  padding: 0 !important;

  color: #999999;
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

/* 投稿日 */
.home .bottom-new-entries .post-date,
.home .bottom-new-entries .entry-card-date {
  display: inline-block !important;
  color: #999999;
  font-size: 13px;
  white-space: nowrap;
}

/* 管理者用PV数 */
.home .bottom-new-entries .admin-pv,
.home .bottom-new-entries .post-count {
  color: #888888;
  font-size: 12px;
}

/* 不要な情報を非表示 */
.home .bottom-new-entries .comment-count,
.home .bottom-new-entries .post-author {
  display: none !important;
}


/* ==================================================
   新着記事：「もっと見る」
================================================== */

.home .bottom-new-entries .list-more-button-wrap {
  margin-top: 24px;
  text-align: center;
}

.home .bottom-new-entries .list-more-button {
  display: inline-block;
  min-width: 160px;
  padding: 9px 26px;

  color: #23395d;
  background: #ffffff;
  border: 1px solid #74d4d9;
  border-radius: 999px;

  font-size: 14px;
  text-decoration: none;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.home .bottom-new-entries .list-more-button:hover {
  color: #ffffff;
  background: #74d4d9;
  transform: translateY(-1px);
}


/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 600px) {

  /* 見出し */
  .home .list-columns .list-title,
  .home .bottom-new-entries .list-title {
    padding: 9px 12px;
    font-size: 17px;
  }

  /* カテゴリ別カードのサムネイル */
  .home .list-columns .new-entry-card-thumb {
    width: 105px !important;
    min-width: 105px !important;
    flex-basis: 105px !important;
    margin-right: 10px !important;
  }

  .home .list-columns .new-entry-card-thumb img {
    width: 105px !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .home .list-columns .new-entry-card {
    min-height: 84px;
    padding: 6px;
  }

  .home .list-columns .new-entry-card-content {
    padding-right: 18px !important;
  }

  .home .list-columns .new-entry-card-title {
    font-size: 14px;
    line-height: 1.4;
  }

  /* 新着記事 */
  .home .bottom-new-entries {
    margin-top: 46px;
  }

  .home .bottom-new-entries .entry-card {
    padding: 14px 4px;
  }

  .home .bottom-new-entries .entry-card-content,
  .home .bottom-new-entries .card-content {
    display: block;
  }

  /* スマホでは日付をタイトルの上にする */
  .home .bottom-new-entries .entry-card-meta,
  .home .bottom-new-entries .entry-card-info {
    width: 100%;
    margin-bottom: 3px !important;
  }

  .home .bottom-new-entries .entry-card-title {
    width: 100%;
    padding-left: 0;
    font-size: 14px;
    line-height: 1.6;
  }

  /* 新着記事の投稿日をタイトルの下へ */
  /* 新着記事1件分 */
  .list-new-entries .new-entry-card {
    display: block !important;
    position: relative !important;
    padding: 18px 8px !important;
  }

  /* タイトル */
  .list-new-entries .new-entry-card-title {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    box-sizing: border-box;
  }

  /* 投稿日 */
  .list-new-entries .new-entry-card-date,
  .list-new-entries .post-date,
  .list-new-entries .entry-card-meta {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    clear: both !important;
    line-height: 1.5 !important;
  }

}


/* ==================================================
   カード紹介用テーブル
================================================== */

.wp-block-table.credit-table table {
  width: 100%;
  border-collapse: collapse;
}

/* 通常セルは白 */
.wp-block-table.credit-table tbody td {
  background: #ffffff !important;
}

/* 左列を見出し風にする */
.wp-block-table.credit-table tbody td:first-child {
  width: 35%;
  background: #dff3f7 !important;
  font-weight: bold;
}


/* ==================================================
   wide-listを指定したリスト
================================================== */

.article .wide-list > li {
  margin-bottom: 1.2em !important;
}

.article .wide-list > li:last-child {
  margin-bottom: 0 !important;
}


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

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

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