@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){
  /*必要ならばここにコードを書く*/
}
/* ===== 葬儀社カード 共通 ===== */
.entry-content .funeral-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.entry-content .funeral-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.entry-content .funeral-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.entry-content .funeral-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;           /* 画像が無い/サイズバラつき対策 */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.entry-content .funeral-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 8px;
  padding-left: 10px;
  border-left: 6px solid #3f5c5c; /* サイトのトーンに合わせた色 */
}

.entry-content .star-rating {
  color: #f5b301;
  font-size: 1.1rem;
  line-height: 1;
  margin: .25rem 0 .4rem;
}
.entry-content .star-rating .star-score {
  margin-left: 6px;
  color: #333;
  font-size: .9rem;
}

.entry-content .funeral-badge {
  display: inline-block;
  background: #3f5c5c;
  color: #fff;
  border-radius: 6px;
  padding: .25rem .55rem;
  font-size: .9rem;
  margin: .25rem 0 .5rem;
}

.entry-content .funeral-excerpt {
  color: #333;
  font-size: .95rem;
  line-height: 1.65;
  margin: 6px 0 12px;
}

/* ボタン行 */
.entry-content .funeral-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.entry-content .funeral-cta-row .btn {
  flex: 1 1 160px;
  display: inline-block;
  text-align: center;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.entry-content .funeral-cta-row .btn-primary {
  background: #3f5c5c;
  color: #fff;
}
.entry-content .funeral-cta-row .btn-primary:hover {
  filter: brightness(1.05);
}
.entry-content .funeral-cta-row .btn-outline {
  background: #fff;
  color: #3f5c5c;
  border-color: #3f5c5c;
}
.entry-content .funeral-cta-row .btn-outline:hover {
  background: #f7fbfb;
}

/* ===== 絞り込みチップ（funeral_cardsのUI） ===== */
.entry-content .funeral-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.entry-content .funeral-filter .chip {
  display: inline-block;
  border: 1px solid #d8e2e2;
  border-radius: 999px;
  padding: .32rem .8rem;
  text-decoration: none;
  background: #fff;
  color: #3f5c5c;
  font-size: .9rem;
}
.entry-content .funeral-filter .chip.is-active,
.entry-content .funeral-filter .chip:hover {
  background: #3f5c5c;
  color: #fff;
  border-color: #3f5c5c;
}

/* ===== 詳細ページの体裁 ===== */
.entry-content .funeral-detail-wrap {
  display: grid;
  gap: 16px;
}
.entry-content .funeral-detail-thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.entry-content .funeral-detail-title {
  margin: 0;
}
.entry-content .funeral-detail-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.entry-content .funeral-detail-content p { margin: 0 0 1em; }

/* ===== レスポンシブ微調整 ===== */
@media (max-width: 480px) {
  .entry-content .funeral-card { padding: 14px; }
  .entry-content .funeral-title { font-size: 1.05rem; }
}
