/* segue.day LP。共有ページ（/track, /playlist）と同じ夜の配色・角丸・グラデーションを使う。 */
:root {
  color-scheme: dark;
  --bg: #070b16;
  --bg-2: #111827;
  --ink: #f8fafc;
  --ink-2: #dbe4f0;
  --ink-3: #b8c2d3;
  --ink-4: #94a3b8;
  --gold: #f2b84b;
  --blue: #9aadff;
  --blue-strong: #4b6bff;
  --teal: #7ad9c4;
  --line: #ffffff18;
  --card: #ffffff0a;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --art-gradient: linear-gradient(145deg, #f2b84b, #a645ef 58%, #16233d);
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
}
.lang-zh { --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; }
.lang-en, .lang-es { --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, #34366d 0, transparent 40%),
    radial-gradient(circle at 92% 30%, #4b6bff26 0, transparent 34%),
    linear-gradient(160deg, var(--bg) 20%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sp { display: none; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 10; border-radius: 999px; background: var(--gold); color: #15100a; padding: 8px 14px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 6px 24px #0008; }
.brand span { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.lang-switch a { border-radius: 999px; padding: 4px 10px; color: var(--ink-3); font-size: .78rem; font-weight: 700; text-decoration: none; }
.lang-switch a:hover { color: var(--ink); background: #ffffff10; }
.lang-switch a[aria-current="page"] { color: var(--gold); background: #f2b84b1a; }

.site-footer {
  display: grid; gap: 14px; justify-items: center;
  width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 56px;
  border-top: 1px solid var(--line); color: var(--ink-4); font-size: .82rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer nav a { color: var(--ink-3); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 0; }

/* ---------- common ---------- */
main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0 0 18px; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.1; text-wrap: balance; line-break: strict; letter-spacing: -.04em; font-weight: 900; }
h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
.lang-ja h1, .lang-ja h2, .lang-ja .lead, .lang-ja .body { word-break: auto-phrase; }
.lang-en h1, .lang-es h1, .lang-en h2, .lang-es h2 { font-family: var(--display); font-weight: 700; }
.lead, .body { max-width: 40em; margin: 0; color: var(--ink-2); font-size: clamp(.98rem, 1.6vw, 1.08rem); }
.section { padding: clamp(80px, 12vw, 140px) 0 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 7vw, 80px) 0 0; }
.hero .lead { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- player ---------- */
.player {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 40%) 1fr;
  grid-template-areas: "art body" "lyrics lyrics";
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(160deg, #ffffff0f, #ffffff05);
  padding: clamp(18px, 4vw, 40px);
  box-shadow: 0 40px 120px #0007;
}
.player-art { grid-area: art; position: relative; }
.artwork {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 28px; object-fit: cover; box-shadow: 0 30px 90px #0009;
  position: relative; z-index: 1;
  transition: opacity .6s ease;
}
img.artwork { position: absolute; inset: 0; }
.artwork-fallback { display: grid; place-items: center; background: var(--art-gradient); background-size: 160% 160%; }
.artwork-fallback span { color: #fff; font-family: var(--display); font-size: clamp(1.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: .14em; }
.glow {
  position: absolute; inset: 8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, #f2b84b88, #a645ef55 45%, transparent 70%);
  filter: blur(36px); opacity: 0; transform: scale(.9);
  transition: opacity .8s ease;
}
.player[data-state="playing"] .glow { opacity: 1; animation: breathe 4.8s ease-in-out infinite; }
.player[data-state="playing"] .artwork-fallback { animation: drift 12s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.12); } }
@keyframes drift { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }

.player-body { grid-area: body; min-width: 0; }
.player-label { margin: 0 0 6px; color: var(--ink-4); font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.player-title {
  margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.15;
  overflow-wrap: anywhere;
}
.lang-ja .player-title, .lang-zh .player-title { font-family: var(--sans); font-weight: 800; }
.player-counter { min-height: 1.4em; margin: 6px 0 0; color: var(--ink-4); font-family: var(--display); font-size: .82rem; font-variant-numeric: tabular-nums; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin: 22px 0 10px; }
.bars i { flex: 1; height: 20%; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--blue-strong)); opacity: .45; transform-origin: bottom; transition: height .4s ease, opacity .4s ease; }
.player[data-state="playing"] .bars i { opacity: 1; animation: bar 1.1s ease-in-out infinite alternate; }
.bars i:nth-child(4n+1) { animation-delay: -.2s; }
.bars i:nth-child(4n+2) { animation-delay: -.55s; animation-duration: .9s; }
.bars i:nth-child(4n+3) { animation-delay: -.8s; animation-duration: 1.3s; }
.bars i:nth-child(4n) { animation-delay: -.35s; animation-duration: .75s; }
@keyframes bar { 0% { height: 18%; } 50% { height: 92%; } 100% { height: 40%; } }

.seek { width: 100%; margin: 0; accent-color: var(--gold); cursor: pointer; }
.seek:disabled { cursor: default; opacity: .5; }
.time { display: flex; justify-content: space-between; color: var(--ink-4); font-family: var(--display); font-size: .78rem; font-variant-numeric: tabular-nums; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.controls button {
  display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer;
  color: #15100a; background: var(--gold); transition: transform .15s ease, box-shadow .3s ease, opacity .3s ease;
}
.controls button:disabled { cursor: default; opacity: .45; }
.controls button:not(:disabled):active { transform: scale(.94); }
.controls svg { width: 46%; height: 46%; fill: currentColor; }
.play { width: 72px; height: 72px; box-shadow: 0 0 0 0 #f2b84b66; }
.player[data-state="ready"] .play:not(:disabled) { animation: invite 2.4s ease-out infinite; }
@keyframes invite { 0% { box-shadow: 0 0 0 0 #f2b84b88; } 80%, 100% { box-shadow: 0 0 0 22px #f2b84b00; } }
.play .icon-pause { display: none; }
.player[data-state="playing"] .play .icon-play { display: none; }
.player[data-state="playing"] .play .icon-pause { display: block; }
.controls .next { width: 48px; height: 48px; color: var(--ink); background: #ffffff14; border: 1px solid #ffffff2e; }
.open-in-app { border: 1px solid #ffffff38; border-radius: 999px; padding: 10px 16px; color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
.open-in-app:hover { border-color: var(--gold); color: var(--gold); }
.player-note { margin: 14px 0 0; color: var(--ink-3); font-size: .85rem; }

.lyrics { grid-area: lyrics; border-top: 1px solid var(--line); padding-top: 20px; }
.lyrics-label { margin: 0 0 8px; color: var(--ink-4); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lyrics-scroll {
  max-height: 8.5em; overflow-y: auto; scrollbar-width: none;
  color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; white-space: pre-line;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  padding: 1.6em 0;
}
.lyrics-scroll::-webkit-scrollbar { display: none; }

/* ---------- transitions ---------- */
.timeline {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin: 48px 0 0; padding: 36px 0 0; list-style: none;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: linear-gradient(90deg, var(--gold), #a645ef 50%, var(--blue-strong));
  opacity: .5;
}
.timeline::after {
  content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 18px 6px #f2b84b99;
  opacity: 0;
}
.timeline.in-view::after { opacity: 1; animation: playhead 10s linear infinite; }
@keyframes playhead { from { left: 0; } to { left: calc(100% - 16px); } }
.timeline li { position: relative; display: grid; gap: 4px; align-content: start; }
.timeline li::before {
  content: ""; position: absolute; top: -32px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
.timeline time { color: var(--ink-4); font-family: var(--display); font-size: .82rem; font-variant-numeric: tabular-nums; }
.timeline span { font-weight: 800; line-height: 1.35; }
.chip {
  justify-self: start; max-width: 100%; margin-top: 8px; border-radius: 999px; padding: 4px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #ffffff10; color: var(--ink-3); font-size: .76rem; font-weight: 600;
  transition: background .4s ease, color .4s ease;
}
.chip:empty::before { content: "♪"; }
.timeline.in-view li .chip { animation: chip-on 10s linear infinite; }
.timeline.in-view li:nth-child(2) .chip { animation-delay: 2s; }
.timeline.in-view li:nth-child(3) .chip { animation-delay: 4s; }
.timeline.in-view li:nth-child(4) .chip { animation-delay: 6s; }
.timeline.in-view li:nth-child(5) .chip { animation-delay: 8s; }
@keyframes chip-on {
  0%, 22% { background: var(--gold); color: #15100a; box-shadow: 0 0 22px #f2b84b55; }
  24%, 100% { background: #ffffff10; color: var(--ink-3); box-shadow: none; }
}

/* ---------- fade & dig ---------- */
.fade { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(32px, 6vw, 72px); align-items: center; }
.trail {
  border: 1px solid var(--line); border-radius: 28px; padding: 22px;
  background: linear-gradient(170deg, #1b2140, #0b1022 70%); box-shadow: 0 30px 90px #0008;
}
.trail-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 800; }
.moon { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset -5px -2px 0 0 #f7e7b4; transform: rotate(-20deg); }
.trail ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.trail li {
  display: grid; grid-template-columns: 3.2em 40px 1fr auto; align-items: center; gap: 12px;
  border-radius: 16px; padding: 8px 10px;
  transition: opacity 1.6s ease, filter 1.6s ease, background .8s ease, box-shadow .8s ease;
}
.trail time { color: var(--ink-4); font-family: var(--display); font-size: .78rem; font-variant-numeric: tabular-nums; }
.trail .thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--art-gradient); }
.trail li:nth-child(2) .thumb { background: linear-gradient(145deg, #7ad9c4, #4b6bff 60%, #16233d); }
.trail li:nth-child(4) .thumb { background: linear-gradient(145deg, #ff9a6b, #a645ef 60%, #16233d); }
.trail li:nth-child(5) .thumb { background: linear-gradient(145deg, #9aadff, #34366d 60%, #070b16); }
.trail-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.trail-title:empty::before { content: "♪ · · ·"; color: var(--ink-4); }
.trail em { color: var(--ink-4); font-size: .72rem; font-style: normal; font-weight: 700; }
.trail.in-view li:not(.kept) { opacity: .28; filter: blur(1.2px) saturate(.4); }
.trail.in-view li:nth-child(1) { transition-delay: .2s; }
.trail.in-view li:nth-child(2) { transition-delay: .7s; }
.trail.in-view li:nth-child(4) { transition-delay: 1.2s; }
.trail.in-view li:nth-child(5) { transition-delay: 1.7s; }
.trail li.kept em { color: var(--gold); }
.trail.in-view li.kept { background: #f2b84b1f; box-shadow: inset 0 0 0 1px #f2b84b66, 0 0 32px #f2b84b33; transition-delay: 2.2s; }

/* ---------- rights ---------- */
.rights { text-align: center; }
.rights .body { margin: 0 auto; }

/* ---------- cta ---------- */
.cta { display: grid; justify-items: center; text-align: center; padding-bottom: clamp(80px, 12vw, 140px); }
.cta-icon { border-radius: 26px; box-shadow: 0 24px 80px #4b6bff55; margin-bottom: 24px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.store { display: block; line-height: 0; }
.store img { display: block; height: 48px; width: auto; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .section > .eyebrow, .section > h2, .section > .body, .fade-copy, .cta-icon {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- language gate (/) ---------- */
.language-gate main { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 12px; text-align: center; }
.language-gate img { border-radius: 22px; }
.language-gate h1 { font-family: var(--display); font-size: 2.4rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .fade { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 18px; padding: 0 0 0 30px; margin-top: 36px; }
  .timeline::before { left: 5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), #a645ef 50%, var(--blue-strong)); }
  .timeline::after { left: -2px; top: 0; }
  .timeline.in-view::after { animation-name: playhead-v; }
  @keyframes playhead-v { from { top: 0; } to { top: calc(100% - 16px); } }
  .timeline li { grid-template-columns: 3.4em minmax(0, 1fr) minmax(0, 46%); align-items: center; gap: 10px; }
  .timeline li::before { top: 6px; left: -30px; }
  .timeline .chip { margin-top: 0; justify-self: end; }
}
@media (max-width: 680px) {
  .sp { display: inline; }
  .site-header { padding-top: 14px; }
  .site-header .lang-switch { display: none; }
  .hero { padding-top: 28px; }
  .player {
    grid-template-columns: 112px 1fr;
    grid-template-areas: "art body" "lyrics lyrics";
    gap: 16px 18px; align-items: start; border-radius: 26px; padding: 16px;
  }
  .artwork { border-radius: 18px; }
  .artwork-fallback span { font-size: 1rem; }
  .player-title { font-size: 1.2rem; }
  .bars { height: 26px; margin: 12px 0 8px; }
  .play { width: 60px; height: 60px; }
  .controls .next { width: 44px; height: 44px; }
  .open-in-app { padding: 8px 12px; font-size: .8rem; }
  .lyrics-scroll { font-size: .95rem; }
  .trail li { grid-template-columns: 2.8em 34px 1fr auto; gap: 10px; }
  .trail .thumb { width: 34px; height: 34px; }
}
