/*
Theme Name:   SoundDive Child
Template:     sango-theme
Version:      1.0.0
Author:       SoundDive
Description:  R18 ASMR 音声レビューサイト「SoundDive」専用の子テーマ。Sangoテーマをベースに、作品レビュー・評価スコア・サンプルプレイヤーに最適化されたカスタムレイアウトとGutenbergブロックを実装。
Tags:         asmr, review, custom-blocks, japanese
*/

/* ===== リセット・変数 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #ffffff;
  --sub:    #f5f5f5;
  --border: #ebebeb;
  --text:   #1a1a1a;
  --muted:  #888;
  --small:  #bbb;
  --accent: #5c4ef0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Kaku Gothic Pro', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ===== メインコンテナ ===== */
.sd-container { width: 70%; margin: 0 auto; padding: 28px 0 60px !important; }

/* Sangoのコンテナを無効化 */
#content, .content-area, .site-content { max-width: none !important; padding: 0 !important; }
#primary, .content-wrap { float: none !important; width: auto !important; }

/* ===== ページレイアウト（メイン + サイドバー）===== */
.sd-page-layout {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 28px;
  align-items: start;
}
.sd-main { min-width: 0; }

/* ===== サイドバー ===== */
.sd-sidebar { position: sticky; top: 68px; } /* 48px header + 20px gap */
.sd-sidebar-widget { margin-bottom: 24px; }

.sd-sidebar-label {
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  color: var(--text); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.sd-sidebar-label::before {
  content: ''; width: 14px; height: 3px; border-radius: 2px;
  background: var(--accent); flex-shrink: 0;
}

.sd-cat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sd-cat-list li a {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .08em;
  background: var(--accent); color: #fff;
  padding: 2px 9px; border-radius: 20px;
  transition: opacity .15s;
}
.sd-cat-list li a:hover { opacity: .75; color: #fff; }

.sd-recent-list { list-style: none; }
.sd-recent-list li a {
  display: block; font-size: 11px; color: var(--muted);
  padding: 5px 0; border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.sd-recent-list li:last-child a { border-bottom: none; }
.sd-recent-list li a:hover { color: var(--accent); }

.sd-sidebar-about { font-size: 11px; color: var(--muted); line-height: 1.7; }

/* ===== セクションタイトル ===== */
.sd-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sd-section-label {
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  color: var(--text); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 0;
}
.sd-section-label::before {
  content: '';
  width: 14px; height: 3px; border-radius: 2px;
  background: var(--accent);
}
.sd-section-head a { font-size: 11px; color: var(--small); }
.sd-section-head a:hover { color: var(--accent); }

/* ===== ピックアップ（2列）===== */
.sd-pickup-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 32px;
}

.sd-pickup-item {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 14px; align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 8px; padding: 12px;
  transition: box-shadow .2s;
}
.sd-pickup-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  border-color: #d0cbf8;
}
.sd-pickup-thumb {
  overflow: hidden;
  border-radius: 4px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #eeeaff 0%, #e0d9ff 100%);
}
.sd-pickup-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.sd-pickup-body { padding: 1px 0; }
.sd-pickup-category {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: 1px; color: var(--accent);
  margin-bottom: 5px;
}
.sd-pickup-title {
  font-size: 12px; font-weight: 800; line-height: 1.55;
  letter-spacing: -0.3px; margin-bottom: 6px; color: var(--text);
}
.sd-pickup-body p { font-size: 11px; color: var(--muted); line-height: 1.7; margin-bottom: 6px; }
.sd-pickup-date { font-size: 10px; color: var(--small); }

/* ===== 記事カードグリッド ===== */
.sd-card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 32px;
}

.sd-article-card {
  background: #fff;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.sd-article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  border-color: #d0cbf8;
}

.sd-card-thumb {
  aspect-ratio: 16 / 9;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #eeeaff 0%, #e0d9ff 100%);
}
.sd-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* カテゴリラベル（サムネイル右上）*/
.sd-thumb-label {
  position: absolute; top: 7px; right: 8px; z-index: 1;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  background: var(--accent); color: #fff;
  padding: 2px 7px; border-radius: 20px;
}

/* Popular 順位バッジ */
.sd-rank-badge {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 22px; height: 22px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 0 4px 0;
}
.sd-rank-badge.gold   { background: #c9a227; }
.sd-rank-badge.silver { background: #8a8a8a; }
.sd-rank-badge.bronze { background: #a0623a; }

/* ===== すべて見る ===== */
.sd-see-all { text-align: right; margin: -20px 0 28px; font-size: 11px; }
.sd-see-all a { color: var(--small); }
.sd-see-all a:hover { color: var(--accent); }

/* カード本文 */
.sd-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.sd-card-title {
  font-size: 11.5px; font-weight: 700; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.sd-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.sd-card-date { font-size: 10px; color: var(--small); }
.sd-card-arrow {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--muted);
  transition: background .15s, color .15s;
}
.sd-article-card:hover .sd-card-arrow { background: var(--accent); color: #fff; }

/* ===== ランキング ===== */
.sd-ranking-wrap { margin-bottom: 32px; }

/* ===== 記事ページ ===== */
.sd-wrap {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: start;
  padding: 0 0 60px;
}
.sd-article-main { min-width: 0; }
.sd-article-sidebar { position: sticky; top: 68px; padding-top: 16px; } /* 48px header + 20px gap */

/* 記事ヘッダー */
.sd-article-head {
  padding: 20px 0 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sd-article-cats { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.sd-cat-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  background: var(--accent); color: #fff;
  padding: 2px 9px; border-radius: 20px;
}
.sd-article-title {
  font-size: 20px; font-weight: 800; line-height: 1.45;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.sd-article-meta { display: flex; gap: 12px; font-size: 11px; color: var(--small); }

/* アイキャッチ */
.sd-article-thumb {
  margin-bottom: 24px;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.sd-article-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* 本文エリア */
.sd-entry-content { font-size: 13px; line-height: 1.8; }
/* Sangoのリンク下線リセット */
.sd-entry-content a { text-decoration: none; }

.sd-entry-content h2 {
  font-size: 15px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin: 32px 0 14px;
}
.sd-entry-content h2::before {
  content: ''; width: 14px; height: 3px; border-radius: 2px;
  background: var(--accent); flex-shrink: 0;
}
/* 固定ページのh2は装飾なし・通常スタイル */
.page .sd-entry-content h2 {
  font-size: 16px; font-weight: 700; letter-spacing: 0;
  text-transform: none; display: block;
  margin: 28px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.page .sd-entry-content h2::before { display: none; }
.sd-entry-content h3 {
  font-size: 13px; font-weight: 800;
  margin: 20px 0 8px; padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.sd-entry-content p { margin-bottom: 14px; }
.sd-entry-content ul,
.sd-entry-content ol { padding-left: 1.4em; margin-bottom: 14px; }
.sd-entry-content li { margin-bottom: 4px; }

/* テーブル（比較表） */
.sd-entry-content table {
  width: 100%; border-collapse: collapse;
  font-size: 12px; margin-bottom: 24px;
}
.sd-entry-content th {
  background: var(--sub); font-weight: 700;
  padding: 8px 10px; border: 1px solid var(--border);
  text-align: left; font-size: 11px;
}
.sd-entry-content td {
  padding: 8px 10px; border: 1px solid var(--border);
  vertical-align: top;
}
.sd-entry-content tr:nth-child(even) td { background: #fafafa; }

/* Chobit試聴iframe */
.sd-entry-content iframe {
  width: 100% !important; max-width: 100% !important;
  height: 215px; border: none; display: block;
  margin: 8px 0 0; border-radius: 6px;
}

/* 評価スコア */
.sd-score-box {
  background: #f4f2ff; border-radius: 4px;
  padding: 10px 14px; margin-bottom: 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px;
}
/* work-item直後にscore-boxが続く場合、work-itemの下線を消してグループ化 */
.sd-work-item:has(+ .sd-score-box) {
  border-bottom: none;
}
/* score-box後のwork-itemが次グループの区切り線を担う */
.sd-score-box + .sd-work-item {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.sd-score-item { display: flex; align-items: center; gap: 8px; }
.sd-score-label { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; min-width: 4em; }
.sd-score-bar-wrap { background: rgba(92,78,240,0.15); border-radius: 4px; height: 5px; overflow: hidden; flex: 1; }
.sd-score-bar { height: 100%; background: var(--accent); border-radius: 4px; }
.sd-score-num { font-size: 11px; font-weight: 800; color: var(--accent); flex-shrink: 0; }

/* 目次 */
.sd-toc-list { list-style: none; padding: 0; counter-reset: toc; }
.sd-toc-list li {
  counter-increment: toc;
  padding: 5px 0; border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.sd-toc-list li:last-child { border-bottom: none; }
.sd-toc-list li::before {
  content: counter(toc) '. ';
  color: var(--accent); font-weight: 700; margin-right: 4px;
}
.sd-toc-list a { color: var(--muted); }
.sd-toc-list a:hover { color: var(--accent); }

/* 評価基準リスト */
.sd-criteria-list { list-style: none; }
.sd-criteria-list li {
  font-size: 11px; color: var(--muted); line-height: 1.6;
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.sd-criteria-list li:last-child { border-bottom: none; }
.sd-criteria-label {
  display: inline-block; font-size: 9px; font-weight: 700;
  background: var(--sub); color: var(--text);
  padding: 1px 6px; border-radius: 3px; margin-right: 6px;
}

/* ===== 記事本文パーツ ===== */

/* 注意書き */
.sd-notice {
  background: var(--sub); border: 1px solid var(--border);
  border-radius: 4px; padding: 10px 14px;
  font-size: 12px; color: var(--muted); margin-bottom: 28px;
}

/* リード文 */
.sd-lead {
  border-left: 3px solid var(--accent); padding-left: 14px;
  font-size: 12px; color: var(--muted); margin-bottom: 24px;
}

/* 作品アイテム */
.sd-work-list { margin-bottom: 40px; }
.sd-work-item {
  display: grid; grid-template-columns: 22px 80px 1fr 40%;
  gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border); align-items: start;
}
.sd-work-item--no-player { grid-template-columns: 22px 80px 1fr; }
.sd-work-item:first-child { padding-top: 0; }
.sd-work-num {
  font-size: 13px; font-weight: 800; color: var(--accent);
  padding-top: 2px; line-height: 1;
}
.sd-work-thumb {
  width: 80px; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: 3px; border: 1px solid var(--border);
}
.sd-work-thumb a { display: block; width: 100%; height: 100%; }
.sd-work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-work-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 2px; }
.sd-work-title a { color: var(--text); }
.sd-work-title a:hover { color: var(--accent); }
.sd-work-circle { font-size: 11px; color: var(--small); margin-bottom: 8px; }
.sd-work-tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.sd-work-tag { font-size: 10px; color: var(--accent); }
.sd-work-body { min-width: 0; } /* グリッド内テキスト溢れ防止 */
.sd-work-text { font-size: 13px; color: #444; line-height: 1.7; margin-bottom: 6px; overflow-wrap: break-word; }
.sd-work-ratings {
  grid-column: 1 / -1;
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 7px 10px;
  background: #f4f2ff; border-radius: 4px;
  margin-top: -4px;
}
.sd-rating-item { display: flex; align-items: center; gap: 5px; }
.sd-rating-label { font-size: 11px; color: var(--muted); }
.sd-rating-stars { font-size: 12px; color: var(--accent); letter-spacing: -1px; }
.sd-sample-player iframe {
  display: block; width: 100% !important; max-width: 100% !important;
  height: 215px; border: none; border-radius: 3px;
}

/* アフィリエイトボックス */
.sd-aff {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 20px; text-align: center; margin: 32px 0;
}
.sd-aff p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.sd-btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-size: 13px; font-weight: 700; padding: 10px 24px;
  border-radius: 3px; transition: opacity .15s;
}
.sd-btn:hover { opacity: .8; }

/* まとめリスト */
.sd-summary-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sd-summary-list li {
  display: flex; gap: 10px; font-size: 13.5px;
  padding: 10px 14px; background: var(--sub);
  border: 1px solid var(--border); border-radius: 3px; color: #333;
}
.sd-summary-list li::before { content: '—'; color: var(--accent); flex-shrink: 0; }

/* ===== ヘッダー ===== */
.sd-header { background: #100e20; border-bottom: none; width: 100%; position: sticky; top: 0; z-index: 200; }
/* WP管理バー表示時（ログイン中）*/
body.admin-bar .sd-header { top: 32px; }
body.admin-bar .sd-sidebar,
body.admin-bar .sd-article-sidebar { top: 100px; } /* 32px adminbar + 48px header + 20px gap */
.sd-header-inner {
  width: 70%; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 48px;
}
.sd-header-logo {
  font-size: 17px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff !important;
  display: flex; align-items: center; gap: 8px;
}
.sd-header-logo span { color: #8b7ff5; }
.sd-header-logo::before {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  background: url(favicon.svg) no-repeat center / contain;
  flex-shrink: 0;
}

/* ===== ヘッダーロゴアイコン ===== */
#logo a.header-logo__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
#logo a.header-logo__link::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url(favicon.svg) no-repeat center / contain;
  flex-shrink: 0;
}
.sd-header-nav { display: flex; gap: 20px; font-size: 13px; }
.sd-header-nav a { color: rgba(255,255,255,0.75) !important; }
.sd-header-nav a:hover { color: #fff !important; }
.sd-r18 { display: none; }

/* ===== タグライン ===== */
.sd-site-tagline {
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em; text-align: center;
  flex: 1;
}

/* ===== 固定ページ ===== */
.sd-page-single { max-width: 740px; margin: 0 auto; padding: 24px 0 48px; }
.sd-page-main { width: 100%; }

/* ===== 404ページ ===== */
.sd-404 { text-align: center; padding: 60px 0 80px; }
.sd-404-icon { margin-bottom: 20px; }
.sd-404-code {
  font-size: 80px; font-weight: 900; letter-spacing: -4px;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
  opacity: .15;
}
.sd-404-title {
  font-size: 20px; font-weight: 800; color: var(--text);
  margin-bottom: 12px;
}
.sd-404-desc {
  font-size: 13px; color: var(--muted); margin-bottom: 32px; line-height: 1.7;
}
.sd-404-btn { display: inline-block; }
.sd-privacy p { margin-bottom: 14px; }
.sd-privacy code { background: var(--sub); padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.sd-privacy-updated { font-size: 11px; color: var(--muted); margin-top: 32px; }

/* ===== Contact Form 7 ===== */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.wpcf7-text,
.wpcf7-email,
.wpcf7-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 4px;
  font-size: 13px; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color .15s;
  appearance: none;
}
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-textarea:focus {
  outline: none; border-color: var(--accent);
}
.wpcf7-textarea { resize: vertical; min-height: 140px; }
.wpcf7-submit {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; padding: 10px 28px;
  border: none; border-radius: 4px; cursor: pointer;
  transition: opacity .15s; font-family: inherit;
}
.wpcf7-submit:hover { opacity: .8; }
.wpcf7-not-valid-tip {
  font-size: 11px; color: #e05; margin-top: 4px; display: block;
}
.wpcf7-response-output {
  margin-top: 16px; padding: 10px 14px;
  border-radius: 4px; font-size: 12px;
  border: 1.5px solid var(--border);
}
.wpcf7-mail-sent-ok { border-color: #3a9c6a; color: #3a9c6a; background: #f0faf5; }
.wpcf7-validation-errors { border-color: #e05; color: #e05; background: #fff5f5; }

/* ===== カテゴリアーカイブ ===== */
.sd-archive-head {
  padding: 16px 0 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 12px;
}
.sd-archive-label {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.sd-archive-label::before {
  content: ''; width: 10px; height: 3px; border-radius: 2px;
  background: var(--accent); flex-shrink: 0;
}
.sd-archive-title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px;
  margin: 0;
}
.sd-archive-desc {
  display: none;
}

/* ページネーション */
.sd-pagination { margin: 8px 0 32px; }
.sd-pagination .nav-links {
  display: flex; align-items: center; gap: 6px;
  justify-content: center;
}
.sd-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 1.5px solid var(--border); border-radius: 4px;
  font-size: 12px; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.sd-pagination .page-numbers:hover,
.sd-pagination .page-numbers.current {
  border-color: var(--accent); color: var(--accent);
}
.sd-pagination .page-numbers.current { font-weight: 700; }
.sd-pagination .prev,
.sd-pagination .next { font-size: 11px; }

/* カテゴリリスト：選択中 */
.sd-cat-list a.current { background: #3d34c8 !important; opacity: 1 !important; }

/* 記事なし */
.sd-no-posts { font-size: 13px; color: var(--muted); padding: 40px 0; text-align: center; }

/* ===== 背景波形装飾（トップページのみ）===== */
.sd-bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.sd-bg-waves svg {
  position: absolute;
  color: #5c4ef0;
  transform-origin: center bottom;
  animation: sd-wave-pulse ease-in-out infinite;
}
@keyframes sd-wave-pulse {
  0%, 100% { transform: scaleY(1);   }
  50%       { transform: scaleY(.5); }
}

/* ===== フッター波形装飾 ===== */
.sd-footer-wave {
  background: #100e20;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.sd-footer-wave-bars {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sd-footer-wave-bars span {
  display: inline-block;
  width: 4px;
  height: var(--h);
  background: #5c4ef0;
  border-radius: 2px;
  opacity: var(--op);
}
.sd-footer-wave-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
}
.sd-footer-wave-logo span { color: #8b7ff5; }

/* ===== フッター ===== */
.sd-footer {
  border-top: none;
  padding: 24px 20px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
  background: #100e20;
}
.sd-footer-nav {
  display: flex; justify-content: center; gap: 20px;
  margin-bottom: 10px;
}
.sd-footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.sd-footer-nav a:hover { color: #fff; }
.sd-footer p + p { margin-top: 4px; }

/* ===== 固定ページ：Sangoデフォルトサイドバー非表示 ===== */
.page #secondary,
.page .p-sidebar,
.page .l-sidebar { display: none !important; }
.page #primary,
.page .l-main,
.page .p-main { width: 100% !important; max-width: 100% !important; }

/* ===== SP専用ブロック ===== */
.sd-sp-ranking { display: none; overflow: hidden; }

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .sd-sp-ranking { display: block; }
  .sd-page-layout { grid-template-columns: 1fr; }
  .sd-sidebar { display: none; }
  .sd-wrap { grid-template-columns: 1fr; }
  .sd-article-sidebar { display: none; }
}
@media (max-width: 860px) {
  .sd-container { width: 90%; }
  .sd-pickup-grid { grid-template-columns: 1fr; }
  .sd-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sd-site-tagline { display: none; }
  .sd-header-inner { width: 90%; }
}
@media (max-width: 768px) {
  /* アイキャッチ */
  .sd-article-thumb {
    margin-left: calc(-5%);
    margin-right: calc(-5%);
    border-radius: 0;
    aspect-ratio: 3 / 2;
  }
  .sd-article-title { font-size: 16px; }

  /* 作品アイテム: プレイヤー・評価を下段へ */
  .sd-work-item {
    grid-template-columns: 22px 80px 1fr;
    gap: 10px; padding: 14px 0;
  }
  .sd-sample-player { grid-column: 1 / -1; }
  .sd-work-ratings { gap: 12px; }
}
@media (max-width: 480px) {
  /* 作品アイテム: 小画面向け */
  .sd-work-item {
    grid-template-columns: 16px 60px 1fr;
    gap: 8px; padding: 12px 0;
  }
  .sd-work-thumb { width: 60px; }
  .sd-work-num { font-size: 11px; }
  .sd-work-title { font-size: 13px; }
  .sd-work-circle { font-size: 10px; margin-bottom: 5px; }
  .sd-work-text { font-size: 12px; }
  .sd-work-ratings { gap: 8px; padding: 6px 8px; }
  .sd-rating-label { font-size: 10px; }
  .sd-rating-stars { font-size: 11px; }
}
@media (max-width: 480px) {
  .sd-pickup-item { grid-template-columns: 76px 1fr; }
  .sd-card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
