:root {
  --bg: hsl(0 0% 6%);
  --fg: hsl(0 0% 94%);
  --speed: 90ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  line-height: 2;
  transition: background-color var(--speed) linear, color var(--speed) linear;
}

a { color: inherit; }

.top {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.artist { margin: 0; letter-spacing: .3em; font-size: 1rem; }

h1 {
  margin: .1em 0 0;
  font-size: clamp(5rem, 22vw, 14rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* 入稿データから切り出したロゴ。形だけ使い、色は文字色に合わせて変わる */
.logo {
  display: inline-block;
  background-color: var(--fg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color var(--speed) linear;
}
.logo-81 {
  width: min(70vw, 420px);
  aspect-ratio: 185 / 100;
  -webkit-mask-image: url(logo-81.png);
  mask-image: url(logo-81.png);
}
.logo-sofabed {
  width: min(48vw, 220px);
  aspect-ratio: 235 / 56;
  -webkit-mask-image: url(logo-sofabed.png);
  mask-image: url(logo-sofabed.png);
}

/* 日本語／英語の切り替え。html に is-en が付いたら英語を出す */
.en { display: none; }
html.is-en .en { display: revert; }
html.is-en .ja { display: none; }
html.is-en .lyric { font-family: Georgia, "Times New Roman", serif; line-height: 2; }

.lang {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  font-size: .8rem;
}
.lang button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: .35em 1em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.sub { margin: .5em 0 2em; letter-spacing: .2em; }

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5em;
}

.stores a {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 0;
}

.stores img { height: 40px; width: auto; display: block; }

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4em 1.4em;
  max-width: 40em;
}

.toc a { text-decoration: none; border-bottom: 1px solid currentColor; }

.calm {
  font: inherit;
  font-size: .85rem;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .3em 1.2em;
  cursor: pointer;
}

.calm[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.hint { font-size: .8rem; opacity: .7; margin-top: 2em; }

main { padding: 0 16px; }

.song {
  max-width: 34em;
  margin: 0 auto;
  padding: 30vh 0 20vh;
}

.song h2 {
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.2;
  margin: 0 0 1.2em;
  font-weight: 700;
}

.song .no {
  display: block;
  font-size: .35em;
  letter-spacing: .3em;
  margin-bottom: .4em;
}

.lyric {
  white-space: pre-line;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 2.2;
}

.end {
  padding: 30vh 16px 15vh;
  text-align: center;
}

.copy { font-size: .8rem; letter-spacing: .2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
