:root {
  --night: #07080b;
  --night-2: #0d1016;
  --panel: #12161e;
  --panel-2: #181d27;
  --line: #303642;
  --line-soft: #222833;
  --text: #f5f7fb;
  --muted: #aeb6c3;
  --pink: #ff3f91;
  --cyan: #47e5ff;
  --amber: #ffc857;
  --coral: #ff6b5f;
  --content: 1200px;
  --reader: 760px;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font-size: 16px;
}

a {
  color: var(--cyan);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--content));
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 0;
}

.main.container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  border-top: 2px solid var(--pink);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 8, 11, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 64px;
  padding: 0;
  gap: 28px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo img {
  width: auto;
  height: 48px;
  max-width: 178px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-bottom: 2px solid transparent;
  color: #e7ebf2;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover {
  border-bottom-color: var(--pink);
  color: #fff;
}

.header-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--panel) !important;
  background-color: var(--panel) !important;
  color: #fff !important;
}

.header-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: #fff !important;
  background-color: #fff !important;
}

/* Age gate */
.age-gate {
  background: rgba(0, 0, 0, 0.94);
}

.age-gate-card {
  max-width: 520px;
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--pink);
  border-radius: 6px;
  background: #0d1016;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
}

.age-gate-mark {
  color: var(--pink);
  font-size: 38px;
}

.age-gate-card h2 {
  margin: 8px 0;
  color: #fff;
}

.age-gate-lead,
.age-gate-note {
  color: var(--muted);
}

.age-gate-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.age-gate-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 4px;
  font-weight: 800;
}

.age-gate-buttons .btn-primary {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.age-gate-buttons .btn-leave {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

/* Home */
.renewal-home {
  padding-bottom: 72px;
  background: var(--night);
}

.night-hero {
  position: relative;
  height: 420px;
  max-width: var(--content);
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 2px solid var(--pink);
  background: #05060a;
}

.night-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.night-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.night-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.night-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 74px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 63, 145, 0.7), 0 5px 28px #000;
}

.night-hero-copy > p:not(.section-kicker) {
  margin: 16px 0 0;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--pink);
  color: #e8fbff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 2px 12px #000;
}

.night-hero-links {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.night-hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--pink);
  border-radius: 4px;
  background: rgba(7, 8, 11, 0.82);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.night-hero-links a:last-child {
  border-color: var(--cyan);
}

.home-discovery {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding-block: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.home-search label,
.category-filter > span {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.home-search > div {
  position: relative;
}

.home-search input,
.category-filter input {
  width: 100%;
  height: 50px;
  padding: 0 52px 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: #fff;
}

.home-search input::placeholder,
.category-filter input::placeholder {
  color: #7f8794;
}

.home-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
}

.home-quick-links {
  display: flex;
  max-width: 560px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-quick-links a,
.premium-category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #dce2eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-quick-links a:hover,
.premium-category-chip:hover,
.premium-category-chip.is-current {
  border-color: var(--cyan);
  color: #fff;
}

.home-band,
.home-search-results {
  padding-block: 58px;
}

.home-band + .home-band {
  border-top: 1px solid var(--line-soft);
}

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

.home-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.25;
}

.home-section-head > span,
.home-section-head > a {
  color: var(--muted);
  font-size: 13px;
}

.home-section-head > a:hover {
  color: var(--cyan);
}

.home-feature-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: #fff;
  text-decoration: none;
}

.home-feature-story:hover {
  border-color: var(--pink);
  text-decoration: none;
}

.home-feature-story figure {
  min-height: 360px;
  margin: 0;
  background: #05060a;
}

.home-feature-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-left: 1px solid var(--line);
}

.home-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.home-story-meta span {
  color: var(--cyan);
  font-weight: 800;
}

.home-feature-copy h3 {
  margin: 14px 0;
  color: #fff;
  font-size: 27px;
  line-height: 1.5;
}

.home-feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.home-feature-copy > strong {
  margin-top: 22px;
  color: var(--pink);
}

.home-popular-list {
  border-top: 1px solid var(--line);
}

.home-popular-item {
  display: grid;
  grid-template-columns: 48px 104px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
}

.home-popular-item:hover {
  background: var(--night-2);
  text-decoration: none;
}

.home-popular-rank {
  color: var(--pink);
  font-family: Inter, sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.home-popular-item > img {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
}

.home-popular-copy {
  min-width: 0;
}

.home-popular-copy small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.home-popular-copy strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
}

.home-popular-arrow {
  color: var(--cyan);
  font-size: 21px;
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.home-route-grid > a {
  position: relative;
  min-height: 158px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
}

.home-route-grid > a:hover {
  background: var(--panel);
  text-decoration: none;
}

.home-route-grid strong,
.home-route-grid span {
  display: block;
}

.home-route-grid strong {
  margin-bottom: 9px;
  color: #fff;
  font-size: 18px;
}

.home-route-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.home-route-grid b {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--cyan);
}

/* Shared article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.article-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: #fff;
  text-decoration: none;
}

.article-card-media {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #05060a;
}

.article-card-media img,
.article-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 16px;
  background: var(--panel);
}

.article-card-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.article-card h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 16px;
  line-height: 1.55;
}

.article-card .article-date {
  margin: 0 0 8px;
  color: #8992a0;
  font-size: 11px;
}

.article-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.search-result-link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: #fff;
  text-decoration: none;
}

.search-result-link:hover {
  border-color: var(--cyan);
  text-decoration: none;
}

.search-result-link img {
  width: 104px;
  height: 78px;
  object-fit: cover;
}

.search-result-link small,
.search-result-link strong {
  display: block;
}

.search-result-link small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.search-result-link strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

/* Category */
.premium-category-page {
  padding: 32px 0 70px;
  background: var(--night);
  color: var(--text);
}

.premium-category-page .container {
  max-width: var(--content);
}

.premium-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--line);
}

.premium-category-copy,
.premium-category-visual,
.premium-category-articles,
.premium-category-page .article-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.premium-category-copy {
  padding: 0;
  border: 0;
}

.premium-category-copy::before {
  display: none;
}

.premium-category-copy h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 48px;
  line-height: 1.2;
}

.premium-category-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.premium-category-visual {
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #05060a;
}

.premium-category-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.premium-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.premium-category-articles {
  margin-top: 0;
  padding: 48px 0 0;
  border: 0;
}

.premium-section-head {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.premium-section-head h2 {
  margin: 0 auto 0 0;
  color: #fff;
  font-size: 29px;
}

.premium-section-head > span {
  color: var(--muted);
  font-size: 13px;
}

.category-filter {
  display: block;
  max-width: 520px;
  margin-bottom: 24px;
}

.category-filter-empty,
.premium-empty {
  color: var(--muted);
}

.premium-category-grid {
  gap: 18px;
}

.premium-category-page .article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

/* Article */
.premium-article-page {
  min-height: 100vh;
  padding: 20px 0 68px;
  background: var(--night);
  color: var(--text);
}

.premium-article-page .container,
.premium-article-page > .container,
.premium-article-page .premium-layout.container,
.premium-article-page .premium-hero.container,
.premium-article-page .premium-breadcrumb.container {
  max-width: 1080px;
}

.reading-progress {
  position: fixed;
  top: 66px;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--pink);
}

.premium-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  color: #87909d;
  font-size: 12px;
  white-space: nowrap;
}

.premium-breadcrumb a {
  color: var(--muted);
}

.premium-breadcrumb > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 30px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.premium-hero-copy,
.premium-hero-visual,
.premium-summary-card,
.premium-toc,
.premium-post,
.premium-r18 {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.premium-hero-copy {
  padding: 0;
  overflow: visible;
}

.premium-hero-copy::before {
  display: none;
}

.article-category-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.premium-hero h1 {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 40px;
  line-height: 1.35;
  text-shadow: none;
  overflow-wrap: anywhere;
}

.premium-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.premium-meta-row span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.premium-hero-visual {
  height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #05060a;
}

.premium-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-disclosure {
  margin-bottom: 24px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0;
  background: var(--night-2);
}

.premium-disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.premium-disclosure strong {
  margin-right: 9px;
  color: var(--amber);
}

.premium-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reader));
  gap: 48px;
  align-items: start;
  justify-content: center;
}

.premium-toc {
  display: block !important;
  position: sticky;
  top: 96px;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
}

.premium-toc details,
.premium-toc summary {
  color: #fff;
}

.premium-toc summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.premium-toc nav {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}

.premium-toc-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.premium-toc-link:hover {
  color: #fff;
}

.premium-toc-link span {
  color: var(--pink);
  font-family: Inter, sans-serif;
  font-weight: 700;
}

.premium-toc-link.is-child {
  padding-left: 12px;
}

.premium-main {
  min-width: 0;
  max-width: var(--reader);
}

article.post.premium-post {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #e9edf3;
}

article.post.premium-post > :first-child {
  margin-top: 0;
}

article.post.premium-post p,
article.post.premium-post li {
  color: #e3e7ee !important;
  font-size: 17px;
  line-height: 2;
}

article.post.premium-post p {
  margin: 18px 0;
}

article.post.premium-post strong {
  color: #fff2cf;
  font-weight: 800;
  background: linear-gradient(
    transparent 58%,
    rgba(217, 151, 40, 0.54) 58%,
    rgba(217, 151, 40, 0.54) 91%,
    transparent 91%
  );
  padding: 0 0.08em;
}

article.post.premium-post h2 {
  margin: 54px 0 20px;
  padding: 2px 0 2px 16px;
  border: 0;
  border-left: 4px solid var(--pink);
  color: #fff !important;
  font-size: 26px;
  line-height: 1.5;
}

article.post.premium-post h3 {
  margin: 36px 0 14px;
  color: #fff !important;
  font-size: 21px;
  line-height: 1.55;
}

article.post.premium-post ul,
article.post.premium-post ol {
  margin: 18px 0;
  padding-left: 1.4em;
}

article.post.premium-post blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--cyan) !important;
  background: var(--night-2) !important;
  color: #e6ecf4;
}

article.post.premium-post img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

article.post.premium-post table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  background: transparent !important;
  color: #e9edf3 !important;
  font-size: 14px;
}

article.post.premium-post th,
article.post.premium-post td {
  padding: 11px 12px;
  border: 1px solid var(--line) !important;
}

article.post.premium-post th {
  background: var(--panel) !important;
  color: #fff !important;
}

article.post .product-image-link {
  display: block;
  margin-top: 22px;
  border: 0 !important;
}

article.post .product-review-cta {
  margin: 12px 0 28px !important;
}

article.post .product-review-cta a,
article.post a[href*="dlsite.com"][rel*="sponsored"],
article.post a[href*="al.fanza.co.jp"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--pink);
  border-radius: 4px;
  background: var(--pink);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: none;
}

article.post .product-review-cta a:hover,
article.post a[href*="dlsite.com"][rel*="sponsored"]:hover,
article.post a[href*="al.fanza.co.jp"]:hover {
  background: #e92d7e;
}

.related-posts {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.related-posts h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 24px;
}

.premium-article-page .related-posts .article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.premium-article-page .related-posts .article-card {
  border: 1px solid var(--line) !important;
  border-radius: 4px;
  background: var(--panel) !important;
  box-shadow: none;
}

.premium-article-page .related-posts .article-card-media {
  aspect-ratio: 1200 / 630;
}

.premium-article-page .related-posts .article-card-body {
  padding: 10px;
}

.premium-article-page .related-posts .article-card h3 {
  font-size: 13px;
}

.premium-article-page .related-posts .article-card p,
.premium-article-page .related-posts .article-card .article-date {
  display: none;
}

.premium-r18 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 46px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.premium-r18 strong {
  padding: 8px;
  border: 1px solid var(--pink);
  border-radius: 3px;
  color: var(--pink);
}

.premium-r18 p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.premium-r18 a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: #fff;
  font-size: 20px;
}

.back-to-top.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: #050609;
}

.footer-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px 42px;
  align-items: start;
}

.footer-brand img {
  width: 150px;
  height: auto;
}

.footer-brand p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 12px;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: #737b88;
  font-size: 12px;
}

.footer-copy span {
  display: inline-block;
  margin-right: 8px;
  color: var(--pink);
  font-weight: 800;
}

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

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

  .premium-category-hero,
  .premium-hero {
    grid-template-columns: 1fr;
  }

  .premium-category-visual,
  .premium-hero-visual {
    height: auto;
    aspect-ratio: 1200 / 630;
  }

  .premium-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .premium-toc {
    position: static;
    max-width: var(--reader);
    margin-inline: auto;
    padding: 12px 14px;
    border: 1px solid var(--line);
  }

  .premium-main {
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .container,
  .premium-article-page .container,
  .premium-article-page > .container,
  .premium-article-page .premium-layout.container,
  .premium-article-page .premium-hero.container,
  .premium-article-page .premium-breadcrumb.container {
    width: min(100% - 28px, var(--content));
    padding-inline: 0 !important;
  }

  .site-header {
    height: 58px;
  }

  .header-inner {
    width: min(100% - 24px, var(--content));
    height: 56px;
  }

  .header-logo img {
    height: 40px !important;
    max-width: 148px !important;
  }

  .header-mobile-toggle {
    display: block;
    margin-left: auto;
    background: var(--panel) !important;
    background-color: var(--panel) !important;
    color: #fff !important;
  }

  .header-nav {
    position: fixed;
    top: 58px;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 10px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #080a0e;
  }

  .header-nav.open {
    display: grid;
  }

  .header-nav a {
    min-height: 46px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line-soft);
  }

  .age-gate-card {
    padding: 24px 18px;
  }

  .age-gate-buttons {
    grid-template-columns: 1fr;
  }

  .night-hero {
    height: 310px;
  }

  .night-hero-bg {
    object-position: 68% center;
  }

  .night-hero-copy h1 {
    font-size: 52px;
  }

  .night-hero-copy > p:not(.section-kicker) {
    max-width: 290px;
    font-size: 16px;
  }

  .night-hero-links {
    margin-top: 18px;
  }

  .night-hero-links a {
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }

  .home-discovery {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 20px;
  }

  .home-quick-links {
    justify-content: flex-start;
  }

  .home-band,
  .home-search-results {
    padding-block: 40px;
  }

  .home-section-head {
    display: block;
    margin-bottom: 16px;
  }

  .home-section-head h2 {
    font-size: 25px;
  }

  .home-section-head > span,
  .home-section-head > a {
    display: inline-block;
    margin-top: 6px;
  }

  .home-feature-story {
    grid-template-columns: 1fr;
  }

  .home-feature-story figure {
    min-height: 0;
    aspect-ratio: 1200 / 630;
  }

  .home-feature-copy {
    padding: 20px 18px 22px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-feature-copy h3 {
    font-size: 20px;
  }

  .home-feature-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-popular-item {
    grid-template-columns: 34px 78px minmax(0, 1fr);
    gap: 10px;
    min-height: 96px;
    padding: 10px 0;
  }

  .home-popular-item > img {
    width: 78px;
    height: 60px;
  }

  .home-popular-copy strong {
    font-size: 14px;
    line-height: 1.45;
  }

  .home-popular-copy small {
    font-size: 10px;
  }

  .home-popular-arrow {
    display: none;
  }

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

  .home-route-grid > a {
    min-height: 142px;
    padding: 16px 14px;
  }

  .home-route-grid strong {
    font-size: 16px;
  }

  .home-route-grid span {
    font-size: 12px;
  }

  .article-grid,
  .home-search-grid,
  .premium-category-grid,
  .premium-article-page .related-posts .article-grid {
    grid-template-columns: 1fr !important;
  }

  .article-card-body {
    padding: 14px;
  }

  .article-card h3 {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .article-card p {
    display: -webkit-box !important;
  }

  .search-result-link {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .search-result-link img {
    width: 84px;
    height: 64px;
  }

  .premium-category-page {
    padding-top: 18px;
  }

  .premium-category-hero {
    gap: 22px;
    padding-bottom: 26px;
  }

  .premium-category-copy h1 {
    font-size: 34px;
  }

  .premium-category-articles {
    padding-top: 34px;
  }

  .premium-section-head {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .premium-section-head .section-kicker {
    grid-column: 1 / -1;
  }

  .premium-section-head h2 {
    font-size: 24px;
  }

  .premium-article-page {
    padding-top: 14px;
  }

  .reading-progress {
    top: 58px;
  }

  .premium-breadcrumb {
    margin-bottom: 12px;
  }

  .premium-hero {
    display: flex;
    flex-direction: column-reverse;
    gap: 18px;
    padding-bottom: 22px;
  }

  .premium-hero-copy {
    width: 100%;
  }

  .premium-hero h1 {
    font-size: 27px;
    line-height: 1.45;
    word-break: normal;
  }

  .premium-meta-row {
    display: flex;
    gap: 6px 14px;
    margin-top: 14px;
  }

  .premium-meta-row span {
    width: auto;
    font-size: 11px;
  }

  .premium-disclosure {
    margin-bottom: 16px;
  }

  .premium-toc {
    padding: 11px 12px;
  }

  article.post.premium-post p,
  article.post.premium-post li {
    font-size: 17px !important;
    line-height: 1.95 !important;
  }

  article.post.premium-post h2 {
    margin-top: 44px;
    font-size: 22px;
  }

  article.post.premium-post h3 {
    margin-top: 32px;
    font-size: 19px;
  }

  article.post.premium-post table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  article.post .product-review-cta a,
  article.post a[href*="dlsite.com"][rel*="sponsored"],
  article.post a[href*="al.fanza.co.jp"] {
    width: 100%;
    min-height: 50px;
    text-align: center;
  }

  .related-posts {
    margin-top: 48px;
  }

  .premium-article-page .related-posts .article-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .premium-article-page .related-posts .article-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 92px;
  }

  .premium-r18 {
    grid-template-columns: auto 1fr;
  }

  .premium-r18 a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .night-hero-copy h1 {
    font-size: 46px;
  }

  .home-route-grid {
    grid-template-columns: 1fr;
  }

  .home-route-grid > a {
    min-height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
