:root{
  --bg:#f7f9ff;
  --card:#ffffff;
  --ink:#111827;
  --muted:#667085;
  --line:#e4e9f2;
  --navy:#071125;
  --purple:#7c4dff;
  --blue:#1ec8ff;
  --accent:#7357ff;
  --shadow:0 14px 36px rgba(21,33,64,.12);
  --softShadow:0 8px 22px rgba(21,33,64,.08);
  --radius:18px;
  --siteTopHeight:156px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(124,77,255,.12), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(30,200,255,.10), transparent 28%),
    var(--bg);
}
a{color:#6847ff;text-decoration:underline;text-underline-offset:3px;font-weight:700;}
a:hover{text-decoration:none;}
.siteTop{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:var(--siteTopHeight);
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 28px 18px;
  background:rgba(8,18,37,.92);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  backdrop-filter:blur(12px);
}
.brand{
  display:flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
  margin-right:0;
}
.brandLogo{
  width:340px;
  max-width:62vw;
  max-height:calc(var(--siteTopHeight) - 44px);
  height:auto;
  object-fit:contain;
  display:block;
  flex:0 1 auto;
  filter:drop-shadow(0 6px 18px rgba(30,200,255,.35));
}
.menuWrap{position:relative;z-index:3;}
.menuButton{
  display:flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:16px;
  background:rgba(255,255,255,.08);
  box-shadow:0 8px 24px rgba(0,0,0,.16);
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.menuButton img{width:30px;height:30px;object-fit:contain;}
.menuPanel{
  display:none;
  position:absolute;
  right:0;
  top:0;
  min-width:210px;
  padding:10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(8,18,37,.94);
  box-shadow:0 16px 40px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
}
.menuPanel a{
  display:block;
  margin:0;
  padding:11px 12px;
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.menuPanel a:hover{background:rgba(255,255,255,.10);}
.menuWrap:hover .menuPanel,
.menuWrap:focus-within .menuPanel{display:block;}
.pageHero{
  margin:0 0 24px;
  padding:calc(var(--siteTopHeight) + 26px) 28px 42px;
  color:#fff;
  background:#081225 url("/header_bg.webp") center/cover no-repeat;
  position:relative;
  overflow:hidden;
}
.pageHero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;height:60px;
  background:linear-gradient(180deg,rgba(247,249,255,0),var(--bg));
  pointer-events:none;
}
.pageHeroInner{position:relative;z-index:1;width:min(100%, 1120px);margin:0 auto;}
.breadcrumb{font-size:14px;color:rgba(255,255,255,.82);margin-bottom:14px;}
.breadcrumb a{color:#fff;}
.detailShell{
  width:min(100%, 1120px);
  margin:-34px auto 42px;
  padding:0 28px;
  position:relative;
  z-index:5;
}
.detailCard{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(228,233,242,.96);
  border-radius:24px;
  box-shadow:var(--shadow);
  overflow:hidden;
  backdrop-filter:blur(16px);
}
.detailHeader{
  padding:28px 30px 24px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,rgba(124,77,255,.08),rgba(30,200,255,.08));
}
.titleRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
h1{
  margin:0;
  font-size:38px;
  line-height:1.22;
  letter-spacing:.01em;
  overflow-wrap:anywhere;
}
.headerActions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}
.iconButton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:1px solid #dfe5f0;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(91,78,255,.08);
}
.iconButton:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(21,33,64,.12);}
.iconButton img{width:20px;height:20px;object-fit:contain;display:block;pointer-events:none;}
.rateButton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:72px;
  height:42px;
  padding:6px 10px;
  border:1px solid #dfe5f0;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  color:#333;
  font-size:14px;
  font-weight:850;
  box-shadow:0 5px 15px rgba(91,78,255,.08);
}
.rateButton:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 18px rgba(21,33,64,.12);}
.rateButton:disabled{cursor:default;color:#888;background:#f7f7f7;border-color:#ddd;}
.rateIcon{width:20px;height:20px;object-fit:contain;display:block;}
.rateCount{min-width:1.6em;text-align:right;}
.metaLinkGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:0 0 26px;
}
.metaItem{
  min-width:0;
  padding:12px 14px;
  border:1px solid rgba(228,233,242,.96);
  border-radius:14px;
  background:rgba(255,255,255,.72);
}
.metaLabel{
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.metaValue{
  display:block;
  font-size:15px;
  font-weight:800;
  overflow-wrap:anywhere;
}
.detailBody{padding:28px 30px 32px;}
.primaryActionArea{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:18px;
  align-items:center;
  margin-bottom:26px;
  padding:20px;
  border:1px solid rgba(228,233,242,.96);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--softShadow);
}
.audioBlock{min-width:0;}
.detailAudioRow{display:flex;align-items:center;gap:12px;width:100%;}
.detailAudioRow #detailAudio{flex:1 1 auto;width:auto;min-width:260px;}
.detailPlayerOptions{display:flex;gap:10px;align-items:center;flex:0 0 auto;}
.toggleSource{display:none;}
.optionIcon{display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;}
.toggleButton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  height:42px;
  padding:6px 10px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  border:1px solid #d4c9ff;
  background:#fff;
  color:var(--accent);
  border-radius:12px;
  box-shadow:0 5px 15px rgba(91,78,255,.08);
}
.toggleButton:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(21,33,64,.12);}
.toggleButton.active{
  background:linear-gradient(135deg,var(--purple),var(--blue));
  border-color:transparent;
  color:#fff;
  box-shadow:0 10px 24px rgba(91,78,255,.22);
}

a.downloadPrimary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:220px;
  min-height:58px;
  padding:14px 22px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;
  text-decoration:none;
  font-size:17px;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 14px 30px rgba(91,78,255,.24);
}
a.downloadPrimary:hover{transform:translateY(-1px);box-shadow:0 18px 38px rgba(91,78,255,.30);}
a.downloadPrimary img{width:24px;height:24px;object-fit:contain;filter:brightness(0) invert(1);}
.downloadBlock{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.downloadLabel{
  margin-left:2px;
}
.createdInfo{
  margin-top:18px;
  padding:0 2px;
}

#detailAudio{width:100%;height:42px;border-radius:999px;}
.sectionTitleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
h2{margin:0;font-size:22px;line-height:1.3;}
.lyricsPanel{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--softShadow);
  overflow:hidden;
}
.lyricsText{
  margin:0;
  padding:20px;
  min-height:260px;
  white-space:pre-wrap;
  overflow:auto;
  color:#1f2937;
  font-family:Consolas,"SFMono-Regular",Menlo,monospace;
  font-size:14px;
  line-height:1.75;
  background:#fbfcff;
}
.backArea{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.backArea a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 14px;
  border:1px solid #d8deea;
  border-radius:12px;
  background:#fff;
  text-decoration:none;
  color:#111827;
  font-weight:850;
}
.backArea a:hover{box-shadow:0 8px 18px rgba(21,33,64,.12);}
.siteFooter{
  width:min(100%, 1080px);
  margin:0 auto 32px;
  padding:0 28px;
  color:var(--muted);
  font-size:13px;
}
.siteFooter nav{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:10px;}
.copyToast{
  position:fixed;
  left:50%;
  bottom:36px;
  z-index:10000;
  transform:translate(-50%, 16px);
  padding:12px 18px;
  border-radius:999px;
  background:rgba(8,18,37,.94);
  color:#fff;
  font-size:15px;
  font-weight:800;
  box-shadow:0 14px 38px rgba(0,0,0,.24);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.copyToast.show{opacity:1;transform:translate(-50%, 0);}
@media (max-width: 700px){
  :root{--siteTopHeight:96px;}
  body{font-size:15px;}
  .siteTop{padding:18px 20px 14px;}
  .brandLogo{width:230px;max-width:68vw;}
  .menuButton{width:48px;height:48px;border-radius:14px;}
  .menuButton img{width:28px;height:28px;}
  .menuPanel{top:56px;}
  .pageHero{padding:calc(var(--siteTopHeight) + 24px) 20px 34px;}
  .breadcrumb{font-size:13px;margin-bottom:10px;}
  .detailShell{margin:-24px auto 32px;padding:0 12px;}
  .detailCard{border-radius:18px;}
  .detailHeader{padding:20px 16px 18px;}
  .titleRow{align-items:center;gap:10px;}
  h1{font-size:28px;line-height:1.28;}
  .headerActions{gap:8px;}
  .iconButton{width:40px;height:40px;}
  .metaLinkGrid{grid-template-columns:1fr;gap:9px;margin:0 0 22px;}
  .metaItem{padding:11px 12px;border-radius:13px;}
  .detailBody{padding:18px 16px 22px;}
  .primaryActionArea{grid-template-columns:1fr;gap:14px;padding:14px;border-radius:16px;margin-bottom:22px;}
  .detailAudioRow{gap:8px;}
  .detailAudioRow #detailAudio{min-width:0;height:40px;}
  .detailPlayerOptions{gap:7px;}
  .toggleButton{width:46px;height:42px;min-width:0;padding:0;}
  .downloadBlock{width:100%;}
  a.downloadPrimary{width:100%;min-height:56px;font-size:17px;border-radius:16px;}
  a.downloadPrimary span{display:inline;}
  a.downloadPrimary img{width:24px;height:24px;}
  h2{font-size:20px;}
  .lyricsText{min-height:300px;max-height:52vh;padding:14px;font-size:13px;line-height:1.7;}
  .sectionTitleRow{margin-bottom:10px;}
  .backArea{display:grid;grid-template-columns:1fr;gap:8px;margin-top:20px;}
  .backArea a{width:100%;}
  .siteFooter{padding:0 20px;}
}