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

/* =========================================================
   01. デザイントークン（カラー・フォント変数）
========================================================= */
:root {
  --bg-page: #f7f7f8;        /* ページ全体のベース背景 */
  --bg-surface: #ffffff;     /* コンテンツ・ヘッダー背景 */
  --bg-subtle: #fafafa;      /* ボックス・リード枠背景 */
  --text-main: #18181b;      /* メイン文字色（チャコールブラック） */
  --text-muted: #71717a;     /* サブ文字色（メタ情報・説明文） */
  --accent-red: #d9232e;     /* ブランドアクセント（ディープレッド） */
  --border-light: #e4e4e7;   /* 繊細な区切り線 */
  --border-control: #d4d4d8; /* ボタン等の枠線 */
  --font-base: "Inter", "Noto Sans JP", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* =========================================================
   02. ベースレイアウト・タイポグラフィ
========================================================= */
body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-base) !important;
  letter-spacing: 0.03em;
  line-height: 1.85;
}

h1, h2, h3, h4,
.entry-title,
.widget-title,
.related-entry-heading,
#navi .navi-in > ul > li > a,
.wp-block-button__link {
  font-family: var(--font-base) !important;
}

#main,
.main {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 40px 48px;
}

@media (max-width: 768px) {
  #main,
  .main {
    padding: 24px 18px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* 投稿本文の最大幅と可読性バランス */
body.single-post .entry-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.article .entry-content,
.article .entry-content p,
.article .entry-content li {
  font-weight: 500 !important;
  font-size: 16px;
}

.article .entry-content strong,
.article .entry-content b {
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .article .entry-content,
  .article .entry-content p,
  .article .entry-content li {
    font-size: 15px;
    line-height: 1.8;
  }
}

/* 画像のキャプション・説明文を非表示 */
.wp-block-image figcaption,
.wp-caption-text,
.image-caption,
.caption-box,
.eye-catch-caption {
  display: none !important;
}

/* =========================================================
   03. ヘッダー・グローバルナビゲーション
========================================================= */
#header-container,
#header-container .header,
#header-container .navi {
  background-color: var(--bg-surface) !important;
}

#header-container {
  border-bottom: 1px solid var(--border-light) !important;
  margin-bottom: 24px;
}

.tagline {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 6px !important;
  margin-bottom: 14px !important;
}

#navi {
  border-top: 1px solid #f0f0f2 !important;
  border-bottom: none !important;
}

#navi .navi-in > ul > li {
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

#navi .navi-in > ul > li > a {
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: var(--text-main) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  padding: 14px 20px !important;
  position: relative;
  background-color: transparent !important;
  transition: color 0.2s ease;
}

#navi .navi-in > ul > li > a:hover {
  color: var(--accent-red) !important;
  background-color: transparent !important;
}

#navi .navi-in > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--accent-red);
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#navi .navi-in > ul > li > a:hover::after,
#navi .navi-in > ul > li.current-menu-item > a::after,
#navi .navi-in > ul > li.current-category-ancestor > a::after {
  transform: scaleX(1);
}

#navi .sub-menu {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
  border-radius: 4px;
}

#navi .sub-menu li a {
  color: var(--text-main) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #f4f4f5;
}

#navi .sub-menu li a:hover {
  color: var(--accent-red) !important;
  background-color: var(--bg-subtle) !important;
}

/* =========================================================
   04. 記事タイトル・カテゴリ・見出し（H2 / H3 / ウィジェット）
========================================================= */
.entry-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-top: 12px;
  margin-bottom: 24px;
}

.entry-categories .cat-link {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  border: none !important;
}

/* 本文 H2 */
.article h2 {
  background: transparent !important;
  border: none !important;
  border-top: 2px solid var(--text-main) !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 16px 0 !important;
  margin: 56px 0 24px !important;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main) !important;
  position: relative;
}

.article h2::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--accent-red);
}

/* 本文 H3 */
.article h3 {
  background: transparent !important;
  border: none !important;
  border-left: 3px solid var(--accent-red) !important;
  padding: 2px 0 2px 14px !important;
  margin: 36px 0 16px !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main) !important;
}

/* 記事下・関連記事・サイドバーの見出し統一 */
#main .related-entry-heading,
#main .comment-title,
#main .widget-title,
#main .under-entry-content h2,
#main .widget h2,
#sidebar .widget-title,
#sidebar .widget h2,
.sidebar .widget-title,
.sidebar .widget h2 {
  background: transparent !important;
  border: none !important;
  border-top: 2px solid var(--text-main) !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 14px 0 !important;
  margin: 48px 0 22px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  color: var(--text-main) !important;
  position: relative;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#main .related-entry-heading::before,
#main .comment-title::before,
#main .widget-title::before,
#main .under-entry-content h2::before,
#main .widget h2::before,
#sidebar .widget-title::before,
#sidebar .widget h2::before,
.sidebar .widget-title::before,
.sidebar .widget h2::before {
  content: "" !important;
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--accent-red) !important;
}

#sidebar .widget-title,
#sidebar .widget h2,
.sidebar .widget-title,
.sidebar .widget h2 {
  padding: 12px 0 !important;
  margin: 0 0 18px 0 !important;
  font-size: 1.05rem !important;
}

#sidebar .widget-title::before,
#sidebar .widget h2::before,
.sidebar .widget-title::before,
.sidebar .widget h2::before {
  width: 40px;
}

/* =========================================================
   05. 記事内パーツ（リード枠・目次・YouTube・ハイライト索引）
========================================================= */
article.type-post .entry-content .wp-block-verse {
  font-family: var(--font-base) !important;
  font-weight: 500 !important;
  white-space: pre-wrap;
  background-color: var(--bg-subtle) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-light) !important;
  border-left: 3px solid var(--accent-red) !important;
  border-radius: 4px !important;
  padding: 20px 24px !important;
  margin: 28px 0 36px !important;
  font-size: 16px !important; /* 本文と同じ16pxにして700のつぶれを防ぐ */
  line-height: 1.85 !important;
  box-shadow: none !important;
}

article.type-post .entry-content .wp-block-verse a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* アーカイブアナウンス */
.latest-archive-notice {
  margin-bottom: 25px;
  padding: 14px 18px;
  background-color: #fff6f6;
  border-left: 5px solid #dd3333;
  font-size: 1.1em;
  color: #222;
  font-weight: bold;
  line-height: 1.6;
}

.latest-archive-notice a {
  color: #dd3333;
  text-decoration: underline;
}

.latest-archive-notice a:hover {
  color: #a00;
}

/* 目次（TOC） */
.toc {
  background-color: var(--bg-subtle) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px;
  padding: 24px 28px !important;
  margin: 36px 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.toc-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
  text-align: left !important;
}

.toc-list li {
  line-height: 1.6;
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.toc-list a:hover {
  color: var(--accent-red);
}

/* YouTube埋め込み（16:9固定・高速化プレイヤー対応） */
#main .entry-content .wp-block-embed,
#main .entry-content .wp-block-embed-youtube,
#main .entry-content .wp-block-embed.alignfull,
#main .entry-content .wp-block-embed.alignwide {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 28px auto !important;
  padding: 0 !important;
  border-radius: 6px;
  overflow: hidden;
  background-color: #000000;
}

#main .entry-content .wp-block-embed__wrapper::before {
  display: none !important;
  content: none !important;
}

#main .entry-content .wp-block-embed__wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

#main .entry-content .video-container {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 0 56.25% 0 !important;
  margin: 0 !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

#main .entry-content .video-container > iframe,
#main .entry-content .video-container > div,
#main .entry-content .video-container > a,
#main .entry-content .video-container > img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* 楽曲のハイライト（.yt-highlight-card） */
#main .entry-content .yt-highlight-card {
  background-color: var(--bg-subtle) !important;
  border: 1px solid var(--border-light) !important;
  border-left: 3px solid var(--text-main) !important;
  border-radius: 4px !important;
  padding: 20px 24px !important;
  margin: 20px 0 36px !important;
  box-shadow: none !important;
}

#main .entry-content .yt-highlight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin: 0 0 14px 0 !important;
}

#main .entry-content .yt-highlight-title-icon {
  filter: grayscale(100%) contrast(1.2);
  font-size: 0.95rem;
}

#main .entry-content .yt-highlight-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#main .entry-content .yt-highlight-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #ececee;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-main);
}

#main .entry-content .yt-highlight-item:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}

#main .entry-content .yt-highlight-item::before {
  content: none !important;
  display: none !important;
}

#main .entry-content .yt-timestamp {
  flex-shrink: 0;
  font-family: "Inter", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-red) !important;
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 3px;
  padding: 2px 7px;
  line-height: 1.4;
}

/* =========================================================
   06. ボタン・配信リンク・商品ボックス・広告
========================================================= */
/* 配信リンク群（複数並び：白背景＋枠線） */
article.type-post .entry-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px !important;
  margin: 24px 0 36px !important;
}

article.type-post .entry-content .wp-block-buttons .wp-block-button {
  margin: 0 !important;
  flex: 1 1 calc(50% - 10px);
  min-width: 160px;
}

@media (max-width: 480px) {
  article.type-post .entry-content .wp-block-buttons .wp-block-button {
    flex: 1 1 100%;
  }
}

#main article.type-post .entry-content .wp-block-buttons .wp-block-button .wp-block-button__link,
#main article.type-post .entry-content .wp-block-buttons .wp-block-button .wp-block-button__link.has-background,
#main article.type-post .entry-content .wp-block-buttons .wp-block-button .wp-block-button__link[style] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-control) !important;
  border-radius: 4px !important;
  padding: 11px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#main article.type-post .entry-content .wp-block-buttons .wp-block-button .wp-block-button__link:hover {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
  border-color: var(--text-main) !important;
  transform: translateY(-1px);
}

body #main article.type-post .entry-content .wp-block-buttons .wp-block-button:only-child .wp-block-button__link,
body #main article.type-post .entry-content .wp-block-buttons .wp-block-button:only-child .wp-block-button__link.has-background,
body #main article.type-post .entry-content .wp-block-buttons .wp-block-button:only-child .wp-block-button__link[style],
body #main article.type-post .entry-content .btn-wrap > a,
body #main article.type-post .entry-content a.btn {
  background: var(--text-main) !important;
  background-color: var(--text-main) !important;
  color: #ffffff !important;
  border: 1px solid var(--text-main) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ホバー時はディープレッドへ反転 */
body #main article.type-post .entry-content .wp-block-buttons .wp-block-button:only-child .wp-block-button__link:hover,
body #main article.type-post .entry-content .btn-wrap > a:hover,
body #main article.type-post .entry-content a.btn:hover {
  background: var(--accent-red) !important;
  background-color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* ボタン内の strong は背景透明＋白文字に固定（ホバー色を邪魔しない） */
body #main article.type-post .entry-content .wp-block-buttons .wp-block-button:only-child .wp-block-button__link strong,
body #main article.type-post .entry-content .btn-wrap > a strong,
body #main article.type-post .entry-content a.btn strong {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
}

/* 商品リンク枠のディスクガイド化 */
#main .product-item-box,
#main .easyLink-box,
#main .yyi-rinker-contents {
  background-color: var(--bg-subtle) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  padding: 20px !important;
  margin: 28px 0 40px !important;
  box-shadow: none !important;
}

#main .product-item-title a,
#main .easyLink-info-name a,
#main .yyi-rinker-title a {
  color: var(--text-main) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
}

#main .product-item-buttons a,
#main .shoplinkamazon a,
#main .shoplinkrakuten a,
#main .shoplinkyahoo a,
#main .easyLink-info-btn a,
#main .yyi-rinker-link {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-control) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  padding: 8px 14px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#main .product-item-buttons a:hover,
#main .shoplinkamazon a:hover,
#main .shoplinkrakuten a:hover,
#main .shoplinkyahoo a:hover,
#main .easyLink-info-btn a:hover,
#main .yyi-rinker-link:hover {
  background: var(--text-main) !important;
  color: #ffffff !important;
  border-color: var(--text-main) !important;
  opacity: 1 !important;
  transform: translateY(-1px);
}

/* 記事末尾 購買リンクボックス */
.alpha-artist-dig-box {
  margin: 2.5em 0;
  padding: 1.5em 1.6em;
  border: 1px solid #e2e5e9;
  border-left: 4px solid #333333;
  background-color: #f9fafb;
  border-radius: 4px;
}

.alpha-artist-dig-header {
  margin-bottom: 1em;
}

.alpha-artist-dig-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.25em;
}

.alpha-artist-dig-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1f2937;
}

.alpha-artist-dig-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alpha-artist-dig-list li {
  margin-bottom: 0.7em;
  padding-left: 1.2em;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.55;
}

.alpha-artist-dig-list li:last-child {
  margin-bottom: 0;
}

.alpha-artist-dig-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #6b7280;
  font-weight: bold;
}

.alpha-artist-dig-list a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.alpha-artist-dig-list a:hover {
  border-bottom-color: #2563eb;
}

/* 個別カスタムボタン・ショップバナー */
.amazon-music-unlimited-button {
  background-color: #050606;
  color: #fff !important;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.amazon-music-unlimited-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background-color: #1c2020;
}

.neon-blue-button strong {
  background: linear-gradient(135deg, #00A8E1 0%, #007bb6 100%) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-shadow: 0 0 15px rgba(0, 168, 225, 0.4);
  border: none !important;
  transition: 0.3s;
}

.amazon-shop-banner {
  border: 3px solid #eb525c;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amazon-shop-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 広告・CLS対策 */
.ad-container {
  min-height: 250px;
  text-align: center;
  margin: 1.5em 0;
}

@media (min-width: 768px) {
  .ad-container {
    min-height: 280px;
  }
}

.a8-ad {
  text-align: center;
}

.a8-ad strong {
  display: inline-block;
  margin-bottom: 10px;
}

.a8-ad a {
  display: block;
}

.a8-ad-1023 {
  display: initial;
}

.a8-ad-834 {
  display: none;
}

@media screen and (max-width: 834px) {
  .a8-ad-1023 {
    display: none;
  }
  .a8-ad-834 {
    display: initial;
  }
}

/* =========================================================
   07. SNSシェアボタン・前後記事ナビ・サイドバー
========================================================= */
.sns-share-buttons a,
.sns-share a,
.sns-follow a {
  background-color: #f4f4f5 !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.sns-share-buttons a:hover,
.sns-share a:hover,
.sns-follow a:hover {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
  border-color: var(--text-main) !important;
}

/* 前後の記事ナビ */
#main .pager-post-navi {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  margin-top: 40px;
}

#main .pager-post-navi a {
  color: var(--text-main) !important;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

#main .pager-post-navi a:hover {
  color: var(--accent-red) !important;
  background-color: transparent !important;
}

#main .pager-post-navi figure img {
  border-radius: 4px;
}

/* サイドバー枠 */
#sidebar,
.sidebar {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 8px;
  padding: 28px 24px !important;
  box-sizing: border-box;
}

/* =========================================================
   08. 関連記事・一覧カード・アーティスト一覧・ショートコード
========================================================= */
/* 関連記事・ウィジェットカードのグリッド化 */
.related-entries .related-list,
.widget-entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .related-entries .related-list,
  .widget-entry-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

#sidebar .widget-entry-cards,
.sidebar .widget-entry-cards {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.related-entry-card-wrap,
.widget-entry-card-wrap {
  width: 100% !important;
  margin: 0 !important;
  border: none !important;
}

.related-entry-card,
.widget-entry-card {
  display: flex;
  flex-direction: column;
}

.related-entry-card-thumb,
.widget-entry-card-thumb {
  width: 100% !important;
  float: none !important;
  margin-bottom: 10px !important;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.related-entry-card-thumb img,
.widget-entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-entry-card-wrap:hover img,
.widget-entry-card-wrap:hover img {
  transform: scale(1.04);
}

.related-entry-card-content,
.widget-entry-card-content {
  margin-left: 0 !important;
  padding: 0 !important;
}

.related-entry-card-title,
.widget-entry-card-title {
  font-size: 0.9rem !important;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
}

/* アーティスト一覧タグクラウド */
.tag-cloud-link {
  padding: 0.1em 0.3em;
  border-left: 5px solid #e9545f;
  background-color: #edf2f9;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
  text-decoration: none;
  color: #262626;
}

/* カテゴリ最新記事ショートコード */
.latest-subcat-box {
  margin: 2em 0;
  padding: 18px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background-color: #fcfcfc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.latest-subcat-label {
  margin-top: 0;
  margin-bottom: 14px;
  font-weight: 900;
  font-size: 1.15em;
  color: #111;
  line-height: 1.4;
}

.latest-subcat-link,
.latest-subcat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.latest-subcat-link:hover {
  opacity: 0.85;
}

.latest-subcat-link:hover .latest-subcat-title {
  color: #0073aa;
  text-decoration: underline;
}

.latest-subcat-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 130px;
  overflow: hidden;
  border-radius: 6px;
  background-color: #eee;
}

.latest-subcat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-subcat-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.latest-subcat-title {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.4;
  color: #222;
  margin-bottom: 6px;
  display: block;
}

.latest-subcat-excerpt {
  font-size: 0.88em;
  color: #666;
  line-height: 1.5;
  margin: 0 0 45px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.latest-subcat-date {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.8em;
  color: #888;
}

@media (max-width: 600px) {
  .latest-subcat-box {
    padding: 14px;
  }

  .latest-subcat-link,
  .latest-subcat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .latest-subcat-thumb {
    width: 100%;
    height: 180px;
  }

  .latest-subcat-content {
    position: static;
  }

  .latest-subcat-excerpt {
    margin-bottom: 35px;
  }

  .latest-subcat-date {
    position: static;
    text-align: right;
    display: block;
  }
}

/* =========================================================
   09. トップページ・インデックス一覧のマガジン化
========================================================= */
/* 1. ヘッダー下カルーセルのトーン統一 */
.carousel {
  background-color: transparent !important;
  padding: 0 0 20px !important;
  margin-bottom: 8px !important;
}

.carousel-entry-card {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  padding: 10px !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.carousel-entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-main) !important;
}

.carousel-entry-card-title {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: var(--text-main) !important;
}

/* 2. トップページのタブ切替（新着記事 / NEWS / REVIEW）のミニマル化 */
.index-tab-buttons {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light) !important;
  margin-bottom: 24px !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

.index-tab-buttons .index-tab-button {
  background-color: transparent !important;
  color: var(--text-muted) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  padding: 10px 18px !important;
  margin-bottom: -1px !important;
  transition: all 0.2s ease;
}

.index-tab-buttons .index-tab-button:hover {
  color: var(--text-main) !important;
}

.index-tab-buttons .index-tab-button.active {
  background-color: transparent !important;
  color: var(--text-main) !important;
  border-bottom: 2px solid var(--accent-red) !important;
}

@media (max-width: 834px) {
	.index-tab-buttons .index-tab-button {
		width: 100%;
	}
}

/* 3. インデックス記事一覧のグリッドレイアウト（1件目は大特集、2件目以降は2列カード） */
.list.ect-big-card-first,
.list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px 22px !important;
}

/* 1番目の記事（特集枠）と途中の広告・ウィジェット枠はすべて横幅100%（2列ぶち抜き）にする */
.list.ect-big-card-first > .entry-card-wrap:first-of-type,
.list > :not(.entry-card-wrap) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

@media (max-width: 600px) {
  .list.ect-big-card-first,
  .list {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* カード単体の構造リセット（縦型マガジンカード化） */
.entry-card-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.entry-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}

.entry-card-thumb {
  width: 100% !important;
  float: none !important;
  margin: 0 0 12px 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 9;
}

.entry-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.04);
}

.entry-card-content {
  margin-left: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 1番目の特集記事のタイトルは大きめに強調 */
.list.ect-big-card-first > .entry-card-wrap:first-of-type .entry-card-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin-bottom: 8px !important;
}

/* 2番目以降のグリッド記事タイトル */
.entry-card-title {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  color: var(--text-main) !important;
  margin: 0 0 8px 0 !important;
  transition: color 0.2s ease;
}

.entry-card-wrap:hover .entry-card-title {
  color: var(--accent-red) !important;
}

/* 抜粋文は1番目の特集記事のみ残し、2番目以降は非表示にしてスッキリさせる */
.entry-card-snippet {
  display: none !important;
}

.list.ect-big-card-first > .entry-card-wrap:first-of-type .entry-card-snippet {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
  margin-bottom: 10px !important;
}

/* 投稿日・メタ情報 */
.entry-card-meta {
  margin-top: auto !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}

/* 4. サムネイル上のカテゴリラベルを記事ページと統一 */
.cat-label {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  border: none !important;
  top: 10px !important;
  left: 10px !important;
}

/* 5. サイドバー内の記事カードは「左サムネ＋右タイトル」のコンパクト表示に最適化 */
#sidebar .widget-entry-card,
.sidebar .widget-entry-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  position: relative !important;
}

#sidebar .widget-entry-card-thumb,
.sidebar .widget-entry-card-thumb {
  width: 100px !important;
  min-width: 100px !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 4px !important;
}

#sidebar .widget-entry-card-content,
.sidebar .widget-entry-card-content {
  position: static !important;
  width: auto !important;
  flex: 1 1 auto !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

#sidebar .widget-entry-card-title,
.sidebar .widget-entry-card-title {
  position: static !important;
  background: transparent !important;
  color: var(--text-main) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition: color 0.2s ease;
}

#sidebar .widget-entry-card-wrap:hover .widget-entry-card-title,
.sidebar .widget-entry-card-wrap:hover .widget-entry-card-title {
  color: var(--accent-red) !important;
}

#sidebar .widget-entry-card-snippet,
.sidebar .widget-entry-card-snippet {
  display: none !important;
}

/* 6. ページネーション（1, 2, 3...）の統一 */
.pagination {
  margin-top: 44px !important;
}

.pagination a,
.pagination .current,
.pagination-next-link {
  background-color: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-control) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.pagination .current {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
  border-color: var(--text-main) !important;
}

.pagination a:hover,
.pagination-next-link:hover {
  background-color: var(--accent-red) !important;
  color: #ffffff !important;
  border-color: var(--accent-red) !important;
}

/* =========================================================
   10. 一覧カードタイトルのタイポグラフィ微調整（つぶれ解消＋適度な太さ）
========================================================= */
/* インデックス一覧（2列カード）のタイトル */
.entry-card-title {
  font-size: 0.96rem !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
  letter-spacing: 0.04em !important;
  color: #0f0f11 !important;
  font-feature-settings: normal !important;
}

/* 1番目の大特集カードのタイトル */
.list.ect-big-card-first > .entry-card-wrap:first-of-type .entry-card-title {
  font-size: 1.32rem !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.03em !important;
  color: #0f0f11 !important;
}

body #main .related-entry-card-title,
body #main .related-entry-card-title a,
body #main .widget-entry-card-title,
body #main .widget-entry-card-title a,
body .carousel-entry-card-title {
  font-family: var(--font-base) !important;
  font-size: 0.95rem !important;       /* 15.2pxにして游ゴシックのつぶれを防止 */
  font-weight: 600 !important;       /* タイトルらしい適度な太さ */
  line-height: 1.65 !important;
  letter-spacing: 0.03em !important;
  color: #0f0f11 !important;
  font-feature-settings: normal !important;
}

/* サイドバー内だけはコンパクトなサイズを維持 */
body #sidebar .widget-entry-card-title,
body #sidebar .widget-entry-card-title a,
body .sidebar .widget-entry-card-title,
body .sidebar .widget-entry-card-title a {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* =========================================================
   11. 記事内トグルボックス・詳細ブロック（▶ 💡〜）のフォント統一
========================================================= */
/* 記事本文内の全要素にベースフォントを確実に継承させる */
.article .entry-content *:not(.fa):not(.fab):not(.fas):not(.far):not([class*="icon-"]) {
  font-family: var(--font-base) !important;
}

/* トグルボックス（Cocoon標準）＆詳細ブロック（details/summary）の調整 */
.article .entry-content .toggle-wrap,
.article .entry-content .wp-block-details {
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  background-color: var(--bg-subtle) !important;
  margin: 24px 0 !important;
}

/* 「▶ 💡〜」のラベル（見出し）部分 */
.article .entry-content .toggle-button,
.article .entry-content .wp-block-details > summary {
  font-size: 0.96rem !important;
  font-weight: 600 !important;       /* 700のつぶれを抑えた見出し用の太さ */
  line-height: 1.6 !important;
  letter-spacing: 0.03em !important;
  color: var(--text-main) !important;
  background-color: transparent !important;
  padding: 14px 18px !important;
}

/* 開いた中身（テキスト部分）は本文と完全に統一 */
.article .entry-content .toggle-content,
.article .entry-content .wp-block-details > *:not(summary) {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.85 !important;
  color: var(--text-main) !important;
}

/* =========================================================
   12. サイドバー記事リストのホバー時文字消え防止
========================================================= */
/* 通常時（非ホバー時）も同等の強さで黒文字を固定し、戻る瞬間の白飛びを防ぐ */
html body #container #sidebar .widget a,
html body #container #sidebar .widget .a-wrap,
html body #container #sidebar .widget a *,
html body #container #sidebar .widget .a-wrap * {
  color: #0f0f11 !important;
  -webkit-text-fill-color: #0f0f11 !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
}

/* ホバー時はディープレッドへスムーズに切り替え */
html body #container #sidebar .widget a:hover,
html body #container #sidebar .widget .a-wrap:hover,
html body #container #sidebar .widget a:hover *,
html body #container #sidebar .widget .a-wrap:hover * {
  color: #c81e1e !important;
  -webkit-text-fill-color: #c81e1e !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

html body #container #sidebar .widget a:hover,
html body #container #sidebar .widget .a-wrap:hover {
  background-color: #f8f8f9 !important;
}

/* =========================================================
   13. 編集メディア風組版（カテゴリーラベル・記事ヘッダー・H2見出し）
========================================================= */

/* ① 記事上部のカテゴリーラベル（ジャンル・セクションバッジ化） */
article.type-post .entry-categories-tags .entry-categories a,
article.type-post .cat-link,
.single .article-header .cat-link {
  display: inline-block !important;
  background-color: #0f0f11 !important;
  color: #ffffff !important;
  border: 1px solid #0f0f11 !important;
  border-radius: 2px !important;
  font-family: "Inter", "Noto Sans JP", sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  padding: 5px 10px !important;
  margin: 0 6px 8px 0 !important;
  transition: all 0.2s ease !important;
  justify-content: flex-start !important;
}

article.type-post .entry-categories-tags .entry-categories a:hover,
article.type-post .cat-link:hover,
.single .article-header .cat-link:hover {
  background-color: #c81e1e !important;
  border-color: #c81e1e !important;
  color: #ffffff !important;
}

/* 記事タイトル上のカテゴリー配置余白 */
article.type-post .entry-categories-tags {
  margin-bottom: 10px !important;
  text-align: left !important;
}

/* ② 記事ヘッダー（H1タイトル直下のメタデータ行を極細罫線で引き締める） */
article.type-post .article-header {
  margin-bottom: 28px !important;
}

article.type-post .entry-title {
  margin-bottom: 14px !important;
  line-height: 1.45 !important;
}

article.type-post .date-tags,
article.type-post .post-date-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  margin-top: 12px !important;
  border-top: 1px solid #e4e4e7 !important;
  border-bottom: 1px solid #e4e4e7 !important;
  font-family: "Inter", "Noto Sans JP", sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  color: #52525b !important;
}

article.type-post .date-tags .post-date,
article.type-post .date-tags .post-update {
  margin: 0 !important;
  color: #52525b !important;
}

/* ③ 記事内H2見出し（上下の極細ボーダー＋左端ディープレッドアクセント） */
article.type-post .entry-content h2 {
  background: transparent !important;
  background-color: transparent !important;
  border-top: 1px solid #e4e4e7 !important;
  border-bottom: 1px solid #e4e4e7 !important;
  border-left: 3px solid #c81e1e !important;
  border-right: none !important;
  border-radius: 0 !important;
  padding: 13px 16px !important;
  margin: 48px 0 24px !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.03em !important;
  color: #0f0f11 !important;
}

/* =========================================================
   14. 広告バナー上のPR・Advertisementラベル
========================================================= */
.ad-label {
  display: block !important;
  text-align: center !important;
  font-family: "Inter", "Noto Sans JP", sans-serif !important;
  font-size: 0.68rem !important;      /* 約11pxの控えめなサイズ */
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  color: #71717a !important;          /* 記事本文を邪魔しない落ち着いたグレー */
  line-height: 1.2 !important;
  margin: 28px auto 6px !important;   /* 上にゆとりを持たせ、下のバナーと近づける */
}

/* =========================================================
   15. 広告バナーの枠組み（広告スロット化・余白確保）
========================================================= */
.ad-slot-box {
  background-color: #f8f8f9 !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 4px !important;
  padding: 14px 16px 20px !important;
  margin: 36px 0 !important;
  text-align: center !important;
}

/* 枠内に入る場合は、14番で設定した .ad-label の上余白をリセット */
.ad-slot-box .ad-label {
  margin: 0 auto 10px !important;
}

/* 枠内の画像・バナーリンクが中央揃えで綺麗に表示されるよう調整 */
.ad-slot-box img {
  margin: 0 auto !important;
  vertical-align: bottom !important;
}

/* =========================================================
   16. 記事冒頭リード枠（.wp-block-verse）の強調デザイン
========================================================= */
article.type-post .entry-content .wp-block-verse {
  background-color: #27272a !important; /* さらに柔らかくする場合は #323238 */
  color: #f4f4f5 !important;
  border: none !important;
  border-left: 5px solid #c81e1e !important;
  border-radius: 3px !important;
  padding: 18px 20px !important;
  margin: 0 0 28px !important;
  font-family: "Inter", "Noto Sans JP", sans-serif !important;
  line-height: 1.75 !important;
}

/* リード枠内の太字（strong / b）を真っ白にして際立たせる */
article.type-post .entry-content .wp-block-verse strong,
article.type-post .entry-content .wp-block-verse b {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* =========================================================
   17. 前後の記事ナビゲーション（ページャー）のテイスト統一
========================================================= */
.pager-post-navi {
  margin: 36px 0 24px !important;
  gap: 12px !important;
}

.pager-post-navi a.prev-post,
.pager-post-navi a.next-post,
.pager-post-navi a.prev-next-home {
  background-color: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 2px !important;
  padding: 14px 16px !important;
  color: #0f0f11 !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.pager-post-navi a.prev-post:hover,
.pager-post-navi a.next-post:hover,
.pager-post-navi a.prev-next-home:hover {
  background-color: #f8f8f9 !important;
  border-color: #0f0f11 !important;
}

.pager-post-navi a.prev-post:hover .prev-post-title,
.pager-post-navi a.next-post:hover .next-post-title {
  color: #c81e1e !important;
}

/* サムネイル画像の角丸もシャープに統一 */
.pager-post-navi .prev-post-thumb img,
.pager-post-navi .next-post-thumb img {
  border-radius: 2px !important;
}

/* 記事タイトルのフォント・サイズ調整 */
.pager-post-navi .prev-post-title,
.pager-post-navi .next-post-title {
  font-family: "Inter", "Noto Sans JP", sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #0f0f11 !important;
  transition: color 0.2s ease !important;
}

/* 左右の矢印アイコン色 */
.pager-post-navi .fa,
.pager-post-navi [class*="icon-"] {
  color: #71717a !important;
}

/* 最新記事などで片側が空いた際の「ホームボタン（.prev-next-home）」の視認性向上 */
.pager-post-navi a.prev-next-home {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 82px !important;
  text-decoration: none !important;
}

.pager-post-navi a.prev-next-home .fa,
.pager-post-navi a.prev-next-home [class*="icon-"] {
  font-size: 1.35rem !important;
  color: #0f0f11 !important;
  transition: color 0.2s ease !important;
}

.pager-post-navi a.prev-next-home::after {
  content: "TOP PAGE" !important; /* 「INDEX」や「記事一覧へ」にも変更可 */
  font-family: "Inter", "Noto Sans JP", sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: #52525b !important;
  transition: color 0.2s ease !important;
}

/* ホバー時は他のナビゲーションと同様にディープレッドへ変化 */
.pager-post-navi a.prev-next-home:hover .fa,
.pager-post-navi a.prev-next-home:hover [class*="icon-"],
.pager-post-navi a.prev-next-home:hover::after {
  color: #c81e1e !important;
}

/**
 * A8 ad
 * */
.a8-ad {
	text-align: center;
}

.a8-ad p {
	font-style: bold;
}

.a8-ad .a8-ad-1023 {
    display: initial;
}

.a8-ad .a8-ad-834 {
    display: none;
}

@media (max-width: 834px) {
	.a8-ad .a8-ad-1023 {
		display: none;
	}
	.a8-ad .a8-ad-834 {
		display: initial;
	}
}