:root {
  --ink: #1f2523;
  --paper: #f5f2eb;
  --paper-raised: #fcfaf5;
  --line: #d8d2c5;
  --muted: #69716d;
  --forest: #355244;
  --forest-deep: #273d34;
  --moss: #899779;
  --amber: #bd8450;
  --rose: #b46d63;
  --container: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans JP", "Microsoft YaHei", sans-serif;
  background: var(--paper);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8f5ee;
  background: rgba(39, 61, 52, 0.96);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.site-wordmark {
  position: relative;
  flex: 0 0 auto;
  color: #f0d6a3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-wordmark::after {
  position: absolute;
  right: 2px;
  bottom: -7px;
  left: 5px;
  height: 1px;
  background: #f0d6a3;
  content: "";
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
}

.main-nav > a,
.nav-group > a {
  position: relative;
  padding-block: 24px;
  color: rgba(248, 245, 238, 0.72);
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f4d9a6;
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 1px;
  background: #f4d9a6;
  content: "";
}

.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu {
  position: absolute;
  visibility: hidden;
  top: calc(100% - 8px);
  left: -14px;
  min-width: 130px;
  padding: 8px;
  border: 1px solid rgba(248, 245, 238, 0.18);
  background: #2a4238;
  opacity: 0;
  transform: translateY(7px);
  transition: 160ms ease;
}

.submenu a {
  display: block;
  padding: 8px 10px;
  color: rgba(248, 245, 238, 0.74);
}

.submenu a:hover {
  color: #f4d9a6;
  background: rgba(255, 255, 255, 0.08);
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.submenu-toggle,
.nav-toggle {
  display: none;
}

.sound-hero {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  color: #fbf8f0;
  background: var(--forest-deep);
}

.sound-hero::before {
  position: absolute;
  top: -96px;
  right: 8%;
  width: 330px;
  height: 330px;
  opacity: 0.15;
  background: url("../../static/images/interest-yorushika.png") center / contain no-repeat;
  content: "";
  transform: rotate(-8deg);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 286px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  padding-block: 30px;
}

.section-heading > p,
.detail-kicker {
  margin: 0 0 9px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
}

.hero-copy > p:last-child {
  margin: 11px 0 0;
  color: rgba(251, 248, 240, 0.78);
  font-size: 17px;
}

html[lang="ja"] .hero-copy h1,
html[lang="ja"] .share-copy h3 {
  font-family: "Noto Serif JP", "Yu Mincho", Georgia, serif;
}

html[lang="ja"] .hero-copy h1 {
  font-size: 44px;
  line-height: 1.15;
}

html[lang="ja"] .hero-copy > p:last-child {
  max-width: 18ch;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

html[lang="ja"] .share-label {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

html[lang="ja"] .share-copy h3 {
  font-size: 20px;
  line-height: 1.4;
}

html[lang="ja"] .share-artist,
html[lang="ja"] .share-actions button {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

html[lang="ja"] .share-actions button {
  font-weight: 650;
}

.playlists-section,
.playlist-detail-section {
  padding-block: 64px;
}

.playlists-section {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.playlist-detail-section {
  border-top: 1px solid var(--line);
}

.section-heading h2,
.playlist-intro h2,
.detail-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.22;
}

.share-card {
  display: grid;
  width: 100%;
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 166px;
  align-items: center;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #fffdf8;
  box-shadow: 0 12px 26px rgba(20, 33, 27, 0.16);
}

.share-cover,
.song-cover {
  position: relative;
  overflow: hidden;
  background: var(--forest);
}

.share-cover {
  width: 108px;
  height: 108px;
  margin: 20px 0 20px 16px;
}

.share-cover::after,
.song-cover::after {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  content: "";
}

.share-cover img,
.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-cover--image::after,
.song-cover--image::after {
  display: none;
}

.share-copy {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 24px 16px 2px;
}

.share-label {
  margin: 0 0 4px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
}

.share-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.share-artist {
  margin: 5px 0 0;
  color: var(--forest);
  font-size: 15px;
  font-weight: 600;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.listen-button,
.reshare-button,
.detail-close,
.playlist-open {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  transition: 160ms ease;
}

.listen-button {
  padding: 0 15px;
  border-color: var(--forest);
  color: #fffdf6;
  background: var(--forest);
}

.listen-button:hover:not(:disabled),
.listen-button.is-playing {
  background: var(--forest-deep);
}

.listen-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.reshare-button,
.detail-close,
.playlist-open {
  padding: 0 14px;
  color: var(--forest);
}

.reshare-button:hover,
.detail-close:hover,
.playlist-open:hover {
  border-color: var(--forest);
  background: #edf0e7;
}

.preview-status {
  min-height: 16px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.playlist-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.playlist-intro > div:last-child > p {
  max-width: 620px;
  margin: 0;
  color: #59625d;
  line-height: 1.8;
}

.playlist-intro .intro-lead {
  margin-bottom: 4px !important;
  color: var(--forest) !important;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 21px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.playlist-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-align: left;
  background: #fffdf8;
}

.playlist-card:hover,
.playlist-card:focus-visible {
  border-color: var(--forest);
  outline: 0;
  box-shadow: 0 12px 24px rgba(53, 82, 68, 0.1);
  transform: translateY(-2px);
}

.playlist-number {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.playlist-card h3 {
  margin: 36px 0 8px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.playlist-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.playlist-open {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  color: var(--forest);
  font-size: 13px;
}

.playlist-open::after {
  margin-left: 6px;
  content: "→";
}

.detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-description {
  max-width: 700px;
  margin: 22px 0 32px;
  color: var(--muted);
  line-height: 1.85;
}

.detail-song-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
}

.song-entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.song-entry:nth-child(-n + 2) {
  border-top: 0;
}

.song-cover {
  width: 64px;
  height: 64px;
}

.song-cover::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  content: "k";
  font-family: Georgia, serif;
  font-size: 26px;
}

.song-cover--image::before {
  display: none;
}

.song-info {
  min-width: 0;
}

.song-info h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-artist {
  margin: 4px 0 0;
  color: var(--forest);
  font-size: 13px;
}

.song-description {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .sound-hero,
  .hero-layout {
    min-height: 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 30px;
  }

  .share-card {
    justify-self: stretch;
  }

  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-song-list {
    grid-template-columns: 1fr;
  }

  .song-entry:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }

  .song-entry:first-child {
    border-top: 0;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(100% - 30px, 620px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .site-wordmark {
    font-size: 20px;
  }

  .nav-toggle {
    position: absolute;
    z-index: 2;
    top: 11px;
    right: 15px;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: #f0d6a3;
  }

  .main-nav {
    position: absolute;
    display: none;
    top: 64px;
    right: 0;
    left: 0;
    align-items: stretch;
    gap: 0;
    padding: 14px 15px 20px;
    background: var(--forest-deep);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > a,
  .nav-group > a {
    display: block;
    padding: 10px 0;
  }

  .main-nav a.active::after {
    display: none;
  }

  .nav-group {
    display: grid;
    grid-template-columns: 1fr 36px;
  }

  .submenu-toggle {
    display: block;
    border: 0;
    color: #f0d6a3;
    background: transparent;
    font-size: 20px;
  }

  .submenu {
    position: static;
    display: none;
    visibility: visible;
    grid-column: 1 / -1;
    padding: 0 0 6px 14px;
    border: 0;
    background: transparent;
    opacity: 1;
    transform: none;
  }

  .nav-group:hover .submenu {
    display: none;
  }

  .nav-group.submenu-open .submenu {
    display: block;
  }

  .sound-hero::before {
    right: -50px;
    width: 260px;
    height: 260px;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

  html[lang="ja"] .hero-copy h1 {
    font-size: 36px;
  }

  .playlists-section,
  .playlist-detail-section {
    padding-block: 46px;
  }

  .share-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 0;
  }

  .share-cover {
    width: 72px;
    height: 72px;
    margin: 16px 0 16px 16px;
  }

  .share-copy {
    padding: 14px 14px 12px 0;
  }

  .share-copy h3 {
    font-size: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html[lang="ja"] .share-copy h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .share-label {
    margin-bottom: 2px;
    font-size: 10px;
  }

  html[lang="ja"] .share-label {
    font-size: 11px;
  }

  .share-artist {
    margin-top: 3px;
    font-size: 13px;
  }

  .share-actions {
    gap: 8px;
    margin-top: 11px;
  }

  .listen-button,
  .reshare-button {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .preview-status {
    margin-top: 5px;
    font-size: 11px;
  }

  .playlist-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .playlist-card {
    min-height: 188px;
  }

  .playlist-card h3 {
    margin-top: 26px;
  }

  .detail-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
