/*
Theme Name: Noire Music Label
Theme URI:
Author: BANRI LLC
Description: Noire Music Label 専用テーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: Private
Text Domain: noire
*/

/* =========================================================
   Base Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: #080808;
  color: #f0f0f0;
  font-family: -apple-system, 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* =========================================================
   ナビゲーション
   ========================================================= */
.nml-nav {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  z-index: 200;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(8,8,8,.96) 0%, transparent 100%);
  backdrop-filter: blur(6px);
}

.nml-logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f0f0f0;
}
.nml-logo span { color: var(--accent, #c8a96e); }

.nml-nav-menu {
  display: flex;
  gap: 18px;
}
.nml-nav-menu a {
  color: #666;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .2s;
}
.nml-nav-menu a:hover { color: #f0f0f0; }

/* =========================================================
   Hero
   ========================================================= */
.nml-hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 60px;
  overflow: hidden;
}
.nml-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #1a0f00 0%, #080808 70%);
}
.nml-hero-visual {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 65%;
  overflow: hidden;
}

/* レコード盤 */
.nml-vinyl {
  position: absolute;
  top: -30px;
  left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a 0%, #1a1a1a 8%, transparent 8.5%),
    repeating-conic-gradient(#111 0deg, #1c1c1c 1deg, #111 2deg);
  box-shadow: 0 0 80px rgba(200,169,110,.15), 0 40px 80px rgba(0,0,0,.8);
  animation: nml-spin 8s linear infinite;
}
.nml-vinyl::after {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #c8a96e 0%, #8b6914 60%, #2a1f00 100%);
  box-shadow: 0 0 20px rgba(200,169,110,.3);
}
.nml-vinyl-shine {
  position: absolute;
  top: 10%; left: 15%;
  width: 35%; height: 35%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
}
@keyframes nml-spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}
.nml-hero-glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.1) 0%, transparent 70%);
  top: 20%; left: 50%; transform: translateX(-50%);
  animation: nml-pulse 3s ease-in-out infinite;
}
@keyframes nml-pulse {
  0%,100% { opacity: .6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;  transform: translateX(-50%) scale(1.15); }
}
.nml-hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, #080808 40%, transparent 100%);
}
.nml-hero-content {
  position: relative;
  padding: 0 24px;
}
.nml-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent, #c8a96e);
  margin-bottom: 12px;
}
.nml-hero-title {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.nml-hero-title em {
  font-style: italic;
  color: var(--accent, #c8a96e);
}
.nml-hero-sub {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
}
.nml-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* =========================================================
   Ticker（流れるテキスト）
   ========================================================= */
.nml-ticker {
  background: var(--accent, #c8a96e);
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
}
.nml-ticker-inner { display: flex; }
.nml-ticker-track {
  display: inline-block;
  animation: nml-ticker 24s linear infinite;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000;
  padding: 0 20px;
}
.nml-ticker-sep {
  color: rgba(0,0,0,.3);
  margin: 0 16px;
}
@keyframes nml-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   共通ボタン
   ========================================================= */
.nml-btn-primary {
  display: inline-block;
  background: var(--accent, #c8a96e);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  border: none;
}
.nml-btn-primary:hover { background: var(--accent2, #e8c98e); transform: translateY(-1px); }

.nml-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: color .2s;
  background: none;
  border: none;
  padding: 0;
}
.nml-btn-ghost:hover { color: #f0f0f0; }
.nml-btn-ghost::before {
  content: '';
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-left: 6px solid rgba(255,255,255,.5);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  box-sizing: border-box;
}

/* =========================================================
   ページ共通ヘッダー（アーカイブ・固定ページ）
   ========================================================= */
.nml-page-header {
  padding: 100px 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nml-page-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
}

/* =========================================================
   カタログリスト（リリース一覧／アーティスト詳細）
   ========================================================= */
.nml-catalog-list {
  display: flex;
  flex-direction: column;
}
.nml-catalog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}
.nml-catalog-item:last-child { border-bottom: none; }
.nml-catalog-num {
  font-size: 11px;
  color: #444;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.nml-catalog-thumb {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: #1a1a1a;
}
.nml-catalog-body { flex: 1; min-width: 0; }
.nml-catalog-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.nml-catalog-artist-name {
  font-size: 11px;
  color: #666;
}
.nml-catalog-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.nml-catalog-year {
  font-size: 11px;
  color: #666;
}
.nml-catalog-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.08);
  padding: 2px 6px;
  color: #555;
}
/* 展開される配信ボタン列 */
.nml-catalog-links {
  width: 100%;
  padding: 10px 0 4px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* =========================================================
   アーティスト詳細ページ
   ========================================================= */
.nml-artist-hero {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 60svh;
  background-size: cover;
  background-position: center top;
  background-color: #111;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.nml-artist-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,1) 0%, rgba(8,8,8,.2) 60%, transparent 100%);
}
.nml-artist-hero-content {
  position: relative;
  padding: 32px 24px;
}
.nml-artist-page-name {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.01em;
}

.nml-artist-sns {
  display: flex;
  gap: 8px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nml-sns-btn {
  display: inline-block;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.08);
  color: #888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 14px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.nml-sns-btn:hover     { border-color: var(--accent, #c8a96e); color: var(--accent, #c8a96e); }
.nml-sns-btn.nml-sns-sp:hover { border-color: #1db954; color: #1db954; }

.nml-artist-bio {
  padding: 28px 24px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(240,240,240,.7);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nml-artist-releases { padding: 48px 24px 0; }

/* =========================================================
   グッズ フィルターボタン
   ========================================================= */
.nml-goods-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 24px 0;
}
.nml-filter-btn {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.08);
  color: #666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 14px;
  transition: border-color .2s, color .2s, background .15s;
}
.nml-filter-btn:hover,
.nml-filter-btn.active {
  border-color: var(--accent, #c8a96e);
  color: var(--accent, #c8a96e);
  background: rgba(200,169,110,.06);
}

/* =========================================================
   WP ページネーション
   ========================================================= */
.nml-wp-pagination {
  padding: 40px 0 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nml-wp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  color: #666;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.nml-wp-pagination .page-numbers:hover,
.nml-wp-pagination .page-numbers.current {
  border-color: var(--accent, #c8a96e);
  color: var(--accent, #c8a96e);
}
.nml-wp-pagination .page-numbers.prev,
.nml-wp-pagination .page-numbers.next {
  width: auto;
  padding: 0 14px;
  letter-spacing: .05em;
}

/* =========================================================
   グッズ詳細ページ（single-nml_goods.php）
   ========================================================= */
.nml-goods-single { padding-bottom: 64px; }

/* 画像 + 透かし */
.nml-gs-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  user-select: none;
}
.nml-gs-img {
  width: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 透かしオーバーレイ */
.nml-gs-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 透かしタイル1個 */
.nml-wm-tile {
  position: absolute;
  transform: translate(-50%, -50%) rotate(-35deg);
  white-space: nowrap;
  text-align: center;
  line-height: 1.6;
}
.nml-wm-tile .nml-wm-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.nml-wm-tile .nml-wm-time {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.2);
}

/* 商品情報 */
.nml-gs-info {
  padding: 24px 24px 0;
}
.nml-gs-artist {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent, #c8a96e);
  margin: 0 0 8px;
}
.nml-gs-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}
.nml-gs-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent, #c8a96e);
  margin: 0 0 18px;
}
.nml-gs-btn-buy {
  display: block;
  width: 100%;
  background: var(--accent, #c8a96e);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  text-decoration: none;
  transition: background .2s;
  box-sizing: border-box;
}
.nml-gs-btn-buy:hover { background: var(--accent2, #e8c98e); }
.nml-gs-btn-buy.disabled {
  background: #1a1a1a;
  color: #555;
  border: 1px solid rgba(255,255,255,.08);
  cursor: default;
}

/* 本文 */
.nml-gs-body {
  padding: 28px 24px 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(240,240,240,.75);
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 28px;
}
.nml-gs-body p { margin-bottom: 1.2em; }

/* 関連グッズ */
.nml-gs-related {
  padding: 48px 24px 0;
}
.nml-gs-related-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
}

/* 戻るリンク */
.nml-gs-back {
  padding: 32px 24px 0;
}

/* =========================================================
   記事詳細ページ（single.php）
   ========================================================= */
.nml-single {
  padding-bottom: 64px;
}

.nml-single-header {
  padding: 100px 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nml-single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.nml-single-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.nml-single-thumb {
  width: 100%;
}
.nml-single-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* 本文エリア */
.nml-single-body {
  padding: 32px 24px 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(240,240,240,.82);
}
.nml-single-body p   { margin-bottom: 1.4em; }
.nml-single-body h2  { font-size: 18px; font-weight: 700; margin: 2em 0 .8em; color: #f0f0f0; padding-left: 12px; border-left: 2px solid var(--accent, #c8a96e); }
.nml-single-body h3  { font-size: 15px; font-weight: 700; margin: 1.6em 0 .6em; color: #f0f0f0; }
.nml-single-body a   { color: var(--accent, #c8a96e); text-decoration: underline; text-underline-offset: 3px; }
.nml-single-body a:hover { opacity: .8; }
.nml-single-body ul,
.nml-single-body ol  { margin: 0 0 1.4em 1.2em; }
.nml-single-body li  { margin-bottom: .4em; }
.nml-single-body img { max-width: 100%; height: auto; margin: 1.2em 0; }
.nml-single-body blockquote {
  border-left: 2px solid rgba(255,255,255,.12);
  padding: 12px 16px;
  margin: 1.4em 0;
  color: #666;
  font-style: italic;
}

/* 前後の記事 */
.nml-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.06);
  margin: 40px 0 0;
}
.nml-single-nav-item {
  background: #0d0d0d;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .15s;
}
.nml-single-nav-item:hover { background: #111; }
.nml-single-nav-next { text-align: right; }
.nml-single-nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent, #c8a96e);
}
.nml-single-nav-title {
  font-size: 12px;
  color: rgba(240,240,240,.7);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nml-single-back {
  padding: 32px 24px 0;
}

/* =========================================================
   フッター
   ========================================================= */
.nml-footer {
  padding: 48px 24px 56px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.nml-footer-logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-decoration: none;
  display: inline-block;
  color: #f0f0f0;
}
.nml-footer-logo span { color: var(--accent, #c8a96e); }

.nml-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 24px;
}
.nml-footer-nav a {
  color: #555;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s;
}
.nml-footer-nav a:hover { color: #f0f0f0; }

.nml-footer-sns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.nml-footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.08);
  color: #555;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .05em;
  transition: border-color .2s, color .2s;
}
.nml-footer-sns a:hover { border-color: var(--accent, #c8a96e); color: var(--accent, #c8a96e); }

.nml-footer-copy {
  font-size: 10px;
  color: #3a3a3a;
  letter-spacing: .06em;
}