/* ============================================================
 * ヒトマチミュージック 拡張
 * テーマの main.css のあとに読み込み、必要な箇所だけ上書きします。
 * 色・角丸・フォントはテーマの変数（--text, --border など）をそのまま使用。
 * ============================================================ */

/* ── 1. メニューのアイコン（絵文字）を外す ── */
.sidebar-nav-icon,
.bottom-nav-icon,
.header-search-icon,
.header-icon-btn {
  display: none !important;
}

.sidebar-nav a {
  gap: 0;
  padding: 11px 14px;
  letter-spacing: .02em;
}

/* サイドバー：PRESS の案内の下に並べる姉妹サイト */
.sidebar-nav.hmx-sister {
  margin: 12px 0 0;
  gap: 0;
}
.sidebar-nav.hmx-sister a {
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-mid);
}
.sidebar-nav.hmx-sister a::after {
  content: "→";
  font-weight: 500;
  color: var(--text-lt);
  transition: transform .15s;
}
.sidebar-nav.hmx-sister a:hover::after { transform: translateX(2px); color: var(--text); }

/* ヘッダー右上：人物の絵文字 → 「ログイン」の文字ボタン */
.header-avatar-guest {
  width: auto;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0;
  transition: background .15s;
}
.header-avatar-guest:hover { background: var(--accent-soft); }
.header-avatar-guest img.emoji { display: none !important; }
.header-avatar-guest::after {
  content: "ログイン";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* スマホ下部のナビ：文字だけで読めるように */
.bottom-nav a {
  justify-content: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-mid);
  position: relative;
}
.bottom-nav a.is-active { color: var(--text); }
.bottom-nav a.is-active::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  background: var(--text);
}

/* ── 2. アーティストページの「楽曲・MV」をカード表示に ── */
.artist-track-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 22px;
}
.artist-track-item,
.artist-track-item:last-child {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.artist-track-item:hover {
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.artist-track-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: linear-gradient(135deg, #232427, #3a3d42);
}
/* 再生マーク（CSSで描画） */
.artist-track-thumb::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, .55);
  transition: background-color .2s;
}
.artist-track-thumb::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 25px;
  bottom: 22px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.artist-track-item:hover .artist-track-thumb::after { background-color: rgba(0, 0, 0, .8); }
.artist-track-body {
  flex: 1;
  padding: 14px 16px 16px;
}
.artist-track-title {
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.artist-track-artist { margin-bottom: 0; }
.artist-track-desc { margin-top: 8px; }
.artist-track-menu { display: none; }

/* ── 3. お知らせ・ブログ ── */
.hmx-news { margin-top: 46px; }
.hmx-news-archive { margin-top: 0; }
.hmx-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.hmx-section-head .section-label-lg { margin-bottom: 0; }

/* 種別ラベル（お知らせ／ブログ） */
.hmx-kind {
  display: inline-block;
  width: 66px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  padding: 5px 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text);
  background: var(--white);
  color: var(--text);
}
.hmx-kind-news {
  background: var(--text);
  color: var(--white);
}

/* カード（「楽曲・MV」のカードと同じ列幅・同じ枠） */
.hmx-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 22px;
}
.hmx-news-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.hmx-news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.hmx-news-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
  overflow: hidden;
}
.hmx-news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 画像のない投稿：グレーの空箱にせず、種別を大きく置く */
.hmx-news-card-cover.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e3e5e8, #f1f2f4);
}
.hmx-news-card-mark {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .22em;
  margin-right: -.22em;
  color: rgba(22, 25, 29, .16);
}
.hmx-news-card-cover .hmx-kind {
  position: absolute;
  left: 12px;
  top: 12px;
  border-color: transparent;
}
.hmx-news-card-cover .hmx-kind-blog { box-shadow: 0 0 0 1px rgba(22, 25, 29, .14); }
.hmx-news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}
.hmx-news-card-date {
  font-size: 11px;
  color: var(--text-lt);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.hmx-news-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hmx-news-card-excerpt {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hmx-news-card-artist {
  font-size: 11.5px;
  color: var(--text-lt);
  margin-top: auto;
  padding-top: 10px;
}

/* ── プレイリスト（YouTubeの再生リスト） ── */
.hmx-playlist-card .hmx-news-card-cover { position: relative; }
.hmx-playlist-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .7);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* 詳細ページ */
.hmx-playlist-back {
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--text-mid);
}
.hmx-playlist-back a:hover { color: var(--text); }
.hmx-playlist-head {
  max-width: 760px;
  margin-bottom: 36px;
}
.hmx-playlist-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-lt);
}
.hmx-playlist-label span {
  letter-spacing: .02em;
  font-weight: 500;
}
.hmx-playlist-head h1 {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.45;
}
.hmx-playlist-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 2;
  color: var(--text-mid);
}
.hmx-playlist-open {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
}
.hmx-playlist-open a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hmx-video-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px 28px;
}
.hmx-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e0f11;
}
.hmx-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.hmx-video-frame-wide { max-width: 960px; }
.hmx-video-body { padding: 14px 2px 0; }
.hmx-video-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.hmx-video-no {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hmx-video-author {
  min-width: 0;
  font-size: 12px;
  color: var(--text-lt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hmx-video-title {
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
}
.hmx-video-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-mid);
}
.hmx-playlist-others { margin-top: 64px; }
.hmx-playlist-others .section-label-lg { margin-bottom: 18px; }

/* 記事ページ */
.hmx-article {
  max-width: 720px;
  margin: 12px auto 0;
}
.hmx-article .detail-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.hmx-article-title {
  font-size: 26px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.hmx-article-artist {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
}
.hmx-article-artist:hover { color: var(--text); }
.hmx-article-artist-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
}
.hmx-article-artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hmx-article-cover {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
}
.hmx-article-cover img { width: 100%; height: auto; }

.hmx-article-body {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  overflow-wrap: anywhere;
}
.hmx-article-body > * + * { margin-top: 1.5em; }
.hmx-article-body h2 {
  font-size: 19px;
  line-height: 1.6;
  margin-top: 2.4em;
}
.hmx-article-body h3 {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 2em;
}
.hmx-article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hmx-article-body ul,
.hmx-article-body ol { padding-left: 1.5em; }
.hmx-article-body ul { list-style: disc; }
.hmx-article-body li + li { margin-top: .4em; }
.hmx-article-body img,
.hmx-article-body iframe,
.hmx-article-body video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.hmx-article-body iframe { aspect-ratio: 16 / 9; width: 100%; }
.hmx-article-body figcaption {
  font-size: 12px;
  color: var(--text-lt);
  margin-top: 8px;
  text-align: center;
}
.hmx-article-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 18px;
  color: var(--text-mid);
}

/* ページ送り */
.hmx-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.hmx-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.hmx-pagination a.page-numbers:hover { background: var(--accent-soft); }
.hmx-pagination .page-numbers.current {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
}
.hmx-pagination .page-numbers.dots { border: none; background: none; }

@media (max-width: 980px) {
  .artist-track-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .artist-track-thumb { width: 100%; height: auto; }
  .artist-track-thumb::after { left: 8px; bottom: 8px; width: 28px; height: 28px; }
  .artist-track-thumb::before { left: 19px; bottom: 16px; border-width: 6px 0 6px 9px; }
  .artist-track-body { padding: 10px 12px 12px; }
  .artist-track-title { font-size: 13px; }

  .hmx-news { margin-top: 34px; }
  .hmx-section-head { margin-bottom: 14px; }
  .hmx-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .hmx-news-card-body { padding: 10px 12px 12px; }
  .hmx-news-card-title { font-size: 13px; }
  .hmx-news-card-excerpt { display: none; }
  .hmx-news-card-mark { font-size: 19px; }
  .hmx-news-card-cover .hmx-kind { left: 8px; top: 8px; width: 58px; font-size: 10px; }

  .hmx-playlist-head { margin-bottom: 26px; }
  .hmx-playlist-head h1 { font-size: 21px; }
  .hmx-playlist-desc { font-size: 13.5px; }
  .hmx-video-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .hmx-video-title { font-size: 14px; }
  .hmx-playlist-others { margin-top: 48px; }

  .hmx-article-title { font-size: 20px; }
  .hmx-article-body { font-size: 14.5px; margin-top: 24px; padding-top: 24px; }
}
