:root {
  --bg: #0b0c10;
  --bg-2: #12141b;
  --card: #171a22;
  --card-2: #1d212c;
  --line: rgba(255,255,255,.08);
  --text: #eef0f4;
  --muted: #9aa3b5;
  --accent: #ff5d7a;
  --accent-2: #ffb45a;
  --good: #7ee0a3;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  letter-spacing: .02em;
}
.bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(255,93,122,.18), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(255,180,90,.10), transparent 55%),
    linear-gradient(180deg, #10121a 0%, var(--bg) 40%);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top, main { position: relative; z-index: 1; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  min-height: 72px;
  padding: 12px 28px;
  background: rgba(11,12,16,.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-side { min-width: 0; }
.brand {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  z-index: 1;
}
h1 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
}
h1 a {
  color: inherit;
  text-decoration: none;
}
h1 a:hover { color: #ffd0d8; }
h1 span {
  color: var(--accent-2);
  font-weight: 700;
}

.top-controls {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}
.controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
  width: auto;
  max-width: 100%;
}
.search, .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.search { flex: 1 1 220px; }
.field { flex: 0 0 auto; }
.top .search input { width: 230px; }
.top .field select { width: 168px; }
.top .field:last-child select { width: 122px; }
.field span {
  font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .08em;
  white-space: nowrap;
}
input, select {
  appearance: none;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
  min-height: 38px;
  width: 100%;
  min-width: 0;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}
input:focus, select:focus { border-color: rgba(255,93,122,.7); box-shadow: 0 0 0 3px rgba(255,93,122,.18); }

main {
  padding: 22px 28px 64px;
  max-width: 1920px;
  margin: 0 auto;
}
.meta { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 1600px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
.empty { color: var(--muted); text-align: center; padding: 80px 0; }
[hidden] { display: none !important; }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,180,90,.28); }
.cover {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #0a0b10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}
.cover img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
}
.badge {
  position: absolute; top: 10px; left: 10px;
  min-width: 36px; height: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px; font-weight: 800;
  letter-spacing: .04em;
}
.badge.top { background: linear-gradient(135deg, #ffd36a, #ff8a4a); color: #2a1608; }
.body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.title {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.title a {
  color: inherit;
  text-decoration: none;
}
.title a:hover { color: #ffd0d8; }
.circle { margin: 0; color: var(--muted); font-size: 12.5px; }
.date-line { margin: 0; color: var(--muted); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 10.5px;
  color: #d7dce8;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}
.more { color: var(--muted); }
.link {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,93,122,.12);
  color: #ffd0d8;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(255,93,122,.25);
}
.link:hover { background: rgba(255,93,122,.22); }

.btn {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #ff5d7a, #ff8a4a);
  color: #1a0b0d; font-weight: 800; text-decoration: none;
  padding: 10px 16px; border-radius: 11px; font-size: 13px;
  width: fit-content;
}
.btn:hover { filter: brightness(1.06); }

.back {
  display: inline-flex; align-items: center;
  color: #ffd0d8;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,93,122,.12);
  border: 1px solid rgba(255,93,122,.25);
}
.back:hover { background: rgba(255,93,122,.22); }

.detail-nav { margin: 0 0 16px; }
.detail-main {
  padding: 22px 28px 80px;
  max-width: 1920px;
  margin: 0 auto;
}
.detail-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.detail-head {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.4;
  font-weight: 800;
}
.detail-head .circle { font-size: 15px; }
.detail-head .circle-link {
  color: #ffd0d8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,208,216,.45);
}
.detail-head .circle-link:hover {
  color: #ff2d95;
  border-bottom-color: #ff2d95;
}
.detail-head .date-line { font-size: 13px; }
.detail-head .tag { font-size: 12px; padding: 4px 10px; }
.detail-head .btn { margin-top: 8px; }

.gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0b10;
}
.gallery-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}
.gallery-link:hover img { opacity: .92; }
.gallery-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.synopsis { margin-top: 32px; }
.synopsis-head {
  background: #242424;
  border-left: 4px solid #ff2d95;
  padding: 14px 22px;
}
.synopsis-title {
  margin: 0;
  color: #ff2d95;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: .04em;
}
.synopsis-body {
  background: #242424;
  padding: 8px 22px 24px;
}
.synopsis-quote {
  position: relative;
  border-left: 4px double #8a8a8a;
  padding: 4px 0 4px 18px;
  color: #c8c8c8;
}
.synopsis-copy {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 14.5px;
  color: #c8c8c8;
}
.synopsis-quote.is-collapsed {
  max-height: calc(1.9em * 4);
  overflow: hidden;
}
.synopsis-fade {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2em;
  background: linear-gradient(to bottom, rgba(36,36,36,0), #242424 85%);
  pointer-events: none;
}
.synopsis-quote.is-collapsed .synopsis-fade { display: block; }
.synopsis-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.synopsis-more {
  appearance: none;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 8px 32px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.synopsis-more:hover { background: rgba(255,255,255,.08); }
.synopsis-more[hidden] { display: none; }

.read-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100px;
  margin-top: 32px;
  box-sizing: border-box;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(120% 160% at 8% 0%, rgba(255,255,255,.25), transparent 42%),
    radial-gradient(90% 140% at 100% 110%, rgba(70,0,90,.4), transparent 55%),
    linear-gradient(90deg, #ff2d95 0%, #e0187a 48%, #8b157c 100%);
  box-shadow: 0 10px 28px rgba(255, 45, 149, .38);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.read-banner-label {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.read-banner-arrow {
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.read-banner:hover {
  filter: brightness(1.1);
  transform: scale(1.015);
  box-shadow: 0 14px 36px rgba(255, 45, 149, .55);
}
.read-banner:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.related { margin-top: 56px; }
.related-title {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 800;
  color: #ff2d95;
  text-align: left;
  letter-spacing: .04em;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 12px;
    padding-bottom: 14px;
  }
  .top-side:first-child { display: none; }
  .brand { grid-column: auto; }
  .top-controls {
    justify-self: stretch;
    width: 100%;
  }
  .controls { flex-wrap: wrap; justify-content: flex-start; width: 100%; }
  .search, .field { flex: 1 1 160px; }
  .top .search input, .top .field select, .top .field:last-child select { width: 100%; }
  h1 { white-space: normal; }
}

@media (max-width: 720px) {
  .top, main, .detail-main { padding-left: 16px; padding-right: 16px; }
  .top { min-height: 60px; }
  .controls, .search, .field { width: 100%; flex: 1 1 100%; }
  .detail-head { padding: 18px; }
}

@media (max-width: 359px) {
  .grid { grid-template-columns: 1fr; }
}

.pager {
  margin: 36px 0 8px;
  background: #14151b;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pager-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1;
}
.pager-bar a,
.pager-num,
.pager-edge,
.pager-step,
.pager-ellipsis {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  user-select: none;
}
.pager-bar a:hover {
  color: #ffd0e8;
}
.pager-num {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}
.pager-num:hover:not(.is-current) {
  background: rgba(255,255,255,.08);
}
.pager-num.is-current {
  background: #ff2d95;
  color: #fff;
  font-weight: 800;
}
.pager-edge {
  padding: 0 10px;
  white-space: nowrap;
}
.pager-step {
  width: 32px;
  padding: 0;
  font-size: 20px;
  font-weight: 400;
}
.pager-ellipsis {
  width: 28px;
  padding: 0;
  color: #fff;
  letter-spacing: 0;
}

.ranking {
  margin-top: 48px;
  padding-top: 8px;
}
.ranking-title {
  margin: 0 0 18px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.clouds {
  margin-top: 48px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 28px 28px 36px;
}
.cloud + .cloud {
  margin-top: 32px;
}
.cloud-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  color: #ff2d95;
  text-align: left;
  letter-spacing: .04em;
  line-height: 1.2;
}
.cloud-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 0;
  align-items: baseline;
  line-height: 2.2;
}
.cloud-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  line-height: 2.2;
}
.cloud-item .hash {
  color: #5ce1ff;
  font-weight: 700;
}
.cloud-item .name {
  color: #fff;
  font-weight: 500;
}
.cloud-item .count {
  color: #8a8a8a;
  font-size: 12px;
  margin-left: 0.55em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.cloud-item:hover .name,
.cloud-item.is-active .name {
  color: #ffd0e8;
}
.cloud-item.is-active .hash {
  color: #ff7ac8;
}

@media (max-width: 720px) {
  .clouds { padding: 20px 16px 28px; }
  .cloud-title, .related-title { font-size: 24px; }
  .synopsis-head, .synopsis-body { padding-left: 16px; padding-right: 16px; }
  .read-banner {
    height: 80px;
    margin-top: 24px;
    border-radius: 12px;
  }
  .read-banner-label { font-size: 22px; letter-spacing: .06em; }
  .read-banner-arrow { font-size: 18px; }
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 40px 28px 64px;
  border-top: 1px solid var(--line);
  color: #8a8a8a;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer-brand {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}
.site-footer-title {
  margin: 0 0 18px;
  color: #9a9a9a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
}
.site-footer p {
  margin: 0 0 1em;
  font-size: 13px;
  line-height: 1.85;
  color: #8a8a8a;
}
.site-footer p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .site-footer { padding-left: 16px; padding-right: 16px; }
}
