@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){
  /*必要ならばここにコードを書く*/
}
/* ===== 猫トップ 微調整 ===== */

/* カードタイトルを途中で改行させない */
.cat-guide-card strong {
  font-size: 17px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1.5 !important;
}

/* 説明文 */
.cat-guide-card span {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

/* カード内の余白調整 */
.cat-guide-card {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* サイドバー検索ボタンをピンクに */
#sidebar input[type="submit"],
#sidebar button[type="submit"],
.widget_search input[type="submit"],
.search-form input[type="submit"] {
  background: #d17f9f !important;
  border-color: #d17f9f !important;
  color: #fff !important;
  border-radius: 12px !important;
}

/* 検索欄も少し柔らかく */
#sidebar input[type="search"],
.widget_search input[type="search"] {
  border-radius: 12px !important;
  border: 1px solid #efdbe3 !important;
}
/* ===== サイドバー カテゴリーをかわいく ===== */

#sidebar .widget_categories ul {
  list-style: none !important;
  padding: 8px 0 0 !important;
  margin: 0 !important;
}

#sidebar .widget_categories li {
  margin: 0 0 10px !important;
}

#sidebar .widget_categories li a {
  display: block;
  padding: 12px 16px;
  background: #fff4f7;
  border: 1px solid #f3d9e3;
  border-radius: 14px;
  color: #5f5559 !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: .2s;
}

#sidebar .widget_categories li:nth-child(2n) a {
  background: #f2f7fb;
}

#sidebar .widget_categories li:nth-child(3n) a {
  background: #f4f0fb;
}

#sidebar .widget_categories li:nth-child(4n) a {
  background: #eef8f3;
}

#sidebar .widget_categories li a:hover {
  transform: translateX(4px);
  box-shadow: 0 5px 12px rgba(130, 100, 115, 0.10);
  color: #d17f9f !important;
}
/* ===== 記事一覧カードを猫サイト風に ===== */

.entry-card-wrap {
  background: #ffffff !important;
  border: 1px solid #f1d8e1 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(130, 100, 115, 0.07) !important;
  margin-bottom: 24px !important;
  transition: .2s ease;
}

.entry-card-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(130, 100, 115, 0.11) !important;
}

/* サムネイル */
.entry-card-thumb img {
  border-radius: 18px !important;
}

/* 記事タイトル */
.entry-card-title {
  color: #514a4d !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}

/* 説明文 */
.entry-card-snippet {
  color: #70696c !important;
  line-height: 1.7 !important;
}

/* 日付など */
.entry-card-meta,
.post-date {
  color: #9a8f93 !important;
}

/* カテゴリーラベル */
.cat-label {
  background: #d17f9f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 4px 9px !important;
}

/* サイドバーのアーカイブ見出しも統一 */
#sidebar .widget_archive .widget-title,
#sidebar .widget_archive h3 {
  background: #d17f9f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  text-align: center;
}

/* アーカイブの中身 */
#sidebar .widget_archive ul {
  list-style: none !important;
  padding-left: 0 !important;
}

#sidebar .widget_archive li a {
  display: block;
  background: #fff4f7;
  border: 1px solid #f3d9e3;
  border-radius: 14px;
  padding: 12px 16px;
  color: #5f5559 !important;
  text-decoration: none !important;
}
/* ===== 記事本文 猫サイト最終調整 ===== */

/* H2見出し */
.entry-content h2 {
  background: #fff3f7 !important;
  color: #5b5256 !important;
  border-left: 7px solid #d17f9f !important;
  border-radius: 15px !important;
  padding: 16px 20px !important;
  margin-top: 42px !important;
  margin-bottom: 24px !important;
  font-weight: 700 !important;
}

/* H3見出し */
.entry-content h3 {
  color: #5b5256 !important;
  border-left: 5px solid #e5a6bd !important;
  border-bottom: 1px solid #f0d7e0 !important;
  padding: 10px 14px !important;
}

/* 目次 */
.toc {
  background: #fff8fa !important;
  border: 1px solid #efdbe3 !important;
  border-radius: 20px !important;
  padding: 22px 28px !important;
  box-shadow: none !important;
}

/* 本文 */
.entry-content p {
  line-height: 2 !important;
  color: #514c4e !important;
}

/* 関連記事見出し */
.related-entry-heading,
.related-entry-card-heading {
  color: #5b5256 !important;
}

/* 関連記事カード */
.related-entry-card-wrap {
  background: #fff !important;
  border-radius: 18px !important;
  padding: 12px !important;
  transition: .2s;
}

.related-entry-card-wrap:hover {
  background: #fff5f8 !important;
}

/* 投稿者表示を非表示 */
.author-info {
  display: none !important;
}
/* ===== スマホ最終調整 ===== */
@media screen and (max-width: 834px) {

  /* ヘッダー全体をコンパクトに */
  #header-container,
  .header {
    padding-top: 8px !important;
    padding-bottom: 10px !important;
  }

  /* ロゴを少し小さく */
  .logo-header img,
  .site-logo-image {
    width: 88% !important;
    max-width: 430px !important;
    height: auto !important;
  }

  /* 上の説明文 */
  .tagline,
  .tagline-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* お悩みエリア */
  .cat-nayami-guide {
    padding: 26px 14px !important;
    margin-top: 10px !important;
    border-radius: 24px !important;
  }

  .cat-guide-small {
    font-size: 15px !important;
  }

  .cat-nayami-guide h2 {
    font-size: 22px !important;
    margin-bottom: 24px !important;
  }

  /* 2列のまま */
  .cat-guide-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* カードをスマホ用に小さく */
  .cat-guide-card {
    min-height: 205px !important;
    padding: 18px 8px !important;
    border-radius: 22px !important;
  }

  .cat-guide-icon {
    font-size: 30px !important;
    margin-bottom: 12px !important;
  }

  .cat-guide-card strong {
    font-size: 16px !important;
    white-space: nowrap !important;
  }

  .cat-guide-card span {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* 5枚目のシニア猫を中央寄せ */
  .cat-guide-card:last-child {
    grid-column: 1 / 3;
    width: calc(50% - 6px);
    justify-self: center;
  }

  /* 下のモバイルメニューに隠れないよう余白 */
  body {
    padding-bottom: 70px !important;
  }
}
/* ===== スマホ お悩みカードをさらにコンパクトに ===== */
@media screen and (max-width: 834px) {

  .cat-guide-card {
    min-height: 170px !important;
    padding: 14px 8px !important;
  }

  .cat-guide-icon {
    font-size: 26px !important;
    margin-bottom: 8px !important;
  }

  .cat-guide-card strong {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }

  .cat-guide-card span {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  .cat-guide-grid {
    gap: 10px !important;
  }
}
/* ===== 猫サイト 最終仕上げ ===== */

/* スマホの記事一覧 */
@media screen and (max-width: 834px) {

  .entry-card-title {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .entry-card-wrap {
    border-radius: 20px !important;
    margin-bottom: 16px !important;
  }

  .entry-card-thumb img {
    border-radius: 16px !important;
  }

  .entry-card-meta,
  .post-date {
    font-size: 11px !important;
  }
}

/* フッターをサイト全体のピンクに統一 */
#footer,
.footer {
  background: #e89ab4 !important;
}

/* フッター文字 */
#footer,
#footer a,
.footer,
.footer a {
  color: #ffffff !important;
}
@media screen and (max-width: 600px) {
  .cat-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .cat-guide-card {
    min-width: 0;
  }

  .cat-guide-card strong {
    white-space: normal !important;
  }

  .cat-guide-card img {
    max-width: 100%;
    height: auto;
  }
}
@media screen and (max-width: 767px) {
  #cat-nayami .cat-guide-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  #cat-nayami .cat-guide-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #cat-nayami .cat-guide-card strong {
    position: static !important;
    display: block !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  #cat-nayami .cat-guide-card span {
    display: block !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }
}