:root {
  color-scheme: light;
  --night: #10141b;
  --night-2: #172133;
  --paper: #f2efe5;
  --panel: #fffdf6;
  --panel-soft: #e9e2d1;
  --ink: #17191d;
  --muted: #6c706f;
  --cream: #fbf6e8;
  --line: #d7d0bf;
  --green: #0c766a;
  --gold: #c9a24b;
  --rose: #b35667;
  --shadow: 0 18px 48px rgba(15, 20, 27, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(179, 86, 103, 0.16), transparent 30%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 44%, var(--paper) 44%, var(--paper) 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(16, 20, 27, 0.92);
  border-bottom: 1px solid rgba(251, 246, 232, 0.15);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand span,
.eyebrow,
.section-kicker,
.meta-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  color: var(--cream);
  font-size: 17px;
}

.top-nav {
  display: flex;
  gap: 4px;
}

.top-nav a {
  border-radius: 6px;
  color: #cbd2d1;
  font-size: 14px;
  font-weight: 850;
  padding: 8px 12px;
  text-decoration: none;
}

.top-nav a:hover {
  background: rgba(251, 246, 232, 0.08);
  color: var(--cream);
}

.loading-view,
.error-view {
  color: var(--cream);
  padding: 42px clamp(18px, 4vw, 52px);
}

.review-page {
  display: grid;
  gap: 28px;
}

.hero {
  align-items: center;
  color: var(--cream);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  padding: clamp(36px, 5vw, 70px) clamp(18px, 4vw, 52px) 34px;
}

@media (min-width: 1100px) {
  .hero {
    gap: clamp(48px, 6vw, 110px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    padding-inline: max(clamp(72px, 7vw, 120px), calc((100vw - 1500px) / 2));
  }
}

.hero-copy {
  align-content: center;
  display: grid;
  gap: 18px;
}

.hero-share-slot {
  justify-self: center;
  width: min(100%, 520px);
}

.breadcrumb {
  color: #b9c1c6;
  font-size: 13px;
  margin: 0;
}

.breadcrumb a {
  color: var(--gold);
  font-weight: 850;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: 0;
  line-height: 1.07;
}

.lead {
  color: #dce0df;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.86;
  max-width: 790px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-groups {
  display: grid;
  gap: 12px;
}

.action-group {
  display: grid;
  gap: 7px;
}

.action-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.service-group {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.service-group--youtube {
  background: #fff4f4;
  border-color: rgba(217, 37, 37, 0.22);
}

.service-group--youtube > span {
  color: #b91c1c;
}

.service-group--spotify {
  background: #effaf3;
  border-color: rgba(29, 185, 84, 0.24);
}

.service-group--spotify > span {
  color: #137c3d;
}

.button,
.shop-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
}

.button.primary,
.shop-link {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}

.button.secondary {
  background: rgba(251, 246, 232, 0.08);
  border-color: rgba(251, 246, 232, 0.25);
  color: var(--cream);
}

.hero-card {
  align-self: start;
  background: rgba(251, 246, 232, 0.96);
  border: 1px solid rgba(251, 246, 232, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.hero-image {
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
  width: 100%;
}

.hero-image.is-hidden {
  display: none;
}

.track-card {
  background: #171b22;
  border-radius: 8px;
  color: var(--cream);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.track-card strong {
  font-size: 24px;
  line-height: 1.25;
}

.track-card span {
  color: #bec8c8;
}

.content-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  padding: 0 clamp(18px, 4vw, 52px) 58px;
}

.main-column {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.side-rail {
  align-content: start;
  align-self: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 86px;
}

.section,
.rail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 20, 27, 0.06);
}

.section {
  padding: clamp(20px, 3vw, 30px);
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1.2;
}

.body-text {
  color: #444844;
  line-height: 1.86;
}

.media-embed {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.media-embed iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #111;
  width: 100%;
}

.media-embed figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.track-grid,
.point-grid,
.link-grid {
  display: grid;
  gap: 12px;
}

.track-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.mini-card {
  background: var(--panel-soft);
  border: 1px solid #d5cdbb;
  border-radius: 8px;
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  padding: 15px;
}

.mini-card .media-embed {
  align-self: end;
  margin: 2px 0 0;
}

.mini-card .body-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  margin: 0;
}

.mini-card strong {
  color: var(--green);
}

.check-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.check-list li {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 20px minmax(0, 1fr);
  line-height: 1.55;
}

.check-list li::before {
  background: #dceee9;
  border-radius: 50%;
  color: var(--green);
  content: "✓";
  display: grid;
  font-size: 12px;
  font-weight: 900;
  height: 20px;
  place-items: center;
  width: 20px;
}

.section-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.section-link {
  align-items: center;
  background: #151a22;
  border: 1px solid rgba(12, 118, 106, 0.2);
  border-radius: 8px;
  color: #fffaf0;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.section-link::after {
  color: var(--gold);
  content: "→";
  font-weight: 900;
}

.section-link:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.shop-link {
  box-shadow: 0 8px 18px rgba(16, 20, 27, 0.12);
  color: #111;
}

.shop-link--spotify,
.shop-link--youtube {
  align-items: center;
  display: inline-flex;
}

.shop-link--spotify::before,
.shop-link--youtube::before {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  margin-right: 7px;
  width: 18px;
}

.shop-link--amazon {
  background: #252c3a;
  border-color: #252c3a;
  color: #fff;
}

.shop-link--rakuten {
  background: #b71f14;
  border-color: #b71f14;
  color: #fff;
}

.shop-link--yahoo {
  background: #f17732;
  border-color: #f17732;
  color: #fff;
}

.shop-link--spotify {
  background: #1db954;
  border-color: #1db954;
  color: #07120b;
}

.shop-link--spotify::before {
  background: rgba(7, 18, 11, 0.16);
  color: #07120b;
  content: "♪";
}

.shop-link--youtube {
  background: #d92525;
  border-color: #d92525;
  color: #fff;
}

.shop-link--youtube::before {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  content: "▶";
  font-size: 9px;
}

.shop-link:hover {
  transform: translateY(-1px);
}

.rail-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.rail-panel h3 {
  font-size: 16px;
  margin: 0;
}

.rail-cta {
  background: rgba(245, 239, 224, 0.95);
  color: #15171b;
}

.ad-panel {
  background: linear-gradient(135deg, rgba(11, 123, 111, 0.16), rgba(202, 163, 74, 0.12));
}

.ad-box {
  align-items: center;
  border: 1px dashed rgba(245, 239, 224, 0.32);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-height: 112px;
}

.toc-list,
.related-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list a,
.related-list a {
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
  text-decoration: none;
}

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

.link-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
  text-decoration: none;
}

.link-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.link-card strong {
  color: var(--green);
  line-height: 1.45;
}

#links .link-card.has-image {
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.16), rgba(9, 10, 13, 0.68)),
    linear-gradient(90deg, rgba(12, 16, 19, 0.42), rgba(12, 16, 19, 0.12)),
    var(--card-image) center / cover;
  border-color: rgba(255, 250, 238, 0.18);
  box-shadow: 0 18px 36px rgba(10, 12, 16, 0.18);
  min-height: 176px;
  overflow: hidden;
  position: relative;
}

#links .link-card.has-image::after {
  background:
    linear-gradient(135deg, rgba(202, 162, 75, 0.12), transparent 48%),
    linear-gradient(90deg, rgba(21, 91, 82, 0.1), transparent 62%),
    linear-gradient(0deg, rgba(255, 250, 238, 0.04), transparent 54%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

#links .link-card.has-image span,
#links .link-card.has-image strong,
#links .link-card.has-image small {
  position: relative;
  z-index: 1;
}

#links .link-card.has-image span,
#links .link-card.has-image small {
  color: rgba(255, 250, 238, 0.84);
}

#links .link-card.has-image strong {
  color: #fffaf0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58);
}

@media (max-width: 1040px) {
  .hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-share-slot {
    justify-self: stretch;
    width: 100%;
  }

  .side-rail {
    position: static;
  }
}

@media (min-width: 1041px) {
  .hero-copy {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .hero-card {
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 520px;
    width: 100%;
  }

  .hero-share-slot {
    grid-column: 2;
    grid-row: 2;
    margin-top: -12px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: start;
    flex-direction: column;
  }

  .top-nav {
    overflow-x: auto;
    width: 100%;
  }

  .track-grid,
  .point-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}
