/* ===== nbnf-music-article.css ===== */

/* カラーテーマ変数 */
:root {
  --nbnf-bg: #faf7f2;
  --nbnf-card: #fff;
  --nbnf-text: #222;
  --nbnf-muted: #6b6b6b;
  --nbnf-accent: #ff8c42;
  --nbnf-radius: 12px;
}

/* ===== ヘッダー ===== */
.nbnf-header-article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--nbnf-bg);
  padding: 12px 16px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.nbnf-logo a {
  text-decoration: none;
  color: var(--nbnf-accent);
  font-weight: 800;
  font-size: 1.2rem;
}

/* ナビゲーション */
.nbnf-nav-article {
  margin-left: auto;
  display: flex;
  gap: 12px;
}
.nbnf-nav-article a {
  text-decoration: none;
  color: var(--nbnf-text);
  font-weight: 600;
}

/* トグルボタン */
.nbnf-menu-toggle-article {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--nbnf-text);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .nbnf-menu-toggle-article {
    display: block;
  }
  .nbnf-nav-article {
    position: absolute;
    top: 100%;
    right: 16px;
    background: var(--nbnf-bg);
    flex-direction: column;
    width: 200px;
    padding: 12px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 100;
  }
  .nbnf-nav-article.active {
    display: flex;
  }
  .nbnf-nav-article a {
    padding: 8px 0;
  }
}

/* ===== 記事全体 ===== */
.nbnf-article {
  background: var(--nbnf-card);
  padding: 20px;
  border-radius: var(--nbnf-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  margin: 2rem auto;
  max-width: 960px;
}

/* 記事ヘッダー */
.nbnf-article-header {
  margin-bottom: 16px;
}
.nbnf-article-title {
  font-size: 1.8rem;
  margin: 0 0 6px 0;
}
.nbnf-article-meta {
  color: var(--nbnf-muted);
  font-size: 0.95rem;
}

/* 本文 */
.nbnf-body {
  line-height: 1.8;
  color: var(--nbnf-text);
}
.nbnf-body h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 4px solid var(--nbnf-accent);
}
.nbnf-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}
figure {
  text-align: center;
}


/* 目次 */
.nbnf-toc {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}
.nbnf-toc strong {
  display: block;
  margin-bottom: 8px;
}
.nbnf-toc-list a {
  display: block;
  color: var(--nbnf-muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.95rem;
}
.nbnf-toc-list a:hover {
  text-decoration: underline;
}

/* アフィリエイト */
.nbnf-affiliate {
  margin: 18px 0;
}
.nbnf-aff-card {
  display: flex;
  gap: 12px;
  background: #fffaf0;
  padding: 10px;
  border-radius: 10px;
  align-items: center;
}
.nbnf-aff-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}
.nbnf-aff-body {
  flex: 1;
}
.nbnf-aff-title {
  font-weight: 800;
  margin-bottom: 6px;
}
.nbnf-aff-cta {
  display: inline-block;
  padding: 8px 12px;
  background: var(--nbnf-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}

/* ===== コピー・シェア ===== */
.nbnf-share {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;        /* 横幅が足りなければ折り返す */
  gap: 10px;
  align-items: center;
}

/* 共通ボタンスタイル */
.nbnf-share a,
.nbnf-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  background: #f1f1f1;
  color: #222;
  flex: 1 1 auto;   /* 幅を自動調整 */
  min-width: 100px; /* 最小幅を設定（必要に応じて調整） */
}

/* ホバー効果 */
.nbnf-share a:hover,
.nbnf-share button:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* SNS別カラー */
.nbnf-twitter { color: #1da1f2; }
.nbnf-facebook { color: #1877f2; }
.nbnf-line { color: #00c300; }
.nbnf-threads { color: #000000; }
.nbnf-pinterest { color: #bd081c; }
.nbnf-linkedin { color: #0077b5; }
.nbnf-reddit { color: #ff4500; }
.nbnf-hatena { color: #00a4de; }
.nbnf-pocket { color: #ef4056; }
.nbnf-instagram { color: #e1306c; }

/* スマホ対応 */
@media (max-width: 768px) {
  .nbnf-share {
    flex-direction: column; /* 縦並び */
    align-items: stretch;
  }

  .nbnf-share a,
  .nbnf-share button {
    width: 100%;           /* 幅いっぱい */
    justify-content: flex-start;
    padding-left: 16px;
  }
}

/* アイコン化例（Font Awesomeを使用する場合） */
.nbnf-share a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
}

/* 各SNSアイコン設定 */
.nbnf-twitter::before { content: none; }   /* Twitter */
.nbnf-facebook::before { content: none; }  /* Facebook */
.nbnf-line::before { content: none; }      /* LINE (例: Font AwesomeにはないのでカスタムSVGも可) */
.nbnf-threads::before { content: none; }   /* Threadsは代用アイコン */
.nbnf-pinterest::before { content: none; }
.nbnf-linkedin::before { content: none; }
.nbnf-reddit::before { content: none; }
.nbnf-hatena::before { content: none; }
.nbnf-pocket::before { content: none }
.nbnf-instagram::before { content: none; } /* 代用アイコン */


/* 折りたたみ */
.nbnf-collapsible {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .nbnf-article-title {
    font-size: 1.5rem;
  }
  .nbnf-body h2 {
    font-size: 1.1rem;
  }
}
