/* ============================================================
   SOUND'S LIBRARY - 共通スタイル
   NST PICTURES 音楽視聴サイト
   ============================================================ */

:root {
  --dark: #222222;
  --darker: #1a1a1a;
  --white: #ffffff;
  --gray-bg: #f0f0f0;
  --text: #333333;
  --text-sub: #888888;
  --accent: #c9a86a;      /* セクション見出し */
  --bar-dark: #4a3a3a;    /* 再生バー(ダーク) */
  --bar-light: #efefef;   /* 再生バー(ライト・FAVORITE用) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---------- ヘッダー / ナビゲーション ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
}

.logo {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav a:hover { opacity: 0.7; }

/* ドロップダウン */
.dropdown { position: relative; }

.dropdown > a::after { content: ""; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--darker);
  padding: 14px 22px;
  min-width: 150px;
}

.dropdown-menu a {
  display: block;
  padding: 5px 0;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.btn-license {
  border: 1px solid var(--white);
  border-radius: 20px;
  padding: 9px 20px !important;
}

.btn-license:hover { background: rgba(255,255,255,0.15); opacity: 1 !important; }

/* ハンバーガー(モバイル) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero > * { position: relative; }

.hero-sub {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.35em;
  margin-bottom: 14px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero--small { height: 270px; }

/* ページごとのヒーロー画像 */
.hero--home {
  background-image: url("../images/hero-home.jpeg"), linear-gradient(120deg, #2b3560, #6a5a3a);
}
.hero--select-vocal {
  background-image: url("../images/hero-select-vocal.jpeg"), linear-gradient(120deg, #3a2a1a, #111);
}
.hero--select-inst {
  background-image: url("../images/hero-select-inst.jpeg"), linear-gradient(120deg, #5a4a30, #222);
}
.hero--nst-vocal {
  background-image: url("../images/hero-nst-vocal.jpg"), linear-gradient(120deg, #1a2560, #9aa5c0);
}
.hero--nst-inst {
  background-image: url("../images/hero-nst-inst.jpg"), linear-gradient(120deg, #6a3a5a, #b08a70);
}
.hero--favorite {
  background-image: url("../images/hero-favorite.jpeg"), linear-gradient(120deg, #3a7a3a, #8ab060);
}
.hero--licensee {
  background-image: url("../images/hero-licensee.jpg"), linear-gradient(120deg, #4a3a20, #201810);
}

/* ---------- メインコンテンツ ---------- */
.main { padding: 70px 20px 90px; }

.container { max-width: 1000px; margin: 0 auto; }

/* 楽曲リストページの2カラムレイアウト */
.list-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.side-nav .side-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  color:#c9a86a;
  margin-bottom: 16px;
}

.side-nav a {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-decoration: none;
  margin-bottom: 10px;
}

.side-nav a.active { color: var(--dark); }
.side-nav a:hover { color: var(--dark); }

/* ---------- 楽曲プレイヤー ---------- */
.track-list { display: flex; flex-direction: column; gap: 26px; }

.track {
  display: flex;
  align-items: center;
  background: var(--bar-dark);
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
}

.track-play {
  flex: 0 0 56px;
  height: 56px;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-play svg { width: 16px; height: 16px; fill: currentColor; }

.track-info { flex: 1; padding: 8px 16px; min-width: 0; }

.track-title {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: rgba(255,255,255,0.6);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  margin-top: 2px;
}

/* シークバー */
.track-progress {
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
}

.track-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.track-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--white);
  border-radius: 2px;
}

.track-time {
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ライトテーマ(FAVORITE ページ) */
.track--light { background: var(--bar-light); }
.track--light .track-play { color: var(--dark); border-right-color: rgba(0,0,0,0.1); }
.track--light .track-title { color: var(--dark); }
.track--light .track-artist { color: var(--text-sub); }
.track--light .track-bar { background: rgba(0,0,0,0.15); }
.track--light .track-bar-fill { background: var(--dark); }
.track--light .track-time { color: var(--text-sub); }

/* 再生中の強調 */
.track.playing .track-play { background: rgba(255,255,255,0.12); }
.track--light.playing .track-play { background: rgba(0,0,0,0.08); }

/* ---------- HOME / LICENSEE テキストセクション ---------- */
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 400;
}

.text-block { font-size: 16px; line-height: 2.1; }
.text-block p { margin-bottom: 12px; }
.text-block .center { text-align: center; }
.text-block .strong { font-weight: 700; }

.divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 50px 0;
}

.page-lead {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 50px;
}

.fav-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  color:#6a1917;
  margin-bottom: 28px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--darker);
  color: #999;
  text-align: center;
  padding: 60px 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
  .site-header { padding: 16px 18px; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--darker);
    padding: 10px 0;
  }

  .nav.open { display: flex; }

  .nav > a, .dropdown > a { padding: 12px 24px; width: 100%; }

  .dropdown { width: 100%; }

  .dropdown-menu {
    position: static;
    transform: none;
    display: block;
    background: #2a2a2a;
    padding: 0 0 6px 40px;
  }

  .btn-license { border: none; border-radius: 0; }

  .hero { height: 330px; }
  .hero--small { height: 200px; }

  .list-layout { grid-template-columns: 1fr; gap: 26px; }

  .side-nav { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
  .side-nav .side-title { margin-bottom: 0; }
  .side-nav a { margin-bottom: 0; }

  .track-progress { flex: 0 0 90px; }
  .track-time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* FAVORITEページ専用 */
.site-footer--tall {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* LICENSEEページ:囲み強調ボックス */
.text-box {
  border: 3px double #6A4A32;
  background: #FBF7F0;
  padding: 30px 44px;
  margin: 40px 0;
}

.text-box p {
  font-size: 15px;
  font-weight: 600;
  line-height: 2.2;
  color: #4A3A2E;
  margin-bottom: 20px;
}

.text-box p:last-child {
  margin-bottom: 0;
}

.text-block p.spaced { margin-top: 30px; }