/* ===== Tokens ===== */
:root {
  --accent: #8eb800;
  --accent-dk: #6f9000;
  --gold: #c9a227;
  --red: #e5483b;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f0f0eb;
  --text: #1a1a1a;
  --muted: #6b6b66;
  --border: #e4e4de;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --header-h: 64px;
  --container: 1360px;
  --side: 330px;
  --font: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Poppins", "Noto Sans JP", sans-serif;
  --lime: #b5e61d;
  --lime-soft: #c9e36b;
  --gold-bg: #f7e7be;
  --gold-ink: #8a5f00;
  --line: #06c755;
  --ink: #0f110c;
}
[data-theme="dark"] {
  --bg: #0f0f0e;
  --surface: #1a1a18;
  --surface-2: #242421;
  --text: #f2f2ee;
  --muted: #a3a39c;
  --border: #2e2e2a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition:
    background 0.2s,
    color 0.2s;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  margin: 0 auto;
  padding: 0 32px;
  max-width: none;
}
.en {
  font-family: var(--font-en);
}
svg.i {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
svg.i.i-fill {
  fill: currentColor;
  stroke: none;
}

/* ===== Family bar ===== */
.family {
  background: #111;
  color: #bbb;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.family .container {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  height: 32px;
  align-items: center;
}
.family b {
  color: #fff;
  font-weight: 700;
}
.family a:hover {
  color: #fff;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 28px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex: none;
}
.logo b {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.logo small {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-top: 3px;
  padding-left: 2px;
}
.logo svg {
  display: block;
  height: 40px;
  width: auto;
}
.ft-brand .logo svg {
  height: 50px;
}
@media (max-width: 760px) {
  .logo svg {
    height: 32px;
  }
}
.gnav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.gnav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.gnav a:hover,
.gnav a.on {
  color: var(--text);
  background: var(--surface-2);
}
.h-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
}
.icon-btn:hover {
  border-color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dk);
}
.menu-btn {
  display: none;
}

/* Search */
.search-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.search-panel.open {
  display: block;
}
.search-panel form {
  display: flex;
  gap: 10px;
  padding: 14px 0;
}
.search-panel input {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: 0.25s;
}
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--surface);
  transform: translateX(100%);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.drawer.open {
  pointer-events: auto;
}
.drawer.open::before {
  opacity: 1;
}
.drawer.open .drawer-panel {
  transform: none;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer nav a {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.drawer nav a span {
  font-family: var(--font);
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: clamp(440px, 68vh, 680px);
  overflow: hidden;
  background: #2a2a28;
  color: #fff;
  --pad: clamp(16px, 4vw, 72px);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  outline-offset: -1px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 40%);
}
.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 56px;
}
.tag {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.tag.new {
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  max-width: 820px;
}
.hero .icon-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ===== Category chips ===== */
.cats {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.chip {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-dk);
}
.chip.on {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* ===== Layout ===== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}
.main {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

/* Section head */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.sec-title h2 {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.sec-title h2.jp {
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
}
.sec-title small {
  font-size: 13px;
  color: var(--muted);
}
.sec-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.more {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dk);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
}
[data-theme="dark"] .more {
  color: var(--accent);
}
.arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface);
}
.arrow:hover {
  border-color: var(--accent);
}
.arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.ph {
  position: absolute;
  inset: 0;
  transition: transform 0.4s;
}
.card:hover .thumb img,
.card:hover .ph {
  transform: scale(1.04);
}
.thumb .dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 2px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}
.thumb .lvl {
  position: absolute;
  left: 8px;
  top: 8px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  padding: 3px 7px;
  border-radius: 5px;
}
.thumb .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.2s;
  background: rgba(0, 0, 0, 0.18);
}
.thumb .play i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  color: #111;
}
.card:hover .play {
  opacity: 1;
}
.card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.card .meta .v {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.card .meta .v svg {
  width: 14px;
  height: 14px;
}

/* Carousel row */
.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.row::-webkit-scrollbar {
  display: none;
}
.row > .card {
  scroll-snap-align: start;
}

/* ===== Sidebar ===== */
.side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.side-sticky {
  position: sticky;
  top: calc(var(--header-h) + 80px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.links a:hover {
  color: var(--accent-dk);
}
.links a .chev {
  margin-left: auto;
  color: var(--muted);
}
.cta {
  background: linear-gradient(160deg, #fff9e6, #fff3cc);
  border: 1px solid #ebd58a;
  padding: 26px 22px;
  color: #2a2410;
  text-align: left;
  --cta-bg2: #2c3418;
  --cta-fg: #ffffff;
  --cta-accent: #b5e61d;
  --cta-btn: #8eb800;
  --cta-btn-fg: #fff;
  --cta-bg: #0f110c;
}
[data-theme="dark"] .cta {
  background: linear-gradient(160deg, #2a2410, #1f1b0c);
  border-color: #5a4a16;
  color: #f5ecd0;
}
.cta .badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin: 14px 0 10px;
}
.cta p {
  font-size: 14px;
  line-height: 1.7;
}
.cta .btn {
  width: 100%;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  height: 48px;
  font-size: 15px;
  margin-top: 16px;
}
.cta .note {
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  margin-top: 12px;
  opacity: 0.65;
}
.side h4 {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.side h4::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
}
.side h4 small {
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.side h4 .more {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0;
  font-family: var(--font);
}
.free {
  position: absolute;
  left: 8px;
  top: 8px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 3px 7px;
  border-radius: 5px;
}
.cta-head {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 12px;
}
.cta-sub {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 6px;
}
.list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.list a:first-child {
  border-top: 0;
  padding-top: 0;
}
.list .t {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.list .t img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list small {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--muted);
}
.list p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank a {
  grid-template-columns: 22px 72px 1fr;
}
.rank .n {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
  text-align: center;
}
.rank a:nth-child(n + 4) .n {
  color: var(--muted);
}
.topics a {
  display: flex;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
}
.topics a:first-child {
  border-top: 0;
}
.topics em {
  font-style: normal;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

/* Footer */
.footer {
  background: #111;
  color: #999;
  padding: 40px 0;
  font-size: 13px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer b {
  color: #fff;
  font-family: var(--font-en);
}

/* ===== Responsive ===== */
@media (max-width: 1240px) {
  .gnav a {
    padding: 8px 8px;
    font-size: 12px;
  }
  .row {
    grid-auto-columns: calc((100% - 2 * 20px) / 3);
  }
}
@media (max-width: 1080px) {
  .gnav,
  .h-actions .hide-md {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .header .container {
    justify-content: space-between;
  }
  /* サイドバーの各ブロックを本文の流れに差し込む */
  .layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  .main,
  .side,
  .side-sticky {
    display: contents;
  }
  .o1 {
    order: 1;
  }
  .o4 {
    order: 4;
  }
  .o7 {
    order: 7;
  }
  .o8 {
    order: 8;
  }
  .o10 {
    order: 10;
  }
  .o11 {
    order: 11;
  }
  .o12 {
    order: 12;
  }
  .o13 {
    order: 13;
  }
  .o14 {
    order: 14;
  }
  .o15 {
    order: 15;
  }
  .o16 {
    order: 16;
  }
}
@media (max-width: 760px) {
  :root {
    --header-h: 56px;
  }
  .container {
    padding: 0 16px;
  }
  .family {
    display: none;
  }
  .h-actions .hide-sm {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero::after {
    display: none;
  }
  .hero .container {
    background: #151514;
    padding: 20px 16px 28px;
    height: auto;
  }
  .hero h1 {
    font-size: 26px;
  }
  .layout {
    padding-top: 28px;
    gap: 44px;
  }
  .main {
    gap: 44px;
  }
  .sec-title h2 {
    font-size: 21px;
  }
  .sec-title h2.jp {
    font-size: 20px;
  }
  .arrow {
    display: none;
  }
  .row {
    grid-auto-columns: 64%;
    gap: 14px;
    margin-right: -16px;
    padding-right: 16px;
  }
  .card h3 {
    font-size: 14px;
  }
  .card .meta {
    font-size: 12px;
  }
  .layout {
    gap: 40px;
  }
}
/* bottom tab (SP) */
.tabbar {
  display: none;
}
@media (max-width: 760px) {
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a,
  .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 0 7px;
    color: var(--muted);
    font-size: 11px;
  }
  .tabbar .on {
    color: var(--accent-dk);
    font-weight: 700;
  }
  .tabbar svg {
    width: 22px;
    height: 22px;
  }
  body {
    padding-bottom: 64px;
  }
}

/* ===== Preview modal (Netflix-like) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 48px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.m-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.m-panel {
  position: relative;
  width: min(880px, 100%);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.25s;
}
.modal.open .m-panel {
  transform: none;
}
.m-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
}
.m-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
}
.m-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--surface) 0, rgba(0, 0, 0, 0) 55%);
}
.m-head {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  z-index: 2;
}
.m-head h2 {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-shadow: 0 1px 12px var(--surface);
}
.m-btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
.m-btns .btn {
  height: 46px;
  padding: 0 26px;
  font-size: 15px;
}
.m-btns .icon-btn {
  width: 46px;
  height: 46px;
}
.m-btns .icon-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.m-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  padding: 8px 32px 28px;
}
.m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.m-meta .pill {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  color: var(--text);
}
.m-meta .pill.free {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.m-desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
}
.m-side dl {
  display: grid;
  gap: 12px;
  font-size: 14px;
}
.m-side dt {
  font-size: 12px;
  color: var(--muted);
}
.m-side dd {
  font-weight: 500;
}
.m-side dd a {
  color: var(--text);
}
.m-rel {
  padding: 0 32px 32px;
}
.m-rel h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.m-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.m-grid .card h3 {
  font-size: 14px;
}
body.lock {
  overflow: hidden;
}
@media (max-width: 760px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .m-panel {
    border-radius: 18px 18px 0 0;
    max-height: 94vh;
    overflow-y: auto;
    transform: translateY(100%);
  }
  .m-head {
    left: 16px;
    right: 16px;
    bottom: 12px;
  }
  .m-btns .btn {
    flex: 1;
    justify-content: center;
  }
  .m-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 16px 20px;
  }
  .m-rel {
    padding: 0 16px 28px;
  }
  .m-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }
}

/* ===== 講師アバター ===== */
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.avs {
  display: inline-flex;
  flex: none;
}
.av {
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--surface);
  overflow: hidden;
  flex: none;
  width: 32px;
}
.av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.avs .av + .av {
  margin-left: -10px;
}
.av.more {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
}
.who .nm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent-dk);
  font-weight: 500;
}
[data-theme="dark"] .who .nm {
  color: var(--accent);
}
.card .meta {
  margin-top: 8px;
}
/* モーダル内の講師リスト */
.ppl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.ppl a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ppl .av {
  height: 36px;
  font-size: 14px;
  border: 0;
  width: 52px;
}
.ppl b {
  font-weight: 500;
  font-size: 14px;
}
.ppl small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ===== 動画時間 ===== */
.thumb .dur {
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
}
.thumb .dur svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke: none;
}

/* ===== カテゴリタグ ===== */
.chip {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  gap: 6px;
  transition: 0.15s;
}
.chip .n {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--muted);
}
.chip.on .n {
  color: inherit;
  opacity: 0.7;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tags .chip {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

/* ===== 14日間 Banner（色はここで変更） ===== */
.cta {
  background: radial-gradient(120% 90% at 100% 0, var(--cta-bg2), var(--cta-bg));
  border: 0;
  color: var(--cta-fg);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "14";
  position: absolute;
  right: -6px;
  bottom: -34px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 140px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-head em {
  color: var(--cta-accent);
  font-style: normal;
}
.cta .btn {
  background: var(--cta-btn);
  color: var(--cta-btn-fg);
  position: relative;
  z-index: 1;
}
.cta .btn:hover {
  filter: brightness(1.08);
}
[data-theme="dark"] .cta {
  border: 1px solid #3a4220;
}
.prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
}
.prog i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.card .meta .date {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--muted);
  flex: none;
}
.card .meta .rest {
  font-size: 12px;
  color: var(--muted);
  flex: none;
}
/* 未ログイン／会員の出し分け（デモ切替） */
body.guest [data-member] {
  display: none !important;
}
body:not(.guest) [data-guest] {
  display: none !important;
}
/* 有料会員は14日間無料Bannerを非表示 */
body.u-paid [data-paid-hide] {
  display: none !important;
}
@media (max-width: 1080px) {
  body.guest .cta {
    order: 1;
  }
}
@media (max-width: 760px) {
  .demo-sw {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* ===== 講師アバター拡大（HAIRCAMP基準） ===== */
.av {
  height: 32px;
  font-size: 13px;
}
.av.more {
  font-size: 11px;
}
.card .meta {
  margin-top: 10px;
}
.who .nm {
  font-size: 13px;
}
.ppl {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.ppl .av {
  height: 52px;
  font-size: 20px;
}
.ppl b {
  font-size: 15px;
}
/* 講師から探す */
@media (max-width: 760px) {
  .av {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* 再生数：通常カードでは非表示（ランキング・モーダルのみ表示） */
.card .meta .v {
  display: none;
}
/* 視聴不可（モーダル） */
.m-lock {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.m-lock b {
  font-size: 15px;
}
.m-lock p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.lk-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
@media (max-width: 1080px) {
  .user-box {
    order: 4;
  }
}

/* サイドバー：サムネイル拡大 */
.list a {
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px 0;
}
.rank a {
  grid-template-columns: 18px 108px 1fr;
}
.list .t {
  aspect-ratio: 16/9;
}
.list p {
  font-size: 14px;
}
@media (max-width: 1080px) {
  .list a {
    grid-template-columns: 140px 1fr;
  }
  .rank a {
    grid-template-columns: 24px 140px 1fr;
  }
}
@media (max-width: 760px) {
  .list a {
    grid-template-columns: 120px 1fr;
  }
  .rank a {
    grid-template-columns: 20px 120px 1fr;
  }
}
/* お知らせ */
.info a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.info a:first-child {
  border-top: 0;
  padding-top: 0;
}
.info p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 6px;
}
.info a:hover p {
  color: var(--accent-dk);
}
.pk-foot .by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pk-foot .go {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-dk);
}
/* SPは下部ナビにマイページ・マイリストがあるため会員メニューは非表示 */
@media (max-width: 760px) {
  .user-box {
    display: none !important;
  }
}

/* ===== SP 文字サイズ（全体的に1〜2px拡大） ===== */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .sec-title h2,
  .sec-title h2.jp {
    font-size: 22px;
  }
  .sec-title small {
    font-size: 13px;
  }
  .more {
    font-size: 14px;
  }
  .card h3,
  .m-grid .card h3 {
    font-size: 16px;
    line-height: 1.5;
  }
  .who .nm {
    font-size: 14px;
  }
  .card .meta .rest,
  .card .meta .date {
    font-size: 13px;
  }
  .thumb .dur {
    font-size: 13px;
  }
  .chip {
    height: 36px;
    font-size: 14px;
    padding: 0 16px;
  }
  .chip .n {
    font-size: 12px;
  }
  .pk-foot .by,
  .pk-foot .go {
    font-size: 14px;
  }
  .list p,
  .info p {
    font-size: 15px;
  }
  .list small {
    font-size: 13px;
  }
  .side h4 {
    font-size: 16px;
  }
  .side h4 small {
    font-size: 13px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .cta-head {
    font-size: 23px;
  }
  .cta-sub {
    font-size: 14px;
  }
  .cta .note {
    font-size: 12px;
  }
  .m-head h2 {
    font-size: 24px;
  }
  .m-meta {
    font-size: 15px;
  }
  .m-desc {
    font-size: 16px;
  }
  .m-rel h4 {
    font-size: 19px;
  }
  .m-lock b {
    font-size: 16px;
  }
  .m-lock p {
    font-size: 14px;
  }
  .tags .chip {
    height: 32px;
    font-size: 13px;
  }
  .tabbar a,
  .tabbar button {
    font-size: 12px;
  }
  .drawer nav a {
    font-size: 16px;
  }
}

/* ===== 配色調整：グリーンは「主要ボタン・選択中・進捗」だけに限定 ===== */
.who .nm,
[data-theme="dark"] .who .nm {
  color: var(--text);
  font-weight: 500;
}
.more,
[data-theme="dark"] .more,
.pk-foot .go {
  color: var(--text);
}
.more:hover {
  color: var(--accent-dk);
}
.tag.new {
  background: #fff;
  color: #111;
}
.links a:hover,
.info a:hover p {
  color: var(--text);
  text-decoration: underline;
}
.chip:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ===== カテゴリバー：ピルをやめてテキストタブ型に ===== */
.cats .chip {
  height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  position: relative;
}
.cats .chip:hover {
  color: var(--text);
}
.cats .chip.on {
  background: none;
  color: var(--text);
  font-weight: 700;
}
.cats .chip.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.cats .chip .n {
  display: none;
}
@media (max-width: 760px) {
  .cats .chip {
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
  }
  .cats .chip.on::after {
    left: 12px;
    right: 12px;
  }
}

/* ===== 絞り込みバー（グループ化ドロップダウン） ===== */
.cats .container {
  position: relative;
}

/* ===== タグバー（YouTube風） ===== */
.yt {
  position: relative;
}
.yt-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
  scroll-behavior: smooth;
}
.yt-row::-webkit-scrollbar {
  display: none;
}
.ytc {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.ytc:hover {
  background: var(--border);
}
.ytc.on {
  background: var(--text);
  color: var(--surface);
}
.yt-arr {
  position: absolute;
  top: 0;
  bottom: 0;
  display: none;
  align-items: center;
  width: 84px;
  pointer-events: none;
}
.yt-arr.l {
  left: -4px;
  background: linear-gradient(90deg, var(--surface) 45%, transparent);
}
.yt-arr.r {
  right: -4px;
  justify-content: flex-end;
  background: linear-gradient(270deg, var(--surface) 45%, transparent);
}
.yt-arr button {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.yt-arr button:hover {
  background: var(--surface-2);
}
.yt.can-l .yt-arr.l,
.yt.can-r .yt-arr.r {
  display: flex;
}
@media (max-width: 760px) {
  .yt-arr button {
    display: none;
  }
  .yt-arr {
    width: 40px;
  }
  .ytc {
    height: 34px;
    font-size: 14px;
  }
}

/* ===== フッター ===== */
.ft {
  --ft-bg: #edede8;
  --ft-fg: #66665f;
  --ft-strong: #1a1a1a;
  --ft-mute: #8c8c85;
  --ft-line: #dadad3;
  background: var(--ft-bg);
  color: var(--ft-fg);
  margin-top: 56px;
  font-size: 13px;
  border-top: 1px solid var(--ft-line);
}
[data-theme="dark"] .ft {
  --ft-bg: #0e0e0d;
  --ft-fg: #9a9a94;
  --ft-strong: #fff;
  --ft-mute: #6d6d68;
  --ft-line: #222;
}
.ft a {
  transition: color 0.15s;
}
.ft a:hover {
  color: var(--ft-strong);
}
.ft h5 {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ft-mute);
  margin-bottom: 12px;
}
.ft h5.mt {
  margin-top: 18px;
}
.ft-main {
  display: grid;
  grid-template-columns: 1.25fr 1.45fr 0.9fr 1.15fr;
  padding-top: 44px;
  padding-bottom: 40px;
}
.ft-col {
  padding: 0 32px;
  border-left: 1px solid var(--ft-line);
  min-width: 0;
}
.ft-col:first-child {
  padding-left: 0;
  border-left: 0;
}
.ft-col:last-child {
  padding-right: 0;
}
.ft-col > a,
.ft-col > span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  line-height: 1.5;
}
.ft-brand .logo {
  color: var(--ft-strong);
  display: inline-flex;
}
.ft-brand .logo svg {
  height: 52px;
}
.ft-brand p {
  margin-top: 16px;
  line-height: 1.85;
  font-size: 12px;
}
.ft-sns {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.ft-sns a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ft-line);
  display: grid;
  place-items: center;
  color: var(--ft-fg);
}
.ft-sns a svg {
  width: 17px;
  height: 17px;
}
.ft-sns a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ft-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}
.ft-2 a {
  display: block;
  padding: 4px 0;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  color: var(--ft-strong);
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.ft-2 a span {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 10px;
  color: var(--ft-mute);
  letter-spacing: 0;
  margin-top: 1px;
}
.ft-sites > a,
.ft-sites > span {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.ft-sites .cur {
  color: var(--ft-strong);
}
.ft-sites .cur i {
  font-style: normal;
  font-family: var(--font);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
}
.ft .ext {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.5;
  flex: none;
}
.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ft-line);
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 11px;
}
.ft-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.ft-bottom nav a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--ft-line);
  margin: 0 14px;
  vertical-align: -1px;
}
.ft-bottom p {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
  color: var(--ft-mute);
}
.ft-bottom small {
  font-family: var(--font-en);
  font-size: 11px;
}
@media (max-width: 1080px) {
  .ft-main {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
  .ft-col:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .ft-col:nth-child(2) {
    padding-right: 0;
  }
}
@media (max-width: 760px) {
  .ft-main {
    grid-template-columns: 1fr;
    row-gap: 0;
    padding-top: 32px;
    padding-bottom: 8px;
  }
  .ft-col {
    padding: 20px 0 !important;
    border-left: 0;
    border-top: 1px solid var(--ft-line);
  }
  .ft-col:first-child {
    border-top: 0;
    padding-top: 0 !important;
  }
  .ft-col:nth-child(3) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .ft-col:nth-child(3) h5 {
    grid-column: 1/-1;
  }
  .ft-brand p {
    margin-top: 12px;
  }
  .ft-sns {
    margin-top: 14px;
  }
  .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ===== B案：全幅レイアウト（Netflix風）＋右サイドバー ===== */
.container {
  padding-left: clamp(16px, 4vw, 72px);
  padding-right: clamp(16px, 4vw, 72px);
}
.hero {
  height: min(56.25vw, 78vh);
  min-height: 460px;
}
.hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0) 65%),
    linear-gradient(0deg, var(--bg) 0, rgba(0, 0, 0, 0.35) 12%, rgba(0, 0, 0, 0) 40%);
}
.hero .container {
  padding-bottom: clamp(56px, 7vw, 110px);
}
.hero h1 {
  font-size: clamp(30px, 3.6vw, 64px);
}
@media (min-width: 1600px) {
  .row,
  .feature .row {
    grid-auto-columns: calc((100% - 4 * 20px) / 5);
  }
  .c-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 2000px) {
  .row,
  .feature .row {
    grid-auto-columns: calc((100% - 5 * 20px) / 6);
  }
  .c-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero::after {
    display: none;
  }
  .hero .container {
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: 28px;
  }
}

/* ===== MV：Netflix風の枠付きカード ===== */
.hero {
  margin: 24px var(--pad) 0;
  border-radius: 20px;
  height: min(calc((100vw - 2 * var(--pad)) * 9 / 16), 74vh);
  min-height: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
[data-theme="dark"] .hero {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  outline-color: rgba(255, 255, 255, 0.1);
}
.hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0, rgba(0, 0, 0, 0.35) 38%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0) 35%);
}
.hero .container {
  padding: 0 clamp(28px, 4vw, 72px) clamp(36px, 4.5vw, 72px);
}
.cats {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
/* ===== 余白：ブロック間・見出しまわりを広げる ===== */
.layout {
  padding-top: 48px;
}
.main {
  gap: 64px;
}
.sec-head {
  margin-bottom: 22px;
}
.card h3 {
  margin-top: 14px;
}
.card .meta {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .hero {
    margin: 12px 16px 0;
    border-radius: 16px;
    height: auto;
    min-height: 0;
  }
  .hero .container {
    padding: 18px 18px 22px;
  }
  .cats {
    margin-top: 14px;
  }
  .layout {
    padding-top: 32px;
  }
  .main {
    gap: 48px;
  }
  .sec-head {
    margin-bottom: 16px;
  }
}

/* ===== 演出（軽量・CSSのみ／JSはクラス付与だけ）===== */
.header {
  transition:
    box-shadow 0.3s,
    background 0.3s;
}
.header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
/* カード：ホバーで少し浮く＋影 */
.thumb {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s;
}
.card:hover .thumb {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
}
/* 画像：読み込み中はシマー、読み込み後ふわっと表示 */
.fx .thumb img {
  opacity: 0;
  transition:
    opacity 0.5s,
    transform 0.4s;
}
.fx .thumb img.ld {
  opacity: 1;
}
.fx .thumb:not(:has(img.ld))::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      transparent 30%,
      color-mix(in srgb, var(--surface) 60%, transparent) 50%,
      transparent 70%
    )
    var(--surface-2);
  background-size: 200% 100%;
  animation: fxShim 1.2s linear infinite;
}
@keyframes fxShim {
  to {
    background-position: -200% 0;
  }
}
/* メインボタン：ホバーで光が走る */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s;
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
/* スクロールで表示 */
.fx .rv {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fx .rv.in {
  opacity: 1;
}
.fx .rv .row > .card {
  opacity: 0;
  transition: opacity 0.7s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.fx .rv.in .row > .card {
  opacity: 1;
}
/* ヒーロー：文字が順に浮かび上がる */
.fx .hero .container > * {
  animation: fxUp 1s ease both;
}
.fx .hero .container > :nth-child(2) {
  animation-delay: 0.08s;
}
.fx .hero .container > :nth-child(3) {
  animation-delay: 0.16s;
}
.fx .hero .container > :nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes fxUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fx .rv,
  .fx .rv .row > .card,
  .fx .thumb img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .fx .hero .container > * {
    animation: none;
  }
  .btn-primary::after,
  .fx .thumb::before {
    display: none;
  }
}

/* ===== 会員ボックス：プレミアム会員バッジ ===== */
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
}
.plan-tag.prem {
  color: var(--gold-ink);
  background: linear-gradient(110deg, var(--gold-bg) 0%, #f2d893 40%, #fff4d6 50%, #f2d893 60%, var(--gold-bg) 100%);
  background-size: 250% 100%;
  animation: premShine 4s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.25);
}
.plan-tag .crown {
  width: 13px;
  height: 13px;
  color: #c08a00;
}
@keyframes premShine {
  0%,
  60% {
    background-position: 100% 0;
  }
  100% {
    background-position: -150% 0;
  }
}
.links a.help {
  color: var(--muted);
  font-size: 13px;
}

/* ===== 14日間バナー（参考デザイン：黒背景＋傾いた講座サムネイル） ===== */
.cta {
  background: radial-gradient(90% 60% at 80% 0, rgba(142, 184, 0, 0.16), transparent 70%), var(--cta-bg) !important;
  color: #fff !important;
  border: 1px solid #23271b !important;
  padding: 0 !important;
  overflow: hidden;
  text-align: left;
  position: relative;
}
.cta::after {
  content: none !important;
}
.cta-stage {
  position: relative;
  height: 150px;
  perspective: 900px;
  overflow: hidden;
}
.cta-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--cta-bg) 100%);
  pointer-events: none;
}
.cta-stage figure {
  position: absolute;
  top: 18px;
  width: 40%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
}
.cta-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
}
.cta-stage figcaption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}
.cta-stage figcaption b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}
.cta-stage i {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E")
    center/12px no-repeat;
  backdrop-filter: blur(4px);
}
.cta-stage .c1 {
  left: -16%;
  transform: rotateY(28deg) rotateZ(-4deg) scale(0.86);
  opacity: 0.7;
  top: 26px;
}
.cta-stage .c2 {
  left: 10%;
  transform: rotateY(18deg) rotateZ(-3deg);
  z-index: 2;
}
.cta-stage .c3 {
  left: 42%;
  transform: rotateY(-10deg) rotateZ(2deg) scale(1.06);
  z-index: 3;
  top: 12px;
}
.cta-stage .c4 {
  left: 74%;
  transform: rotateY(-28deg) rotateZ(4deg) scale(0.86);
  opacity: 0.7;
  top: 26px;
}
.cta-body {
  padding: 4px 22px 22px;
  position: relative;
}
.cta-kick {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--lime-soft);
}
.cta .cta-head {
  font-family: var(--font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.cta-head em {
  color: var(--lime);
  font-size: 1.25em;
}
.cta .cta-sub {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  letter-spacing: 0.06em;
  opacity: 1;
}
.cta-list {
  list-style: none;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.cta-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}
.cta-list li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: #b5e61d
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F110C' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E")
    center/10px no-repeat;
}
.cta .cta-go {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
  height: 50px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--lime) !important;
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 700;
}
.cta .cta-go:hover {
  filter: brightness(1.06);
}
.cta .cta-go svg {
  width: 18px;
  height: 18px;
}
.cta .note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: 10px;
  opacity: 1;
}
/* ===== LIVE：通常色・グロナビ文字を少し大きく ===== */
.gnav a {
  font-size: 14px;
}
/* ===== カードのFREE・期間限定バッジ：画像の外（タイトルの頭）に ===== */
.card h3 .free,
.card h3 .limited,
.pk-txt h3 .free {
  position: static;
  display: inline-block;
  vertical-align: 2px;
  margin-right: 6px;
  font-size: 10px;
  line-height: 1.5;
  padding: 1px 6px;
  border-radius: 4px;
}
/* ===== 一覧ページ：タイトル1行のとき講師との間を詰める ===== */
.c-grid .card h3,
.mp-grid .card h3,
.m-grid .card h3 {
  min-height: 0;
}
/* ===== MV：グラデーションを控えめに（左下だけ） ===== */
.hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0.18) 32%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0) 32%) !important;
}
.hero h1,
.hero-meta {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
/* ===== SP：MVはNetflixアプリ風の縦長カード（動画をトリミングして全面に） ===== */
@media (max-width: 760px) {
  .hero {
    margin: 12px 16px 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 4/5;
    max-height: 76vh;
    border-radius: 16px;
    background: #151514;
  }
  .hero::after {
    display: block !important;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0, rgba(0, 0, 0, 0.35) 34%, rgba(0, 0, 0, 0) 58%) !important;
  }
  .hero .container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: none;
    padding: 0 16px 16px;
  }
  .hero h1 {
    font-size: 24px;
    line-height: 1.35;
  }
  .hero .icon-btn {
    width: 44px;
    height: 44px;
    flex: none;
  }
}
/* ===== SP下部ナビ：iOS風（浮いたガラスのカプセル＋右に検索ボタン） ===== */
@media (max-width: 760px) {
  .tabbar {
    display: flex !important;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }
  .tb-pill {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 62px;
    padding: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  }
  .tb-pill a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 999px;
    font-size: 10px !important;
    font-weight: 600;
    color: var(--text) !important;
    padding: 0 !important;
    transition: background 0.2s;
  }
  .tb-pill a svg {
    width: 22px !important;
    height: 22px !important;
  }
  .tb-pill a.on {
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: var(--text) !important;
    font-weight: 700;
  }
  .tb-search {
    flex: none;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    color: var(--text) !important;
  }
  .tb-search svg {
    width: 24px !important;
    height: 24px !important;
  }
  .tb-search.on {
    background: color-mix(in srgb, var(--text) 14%, var(--surface));
    color: var(--text) !important;
  }
  body {
    padding-bottom: 92px !important;
  }
}

/* ===== セクション見出し：英語＋日本語を少し大きく ===== */
.sec-title h2 {
  font-size: 30px;
}
.sec-title h2.jp {
  font-size: 26px;
}
.sec-title small {
  font-size: 14px;
}
@media (max-width: 760px) {
  .sec-title h2 {
    font-size: 24px;
  }
  .sec-title h2.jp {
    font-size: 22px;
  }
  .sec-title small {
    font-size: 13px;
  }
}

/* ===== ヘッダー：会員アバター＋メニュー ===== */
.umenu {
  position: relative;
}
.u-av {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.u-av:hover {
  border-color: var(--text);
}
.u-av .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.u-chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s;
}
.u-av[aria-expanded="true"] .u-chev {
  transform: rotate(180deg);
}
body.u-paid .u-av .avatar,
body.u-paid .u-head .avatar {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 3.5px #d9ae4c;
}
.u-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: 264px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.u-pop[hidden] {
  display: none;
}
.u-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.u-head .avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
  flex: none;
}
.u-head b {
  display: block;
  font-size: 15px;
}
.u-head .plan-tag {
  margin-top: 4px;
}
.u-pop a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.u-pop a:hover {
  background: var(--surface-2);
}
.u-pop a svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}
.u-pop a.sub {
  color: var(--muted);
  font-size: 13px;
}
.u-pop a.u-up {
  color: var(--gold-ink);
  font-weight: 700;
}
.u-pop a.u-up svg {
  color: #c08a00;
}
[data-theme="dark"] .u-pop a.u-up {
  color: #e9c76b;
}
.u-pop hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 6px 4px;
}
body.u-paid .if-free,
body:not(.u-paid) .if-paid {
  display: none !important;
}
@media (max-width: 760px) {
  .umenu {
    display: none !important;
  }
}
/* ===== 14日間バナー：ライトモードは淡色 ===== */
html:not([data-theme="dark"]) .cta {
  --cta-bg: #f4f7ea;
  background: radial-gradient(90% 60% at 80% 0, rgba(142, 184, 0, 0.18), transparent 70%), var(--cta-bg) !important;
  color: var(--text) !important;
  border: 1px solid #dde5c4 !important;
}
html:not([data-theme="dark"]) .cta-stage figure {
  box-shadow: 0 12px 26px rgba(40, 50, 10, 0.22);
}
html:not([data-theme="dark"]) .cta-kick {
  color: var(--accent-dk);
}
html:not([data-theme="dark"]) .cta-head em {
  color: var(--accent-dk);
}
html:not([data-theme="dark"]) .cta .cta-sub,
html:not([data-theme="dark"]) .cta-list {
  color: var(--muted);
}
html:not([data-theme="dark"]) .cta-list {
  color: var(--text);
}
html:not([data-theme="dark"]) .cta .cta-go {
  background: var(--accent) !important;
  color: #fff !important;
}
html:not([data-theme="dark"]) .cta .note {
  color: var(--muted);
}
html:not([data-theme="dark"]) .cta-list li::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E");
}

/* ===== ヘッダー：グロナビの間隔・折り返し対策（ホバーは背景色） ===== */
.gnav {
  gap: 2px;
}
.gnav a {
  padding: 8px 14px;
  letter-spacing: 0.06em;
  transition:
    background 0.15s,
    color 0.15s;
}
.gnav a:hover,
.gnav a.on {
  color: var(--text);
  background: var(--surface-2);
}
@media (max-width: 1440px) {
  .gnav a {
    padding: 8px 11px;
  }
}
@media (max-width: 1280px) {
  .gnav a {
    font-size: 13px;
    padding: 8px 8px;
    letter-spacing: 0.03em;
  }
  .header .container {
    gap: 18px;
  }
}
@media (max-width: 1180px) {
  .gnav {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .header .container {
    justify-content: space-between;
  }
}
/* SPヘッダー：14日間無料ボタン */
.h-trial {
  display: none;
}
@media (max-width: 1080px) {
  .h-trial {
    display: inline-flex;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}
/* ===== SP：カテゴリ説明文を控えめに／日本語サブタイトルを少し強く ===== */
@media (max-width: 760px) {
  .sec-title small {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
  }
}
/* ===== タブレット・SP：14日間バナー（文字は左、講座画像は右） ===== */
@media (max-width: 1080px) {
  .cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    align-items: stretch;
  }
  .cta-body {
    grid-column: 1;
    grid-row: 1;
    padding: 24px 8px 24px 24px;
    position: relative;
    z-index: 2;
  }
  .cta-stage {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: 100%;
    perspective: 800px;
  }
  .cta-stage::after {
    background: linear-gradient(90deg, var(--cta-bg) 0, transparent 35%);
  }
  .cta-stage figure {
    width: 78%;
    aspect-ratio: 4/3;
    left: auto;
    right: auto;
  }
  .cta-stage .c1 {
    display: none;
  }
  .cta-stage .c2 {
    top: 8%;
    left: 18%;
    transform: rotate(-6deg) scale(0.92);
    opacity: 0.85;
    z-index: 1;
  }
  .cta-stage .c3 {
    top: 30%;
    left: 4%;
    transform: rotate(3deg);
    z-index: 3;
  }
  .cta-stage .c4 {
    top: 56%;
    left: 24%;
    transform: rotate(-3deg) scale(0.9);
    opacity: 0.85;
    z-index: 2;
  }
  .cta .cta-head {
    font-size: 24px;
  }
  .cta-list {
    margin-top: 12px;
    gap: 6px;
  }
  .cta .cta-go {
    height: 48px;
    margin-top: 16px;
  }
  .cta .note {
    text-align: left;
  }
}
@media (max-width: 760px) {
  .cta {
    grid-template-columns: minmax(0, 1fr) 34%;
  }
  .cta-body {
    padding: 20px 4px 20px 18px;
  }
  .cta-stage figure {
    width: 100%;
  }
  .cta-stage .c2 {
    top: 10%;
    left: 14%;
  }
  .cta-stage .c3 {
    top: 32%;
    left: 0;
  }
  .cta-stage .c4 {
    top: 56%;
    left: 16%;
  }
  .cta-stage figcaption {
    display: none;
  }
  .cta .cta-head {
    font-size: 21px;
    line-height: 1.4;
  }
  .cta .cta-sub {
    display: none;
  }
  .cta-list {
    font-size: 12.5px;
  }
  .cta .cta-go {
    font-size: 14px;
  }
}
/* ===== 解約予定（デモ状態）：再開の導線 ===== */
.if-cancel {
  display: none !important;
}
body.u-cancel .if-cancel {
  display: flex !important;
}
.u-pop a.u-resume {
  margin: 4px 0 2px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(110deg, #fff6dd, var(--gold-bg));
  color: #5a3e00;
  justify-content: space-between;
  gap: 10px;
}
.u-resume span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.u-resume b {
  font-size: 13px;
}
.u-resume small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}
.u-resume em,
.dr-resume em {
  font-style: normal;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  background: #c08a00;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
}
.u-pop a.u-resume:hover {
  background: linear-gradient(110deg, #fff0c8, #f2d893);
}
/* ===== ハンバーガーメニュー（刷新） ===== */
.drawer-panel {
  width: min(88vw, 380px);
  padding-bottom: 20px;
}
.drawer-panel > * {
  flex-shrink: 0;
}
.drawer-head {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.dr-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 20px 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.dr-user .avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
  flex: none;
}
body.u-paid .dr-user .avatar {
  box-shadow:
    0 0 0 2px var(--surface-2),
    0 0 0 3.5px #d9ae4c;
}
.dr-user b {
  display: block;
  font-size: 15px;
}
.dr-user .plan-tag {
  margin-top: 4px;
}
.dr-mp {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.dr-resume {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 20px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(110deg, #fff6dd, var(--gold-bg));
  color: #5a3e00;
}
.dr-resume span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dr-resume b {
  font-size: 13px;
}
.dr-resume small {
  font-size: 11px;
  opacity: 0.8;
}
.dr-guest {
  margin: 16px 20px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
}
.dr-guest p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.dr-guest div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.dr-guest .btn {
  justify-content: center;
  height: 42px;
  font-size: 13px;
  padding: 0 8px;
}
.dr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 20px 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.dr-search svg {
  width: 18px;
  height: 18px;
}
.drawer h6 {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding: 22px 20px 8px;
}
.drawer nav#dnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 20px;
}
.drawer nav#dnav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 58px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px !important;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.drawer nav#dnav a span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font);
}
.drawer nav#dnav a:last-child {
  grid-column: 1/-1;
}
.drawer nav#dnav a:hover {
  border-color: var(--accent);
}
.dr-links {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}
.dr-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.dr-links a:last-child {
  border-bottom: 0;
}
.dr-links svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.dr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dr-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.dr-theme svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.dr-theme .sw {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--border);
  transition: 0.2s;
}
.dr-theme .sw::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .dr-theme .sw {
  background: var(--accent);
}
[data-theme="dark"] .dr-theme .sw::after {
  left: 21px;
}
.dr-logout {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
}

/* ===== マイリスト追加ボタン・トースト ===== */
PC（マウスあり）：サムネイルにマウスを乗せるとブックマークが出る
  →
  ボタンに乗せると「マイリストに追加」の文字が開く
  SP（タッチ）：サムネイル上には置かず、講師名の行の右端にブックマークアイコンを常時表示（1タップで追加・トーストで結果を表示）
  どの画面でも、プレビュー・動画詳細には文字付きのボタンを置く
  */
  .ml-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  height: 34px;
  min-width: 34px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    background 0.2s,
    color 0.2s,
    gap 0.2s;
}
.ml-btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.ml-btn.on svg {
  fill: currentColor;
}
.ml-btn .ml-tx {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  transition: max-width 0.25s ease;
}
.card:hover .ml-btn,
.ml-btn:focus-visible,
.ml-btn.on {
  opacity: 1;
  transform: none;
}
.ml-btn:hover,
.ml-btn:focus-visible {
  background: rgba(0, 0, 0, 0.85);
  gap: 6px;
}
.ml-btn:hover .ml-tx,
.ml-btn:focus-visible .ml-tx {
  max-width: 160px;
}
.ml-btn.on {
  background: var(--accent);
  color: #fff;
}
.ml-btn.on:hover {
  background: var(--accent-dk);
}
/* 文字付き（プレビュー・動画詳細） */
.ml-btn.ml-lab {
  position: static;
  opacity: 1;
  transform: none;
  backdrop-filter: none;
  height: auto;
  min-height: 44px;
  padding: 0 18px;
  gap: 8px;
  background: transparent;
  color: inherit;
}
.ml-btn.ml-lab .ml-tx {
  max-width: none;
  font-size: 14px;
}
.ml-btn.ml-lab:hover {
  background: var(--surface-2);
}
.ml-btn.ml-lab.on {
  background: transparent;
  color: var(--accent-dk);
  border-color: var(--accent);
}
[data-theme="dark"] .ml-btn.ml-lab.on {
  color: var(--accent);
}
/* SP用：講師名の行の右端 */
.ml-btn.ml-mini {
  display: none;
  position: static;
  opacity: 1;
  transform: none;
  backdrop-filter: none;
  background: none;
  color: var(--muted);
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  margin: -8px -8px -8px auto;
  border-radius: 50%;
}
.ml-btn.ml-mini svg {
  width: 18px;
  height: 18px;
}
.ml-btn.ml-mini.on {
  color: var(--accent);
  background: none;
}
@media (hover: none) {
  .thumb .ml-btn {
    display: none;
  }
  .ml-btn.ml-mini {
    display: inline-flex;
  }
}
.pb-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  width: max-content;
}
.pb-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.pb-toast > svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
  stroke-width: 2.6;
}
.pb-toast a {
  margin-left: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pb-toast a:hover {
  background: rgba(255, 255, 255, 0.22);
}
[data-theme="dark"] .pb-toast {
  background: #f2f2ee;
  color: #111;
}
[data-theme="dark"] .pb-toast > svg {
  color: var(--accent-dk);
}
[data-theme="dark"] .pb-toast a {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}
.pb-toast span {
  min-width: 0;
}
@media (max-width: 760px) {
  .pb-toast {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    bottom: 96px;
    font-size: 13px;
    border-radius: 16px;
    transform: translateY(16px);
  }
  .pb-toast.show {
    transform: none;
  }
  .pb-toast a {
    margin-left: auto;
  }
}

/* プレビュー：講師は写真を大きく（顔が分かるサイズ） */
.ppl {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.ppl a {
  gap: 12px;
}
.ppl .av {
  width: 56px;
  height: 56px;
  font-size: 20px;
  flex: none;
}
.ppl b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.ppl small {
  font-size: 11px;
}

/* ===================== 下層共通：シンプルなページ見出し ===================== */
.pg-head {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pg-head .container {
  padding-top: 28px;
  padding-bottom: 26px;
}
.pg-head .crumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pg-head .crumb a:hover {
  color: var(--text);
}
.pg-kick {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-dk);
  margin-top: 16px;
}
[data-theme="dark"] .pg-kick {
  color: var(--accent);
}
.pg-head h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .pg-head .container {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .pg-head .crumb {
    display: none;
  }
  .pg-kick {
    margin-top: 0;
  }
}
/*  ===== 一覧共通（カテゴリ・タグ・検索結果・マイページ等）=====  */
.c-hero .container {
  position: relative;
  z-index: 1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.crumb {
  font-size: 12px;
  color: var(--ch-mute, var(--muted));
  display: flex;
  gap: 8px;
}
.crumb a:hover {
  color: var(--ch-fg, var(--text));
}
.c-hero .jp {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ch-mute);
  margin-top: 8px;
}
.c-hero p.desc {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ch-fg);
  opacity: 0.85;
  margin-top: 18px;
}
.c-main {
  padding-top: 32px;
  padding-bottom: 40px;
}
.c-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.c-count {
  flex: none;
  font-size: 15px;
  font-weight: 700;
}
.c-count b {
  font-family: var(--font-en);
  font-size: 22px;
  margin: 0 2px;
}
.c-bar .yt {
  flex: 1;
  min-width: 0;
}
.c-sort {
  flex: none;
  margin-left: auto; /* 2026：タグ栏がないページ（検索結果）でも右寄せ */
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.c-bar .yt-arr.l {
  background: linear-gradient(90deg, var(--bg) 45%, transparent);
}
.c-bar .yt-arr.r {
  background: linear-gradient(270deg, var(--bg) 45%, transparent);
}
.c-bar .yt-row {
  padding: 6px 0;
}
.c-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 22px;
}
.c-grid .card h3 {
  font-size: 16px;
}
.c-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.c-more small {
  font-size: 13px;
  color: var(--muted);
}
.c-more .btn {
  height: 46px;
  padding: 0 36px;
}
.limited {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
}
.c-cta .btn {
  background: var(--accent);
  color: #fff;
  height: 48px;
  padding: 0 28px;
  flex: none;
}
@media (max-width: 1240px) {
  .c-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1600px) {
  .c-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 2000px) {
  .c-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 760px) {
  .c-hero .container {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 28px;
    margin-top: -56px;
  }
  .crumb {
    display: none;
  }
  .c-hero p.desc {
    font-size: 14px;
  }
  .c-main {
    padding-top: 20px;
  }
  .c-bar {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .c-bar .yt {
    order: 3;
    flex-basis: 100%;
  }
  .c-sort {
    margin-left: auto;
  }
  .c-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 12px;
  }
  .c-grid .card h3 {
    font-size: 15px;
  }
  .c-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
