/* Rose Theme — Modern Design */

:root {
  --primary: #f43f5e;
  --primary-dark: #e11d48;
  --secondary: #fb7185;
  --accent: #be123c;
  --bg: #fff8f8;
  --bg-secondary: #fff1f2;
  --bg-tertiary: #ffe4e6;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(244, 63, 94, 0.12);
  --shadow: 0 20px 25px -5px rgba(244, 63, 94, 0.1);
  --shadow-sm: 0 4px 6px -1px rgba(244, 63, 94, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(244, 63, 94, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(251, 113, 133, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* === CONTAINER === */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 1rem 4rem;
  }
}

/* === PAGE HEADER (h1) === */
h1 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 2rem 0 0.75rem 0;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.2;
  width: 100%;
}

/* === INTRO PARAGRAPHS === */
p {
  margin: 0.4rem 0;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  width: 100%;
  font-size: 0.95rem;
}

/* "鷹森ツヅルの歌を聞こう" など、p 内に単独リンクがある場合はボタン化 */
p > a:only-child {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: none;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

p > a:only-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4);
  color: white;
  border-bottom: none;
}

/* === SECTION CARDS: h2 をカードヘッダーに === */
h2 {
  font-size: 1.0rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem 0.875rem 0 0;
  margin: 1.75rem 0 0 0;
  width: 100%;
  line-height: 1.5;
  letter-spacing: 0.01em;
  border-bottom: none;
}

h2 a {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease;
}

h2 a:hover {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.8);
  transform: none;
}

/* h2 直後の ol → カードボディ */
h2 + ol {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 0.875rem 0.875rem;
  padding: 0.375rem 1.25rem 0.375rem 3rem;
  margin: 0;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
}

/* 曲リストアイテム */
h2 + ol li {
  padding: 0.45rem 0.25rem;
  border-bottom: 1px solid rgba(244, 63, 94, 0.06);
  color: var(--text-muted);   /* タイムスタンプ部分を薄く */
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  margin: 0;
}

h2 + ol li:last-child {
  border-bottom: none;
}

h2 + ol li:hover {
  background: rgba(244, 63, 94, 0.04);
  color: var(--text-secondary);
}

/* 曲タイトルリンク */
h2 + ol li > a {
  color: var(--text);
  font-weight: 500;
  border-bottom: none;
  transition: color 0.15s ease;
}

h2 + ol li > a:hover {
  color: var(--primary);
  border-bottom: none;
  transform: none;
}

/* === h3 === */
h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--primary);
  font-weight: 600;
}

/* === 一般リンク === */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

/* === 汎用 ul / ol (h2 + ol 以外) === */
ul, ol {
  margin: 1.25rem 0;
  padding-left: 2rem;
  width: 100%;
}

li {
  margin: 0.6rem 0;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

li:hover {
  color: var(--text);
}

/* === CODE === */
code {
  background: var(--bg-secondary);
  color: var(--primary-dark);
  padding: 0.15em 0.5em;
  border-radius: 0.3rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875em;
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

pre code {
  background: none;
  color: var(--text);
  padding: 0;
  border: none;
}

/* === BLOCKQUOTE === */
blockquote {
  border-left: 3px solid var(--primary);
  margin: 1.25rem 0;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(244, 63, 94, 0.04);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* === HR === */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* === TABLE === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

th {
  padding: 0.875rem 1rem;
  color: white;
  font-weight: 600;
  text-align: left;
  font-size: 0.9rem;
}

td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

tr:hover {
  background: rgba(244, 63, 94, 0.04);
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.45);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
  }

  h2 + ol {
    padding-left: 2.5rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

/* === PRINT === */
@media print {
  body {
    background: white;
    color: black;
  }

  a {
    color: var(--primary-dark);
  }

  h2 {
    background: var(--primary-dark);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .back-to-top {
    display: none;
  }
}
