/* css/reset.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}


/* css/variables.css */
:root {
  --color-bg: #0d0d12;
  --color-surface: #191922;
  --color-surface-hover: #252532;
  --color-border: #383848;
  --color-text-primary: #f7f5fb;
  --color-text-secondary: #b8b5c7;
  --color-accent: #e63e6d;
  --color-accent-hover: #ff4d7e;
  --color-sale: #ff6b35;
  --color-sale-bg: rgba(255, 107, 53, 0.15);
  --color-star: #f4c542;
  --color-cta: #e63e6d;
  --color-cta-hover: #c9355e;
  --font-display: "Inter", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius-sm: 6px;
  --radius-md: 8px;
  --bp-mobile: 767px;
  --bp-tablet: 1024px;
  --bp-desktop: 1280px;
}


/* css/common.css */
body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
}

body.is-drawer-open {
  overflow: hidden;
}

body.is-modal-open {
  overflow: hidden;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 19, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9c5d4;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.section {
  padding: 46px 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section__head h2 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.25;
}

.section__link,
.text-button,
.reset-link {
  color: var(--color-accent-hover);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-hover));
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  background: var(--color-surface);
  cursor: pointer;
}

.muted {
  color: #c9c5d4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.age-gate[hidden] {
  display: none;
}

.age-gate__box {
  width: min(100%, 440px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 34px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.age-gate__box h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.age-gate__box p {
  color: #d2cfde;
}

.age-gate__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  color: #fff;
  background: var(--color-sale);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.stars {
  color: var(--color-star);
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.tier-badge--large {
  min-width: 74px;
  min-height: 42px;
  padding-inline: 16px;
  font-size: 1.08rem;
}

.tier-badge--god {
  color: #1a1204;
  border-color: rgba(255, 221, 119, 0.72);
  background: linear-gradient(135deg, #fff2a6, #ffb743 48%, #ff6d3f);
  text-shadow: none;
}

.tier-badge--ss {
  border-color: rgba(255, 103, 166, 0.7);
  background: linear-gradient(135deg, #ff4f8a, #d4306b 55%, #8f5bff);
}

.tier-badge--s {
  color: #041c1a;
  border-color: rgba(105, 255, 221, 0.72);
  background: linear-gradient(135deg, #77ffe1, #2ac7d3 52%, #4f8fff);
  text-shadow: none;
}

.tier-badge--a {
  border-color: rgba(157, 190, 255, 0.65);
  background: linear-gradient(135deg, #5f8cff, #4962cf 54%, #26377c);
}

.tier-badge--b {
  border-color: rgba(206, 212, 230, 0.36);
  background: linear-gradient(135deg, #697184, #383e50 54%, #222631);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 62, 109, 0.55);
  box-shadow: var(--shadow-card);
}

.work-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #262633;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.work-card:hover .work-card__media img {
  transform: scale(1.04);
}

.work-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 12px 12px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
  transition: opacity 0.2s ease;
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.work-card__sale {
  position: static;
}

.work-card__body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.work-card__title {
  min-height: 3.1em;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-card__meta,
.work-card__volume {
  color: #c9c5d4;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d0ccdb;
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.3;
}

.work-card__image-error {
  opacity: 0;
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #c9c5d4;
  background: linear-gradient(135deg, #252532, #181820);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  background: var(--color-surface);
  cursor: pointer;
}

.page-btn.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  color: #d0ccdb;
  background: var(--color-surface);
}

.error-state {
  color: #ffd0db;
  border-color: rgba(230, 62, 109, 0.45);
}

.skeleton-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #20202a 25%, #2d2d3b 50%, #20202a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-media {
  aspect-ratio: 3 / 4;
}

.skeleton-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  color: #bbb7c8;
  background: #0b0b0e;
  font-size: 0.82rem;
}

.site-footer .container {
  display: grid;
  gap: 4px;
}

.not-found {
  display: grid;
  place-items: start;
  gap: 16px;
  min-height: 70vh;
  padding-top: 80px;
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .container,
  .site-header__inner {
    width: min(100% - 24px, 1180px);
  }

  .site-header__inner {
    min-height: 58px;
    gap: 10px;
  }

  .site-logo {
    font-size: 0.95rem;
  }

  .site-nav {
    gap: 2px;
    font-size: 0.8rem;
  }

  .site-nav a {
    padding: 7px 8px;
  }

  .section {
    padding: 34px 0;
  }

  .section__head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .work-card__body {
    padding: 10px;
  }

  .work-card__badges {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .tier-badge {
    min-width: 42px;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .work-card__title {
    font-size: 0.82rem;
  }

  .work-card__meta,
  .work-card__volume,
  .work-card__rating {
    font-size: 0.72rem;
  }

  .age-gate__box {
    padding: 24px;
  }
}


/* css/pages/actor-maker.css */
.archive-page {
  padding-top: 34px;
}

.archive-header {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 22px;
}

.archive-header h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.archive-header__ruby {
  color: #c9c5d4;
  font-size: 1rem;
}

.archive-header__description {
  max-width: 780px;
  color: #d0ccdb;
}

.archive-results {
  padding-top: 24px;
}

.archive-results .result-count {
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .archive-page {
    padding-top: 24px;
  }
}


/* css/pages/index.css */
.hero {
  min-height: auto;
  padding: 42px 0 54px;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 62, 109, 0.12), transparent 34%),
    linear-gradient(180deg, #111118 0%, var(--color-bg) 100%);
}

.hero--loading {
  background: linear-gradient(135deg, #15151d, #0f0f13);
}

.hero__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 900px);
  text-align: center;
}

.hero__media {
  position: relative;
  width: min(100%, 900px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #15151d;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

.hero__media[hidden] {
  display: none;
}

.hero__media img {
  width: 100%;
  max-height: 430px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101017;
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  background: rgba(20, 20, 28, 0.82);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider__nav:hover {
  border-color: var(--color-accent);
  background: rgba(230, 62, 109, 0.9);
  transform: translateY(-50%) scale(1.03);
}

.hero-slider__nav[hidden] {
  display: none;
}

.hero-slider__nav--prev {
  left: 14px;
}

.hero-slider__nav--next {
  right: 14px;
}

.hero-thumbs {
  width: min(100%, 900px);
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 4px;
  scrollbar-width: none;
}

.hero-thumbs[hidden] {
  display: none;
}

.hero-thumbs::-webkit-scrollbar {
  display: none;
}

.hero-thumb {
  flex: 0 0 74px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0;
  background: #171720;
  opacity: 0.78;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  border-color: var(--color-accent);
  opacity: 1;
  transform: translateY(-1px);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(1.35rem, 2.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero__meta {
  max-width: 680px;
  color: #d5d2df;
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.hero__cta,
.hero__detail {
  min-width: 180px;
}

.section--sale {
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.08), rgba(15, 15, 19, 0));
}

.rail-wrap {
  width: min(100%, 1180px);
  margin-inline: auto;
  overflow: hidden;
}

.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.work-rail::-webkit-scrollbar {
  display: none;
}

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

.genre-nav {
  display: grid;
  gap: 18px;
}

.genre-group {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.genre-group h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-tag {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: #c9c5d4;
  background: var(--color-surface);
  font-size: 0.86rem;
  font-weight: 700;
}

.genre-tag:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.section--site-info {
  padding-top: 10px;
}

.site-info-box {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.site-info-box h2 {
  margin-bottom: 10px;
  color: var(--color-text-primary);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.35;
}

.site-info-box p {
  max-width: 820px;
  color: #d7d3e2;
  font-size: 0.94rem;
  line-height: 1.85;
  white-space: pre-line;
}

.grid-loading {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .work-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 24px 0 34px;
  }

  .hero__content {
    gap: 10px;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero__media img {
    max-height: 320px;
  }

  .hero-slider__nav {
    width: 34px;
    height: 48px;
    font-size: 1.55rem;
  }

  .hero-slider__nav--prev {
    left: 8px;
  }

  .hero-slider__nav--next {
    right: 8px;
  }

  .hero-thumbs {
    justify-content: flex-start;
    width: min(100%, calc(100vw - 24px));
  }

  .hero-thumb {
    flex-basis: 62px;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__cta,
  .hero__detail {
    width: min(100%, 260px);
  }

  .work-rail {
    grid-auto-columns: 44vw;
    padding-inline: 12px;
  }

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

  .section--site-info {
    padding-top: 0;
  }

  .site-info-box {
    padding-top: 18px;
  }
}


/* css/pages/work.css */
.detail-page {
  padding-top: 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-media {
  display: grid;
  gap: 14px;
}

.detail-media__main {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.main-image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.detail-media__main img,
.main-image-button img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.sample-carousel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.sample-carousel--single {
  grid-template-columns: minmax(0, 1fr);
}

.sample-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.sample-thumbs::-webkit-scrollbar {
  display: none;
}

.sample-nav {
  width: 38px;
  height: 58px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  background: linear-gradient(180deg, #242431, #181820);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sample-nav:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
  transform: translateY(-1px);
}

.sample-thumb {
  flex: 0 0 76px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sample-thumb.is-active {
  border-color: var(--color-accent);
  opacity: 1;
}

.sample-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.sample-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info {
  display: grid;
  gap: 16px;
}

.detail-info h1 {
  font-size: clamp(1.45rem, 2.5vw, 2.45rem);
  line-height: 1.34;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #d0ccdb;
}

.btn-purchase {
  width: min(100%, 520px);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  color: #fff;
  background: linear-gradient(135deg, #e63e6d, #c9355e);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 32px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-purchase:hover {
  opacity: 0.85;
}

.external-note {
  margin-top: -10px;
  color: #c9c5d4;
  font-size: 0.8rem;
  text-align: center;
}

.overview-box {
  white-space: pre-line;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  color: #d4d1df;
  background: var(--color-surface);
}

.tier-panel {
  --tier-bg: #121214;
  --tier-elevated: #1c1c1e;
  --tier-track: #2c2c2e;
  --tier-hairline: rgba(255, 255, 255, 0.14);
  --tier-text: #f5f5f7;
  --tier-secondary: rgba(235, 235, 245, 0.68);
  --tier-tertiary: rgba(235, 235, 245, 0.42);
  --tier-blue-start: #5ee1d8;
  --tier-blue-end: #0a84ff;
  --tier-gold-start: #ffd60a;
  --tier-gold-end: #ff9f0a;
  --tier-rank-start: #8e8e93;
  --tier-rank-end: #636366;
  --tier-rank-text: #151517;
  border: 1px solid var(--tier-hairline);
  border-radius: 22px;
  padding: 28px 32px 30px;
  color: var(--tier-text);
  background: var(--tier-bg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44), 0 2px 0 rgba(255, 255, 255, 0.035) inset;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Noto Sans JP", sans-serif;
  container-type: inline-size;
}

.delivery-price-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(230, 62, 109, 0.1), rgba(67, 224, 192, 0.055)),
    var(--color-surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.tier-panel__head,
.delivery-price-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.tier-panel__eyebrow {
  color: var(--tier-tertiary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.tier-panel h2 {
  color: var(--tier-text);
  font-size: 1.52rem;
  line-height: 1.2;
}

.delivery-price-panel h2 {
  color: var(--color-text-primary);
  font-size: 1.08rem;
  line-height: 1.3;
}

.tier-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--tier-rank-text);
  background: linear-gradient(135deg, var(--tier-rank-start), var(--tier-rank-end));
  font-variant-numeric: tabular-nums;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.tier-summary-pill--god {
  --tier-rank-start: #ffd60a;
  --tier-rank-end: #ff9f0a;
  --tier-rank-text: #241a00;
}

.tier-summary-pill--ss {
  --tier-rank-start: #bf5af2;
  --tier-rank-end: #ff375f;
  --tier-rank-text: #210015;
  border-color: rgba(255, 55, 95, 0.55);
}

.tier-summary-pill--s {
  --tier-rank-start: #0a84ff;
  --tier-rank-end: #5ac8fa;
  --tier-rank-text: #001c35;
}

.tier-summary-pill--a {
  --tier-rank-start: #30d158;
  --tier-rank-end: #64d2ff;
  --tier-rank-text: #00241a;
}

.tier-summary-pill--b {
  --tier-rank-start: #8e8e93;
  --tier-rank-end: #636366;
  --tier-rank-text: #f5f5f7;
}

.tier-panel__body {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.tier-radar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.tier-radar {
  width: min(100%, 292px);
  height: auto;
  overflow: visible;
}

.tier-radar__grid polygon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1;
}

.tier-radar__grid line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

.tier-radar__shape {
  fill: rgba(255, 214, 10, 0.22);
  stroke: #ffb710;
  stroke-width: 2.5;
}

.tier-radar__shape--god {
  fill: rgba(255, 214, 10, 0.28);
  stroke: #ffd60a;
}

.tier-radar__shape--ss {
  fill: rgba(255, 214, 10, 0.24);
  stroke: #ffb710;
}

.tier-radar__shape--a {
  fill: rgba(255, 214, 10, 0.2);
  stroke: #ffb710;
}

.tier-radar__shape--b {
  fill: rgba(255, 214, 10, 0.17);
  stroke: #ffb710;
}

.tier-radar__outline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
}

.tier-radar__dots circle {
  fill: #ffd60a;
  stroke: #fff;
  stroke-width: 2.4;
}

.tier-radar__labels text {
  fill: rgba(235, 235, 245, 0.78);
  font-size: 0.76rem;
  font-weight: 750;
}

.tier-radar-center {
  --tier-rank-start: #8e8e93;
  --tier-rank-end: #636366;
  --tier-rank-text: #151517;
  position: absolute;
  inset: 50% auto auto 50%;
  width: 65px;
  height: 65px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border-radius: 50%;
  color: var(--tier-rank-text);
  background:
    radial-gradient(circle at 50% 21%, rgba(255, 255, 255, 0.46), transparent 18%),
    linear-gradient(135deg, var(--tier-rank-start), var(--tier-rank-end));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.tier-radar-center strong {
  max-width: 72px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-size: 1.13rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.tier-radar-center span {
  color: var(--tier-rank-text);
  font-variant-numeric: tabular-nums;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1;
}

.tier-radar-center--god {
  --tier-rank-start: #ffd60a;
  --tier-rank-end: #ff9f0a;
  --tier-rank-text: #241a00;
}

.tier-radar-center--ss {
  --tier-rank-start: #bf5af2;
  --tier-rank-end: #ff375f;
  --tier-rank-text: #210015;
}

.tier-radar-center--s {
  --tier-rank-start: #0a84ff;
  --tier-rank-end: #5ac8fa;
  --tier-rank-text: #001c35;
}

.tier-radar-center--a {
  --tier-rank-start: #30d158;
  --tier-rank-end: #64d2ff;
  --tier-rank-text: #00241a;
}

.tier-radar-center--b {
  --tier-rank-start: #8e8e93;
  --tier-rank-end: #636366;
  --tier-rank-text: #f5f5f7;
}

.tier-metrics {
  display: grid;
  gap: 0;
}

.tier-metric {
  display: grid;
  grid-template-columns: 112px 134px minmax(120px, 1fr) 52px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  column-gap: 12px;
}

.tier-metric:first-child {
  border-top: 0;
}

.tier-metric dt {
  color: var(--tier-secondary);
  font-size: 0.96rem;
  font-weight: 750;
}

.tier-metric dd {
  display: contents;
}

.tier-metric__value {
  color: var(--tier-text);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  font-weight: 850;
  white-space: nowrap;
}

.tier-metric__bar {
  position: relative;
  display: block;
  height: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  background: var(--tier-track);
}

.tier-metric__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--metric, 0%);
  min-width: 17px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tier-blue-start), var(--tier-blue-end));
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.36);
}

.tier-metric__bar span::after {
  content: "";
  position: absolute;
  inset: 2px 3px auto;
  height: 38%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.32);
}

.tier-metric--max .tier-metric__bar span {
  background: linear-gradient(90deg, var(--tier-gold-start), var(--tier-gold-end));
  box-shadow: 0 0 14px rgba(255, 214, 10, 0.34);
}

.tier-metric b {
  justify-self: stretch;
  color: var(--tier-text);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 850;
  text-align: right;
}

@container (max-width: 760px) {
  .tier-panel__body {
    grid-template-columns: minmax(178px, 200px) minmax(0, 1fr);
    gap: 18px;
  }

  .tier-radar-wrap {
    min-height: 222px;
  }

  .tier-radar {
    width: min(100%, 208px);
  }

  .tier-radar__labels text {
    font-size: 0.66rem;
  }

  .tier-radar-center {
    width: 65px;
    height: 65px;
    gap: 1px;
  }

  .tier-radar-center strong {
    font-size: 1rem;
  }

  .tier-radar-center span {
    font-size: 0.96rem;
  }

  .tier-metric {
    grid-template-columns: 76px 88px minmax(60px, 1fr) 34px;
    min-height: 52px;
    column-gap: 7px;
  }

  .tier-metric dt {
    font-size: 0.8rem;
  }

  .tier-metric__value,
  .tier-metric b {
    font-size: 0.84rem;
  }

  .tier-metric__bar {
    height: 16px;
  }
}

.delivery-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.delivery-price-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.delivery-price-card span {
  color: #c9f6ef;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.delivery-price-card strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.2;
}

.delivery-price-card.is-empty {
  opacity: 0.52;
}

.delivery-price-card.is-empty strong {
  color: #c9c5d4;
}

.link-list,
.tag-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entity-groups {
  display: grid;
  gap: 13px;
}

.entity-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.entity-group h2 {
  color: var(--color-text-primary);
  font-size: 0.92rem;
  line-height: 1.3;
}

.tag-link,
.entity-link {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  color: #c9c5d4;
  background: var(--color-surface);
  font-size: 0.86rem;
  font-weight: 700;
}

.tag-link:hover,
.entity-link:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

.detail-section {
  margin-top: 44px;
}

.detail-section h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.description-text {
  color: #d0ccdb;
  white-space: pre-line;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--color-surface);
}

.review-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.review-card p {
  color: #d0ccdb;
}

.work-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 28px 72px;
  background: rgba(0, 0, 0, 0.9);
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.image-modal__close,
.image-modal__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(28, 28, 38, 0.86);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.image-modal__close {
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.image-modal__nav {
  top: 50%;
  width: 52px;
  height: 72px;
  border-radius: var(--radius-md);
  font-size: 2.2rem;
  transform: translateY(-50%);
}

.image-modal__nav--prev {
  left: 22px;
}

.image-modal__nav--next {
  right: 22px;
}

.image-modal__close:hover,
.image-modal__nav:hover {
  border-color: var(--color-accent);
  background: rgba(230, 62, 109, 0.92);
}

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

  .detail-media__main {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .detail-page {
    padding-top: 24px;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-info h1 {
    font-size: 1.55rem;
  }

  .btn-purchase {
    width: 100%;
    font-size: 1rem;
    padding: 14px 18px;
  }

  .sample-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .sample-nav {
    width: 34px;
    height: 52px;
  }

  .sample-thumb {
    flex-basis: 66px;
  }

  .main-image-button {
    cursor: default;
  }

  .entity-group {
    padding: 10px;
  }

  .tier-panel,
  .delivery-price-panel {
    padding: 14px;
  }

  .tier-panel__head,
  .delivery-price-panel__head {
    align-items: start;
  }

  .tier-panel__body {
    grid-template-columns: 1fr;
  }

  .tier-radar-wrap {
    min-height: 224px;
  }

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

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

@media (min-width: 521px) and (max-width: 767px) {
  .tier-panel__body {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 20px;
  }

  .tier-radar-wrap {
    min-height: 248px;
  }

  .tier-radar {
    width: min(100%, 240px);
  }

  .tier-metric {
    grid-template-columns: 86px 96px minmax(86px, 1fr) 38px;
    column-gap: 8px;
  }

  .tier-metric dt {
    font-size: 0.84rem;
  }

  .tier-metric__value,
  .tier-metric b {
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .tier-panel {
    border-radius: 18px;
    padding: 18px 16px 20px;
  }

  .tier-panel__head {
    align-items: flex-start;
  }

  .tier-summary-pill {
    min-width: 104px;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  .tier-panel__body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tier-radar-wrap {
    min-height: 260px;
  }

  .tier-radar {
    width: min(100%, 252px);
  }

  .tier-metric {
    grid-template-columns: 74px 88px minmax(72px, 1fr) 34px;
    min-height: 52px;
    column-gap: 7px;
  }

  .tier-metric dt {
    font-size: 0.78rem;
  }

  .tier-metric__value,
  .tier-metric b {
    font-size: 0.82rem;
  }

  .tier-metric__bar {
    height: 16px;
  }
}


/* css/pages/works.css */
.listing-page {
  padding-top: 34px;
}

.listing-page__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.listing-page__header h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
}

.listing-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.filter-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100svh - 110px);
  overflow: auto;
  scrollbar-width: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--color-surface);
}

.filter-sidebar::-webkit-scrollbar {
  display: none;
}

.filter-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-sidebar__head h2 {
  font-size: 1.05rem;
}

#filter-drawer-close {
  display: none;
}

.filter-toggle {
  display: none;
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.search-box input,
.sort-select select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  background: #111118;
  padding: 10px 12px;
}

.reset-link {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.tag-accordions {
  display: grid;
  gap: 4px;
}

.tag-accordion {
  border-top: 1px solid var(--color-border);
  padding-top: 4px;
}

.tag-accordion summary {
  cursor: pointer;
  color: var(--color-text-primary);
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  line-height: 1.35;
  list-style-position: inside;
}

.tag-accordion summary:hover {
  background: var(--color-surface-hover);
}

.tag-list {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-bottom: 4px;
}

.tag-filter {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  color: #c4c0d0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.tag-filter:hover,
.tag-filter.is-active {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.tag-filter__count {
  font-family: var(--font-display);
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.result-count {
  color: #d0ccdb;
  font-family: var(--font-display);
  font-weight: 800;
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9c5d4;
  font-size: 0.9rem;
}

.sort-select span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sort-select select {
  flex: 0 0 170px;
  width: 170px;
  min-width: 170px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.6);
}

.drawer-backdrop[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .listing-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .listing-page {
    padding-top: 24px;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .listing-layout {
    display: block;
  }

  .filter-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    width: min(86vw, 340px);
    max-height: none;
    border-radius: 0;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }

  body.is-drawer-open .filter-sidebar {
    transform: translateX(0);
  }

  #filter-drawer-close {
    display: inline-flex;
  }

  .listing-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .sort-select {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select select {
    flex-basis: min(170px, calc(100vw - 116px));
    width: min(170px, calc(100vw - 116px));
    min-width: 140px;
  }
}

