@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon
Version:    1.1.2
*/

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ============================================
   こひなた花ブログ カスタムホーム スタイル
   ============================================ */

/* ----- カテゴリーセクション ----- */
.home-category-section {
  margin-bottom: 48px;
}

.home-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #dd7575;
  padding-left: 12px;
  margin-bottom: 16px;
}

.home-category-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-emoji {
  font-size: 18px;
}

.home-category-more {
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.home-category-more:hover {
  opacity: 0.7;
}

/* ----- カード グリッド ----- */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .home-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media screen and (max-width: 480px) {
  .home-category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ----- カード本体 ----- */
.home-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.home-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.home-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.home-card:hover .home-card-thumb img {
  transform: scale(1.03);
}

.home-card-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.home-card-body {
  padding: 10px 12px 12px;
}

.home-card-title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: bold;
  color: #333;
  margin: 0 0 6px;
  /* 2行で切る */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card-date {
  font-size: 11px;
  color: #999;
  margin: 0;
}

/* ----- 広告エリア ----- */
.home-ad-between {
  margin: 24px 0 40px;
  text-align: center;
}

.home-ad-bottom {
  margin: 40px 0 16px;
  text-align: center;
}

/* ヘッダー直下の広告を非表示（UX改善） */
.widget-index-top {
  display: none !important;
}

/* ----- サイドバー改善 ----- */
.sidebar .widget-title {
  font-size: 16px;
  border-bottom: 2px solid #dd7575;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.sidebar .cat-item a {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.sidebar .cat-item a:hover {
  color: #dd7575;
}/* ============================================
   こひなた花ブログ カスタムホーム スタイル
   ============================================ */

.home-category-section { margin-bottom: 48px; }

.home-category-header {
  display: flex; align-items: center;
  justify-content: space-between;
  border-left: 4px solid #dd7575;
  padding-left: 12px; margin-bottom: 16px;
}

.home-category-title {
  font-size: 20px; font-weight: bold;
  color: #333; margin: 0;
  display: flex; align-items: center; gap: 8px;
}

.cat-emoji { font-size: 18px; }

.home-category-more {
  font-size: 13px; font-weight: bold;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s;
}
.home-category-more:hover { opacity: 0.7; }

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media screen and (max-width: 768px) {
  .home-category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media screen and (max-width: 480px) {
  .home-category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.home-card {
  display: block; text-decoration: none;
  color: inherit; border-radius: 8px;
  overflow: hidden; background: #fff;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.home-card-thumb {
  aspect-ratio: 16 / 9; overflow: hidden; background: #f5f5f5;
}
.home-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.3s;
}
.home-card:hover .home-card-thumb img { transform: scale(1.03); }

.home-card-no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center;
  justify-content: center; font-size: 36px;
}

.home-card-body { padding: 10px 12px 12px; }

.home-card-title {
  font-size: 13px; line-height: 1.5;
  font-weight: bold; color: #333; margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.home-card-date { font-size: 11px; color: #999; margin: 0; }

.home-ad-between { margin: 24px 0 40px; text-align: center; }
.home-ad-bottom { margin: 40px 0 16px; text-align: center; }

.widget-index-top { display: none !important; }

.sidebar .widget-title {
  font-size: 16px;
  border-bottom: 2px solid #dd7575;
  padding-bottom: 6px; margin-bottom: 12px;
}

.sidebar .cat-item a {
  display: flex; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 14px; color: #555; text-decoration: none;
}
.sidebar .cat-item a:hover { color: #dd7575; }

/* ============================================
   デザイン改善v2 - モバイル・広告・アーカイブ
   ============================================ */

/* カテゴリー見出しをおしゃれに */
.home-category-header {
  background: #fff8f8;
  border-radius: 12px;
  padding: 14px 16px !important;
  margin-bottom: 20px !important;
  border-left-width: 5px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.home-category-title {
  font-size: 18px !important;
  letter-spacing: 0.5px;
}
.home-category-more {
  font-size: 12px !important;
  background: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid currentColor;
}

/* カードを大きく・読みやすく */
.home-card {
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  border: none !important;
}
.home-card-title {
  font-size: 14px !important;
  line-height: 1.6 !important;
}
.home-card-body {
  padding: 12px 14px 14px !important;
}
.home-card-date {
  font-size: 11px !important;
  margin-top: 6px !important;
  color: #bbb !important;
}

/* PC：3列 */
.home-category-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

/* 広告を控えめに */
.home-ad-between,
.home-ad-bottom {
  opacity: 0.85;
  margin: 16px 0 28px !important;
}

/* アーカイブを目立たなく */
.widget_archive .widget-title,
.widget-sidebar-scroll-title {
  font-size: 14px !important;
  color: #999 !important;
  border-bottom-color: #ddd !important;
  font-weight: normal !important;
}
.widget_archive ul li a {
  font-size: 13px !important;
  color: #aaa !important;
  padding: 3px 0 !important;
}
.widget_archive ul li a:hover {
  color: #dd7575 !important;
}

/* タブレット：2列 */
@media screen and (max-width: 860px) {
  .home-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

/* モバイル */
@media screen and (max-width: 600px) {
  .home-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .home-category-header {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
  }
  .home-category-title {
    font-size: 15px !important;
  }
  .home-category-more {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .home-card-body {
    padding: 8px 10px 10px !important;
  }
  .home-card-title {
    font-size: 12px !important;
    -webkit-line-clamp: 2 !important;
  }
  .home-card-date {
    font-size: 10px !important;
  }
  .home-category-section {
    margin-bottom: 28px !important;
  }

  /* モバイル広告を控えめに小さく */
  .home-ad-between,
  .home-ad-bottom {
    margin: 12px 0 20px !important;
    font-size: 12px !important;
  }

  /* モバイルでアーカイブをさらに小さく */
  .widget_archive {
    display: none;
  }
}