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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* 記事リストをカード風に整形 */
.category-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.category-posts article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s ease;
}
.category-posts article:hover {
  transform: translateY(-4px);
}
.category-posts img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.category-posts h3 {
  font-size: 1rem;
  margin: 12px;
}
.category-posts p {
  font-size: 0.9rem;
  color: #444;
  margin: 0 12px 12px;
}

/* Hero セクション */
.hero-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  color: white;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
}
.hero-overlay {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  width: 100%;
}
.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}
.hero-card p {
  margin: 0 0 1rem;
}
.hero-posts ul {
  margin: 0;
  padding-left: 1.2rem;
}
.hero-posts li {
  list-style: disc;
}
.hero-posts a {
  color: #fff;
  text-decoration: underline;
}

/* カテゴリーヒーロー用スタイル */
.hero-category {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.hero-category img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
}
.hero-category-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 8px;
}
.hero-category-desc {
  font-size: 0.9rem;
  margin: 0;
}

/* Cocoon デフォルトのカテゴリ見出しを非表示 */
.category-title, 
.archive-title {
  display: none !important;
}

/* プロフィールページ（ID=33）だけSNSシェア＆フォローを非表示 */
body.page-id-33 .sns-share,
body.page-id-33 .sns-follow {
  display: none !important;
}

