@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Template: cocoon-master
Version: 1.1.3
*/

/************************************
** モバイルメニューボタン背景色
************************************/
.search-menu-button.menu-button,
.navi-menu-button.menu-button,
.logo-menu-button.menu-button,
.mobile-menu-buttons {
  background: #f7dbab; /* 背景色を統一 */
  color: #112536;
}
.search-menu-button.menu-button:hover,
.navi-menu-button.menu-button:hover,
.logo-menu-button.menu-button:hover {
  background: #eccf9f; /* ホバー時に少し暗めの色に変更 */
  color: #112536;
}

/************************************
** ポップアップ／レコメンド用スタイル
************************************/
.rating-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 16px 24px;
  z-index: 1000;
  display: inline-block;
  width: fit-content;
  transition: opacity 0.3s;
}
.rating-popup.hidden {
  display: none !important;
}
.rating-box p {
  margin-bottom: 8px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}
@media screen and (max-width: 480px) {
  .rating-box p {
    font-size: 12px;
    white-space: normal;
  }
}
.stars span {
  font-size: 20px;
  cursor: pointer;
  color: #ccc;
  margin: 0 2px;
  transition: color 0.2s;
}
.stars span:hover,
.stars span.active {
  color: gold;
}
.article-rating {
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.recommend-popup {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 12px 20px;
  z-index: 998;
  display: inline-block;
  text-align: center;
  font-size: 14px;
}
.recommend-popup.hidden {
  display: none !important;
}
.recommend-box p {
  font-weight: bold;
  margin-bottom: 6px;
}
.recommend-link {
  display: inline-block;
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
}

/************************************
** ループ内二段タイトル用
************************************/
.loop-subtitle {
  display: block;
  font-size: 0.85em;
  color: #666;
  margin-top: 0.2em;
}

/************************************
** カスタムフロントページ用レイアウト
**********************************/
/* ── ヒーローセクション ── */
.hero {
  background: url('/path/to/hero-bg.jpg') center/cover no-repeat;
  padding: 3em 1em;
  text-align: center;
  color: #fff;
}
.hero-inner h1 {
  font-size: 1.8rem;
  margin-bottom: .5em;
}
.hero-inner p {
  font-size: 1rem;
  margin-bottom: 1em;
}
.btn-primary {
  background: #0073aa;
  color: #fff;
  padding: .6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
}
.btn-primary:hover {
  background: #005f8d;
}

/* ── フィルタタブ ── */
.filter-tabs ul {
  display: flex;
  overflow-x: auto;
  padding: 0;
  margin: 1em 0;
  list-style: none;
  justify-content: flex-start;
}
.filter-tabs li {
  flex: 0 0 auto;
  margin-right: .5em;
  padding: .5em 1em;
  background: #eee;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}
.filter-tabs li.active {
  background: #0073aa;
  color: #fff;
}

/* ── グリッドレイアウト ── */
.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1em;
  margin-bottom: 2em;
}

/* ── カード ── */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform .2s;
  padding: 1em;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ── サムネイル ── */
.card-thumbnail,
.post-thumbnail {
  /* position: relative; ← 削除 */
  aspect-ratio: 1/1;
  overflow: hidden;
}
.card-thumbnail img,
.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}


/* ── カテゴリバッジ（cat-label） ── */
/* カテゴリバッジ（cat-label）共通スタイル */
.cat-label {
  display: inline-block;
  background: #1C2A49; /* Default background color */
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 9999px;
  margin: 0.4em auto 0.6em auto;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  max-width: 80%;
}

/* カテゴリIDごとの色分け (おしゃれなアクセントカラー) */
.cat-label-2  { background: #B08B4F !important; } /* ヴィンテージマスタード */
.cat-label-91 { background: #6E7F8F !important; } /* ダスティーブルー */
.cat-label-81 { background: #7B8D6F !important; } /* オリーブグリーン */
.cat-label-default { background: #A39E9D !important; } /* セージグレー */

/* ── カード本文テキスト ── */
.card-artist {
  font-size: 1rem;
  font-weight: 600;
  margin: .5em .6em 0;
}
.card-subtitle {
  font-size: .85rem;
  color: #666;
  margin: .2em .6em;
}
.card-title {
  font-size: 16px;
  margin: 5px 0 5px; /* 上の余白を縮小 */
}
.card-title a {
  color: #111;
  text-decoration: none;
}
.card-date {
  display: block;
  font-size: 0.65em;
  color: #bbb;
  margin: .5em .6em;
}




/************************************
** レスポンシブ：Tablet / Desktop
************************************/
/* Tablet (≥768px) */
@media screen and (min-width: 768px) {
  .hero {
    padding: 4em 2em;
  }
  .hero-inner {
    max-width: 720px;
    margin: 0 auto;
  }
  .filter-tabs ul {
    justify-content: center;
  }
  .post-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5em;
  }
  .card {
    padding: 1.5em;
  }
  .card > .cat-label {
    margin: 1em 0;
  }
  .card-artist {
    font-size: 1.05rem;
  }
  .card-subtitle {
    font-size: .9rem;
  }
}

/* Desktop (≥1024px) */
@media screen and (min-width: 1024px) {
  .hero-inner {
    max-width: 960px;
  }
  .post-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
  }
  .card {
    padding: 2em;
  }
  .card-artist {
    font-size: 1.1rem;
  }
  .card-subtitle {
    font-size: 1rem;
  }
}


/************************************
** 「もっと見る」ボタンスタイル
************************************/
.load-more-button {
  display: block;
  margin: 2em auto;
  padding: 8px 24px;
  background-color: transparent; /* 背景なし */
  color: #112536; /* ネイビー */
  border: none; /* 枠線なし */
  border-radius: 0;
  font-size: 0.9rem; /* 小さめ */
  font-weight: bold;
  text-align: center;
  text-transform: lowercase; /* 「more」など小文字統一 */
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-button:hover {
  text-decoration: underline;
}


/* 以下、ウィジェット内カスタムCSSの追加 */

/* モバイルメニューのボタンスタイル調整 */
.mobile-menu-buttons {
  background-color: #f7dbab;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.search-menu-button.menu-button,
.navi-menu-button.menu-button,
.logo-menu-button.menu-button {
  padding: 10px 15px;
  font-size: 1rem;
}

/* ヘッダー非表示 */
header.site-header {
  display: none !important;
}

/* sp-header-links 表示設定 */
.sp-header-links {
  display: flex !important;
  justify-content: space-around;
  background-color: #f7dbab; /* ★新しい色 */
  padding: 10px 0;
  color: #fff;
}

/* 本文余白リセット */
.entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* 画像フェードインアニメーション */
.fade-in-image {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* モバイルメニュー背景調整 */
.mobile-menu {
  background-color: #f7dbab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* カード・サムネイル・タブ・スライダー系スタイル */
.card-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-slider .card {
  scroll-snap-align: start;
  min-width: 250px;
  margin-right: 1em;
  flex-shrink: 0;
}

.tab-content {
  padding: 1em;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* スマホ時の微調整 */
@media screen and (max-width: 768px) {
  .mobile-menu-buttons {
    background-color: #fff;
  }
  .card {
    padding: 0.8em;
  }
  .filter-tabs li {
    padding: 0.4em 0.8em;
    font-size: 0.9rem;
  }
  .hero-inner h1 {
    font-size: 1.5rem;
  }
  .hero-inner p {
    font-size: 0.9rem;
  }
  header.site-header {
    display: none !important;
  }
  .header-in {
    display: none !important;
  }
  .post-cards {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6em;
  }
  .card-artist {
    font-size: 0.7rem; /* 少し小さく */
  }
  .card-subtitle {
    font-size: 0.6rem; /* 少し小さく */
  }
  .cat-label {
    font-size: 2.5vw; /* バッジ内の文字をさらに小さく */
    padding: 3px 6px; /* バッジのパディングも調整 */
  }
}

/* ── Cocoon親テーマの.cat-label上書き解除 ── */
.cat-label {
  position: static !important;
  top: auto !important;
  left: auto !important;
  border: none !important;
}
/* Adjust spacing between category badge and artist name */
/* Adjust spacing between category badge and artist name */
.card .cat-label {
  margin-bottom: 0.1em !important; /* Further reduce the margin below the badge */
}
/* ── PCヘッダー用ロゴサイズ調整 ── */
@media screen and (min-width: 1024px) {
  .site-header .logo img {
    width: 200px;          /* 明示的に幅を200pxに設定 */
    height: auto;          /* 高さは自動で調整 */
    object-fit: contain;   /* 画像の縮小をきれいに保つ */
  }
}
/* ── PC用ヘッダーロゴ画像強制縮小 ── */
@media screen and (min-width: 1024px) {
  .site-logo-image {
    width: 220px;   /* ロゴ幅を220pxに固定 */
    height: auto;   /* 縦横比はそのまま */
    object-fit: contain; /* 画像のバランスを崩さず表示 */
  }
}
/* ── SPヘッダー：ロゴリンクにも背景色適用 ── */
.logo-menu-button.menu-button,
.logo-menu-button.menu-button .menu-button-in {
  background: #f7dbab;
}
.entry-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.header-container,
#header,
#navi {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ナビゲーション下に少しだけ間を空ける（自然な区切り） */
#navi {
  padding-bottom: 5px !important;
}
/* ── グローバルナビ下の無駄な余白を完全に削除 ── */
.menu-top {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── コンテンツエリア（#main, #content, .content）のトップ余白もリセット ── */
#main,
#content,
.content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ヘッダーの背景色を微調整 */
.header-container {
  background-color: #F7EFE5 !important;
}
/* ────────────────
   Spotify固定ウィジェット＋閉じるボタン
──────────────── */
#spotify-fixed-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: none;
  padding-right: 48px; /* 閉じるボタンのスペース */
}

#spotify-fixed-widget iframe {
  display: block;
  width: 100%;
  height: 80px;
  border: none;
}

/* 閉じるボタンのスタイル */
#spotify-close-button {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

#spotify-close-button:hover {
  background: rgba(0, 0, 0, 0.7);
}