:root {
  color-scheme: dark;
  --bg: #050509;
  --panel: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.13);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --pink: #ff2fab;
  --violet: #8f4dff;
  --cyan: #76f7ff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 47, 171, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(143, 77, 255, 0.28), transparent 24rem),
    linear-gradient(160deg, #050509, #10101a 48%, #050509);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 26px rgba(255, 47, 171, 0.42);
}

.nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a,
.pill,
.cta {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 47, 171, 0.48);
  background: linear-gradient(135deg, rgba(255, 47, 171, 0.95), rgba(143, 77, 255, 0.9));
  box-shadow: 0 0 28px rgba(255, 47, 171, 0.28);
}

.page {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 42px clamp(16px, 4vw, 42px) 64px;
}

.hero {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.98;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card,
.article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.guide-shot {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 47, 171, 0.28), transparent 30%),
    linear-gradient(160deg, #12111b, #050509);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.guide-phone {
  position: absolute;
  inset: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 26%, transparent 64%, rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.22), transparent 24%),
    #090911;
}

.guide-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-size: 13px;
  font-weight: 950;
}

.guide-search {
  flex: 1;
  min-height: 28px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.guide-photo {
  position: absolute;
  inset: 58px -8px 92px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 47, 171, 0.2), rgba(143, 77, 255, 0.16)),
    url("https://pics.dmm.co.jp/digital/video/1stars00569/1stars00569pl.jpg") center / cover;
  filter: saturate(1.08);
}

.guide-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 46%, rgba(0, 0, 0, 0.5));
}

.guide-photo-glow {
  position: absolute;
  right: 18px;
  bottom: 28px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 47, 171, 0.34);
  filter: blur(18px);
}

.guide-actions-stack {
  position: absolute;
  right: 14px;
  bottom: 92px;
  z-index: 3;
  display: grid;
  gap: 10px;
}

.guide-actions-stack span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.48);
  box-shadow: 0 0 22px rgba(255, 47, 171, 0.22);
  font-weight: 950;
}

.guide-actions-stack small {
  margin-top: -4px;
  font-size: 8px;
  font-weight: 900;
}

.guide-dots {
  position: absolute;
  left: 18px;
  bottom: 84px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.guide-dots b {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.guide-dots b:first-child {
  width: 16px;
  background: #fff;
}

.guide-dots em {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.guide-info {
  position: absolute;
  left: 16px;
  right: 72px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 7px;
}

.guide-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.guide-tags span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-size: 9px;
  font-weight: 900;
}

.guide-info strong {
  font-size: 14px;
  line-height: 1.22;
}

.guide-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
}

.guide-labels {
  display: grid;
  gap: 10px;
}

.guide-labels span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.guide-labels b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
}

.article-page {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.article-page h2 {
  margin: 18px 0 0;
  font-size: 24px;
}

.article-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 680;
}

.article {
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.article h2,
.card h2 {
  margin: 0;
  font-size: 20px;
}

.article p,
.card p,
.note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.shelf-section {
  margin-top: 18px;
}

.shelf-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.bookshelf {
  display: grid;
  gap: 18px;
}

.shelf-row {
  min-width: 0;
}

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.shelf-head h3 {
  margin: 0;
  font-size: 16px;
}

.book-strip {
  display: grid;
  grid-auto-columns: minmax(108px, 140px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
}

.book-card {
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.book-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.25;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 47, 171, 0.28), transparent 36%),
    linear-gradient(145deg, #211527, #07070c);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.36),
    8px 0 0 rgba(255, 255, 255, 0.04) inset;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-rank {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(5, 5, 9, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.book-card p {
  display: -webkit-box;
  min-height: 34px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.loading {
  color: var(--muted);
  font-weight: 800;
}

.footer {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 42px) 30px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.7;
}

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

  .nav {
    width: 100%;
  }

  .page {
    padding-top: 30px;
  }
}
