/*
  方向性（unslop: Damir Sokolovsky, CC BY 4.0 の手順に沿って設計）
  - 用途: FANZAの成人向け動画をセールと新作から選ぶ紹介サイト
  - 性格: 落ち着いている、夜っぽい、値段に正確
  - 世界: 深夜のレンタルビデオ店の棚と手書きの値札
  - 見せ場: パッケージ画像そのもの（周りは静かにする）
  - 目印: 割引率と終了日だけを書いた小さな値札タグ
*/
:root {
  --bg: #161513;
  --bg-deep: #12110f;
  --card: #1c1a18;
  --raised: #262421;
  --line: rgba(239, 233, 222, 0.08);
  --line-strong: rgba(239, 233, 222, 0.16);
  --text: #efe9de;
  --text-2: #aaa398;
  --text-3: #8a847a;
  --accent: #e8875a;
  --accent-ink: #f2a57f;
  --on-accent: #1a1410;
  --focus: #f2c9a8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

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

a {
  color: inherit;
}

h1,
h2,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

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

h1,
h2 {
  word-break: auto-phrase;
}

.phrase {
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--raised);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ヘッダー */
.site-header {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.wordmark {
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: var(--raised);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--raised);
}

@media (max-width: 420px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .nav {
    margin-left: -10px;
  }
}

.sample-banner {
  margin-top: 16px;
  padding: 8px 0 8px 12px;
  color: var(--text-2);
  font-size: 13px;
  border-left: 2px solid var(--accent);
}

main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* 導入 */
.intro {
  max-width: 40rem;
  margin-bottom: 40px;
}

.intro h1 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 12px;
}

.intro p,
.page-head p {
  color: var(--text-2);
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 4px;
}

.page-head a {
  color: var(--accent-ink);
}

/* セクション */
.block {
  margin-top: 48px;
}

.block:first-child {
  margin-top: 0;
}

.block h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.block-head + .grid,
.block-head + .chips {
  margin-top: 16px;
}

.block-lead {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 16px;
}

.more {
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.more:hover {
  color: var(--text);
  text-decoration: underline;
}

/* 作品グリッド */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 24px 16px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 32px 20px;
  }
}

.card {
  position: relative;
}

.card-link {
  display: block;
  text-decoration: none;
}

.cover {
  display: block;
  aspect-ratio: 300 / 420;
  overflow: hidden;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
  transition: border-color 150ms var(--ease);
}

/* 実データの大きい画像は横長（右半分が表面）なので右寄せで切り抜く */
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.card-link:hover .cover {
  border-color: var(--line-strong);
}

.card-link:hover .card-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-body {
  display: block;
  padding-top: 8px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.card-meta {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 値段 */
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.price-now {
  color: var(--text);
  font-size: 14px;
}

.price-now .num {
  font-family: var(--mono);
  font-size: 15px;
}

.price-now .unit {
  font-size: 12px;
  color: var(--text-2);
  margin-left: 1px;
}

.price-list {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
}

.price-lg .price-now .num {
  font-size: 28px;
  line-height: 1.2;
}

.price-lg .price-now .unit {
  font-size: 14px;
}

.price-lg .price-list {
  font-size: 14px;
}

/* 値札タグ（このサイトの目印） */
.tag {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}

.tag-off,
.tag-end {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-off {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.tag-end {
  background: rgba(18, 17, 15, 0.86);
  color: var(--text);
}

/* チップ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.chips a:hover {
  background: var(--raised);
}

.count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.chips-lg a {
  min-height: 40px;
  padding: 8px 14px;
}

.empty {
  color: var(--text-2);
}

/* パンくず */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.crumbs li {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.crumbs li + li::before {
  content: "/";
  color: var(--text-3);
}

.crumbs li[aria-current] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 24em;
  color: var(--text-2);
}

.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

/* 作品ページ */
.work {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .work {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 40px;
    align-items: start;
  }
}

.work-cover {
  max-width: 340px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--raised);
}

@media (max-width: 767px) {
  .work-cover {
    max-width: 180px;
  }
}

.work-cover img {
  width: 100%;
  aspect-ratio: 300 / 420;
  object-fit: cover;
  object-position: right center;
}

.work-main h1 {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.45;
  font-weight: 500;
}

.buy {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.buy-sale {
  margin-top: 4px;
  color: var(--accent-ink);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.btn-primary:hover {
  background: #ee9468;
}

.btn-secondary {
  background: var(--raised);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: #2e2b28;
}

.btn-buy {
  width: 100%;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .btn-buy {
    width: auto;
  }
}

.buy-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.spec {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.spec > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec dt {
  color: var(--text-3);
}

.spec dd a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.spec dd a:hover {
  text-decoration-color: currentColor;
}

.note {
  max-width: 40rem;
}

.note h2 {
  margin-bottom: 12px;
}

.note p + p,
.prose p + p {
  margin-top: 12px;
}

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .samples {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
}

.samples a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.samples img {
  width: 100%;
  aspect-ratio: 560 / 376;
  object-fit: cover;
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  font-size: 17px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 8px;
}

.prose > p {
  color: var(--text-2);
}

.prose .spec {
  margin-top: 0;
  margin-bottom: 24px;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 32px 0 40px;
  font-size: 13px;
  color: var(--text-2);
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-note {
  max-width: 44rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a,
.credit a {
  color: var(--text-2);
  text-underline-offset: 3px;
}

.footer-links a:hover,
.credit a:hover {
  color: var(--text);
}

.credit {
  color: var(--text-3);
  font-size: 12px;
}

/* 年齢確認 */
.age-gate {
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
}

.age-gate::backdrop {
  background: rgba(12, 11, 10, 0.92);
}

.age-gate h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 8px;
}

.age-gate p {
  color: var(--text-2);
  font-size: 14px;
}

.age-gate-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.age-gate[open] {
  animation: gate-in 300ms var(--ease);
}

@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
