@font-face { font-family: "NotoSansJP"; font-weight: 400; font-display: swap; src: url(../fonts/NotoSansJP-Regular.woff2) format("woff2"); }
@font-face { font-family: "NotoSansJP"; font-weight: 700; font-display: swap; src: url(../fonts/NotoSansJP-Bold.woff2) format("woff2"); }
@font-face { font-family: "NotoSansJP"; font-weight: 900; font-display: swap; src: url(../fonts/NotoSansJP-Black.woff2) format("woff2"); }

:root {
  --np-lemon: #f9b29a;
  --np-lemon-l: #fde1d6;
  --np-lemon-bg: #fdf2ed;
  --np-ink: #2b2520;
  --np-ink-soft: #6d645b;
  --np-gold: #f26334;
  --np-gold-d: #d9531f;
  --np-cta: #ffce3e;
  --np-cta-d: #e0a800;
  --np-line: #ecd9cd;
  --bar-h: 52px;
  --col-w: 100vw;
  --dk: #120f0d;
  --dk-line: rgba(255, 255, 255, 0.2);
  --dk-soft: #cfc5bc;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "NotoSansJP", -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #fff;
  background: var(--dk);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
::selection { background: var(--np-gold); color: #fff; }
:focus-visible { outline: 3px solid var(--np-gold); outline-offset: 2px; }
svg { display: block; }

/* ---------- 上の帯 ---------- */
.bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--col-w);
  height: var(--bar-h);
  background: var(--dk);
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 6px;
}
.bar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
}
.bar__progress i { background: rgba(255, 255, 255, 0.22); }
.bar__progress i.is-done { background: var(--np-gold); }

.bar--home { padding: 0 4px 0 14px; gap: 10px; }
.bar__logo { flex: none; font-weight: 900; font-size: 19px; letter-spacing: 0.02em; color: var(--np-gold); text-decoration: none; }
.tabs { flex: 1; min-width: 0; align-self: stretch; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; display: flex; align-items: center; padding: 0 9px; text-decoration: none; white-space: nowrap;
  font-size: 15px; font-weight: 700; color: var(--dk-soft); position: relative;
}
.tabs a[aria-current="page"] { color: #fff; font-weight: 900; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 7px; height: 3px; background: var(--np-gold); }
.tabs a.is-sale, .tabs a.is-sale[aria-current="page"] { color: var(--np-cta); }
.tabs a.is-sale[aria-current="page"]::after { background: var(--np-cta); }
.bar__list { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-left: 1px solid var(--dk-line); }

/* ---------- 縦スワイプの入れ物 ---------- */
.feed {
  height: 100vh;
  height: 100dvh;
  width: var(--col-w);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: var(--dk);
  color: #fff;
}
.feed::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-top: var(--bar-h);
  display: flex;
  flex-direction: column;
  border-bottom: 0;
}

/* 動画の帯（公式プレイヤーと同じ 720:480） */
.media { position: relative; aspect-ratio: 720 / 480; background: #000; flex: none; overflow: hidden; margin-top: auto; }
.media img, .media iframe, .media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.media img, .media video { object-fit: contain; }
.media video { background: #000; }
.media.has-video .media__play, .media.no-movie .media__play { display: none; }

/* 自動再生の動画の上に重ねる操作（音・一時停止・再生位置） */
.vui { position: absolute; inset: 0; z-index: 1; }
.vui__tap { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #fff; }
.vui__tap span { width: 68px; height: 68px; border-radius: 50%; background: rgba(43, 37, 32, 0.72); border: 2px solid #fff; display: none; place-items: center; }
.vui.is-paused .vui__tap span { display: grid; }
.vui__sound {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(43, 37, 32, 0.78); border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 11px 6px 9px; border-radius: 99px; cursor: pointer;
}
.vui__sound[aria-pressed="true"] { background: #fff; color: var(--np-ink); border-color: #fff; }
.vui__sound .on, .vui__sound[aria-pressed="true"] .off { display: none; }
.vui__sound[aria-pressed="true"] .on { display: block; }
.vui__time {
  position: absolute; right: 10px; bottom: 12px; font-size: 11.5px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums;
  background: rgba(43, 37, 32, 0.6); padding: 1px 6px; border-radius: 4px; pointer-events: none;
}
.vui__seek { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; cursor: pointer; touch-action: none; }
.vui__seek::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.35); }
.vui__seek i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--np-gold); }
.vui__seek:focus-visible { outline-offset: -3px; }
.media__play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(43, 37, 32, 0.72); border: 2px solid #fff; color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}

/* サンプル画像の列（横スクロール） */
.thumbs {
  flex: none;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 0;
  scrollbar-width: none;
  border-bottom: 0;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button {
  flex: none;
  width: 84px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #2a2420;
  cursor: zoom-in;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 作品の情報 */
.info { flex: none; min-height: 0; overflow: visible; padding: 0 16px 14px; margin-top: auto; }
.meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  background: #fff;
  color: var(--np-ink);
  font-variant-numeric: tabular-nums;
}
.rank.is-new { width: auto; padding: 0 9px; border-radius: 99px; font-size: 12px; background: var(--np-gold); color: #fff; }
.rank.is-top { background: var(--np-gold); box-shadow: 0 2px 0 var(--np-gold-d); color: #fff; }
.pnum { flex: none; background: none; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; letter-spacing: 0.3px; border: 1.5px solid rgba(255, 255, 255, 0.65); }
.series { font-size: 12.5px; font-weight: 700; color: var(--dk-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* セール中：動画の左上の札と、購入ボタンの中の札（黄色はセールだけに使う） */
.sale {
  position: absolute; z-index: 2; left: 0; top: 12px; pointer-events: none;
  background: var(--np-cta); color: var(--np-ink); font-size: 17px; font-weight: 900; line-height: 1;
  padding: 9px 14px 9px 12px; border-radius: 0 8px 8px 0; box-shadow: 0 3px 0 var(--np-cta-d);
}
.btn__sale {
  flex: none; background: var(--np-cta); color: var(--np-ink); font-size: 13.5px; font-weight: 900; line-height: 1;
  padding: 6px 9px; border-radius: 6px; margin-right: 4px;
}

/* 「セール中！」の文字が左から順に持ち上がる波。1.6秒で1周し、後半は止まって読める */
.wave { display: inline-flex; }
.wave i { font-style: normal; display: inline-block; animation: wave 1.6s cubic-bezier(.3, 0, .3, 1) infinite; animation-delay: calc(var(--i) * 80ms); }
@keyframes wave { 0%, 45%, 100% { transform: translateY(0); } 18% { transform: translateY(-42%); } 32% { transform: translateY(8%); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }

.who { margin: 12px 0 0; border-top: 0; margin-top: 10px; }
.who__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 0;
  min-height: 0;
}
.who__label {
  justify-self: start;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  white-space: nowrap;
}
.who__label--cta { background: var(--np-gold); }
.who__persona {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.who__actress { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.who__actress img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--np-lemon); border-color: var(--np-gold); }
.who__actress b { font-size: 16px; font-weight: 900; text-decoration: underline; text-decoration-color: var(--np-gold); text-underline-offset: 4px; text-decoration-thickness: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__actress.is-unknown b { text-decoration: none; color: var(--dk-soft); font-size: 14px; }
.who__actress svg { flex: none; color: var(--np-lemon); margin-left: auto; }

.score { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; font-size: 13px; margin-top: 8px; }
.score__star { font-weight: 900; color: var(--np-lemon); font-size: 15px; font-variant-numeric: tabular-nums; }
.score__star small { font-size: 12px; font-weight: 700; color: var(--dk-soft); margin-left: 2px; }
.score time { margin-left: auto; color: var(--dk-soft); font-weight: 700; font-variant-numeric: tabular-nums; }

.revlink {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--np-gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.pickup {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--dk-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 購入ボタン */
.cta {
  flex: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--dk);
  border-top: 0;
  padding-top: 14px;
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  font-weight: 900; font-size: 15.5px; padding: 13px 16px; border-radius: 14px; border: 2.5px solid transparent;
  transition: transform 0.15s ease;
}
.btn--primary { background: var(--np-gold); border-color: var(--np-gold); color: #fff; box-shadow: 0 4px 0 var(--np-gold-d); }
.btn:active { transform: translateY(2px); }
.pr { position: absolute; right: 16px; top: 0; font-size: 10px; line-height: 12px; color: var(--dk-soft); }
.cta { position: relative; }

/* はじめの案内 */
.hint {
  position: absolute; z-index: 2; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  background: rgba(43, 37, 32, 0.86); border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 14px 7px 11px; border-radius: 99px;
  transition: opacity 0.4s ease; pointer-events: none;
}
.hint svg { animation: nudge 1.6s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.hint.is-gone { opacity: 0; }
@keyframes nudge { 0% { transform: translateY(4px); } 50% { transform: translateY(-3px); } 100% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hint svg { animation: none; } 
}

/* 最後のスライド */
.end { justify-content: center; padding-left: 20px; padding-right: 20px; background: var(--dk); }
.end h2 { font-size: 21px; font-weight: 900; margin: 0 0 6px; line-height: 1.45; }
.end p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; }
.end .btn { margin-bottom: 30px; }
.end h3 { font-size: 15px; font-weight: 900; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--np-lemon); border-bottom-color: var(--np-gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 99px;
  background: none;
  border: 1.5px solid var(--np-lemon);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

/* 拡大表示 */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(28, 23, 20, 0.95); display: none; flex-direction: column; }
.lb.is-open { display: flex; }
.lb__top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb__img { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 0 24px; }
.lb__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; border-radius: 99px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.lb__nav { display: flex; justify-content: center; gap: 12px; padding: 0 0 calc(20px + env(safe-area-inset-bottom)); }

/* ---------- PC：1列を中央に置き、左に順位、右に上下ボタン ---------- */
.side, .stepper { display: none; }
@media (min-width: 768px) {
  :root { --col-w: 430px; }
  .feed { border-left: 1px solid var(--dk-line); border-right: 1px solid var(--dk-line); }
  .bar { border-left: 1px solid var(--dk-line); border-right: 1px solid var(--dk-line); }
  .stepper {
    display: flex; flex-direction: column; gap: 10px; position: fixed; z-index: 20;
    top: 50%; transform: translateY(-50%); left: calc(50% + 215px + 20px);
  }
  .stepper button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--np-gold);
    background: var(--dk);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: none;
    border-color: #fff;
  }
  .stepper button:disabled { border-color: var(--dk-line); color: rgba(255, 255, 255, 0.3); cursor: default; box-shadow: none; }
  .stepper small { font-size: 11px; color: var(--dk-soft); text-align: center; line-height: 1.5; }
}
@media (min-width: 1100px) {
  .side {
    display: block; position: fixed; top: 0; bottom: 0; right: calc(50% + 215px + 32px); width: 300px;
    padding: 28px 0; overflow-y: auto;
  }
  .side h2 { font-size: 16px; font-weight: 900; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--np-lemon); border-bottom-color: var(--np-gold); }
  .side ol { list-style: none; margin: 0; padding: 0; }
  .side li button {
    width: 100%;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: center;
    text-align: left;
    padding: 9px 8px;
    border: 0;
    border-bottom: 1px solid var(--np-line);
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border-bottom-color: var(--dk-line);
  }
  .side li button:hover { background: rgba(255, 255, 255, 0.08); }
  .side li button[aria-current="true"] { background: rgba(255, 255, 255, 0.12); box-shadow: none; outline: 2px solid var(--np-gold); outline-offset: -2px; }
  .side .rank { width: 26px; height: 26px; font-size: 13px; }
  .side li button > span:last-child { min-width: 0; }
  .side b { display: block; font-size: 14px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side span.a { display: block; font-size: 12px; color: var(--dk-soft); font-weight: 700; }
}
@media (min-height: 860px) { .pickup { -webkit-line-clamp: 5; } 
}
@media (min-height: 980px) { .pickup { -webkit-line-clamp: 10; } 
}
@media (max-height: 740px) { .pickup { -webkit-line-clamp: 2; } 
}
@media (max-height: 700px) {
  .pickup { display: none; }
  .info { padding-top: 10px; }
  .who { margin-top: 10px; }
  .who__row { min-height: 44px; padding: 6px 0; }
  .score { margin-top: 8px; }
}
@media (max-height: 600px) {
  .thumbs { display: none; }
  .info { padding-top: 10px; }
  .who { margin-top: 8px; }
  .who__persona { font-size: 17px; -webkit-line-clamp: 1; }
  .who__row { min-height: 40px; padding: 4px 0; }
  .score { margin-top: 5px; }
  .info { padding-top: 8px; }
}
