﻿:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1b2a41;
  --muted: #5b6b82;
  --brand: #1f5fbf;
  --brand-strong: #184e9b;
  --accent: #0f766e;
  --warning: #b45309;
  --danger: #b42318;
  --border: #d6deea;
  --shadow: 0 10px 25px rgba(27, 42, 65, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

/* ── 共通メディア枠 ─────────────────────────────── */
.vs-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #eaf1ff;
}

.vs-media--welcome { aspect-ratio: 16 / 9; }
.vs-media--thumb   { aspect-ratio: 5 / 3; }
.vs-media--square  { aspect-ratio: 1 / 1; }

.vs-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 親が枠を管理するため子の border/radius を打ち消す */
.vs-media > .video-thumb-image,
.vs-media > .video-thumb-placeholder,
.vs-media > .directory-thumb-image,
.vs-media > .directory-thumb-placeholder {
  border: 0;
  border-radius: 0;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7fc 65%, #eef4fb 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* WP 管理バー表示中は sticky の基準位置を管理バーの下へずらす */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

#new-videos {
  scroll-margin-top: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--brand), #2d7ae3);
  box-shadow: 0 4px 12px rgba(31, 95, 191, 0.35);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-primary,
.nav-secondary-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-mobile-more {
  display: none;
  position: relative;
  align-self: center;
}

.menu-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  line-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
}

/* モバイルナビ開閉ボタン。デスクトップでは非表示、JS 有効時のモバイル幅でのみ表示する */
.nav-toggle {
  display: none;
}

.nav-toggle-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 20;
}

.menu-dropdown.is-open {
  display: block;
}

.menu-dropdown .nav-link {
  display: block;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.is-active {
  background: #eaf1fb;
  color: var(--brand-strong);
}

main {
  padding: 24px 0 64px;
  flex: 1 0 auto;
}

.hero {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.75fr 0.82fr;
  align-items: stretch;
  margin-top: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 22px;
}

.hero-featured-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-featured-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.hero-main-visual-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0;
  width: 100%;
}

.hero-main-visual {
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, #8fb0e5 0%, #4a6da8 36%, #243a63 100%);
  position: relative;
}

.hero-main-visual-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: none;
}

.hero-main-visual-fallback {
  position: absolute;
  inset: 0;
  background: inherit;
}

.hero-main-visual.has-image .hero-main-visual-media {
  display: block;
}

.hero-main-visual.has-image .hero-main-visual-fallback {
  display: none;
}

.hero-main-visual-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(10, 25, 48, 0) 46%, rgba(10, 25, 48, 0.62) 100%);
  color: #f5f8ff;
}

.hero-main-visual-cast {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-main-visual-caption {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.92;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-strong);
  background: #e9f1ff;
  border: 1px solid #c7dafd;
  border-radius: 999px;
  padding: 4px 10px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f5a52;
  background: #e9f8f4;
  border: 1px solid #bee9df;
  text-decoration: none;
}

.mini-badge:hover {
  text-decoration: none;
}

.mini-badge-link {
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}

.mini-badge-link:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.mini-badge-owned {
  color: #0d5d57;
  background: #e5faf7;
  border-color: #bdebe6;
}

.badge-link,
.meta-link {
  color: inherit;
  text-decoration: none;
}

.badge-link:hover,
.meta-link:hover {
  text-decoration: underline;
}

.meta-text {
  color: var(--muted);
}
.meta-text a.cast-link {
  color: var(--brand);
  text-decoration: none;
}
.meta-text a.cast-link:hover {
  text-decoration: underline;
  color: var(--brand-strong);
}

.mini-badge-sale {
  color: #9f1239;
  background: #ffe9ef;
  border-color: #f6c7d6;
  text-decoration: none;
}

.mini-badge-sale:hover {
  text-decoration: none;
}

.mini-badge-recommend {
  color: #7c3aed;
  background: #f3eeff;
  border-color: #ddd0fc;
  text-decoration: none;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 22px;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.tax-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.purchase-cta-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.purchase-cta-group .btn {
  width: 100%;
  min-width: 0;
}

.payment-failed-cta-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.payment-failed-cta-group .btn {
  width: 100%;
  min-width: 0;
}

#heroPrimaryAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 62px;
  padding: 16px 24px;
  font-size: 1.05rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  background: #edf4ff;
  color: var(--brand-strong);
  border: 1px solid #c6d8f8;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.side-panel {
  padding: 16px;
}

.mock-panel {
  background: #fbfdff;
  border-style: dashed;
}

.mock-panel h2 {
  font-size: 1rem;
  color: var(--muted);
}

.mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mock-panel .helper {
  margin-top: 4px;
}

.mock-panel .inline-actions {
  gap: 6px;
}

.mock-panel .inline-actions .btn {
  padding: 9px 14px;
  font-size: 0.92rem;
  min-height: 40px;
}

.status-chip {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  border: 1px solid;
}

.status-login {
  color: #1f4f9f;
  background: #e7f0ff;
  border-color: #bcd4fb;
}

.status-guest {
  color: #8a3e00;
  background: #fff3e8;
  border-color: #ffd4ad;
}

.status-owned {
  color: #0d5d57;
  background: #e5faf7;
  border-color: #bdebe6;
}

.section {
  margin-top: 22px;
  padding: 24px;
}

.search-entry-section {
  background: #eef5ff;
}

.request-entry-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f7fbff;
  border-style: dashed;
}

.request-entry-copy .lead {
  margin: 0;
}

.request-entry-btn {
  flex: 0 0 auto;
  min-width: 188px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.news-item + .news-item {
  border-top: 1px solid var(--border);
}

.news-link {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
  padding: 11px 0;
}

.news-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.news-title {
  font-size: 0.95rem;
}

.news-more-row {
  margin-top: 12px;
}

.news-inline-link {
  color: var(--brand);
  text-decoration: underline;
}
.news-inline-link:hover {
  color: var(--brand-strong);
}

.news-detail-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.news-detail-title {
  margin: 8px 0 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.news-detail-body {
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.news-detail-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-guide {
  margin: 8px 0 16px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
}

.flow-guide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.flow-guide-head h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.flow-guide-link {
  margin: 0;
  font-size: 0.78rem;
}

.flow-guide-link a {
  color: var(--muted);
  text-decoration: none;
}

.flow-guide-link a:hover {
  text-decoration: underline;
}

.flow-guide-steps {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #dbe4f1;
  border-radius: 10px;
  background: #fff;
}

.flow-guide-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-width: 0;
  flex: 1;
}

.flow-guide-steps li + li {
  border-left: 1px solid #e3e9f4;
}

.flow-step-index {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3fb;
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.flow-step-text {
  font-size: 0.84rem;
  line-height: 1.3;
}

.account-email {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid #d9e3f1;
  border-radius: 10px;
  background: #f8fbff;
  color: #2f4a72;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-email-label {
  font-weight: 700;
}

.account-email-value {
  color: #365f9c;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.account-actions .btn {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.about-showcase {
  margin-top: 14px;
}

.about-layout {
  display: grid;
  gap: 12px;
}

.about-title {
  margin: 0;
}

.about-copy .lead {
  margin: 0;
}

.about-slider {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.about-slider-track {
  display: flex;
  transition: transform 320ms ease;
}

.about-slide {
  min-width: 100%;
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
}

.about-slide-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, hsla(var(--about-h), 56%, 74%, 0.7) 0%, hsla(var(--about-h), 56%, 74%, 0) 42%),
    linear-gradient(150deg,
      hsl(var(--about-h), 44%, 68%) 0%,
      hsl(calc(var(--about-h) + 26), 40%, 54%) 52%,
      hsl(calc(var(--about-h) + 56), 35%, 34%) 100%);
}

img.about-slide-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-slide-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 25, 48, 0.48);
  color: #f5f8ff;
  font-size: 0.84rem;
  line-height: 1.45;
}

.about-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(245, 248, 255, 0.75);
  background: rgba(10, 25, 48, 0.36);
  color: #f5f8ff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-slider-prev {
  left: 10px;
}

.about-slider-next {
  right: 10px;
}

.about-slider-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.about-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #cad5e6;
  cursor: pointer;
}

.about-slider-dot.is-active {
  background: var(--brand);
}

@media (min-width: 861px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.34fr) minmax(280px, 0.9fr);
    grid-template-areas:
      "title title"
      "copy showcase";
    align-items: start;
    gap: 18px;
  }

  .about-title {
    grid-area: title;
  }

  .about-copy {
    grid-area: copy;
  }

  .about-showcase {
    grid-area: showcase;
    margin-top: -34px;
  }

  .about-slide {
    aspect-ratio: 16 / 9;
  }

  .about-slide-caption {
    font-size: 0.76rem;
    padding: 4px 8px;
    background: rgba(10, 25, 48, 0.4);
  }

  .about-slider-nav {
    width: 24px;
    height: 24px;
    font-size: 0.82rem;
    background: rgba(10, 25, 48, 0.26);
  }

  .about-slider-dots {
    gap: 5px;
    margin-top: 6px;
  }

  .about-slider-dot {
    width: 7px;
    height: 7px;
  }
}

h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.section-heading {
  margin-top: 24px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
}

.meta-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
}

.purchase-intro {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin: 12px 0;
}

.purchase-summary-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px 16px;
}

.meta-key {
  color: var(--muted);
  font-weight: 600;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.notice {
  border-radius: 10px;
  padding: 14px;
  border: 1px solid;
  margin: 14px 0;
}

.notice-info {
  color: #1f4f9f;
  background: #eef4ff;
  border-color: #c7d9fb;
}

.notice-warning {
  color: #8a3e00;
  background: #fff4ea;
  border-color: #ffd5b0;
}

.notice-danger {
  color: var(--danger);
  background: #fff0f0;
  border-color: #f8c7c7;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 20%, #3f6db5 0%, #2b4775 35%, #1a2940 100%);
  color: #f7f9fd;
  display: grid;
  place-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  overflow: hidden;
}

.watch-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}

.video-grid {
  display: grid;
  gap: 14px;
}

.video-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 270px;
  gap: 14px;
  align-items: stretch;
  position: relative;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #c8d3e3;
  background: #eef3fb;
  color: #234a7f;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.rank-badge.is-gold {
  background: #fdf2cf;
  border-color: #e7c96f;
  color: #7a5800;
}

.rank-badge.is-silver {
  background: #eef1f5;
  border-color: #c8d1dd;
  color: #445367;
}

.rank-badge.is-bronze {
  background: #f8e9de;
  border-color: #ddb79d;
  color: #7a4320;
}

.video-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.video-thumb-col {
  min-width: 0;
}

.video-thumb-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 12px;
}

.video-thumb-image,
.video-thumb-placeholder {
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.video-thumb-image {
  object-fit: cover;
  object-position: center 22%;
  display: block;
  width: 100%;
  height: 100%;
  background: #eaf1ff;
}

.video-thumb-placeholder {
  display: grid;
  align-content: end;
  padding: 10px;
  background:
    linear-gradient(160deg,
      hsl(var(--thumb-h), 55%, 72%) 0%,
      hsl(calc(var(--thumb-h) + 30), 44%, 50%) 55%,
      hsl(calc(var(--thumb-h) + 60), 36%, 34%) 100%);
  color: #f9fbff;
}

.thumb-cast {
  display: none;
}

.thumb-label {
  font-size: 0.72rem;
  opacity: 0.86;
  text-align: right;
}

.video-cast-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.video-cast-name {
  color: #1b2a41;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 800;
}

.video-cast-name:hover {
  text-decoration: none;
}

.news-inline-link {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.news-inline-link:hover {
  color: var(--brand);
}

.video-description {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  padding-top: 8px;
}

.card-price-current {
  margin: 0;
  font-weight: 800;
  color: var(--brand-strong);
  font-size: 1.7rem;
  line-height: 1.1;
}

.tax-note-inline {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.price-stack {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px 12px;
}

.price-subnote {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.sale-price-block {
  margin-bottom: 0;
}

.card-price-regular {
  margin: 0;
  color: #8b97ac;
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
}

.card-price-arrow {
  margin: 1px 0 3px;
  color: #9aa6ba;
  line-height: 1;
  font-size: 0.86rem;
}

.card-price-sale {
  margin: 0;
  color: #b4233d;
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.15;
}

.sale-price-block .card-price-sale {
  color: #b4233d;
}

.favorite-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #8a97ad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.favorite-btn.is-active {
  color: #b42318;
  background: #fff1f3;
  border-color: #f4c2cd;
}

.detail-price-block {
  margin-top: 12px;
  margin-bottom: 10px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
}

.detail-price-block .price-stack {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.detail-price-block .card-price-current {
  font-size: 2rem;
  line-height: 1.15;
}

/* ── パンくずリスト ─────────────────────────────── */
.breadcrumb {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
nav.breadcrumb .breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
nav.breadcrumb ol.breadcrumb-list {
  list-style-type: none;
  padding-left: 0;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 6px;
  color: var(--border);
}
.breadcrumb-item a {
  color: var(--brand);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-current span {
  color: var(--muted);
}

.detail-top-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.detail-media,
.detail-summary {
  min-width: 0;
}

.detail-summary {
  display: grid;
  align-content: start;
  gap: 8px;
}

.detail-badge-row {
  gap: 7px;
}

.detail-cta {
  margin-top: 10px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.detail-cta-main {
  flex: 1;
  min-width: 0;
}

.detail-cta-main .btn {
  width: 100%;
  min-height: 44px;
}

.detail-cta .favorite-btn {
  width: 44px;
  min-height: 44px;
  margin-left: 0;
}

.detail-inline-meta {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.detail-summary-title {
  margin: 8px 0 2px;
  font-size: 2rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  letter-spacing: 0.01em;
}

.detail-price-block-compact {
  margin-top: 0;
  margin-bottom: 2px;
}

.detail-price-block-compact .card-price-current {
  font-size: 1.72rem;
  line-height: 1.2;
}

.detail-back-link {
  margin: -2px 0 2px;
  font-size: 0.78rem;
}

.detail-back-link-bottom {
  margin: 6px 0 12px;
}

.price-label-subtle {
  margin: 0 0 4px;
  font-size: 0.74rem;
  color: #7c8798;
  font-weight: 500;
}

.detail-body {
  margin-top: 24px;
}

.detail-body-heading {
  margin: 0 0 10px;
}

.detail-description-box {
  margin-top: 0;
  padding: 14px 16px;
  line-height: 1.9;
}

.detail-meta-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-meta-card .notice {
  margin-top: 0;
}

.detail-meta-wide {
  grid-column: 1 / -1;
}

@media (min-width: 861px) {
  .detail-top-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
    gap: 22px;
  }

  .detail-summary-title {
    font-size: 1.64rem;
    line-height: 1.38;
  }

  .detail-price-block-compact {
    padding: 10px 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom-color: #dfe6f2;
    border-radius: 0;
    background: transparent;
  }

  .detail-price-block-compact .card-price-current {
    font-size: 1.56rem;
  }

  .detail-cta {
    margin-top: 16px;
    gap: 12px;
  }

  .detail-cta-main .btn {
    min-height: 46px;
  }

  .detail-cta .favorite-btn {
    width: 46px;
    min-height: 46px;
  }

  .detail-body {
    margin-top: 28px;
  }

  .detail-description-box {
    font-size: 0.96rem;
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.detail-info-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
  height: 100%;
}

.sample-player-wrap {
  display: grid;
  gap: 10px;
}

.sample-player {
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.sample-player.is-locked {
  cursor: pointer;
}

.sample-player.is-ready {
  cursor: pointer;
}

.sample-player.is-playing {
  background:
    radial-gradient(circle at 25% 24%, #3f7cb5 0%, #2f5e8f 38%, #1b3550 100%);
}

.sample-player-label {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sample-player-state {
  font-size: 0.88rem;
  opacity: 0.94;
}

.vs-player-error {
  background: radial-gradient(circle at 20% 20%, #3f6db5 0%, #2b4775 35%, #1a2940 100%);
  border: 1px solid var(--border, #2a3a4e);
  padding: 28px 24px;
  gap: 12px;
  text-align: center;
}

.vs-player-error .sample-player-label {
  color: #f59e0b;
  font-size: 1.05rem;
}

.vs-player-error .sample-player-state {
  color: #dce4f0;
  opacity: 1;
  font-size: 0.88rem;
  line-height: 1.65;
}

.vs-player-error .sample-player-state a {
  color: #93bbf5;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.vs-player-error .sample-player-state a:hover {
  color: #bdd4fa;
}

/* ── サムネ背景プレースホルダ ─────────────────────── */

/*
 * .video-player が background ショートハンドで background-size: auto を
 * 暗黙リセットするため、.video-player.vs-player-thumb (0,2,0) で
 * 確実に上書きする。
 */
.video-player.vs-player-thumb,
.vs-player-thumb {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center 22% !important;
  background-repeat: no-repeat !important;
}

/* 全面オーバーレイ: 薄いネイビー半透明 */
.vs-player-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 56, 0.52);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* テキストを前面に出す */
.vs-player-thumb .sample-player-label,
.vs-player-thumb .sample-player-state {
  position: relative;
  z-index: 2;
  color: #f7f9fd;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* 文字後ろのプレートバナー */
.vs-player-thumb-plate {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(14, 26, 48, 0.42);
  padding: 18px 28px;
  border-radius: 10px;
  max-width: 80%;
}

.vs-player-thumb-plate .sample-player-label,
.vs-player-thumb-plate .sample-player-state {
  text-shadow: none;
}

/* 再生中はオーバーレイ・背景画像を消す */
.vs-player-thumb.is-playing::before {
  display: none;
}

.vs-player-thumb.is-playing {
  background-image: none !important;
}

/* エラー時: サムネ背景を完全除去しネイビー系に戻す */
.vs-player-thumb.vs-player-error::before {
  display: none;
}

.vs-player-thumb.vs-player-error {
  background-image: none !important;
  background: radial-gradient(circle at 20% 20%, #3f6db5 0%, #2b4775 35%, #1a2940 100%) !important;
}

/* エラー時テキスト: .vs-player-thumb のプレート用スタイルを上書き */
.vs-player-thumb.vs-player-error .sample-player-label {
  color: #f59e0b;
  text-shadow: none;
}

.vs-player-thumb.vs-player-error .sample-player-state {
  color: #dce4f0;
  text-shadow: none;
}

.vs-player-thumb.vs-player-error .sample-player-state a {
  color: #93bbf5;
}

@media (max-width: 860px) {
  .vs-player-thumb-plate {
    padding: 14px 18px;
    max-width: 90%;
  }
}

.sample-login-note {
  margin: -2px 0 0;
}

.sample-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 41, 0.56);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}

.sample-login-overlay[hidden] {
  display: none;
}

.sample-login-modal {
  width: min(520px, 100%);
  padding: 20px;
}

.sample-login-modal h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.sample-login-modal-free {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 700;
}

.detail-bottom-cta {
  margin-top: 16px;
}

.detail-bottom-cta .btn {
  min-width: 220px;
  min-height: 52px;
}

.recommendation-section {
  margin-top: 22px;
}

.watch-video-title {
  margin: 14px 0 0;
}

.watch-next-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recommendation-grid-next {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.recommendation-card .video-thumb-link {
  margin-bottom: 8px;
  /* flex 縦並びの中で本文に押されてサムネイルが縮まないよう固定する */
  flex: 0 0 auto;
}

.recommendation-card .video-thumb-image,
.recommendation-card .video-thumb-placeholder {
  aspect-ratio: 5 / 3;
}

.recommendation-card-body {
  display: grid;
  gap: 6px;
  /* height: 100% だとサムネイルと合計でカード高を超えてサムネイルが圧縮されるため、
     残り領域を flex で受けてボタンを下端に揃える */
  flex: 1 1 auto;
}

.recommendation-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommendation-cast,
.recommendation-price {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.recommendation-card .btn {
  margin-top: auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.related-title {
  margin: 10px 0 0;
  font-size: 0.95rem;
  min-height: 3em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-price {
  min-height: 2.8em;
}

.related-card .btn {
  margin-top: auto;
}

.thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eaf1ff, #f7faff);
  color: #5c6f8f;
  font-size: 0.78rem;
  font-weight: 700;
}

.video-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.video-title-link {
  color: inherit;
  text-decoration: none;
}

.video-title-link:hover {
  text-decoration: underline;
}

.video-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-main .badge-row {
  margin-top: 4px;
}

.video-item .inline-actions {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.video-item .inline-actions .btn {
  width: 100%;
}

.purchased-item {
  grid-template-columns: 264px minmax(0, 1fr) 270px;
}

.purchased-item .video-actions {
  min-width: 260px;
  justify-content: center;
}

.purchased-item .video-actions .btn {
  width: 100%;
}

.purchased-item .video-main {
  gap: 4px;
}

.purchased-item .video-main h3 {
  font-size: 1.02rem;
}

.purchased-meta {
  margin-top: 2px;
}

.login-box {
  width: min(520px, 100%);
  margin: 26px auto 0;
  padding: 26px;
}

.login-box form {
  margin-top: 12px;
}

#contactPageBadge {
  margin-bottom: 6px;
}

#contactPageLead {
  margin-top: 12px;
  margin-bottom: 30px;
  line-height: 1.75;
}

#contactForm .form-row:first-of-type {
  margin-top: 6px;
}

.form-row {
  margin-bottom: 14px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.human-verification {
  margin: 8px 0 14px;
}

.human-verification-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.turnstile-widget {
  border: 1px solid #d3dae5;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.human-verification-status {
  font-size: 0.85rem;
  color: var(--muted);
}

.human-verification-status.is-ok {
  color: #0d5d57;
  font-weight: 700;
}

.turnstile-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.96rem;
  font-weight: 500;
}

.turnstile-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2563eb;
}

.turnstile-brand {
  text-align: right;
  line-height: 1.2;
  color: #6b7280;
}

.turnstile-brand strong {
  display: block;
  font-size: 0.74rem;
  color: #4b5563;
  font-weight: 700;
}

.turnstile-brand span {
  display: block;
  font-size: 0.68rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.checkbox-row input[type="checkbox"] {
  width: auto;
}

.helper {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 6px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-panel {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
  margin-bottom: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.filter-actions .btn {
  min-width: 140px;
}

.result-count {
  margin: 2px 0 0;
}

.results-divider {
  border-top: 1px solid var(--border);
  margin: 18px 0 14px;
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.results-title {
  margin: 0;
  font-size: 1.05rem;
}

.results-sort {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.results-sort label {
  margin: 0;
  font-size: 0.9rem;
}

.results-sort select {
  padding: 9px 12px;
}

.request-inline-cta {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px dashed #cdd8ea;
  border-radius: 12px;
  background: #fbfdff;
  display: grid;
  gap: 6px;
}

.request-inline-cta h3 {
  margin: 0;
  font-size: 1rem;
}

.request-inline-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.request-inline-cta-btn {
  justify-self: start;
  margin-top: 4px;
}

.request-inline-cta.is-empty {
  border-color: #bcd2f5;
  background: #f4f8ff;
}

#genresRequestCta {
  margin-top: 30px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* 募集導線カードなど 2 枚構成のグリッド。モバイル幅では .directory-grid と同じく 1 列に落ちる */
.directory-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.directory-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.directory-thumb {
  width: 84px;
}

.directory-thumb-image,
.directory-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.directory-thumb-image {
  object-fit: cover;
  display: block;
  width: 100%;
  height: 100%;
  background: #eaf1ff;
}

.directory-thumb-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(155deg,
      hsl(var(--thumb-h), 55%, 74%) 0%,
      hsl(calc(var(--thumb-h) + 28), 45%, 52%) 56%,
      hsl(calc(var(--thumb-h) + 58), 35%, 34%) 100%);
  color: #f8fbff;
}

.directory-thumb-initial {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.directory-meta {
  min-width: 0;
}

.directory-item h3 {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 1rem;
}

.directory-count-inline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.directory-description {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 3);
}

.directory-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.directory-item-simple {
  grid-template-columns: 1fr;
  min-height: 132px;
  align-items: start;
}

.directory-item-simple .directory-meta {
  width: 100%;
  display: grid;
  align-content: start;
  gap: 8px;
}

.search-entry-section .directory-item-simple .directory-meta {
  padding-top: 6px;
}

.directory-item-simple h3 {
  display: block;
  margin: 0;
  line-height: 1.35;
  min-height: 1.35em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.directory-item-simple p {
  margin: 0;
}

.pager {
  margin: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pager-info {
  font-weight: 700;
  color: var(--muted);
  min-width: 60px;
  text-align: center;
}

.pager .btn {
  min-width: 90px;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  padding-top: 14px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-links a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .about-slider-nav {
    width: 30px;
    height: 30px;
  }

  .flow-guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-guide {
    padding: 10px;
  }

  .flow-guide-head {
    align-items: center;
  }

  .flow-guide-link {
    font-size: 0.76rem;
  }

  .flow-guide-steps li {
    padding: 8px 9px;
  }

  .flow-guide-steps li + li {
    border-left: 0;
    border-top: 1px solid #e3e9f4;
  }

  .flow-step-text {
    font-size: 0.83rem;
  }

  .about-slide-caption {
    font-size: 0.78rem;
    padding: 5px 9px;
  }

  .hero-featured-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-main {
    padding: 18px;
  }

  .hero-main-visual-link {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .video-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .video-thumb-col {
    order: 1;
  }

  .video-main {
    order: 2;
    gap: 4px;
  }

  .video-actions {
    justify-content: flex-start;
    order: 3;
    min-width: 0;
    padding-top: 0;
    gap: 8px;
  }

  .video-cast-name {
    font-size: 1rem;
  }

  .video-item h3 {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .video-description {
    font-size: 0.84rem;
  }

  .video-main .helper {
    margin-top: 2px;
    font-size: 0.78rem;
  }

  .video-main .badge-row {
    margin-top: 2px;
    gap: 6px;
  }

  .video-main .badge,
  .video-main .mini-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .price-stack {
    padding: 8px 10px;
  }

  .card-price-current {
    font-size: 1.45rem;
  }

  .card-price-sale {
    font-size: 1.18rem;
  }

  .card-price-regular {
    font-size: 0.84rem;
  }

  .price-subnote,
  .tax-note-inline {
    font-size: 0.78rem;
  }

  .video-item .inline-actions {
    gap: 6px;
  }

  .video-item .inline-actions .btn {
    min-height: 44px;
    font-size: 0.92rem;
    padding: 10px 14px;
  }

  .detail-top-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-inline-meta {
    grid-template-columns: 1fr;
  }

  .detail-info-item {
    grid-template-columns: 6.8em minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    padding: 8px 10px;
  }

  .detail-info-item .meta-key {
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .detail-info-item > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-wide {
    grid-column: auto;
  }

  .detail-bottom-cta .btn {
    width: 100%;
    min-width: 0;
  }

  .detail-price-block {
    max-width: 100%;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-grid,
  .recommendation-grid-next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 8px;
    min-width: 0;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .news-link {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .purchase-meta-grid {
    grid-template-columns: 7.4em minmax(0, 1fr);
    gap: 6px 10px;
  }

  .purchase-meta-grid .meta-key {
    white-space: nowrap;
    display: flex;
    align-items: center;
  }

  .purchase-meta-grid .meta-key::after {
    content: "：";
    margin-left: 2px;
  }

  .purchase-meta-grid > div:nth-child(2n) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .purchase-cta-group {
    grid-template-columns: 1fr;
  }

  .payment-failed-cta-group {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: stretch;
    /* min-width 140px のボタン 2 つが収まらない幅では縦積みにする */
    flex-wrap: wrap;
  }

  .filter-actions .btn {
    width: 100%;
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .results-sort {
    min-width: 0;
  }

  .request-entry-section {
    flex-direction: column;
    align-items: stretch;
  }

  .request-entry-btn {
    width: 100%;
    min-width: 0;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  /* サムネイルなしの単一子要素カード（動画を探す・ジャンル一覧など）は
     直前の 74px 列指定を打ち消し、本文に全幅を使わせる */
  .directory-item-simple {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .directory-item h3,
  .directory-item-simple h3 {
    white-space: normal;
  }

  .directory-thumb {
    width: 74px;
  }

  .header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    gap: 4px;
    /* JS 無効時のフォールバック: リンク単位で折り返し、1文字ずつの縦割れを防ぐ */
    flex-wrap: wrap;
  }

  .header-nav .nav-link {
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 0.85rem;
  }

  /* JS 有効時はハンバーガー開閉式。閉じている間は非表示、開くとヘッダー直下に縦並びで表示 */
  html.vs-js .header-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 0 10px;
  }

  html.vs-js .header-nav.is-open {
    display: flex;
  }

  html.vs-js .header-nav .nav-link {
    padding: 11px 10px;
    font-size: 0.95rem;
  }

  html.vs-js .nav-toggle {
    display: inline-flex;
  }

  .nav-primary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    gap: 2px;
    overflow: hidden;
  }

  .nav-primary .nav-link {
    padding: 5px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav-secondary-desktop {
    display: none;
  }

  .nav-mobile-more {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .logo {
    flex: 0 0 auto;
    max-width: 120px;
    font-size: 0.9rem;
    gap: 8px;
  }

  .logo-mark {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 420px) {
  .video-item {
    padding: 10px;
    gap: 7px;
  }

  .video-description,
  .video-main .helper {
    display: none;
  }

  .nav-primary .nav-link {
    padding: 4px 5px;
    font-size: 0.74rem;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .purchased-item .video-actions {
    min-width: 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  /* 幅が狭い端末ではおすすめ動画カードも 1 列にする */
  .recommendation-grid,
  .recommendation-grid-next {
    grid-template-columns: 1fr;
  }
}
