/* ACHRAG Music Service — 静的試聴サイト共通CSS */

@font-face {
  font-family: 'Noto Serif JP';
  src: url('/assets/NotoSerifJP.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #e0d5c5;
  font-family: 'Noto Serif JP', 'Inter', serif, sans-serif;
}

body {
  min-height: 100dvh;
  padding: 3rem 1.5rem 4rem;
}

a {
  color: inherit;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.container-narrow {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

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

/* 言語切替アイコン行 */
.lang-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lang-row a {
  font-size: 1.6rem;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
  filter: grayscale(0.3);
}

.lang-row a.active {
  opacity: 1;
  filter: none;
  transform: scale(1.15);
}

/* 戻るリンク（現在は未使用だが互換のため保持） */
.back-link {
  display: block;
  text-align: center;
  color: #78cdd0;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* 見出し */
.division-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(224,213,197,0.4);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.6;
}

h1 {
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.list-page h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #c9a96e;
  margin-bottom: 2rem;
  text-align: center;
}

/* audio プレーヤー枠 */
.audio-box {
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.02);
  margin-bottom: 2.5rem;
}

.audio-box audio {
  width: 100%;
}

/* 歌詞 */
.lyrics-block {
  text-align: left;
  margin-bottom: 3rem;
}

.lyrics-heading {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 1.25rem;
  text-align: center;
}

.lyrics-text {
  white-space: pre-line;
  line-height: 2.1;
  color: rgba(224,213,197,0.7);
  font-size: 0.98rem;
}

/* 関連曲一覧（一覧ページ用） */
.related-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(224,213,197,0.5);
  margin-bottom: 1.25rem;
  text-align: center;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 10px;
  text-decoration: none;
  color: #e0d5c5;
  background: rgba(255,255,255,0.02);
  font-size: 0.95rem;
}

.track-item.active {
  border-color: rgba(201,169,110,0.9);
  background: rgba(255,255,255,0.06);
}

.track-item .idx {
  font-size: 0.7rem;
  color: rgba(224,213,197,0.5);
  letter-spacing: 0.1em;
  min-width: 24px;
}

.track-item .label {
  flex: 1;
  text-align: left;
  letter-spacing: 0.02em;
}

.track-item .arrow {
  color: #78cdd0;
  font-size: 1.1rem;
}

/* 一覧ページ（大きめアイテム） */
.track-list-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-list-page .track-item {
  padding: 1.1rem 1.5rem;
}

.track-list-page .track-item .label {
  font-size: 1.05rem;
}

/* 言語選択ページ */
.select-lang-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.select-lang-list a {
  display: block;
  padding: 1.25rem 2rem;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 12px;
  color: #e0d5c5;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, border-color 0.2s;
}

.select-lang-list a:hover {
  background: rgba(201,169,110,0.1);
}

/* Explicit Content バッジ */
.explicit-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff6b6b;
  border: 1px solid rgba(255,107,107,0.5);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 2rem;
}

.explicit-warning {
  font-size: 0.72rem;
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* 全曲ナビ（横並びボタン・静的HTML埋め込み） */
.track-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.track-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(255,255,255,0.02);
  color: rgba(224,213,197,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.track-nav a.active {
  border-color: rgba(201,169,110,0.9);
  background: rgba(201,169,110,0.14);
  color: #e0d5c5;
}

/* 年齢確認：CSS :target 方式（JS不要）
   DOM順序: #content（本編・最初は非表示）→ .age-gate-overlay 内に #gate-ja → #gate-en の順。
   一般兄弟結合子(~)は「後に来る要素」にのみ効くため、この順序が必須。
   デフォルト（フラグメントなし）: #gate-en が表示される。
   #ja を含むURLで開くと #gate-ja が表示され #gate-en は隠れる。
   #content をターゲットにすると本編が表示されオーバーレイ全体が隠れる。 */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate-box {
  max-width: 480px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255,107,107,0.4);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  background: rgba(20,20,20,0.9);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.age-gate-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff6b6b;
  margin-bottom: 1.5rem;
}

.age-gate-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #e0d5c5;
  margin-bottom: 2.5rem;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.age-gate-buttons a {
  display: block;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.age-gate-accept {
  border: 1px solid rgba(201,169,110,0.6);
  background: rgba(201,169,110,0.12);
  color: #e0d5c5;
}

.age-gate-accept:hover {
  background: rgba(201,169,110,0.22);
}

.age-gate-decline {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(224,213,197,0.7);
}

.age-gate-decline:hover {
  background: rgba(255,255,255,0.05);
}

#gate-ja {
  display: none;
}

#gate-ja:target {
  display: flex;
  flex-direction: column;
}

#gate-ja:target ~ #gate-en {
  display: none;
}

#content {
  display: none;
}

#content:target {
  display: block;
}

#content:target ~ .age-gate-overlay {
  display: none;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,110,0.15);
  text-align: center;
}

.site-footer p {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(224,213,197,0.4);
}

.track-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.track-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.site-org-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: #c9a96e;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.notice-message {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.notice-message-en {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3rem;
}
