/*
Theme Name: XXX Manga Child
Theme URI:
Author: XXX Manga Child
Description: xxx-manga.com theme.
Version: 1.81.0-r1
Template: rivett
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: momomanga-child
*/

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --brand: #1e8cbe;
  --brand-dark: #146a94;
  --red: #d64550;
  --bg: #04041a;
  --surface: #0d0d2e;
  --text: #f2f2ff;
  --text-dim: #a6a6c8;
  --border: #26264d;
  --accent: #00e5ff;
  --accent-dark: #00b8d4;
  --rv-link: #7cc9f0;
  --rv-link-hover: #a9dcf7;
  --rv-text: #f2f2ff;
  --rv-text-light: #a6a6c8;
  --rv-heading: #f2f2ff;
  --surface-deep: #08082a;
  --accent2: #ff00ff;
  --on-accent: #04041a;
  --neon-grad: linear-gradient(90deg, #00e5ff 0%, #b05cff 55%, #ff00ff 100%);
}

.entry-content,
.page-content,
.entry-content p,
.page-content p,
.entry-content li,
.page-content li,
.entry-content td,
.page-content td {
  color: var(--text);
}
.entry-content h1,
.page-content h1 { color: var(--text); }
.entry-content h2,
.page-content h2 {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  margin-top: 2.2em;
  margin-bottom: 0.9em;
  font-size: 1.25em;
  line-height: 1.5;
}
.entry-content h3,
.page-content h3 {
  color: #fff;
  border-left: 5px solid var(--accent);
  padding-left: 12px;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}
.entry-content h4,
.page-content h4 { color: var(--text); }

.entry-content a,
.page-content a,
.comment-content a {
  color: var(--rv-link);
  text-decoration-color: rgba(124, 201, 240, 0.5);
}
.entry-content a:hover,
.page-content a:hover,
.comment-content a:hover { color: var(--rv-link-hover); }

.wpcf7 { max-width: 640px; margin: 24px auto 40px; color: var(--text); }
.wpcf7 label {
  display: block;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.7;
}
.cf7-req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: 1px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1em;
  font-weight: 400;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wpcf7 textarea { min-height: 180px; resize: vertical; }
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: var(--text-dim); }
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25);
}
.wpcf7 .wpcf7-acceptance {
  display: block;
  margin: 8px 0 24px;
  font-weight: 400;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.wpcf7 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.wpcf7 .wpcf7-acceptance a { color: var(--rv-link); text-decoration: underline; }
.wpcf7 .wpcf7-acceptance a:hover { color: var(--rv-link-hover); }
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--accent-dark); }
.wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.wpcf7 .wpcf7-spinner { background-color: var(--text-dim); }
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #ff8a95;
  font-size: 0.85em;
  font-weight: 400;
}
.wpcf7 .wpcf7-not-valid { border-color: #ff8a95; }
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  border-width: 1px;
  color: var(--text);
  font-size: 0.9em;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #ff8a95; background: rgba(255, 138, 149, 0.1); }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { border-color: #ff8a95; background: rgba(255, 138, 149, 0.1); }

html { overflow-x: hidden; }
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif !important;
  line-height: 1.7;
  overflow-x: hidden;

}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }
::-moz-selection { background: var(--accent); color: #fff; }

.icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.site-header {
  background: var(--accent);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
  transition: transform 0.25s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hamburger-btn {
  background: none; border: none; cursor: pointer;
  width: 34px; height: 34px; padding: 8px 0;
  display: flex; flex-direction: column; justify-content: space-between;
  box-sizing: border-box;
}
.hamburger-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.site-logo { flex: 1; text-align: center; font-weight: 700; font-size: 1.15em; letter-spacing: 0.03em; color: #fff; }
.site-logo:hover { color: #fff; }
.site-logo span { font-size: 0.6em; opacity: 0.7; }
.search-toggle-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.search-toggle-btn .icon { width: 20px; height: 20px; }
.search-icon-css {
  position: relative; width: 16px; height: 16px;
  border: 2px solid #fff; border-radius: 50%;
}
.search-icon-css::after {
  content: ""; position: absolute; width: 2px; height: 8px; background: #fff;
  bottom: -8px; right: -2px; transform: rotate(-45deg); border-radius: 1px;
}

.site-search { position: relative; }
.site-search input {
  border: none; border-radius: 20px; padding: 7px 34px 7px 14px;
  width: 100%; background: #fff; color: #222;
}
.site-search input::placeholder { color: #999; }
.site-search .search-icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: #999; pointer-events: none; display: flex;
}
.site-search .search-icon .icon { width: 16px; height: 16px; }

.nav-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 200px;
  background: #141414; border-right: 1px solid var(--border);
  z-index: 601; transform: translateX(-100%); transition: transform 0.22s ease;
  display: flex; flex-direction: column; padding: 24px 0; overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .drawer-title {
  color: var(--accent); font-weight: 700; font-size: 1.15em;
  padding: 0 24px 10px; margin: 0 0 6px;
}
.nav-drawer a { padding: 12px 24px; color: #fff; font-size: 0.95em; display: block; }
.nav-drawer a:hover { background: rgba(255,255,255,0.06); color: var(--accent); }
.nav-drawer-ad { margin-top: 16px; padding: 0 24px; }

.search-panel {
  position: fixed; top: 64px; right: 16px; width: 260px; max-width: calc(100vw - 32px);
  background: #141414; border: 1px solid rgba(0, 229, 255,0.5); border-radius: 12px;
  padding: 16px; z-index: 602; opacity: 0; transform: translateY(-8px);
  pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
}
.search-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.search-panel .drawer-heading { color: var(--accent); font-weight: 700; font-size: 1.05em; margin: 14px 0 8px; }
.search-panel .drawer-heading:first-child { margin-top: 0; }
.drawer-search { position: relative; }
.drawer-search input { width: 100%; }
.drawer-tag-links { list-style: none; margin: 0; padding: 0; }
.drawer-tag-links li { padding: 6px 0; }
.drawer-tag-links a { color: #fff; font-size: 0.92em; display: flex; align-items: center; }
.drawer-tag-links a::before {
  content: ""; display: inline-block; width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor; margin-right: 9px;
}
.drawer-tag-links li:nth-child(odd) a::before { color: var(--accent); }
.drawer-tag-links li:nth-child(even) a::before { color: #29c2d8; }

.gallery-main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 10px 16px 60px; }
.entry-content { max-width: 1000px; margin: 0 auto; width: 100%; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px;
}
.gallery-main > .section-head:first-child,
.gallery-main > .gallery-section:first-child .section-head {
  margin-top: 0;
}
.section-overline { margin: 0; font-size: 0.9em; color: var(--text-dim); letter-spacing: 0.05em; }

.archive-intro {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92em;
}
.archive-intro-lead { margin: 0; color: var(--text); line-height: 1.8; }
.archive-intro-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.archive-intro-label {
  flex-shrink: 0; color: var(--text-dim); font-size: 0.9em; padding-top: 2px;
}
.archive-intro-links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.archive-intro-links a { color: var(--accent); }
.archive-intro-links a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .archive-intro-row { flex-direction: column; gap: 4px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-head h1,
.section-head h2 {
  margin: 2px 0 0; font-size: 1.9em; font-weight: 700; font-family: 'Noto Sans JP', sans-serif; color: var(--accent);
  background: none !important; border: none !important; box-shadow: none !important;
  padding: 0 !important; border-radius: 0 !important; display: block;
}
.more-link { font-size: 0.85em; color: var(--accent); align-self: flex-end; white-space: nowrap; }

.card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 14px;
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .related-section .card-grid > *:nth-child(n+13) { display: none; }
}

.card { background: none; display: block; text-decoration: none !important; }
.card-thumb {

  position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9em; text-align: center; padding: 8px;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.like-badge {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.55);
  color: var(--accent); border-radius: 14px; padding: 2px 9px; font-size: 0.78em;
  display: flex; align-items: center; gap: 3px; z-index: 2;
}
.like-badge .icon { width: 12px; height: 12px; }
.card-title {
  font-size: 0.85em; padding: 8px 2px 0; margin: 0; color: #fff; background: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

#tag-cloud-mount { margin-top: 50px; padding-top: 10px; border-top: 1px solid var(--border); }
.tag-group { margin-bottom: 30px; }
.tag-group-title { color: var(--accent) !important; background: none !important; padding: 0 !important; }
.tag-flow { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tag-link { color: #999 !important; font-size: 0.88em; white-space: nowrap; text-decoration: none !important; }
.tag-link:hover { text-decoration: underline !important; }
.tag-link .tag-hash { color: #38CCF1 !important; }
.tag-link span:not(.tag-hash) { color: var(--text-dim) !important; margin-left: 2px; }

.site-footer { text-align: center; font-size: 0.8em; color: var(--text-dim); padding: 20px; }
@media (max-width: 767px) {

  .site-footer { padding-bottom: calc(20px + 60px + env(safe-area-inset-bottom)); }
}

.footer-bottom { justify-content: center !important; text-align: center !important; }

.age-gate-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center; z-index: 999; padding: 16px;
}
.age-gate-box { background: var(--surface); color: var(--text); border-radius: 14px; padding: 32px; max-width: 420px; text-align: center; }
.age-gate-logo { color: var(--brand); font-weight: 700; margin: 0 0 10px; }
.age-gate-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.btn-leave { color: var(--text-dim); font-size: 0.85em; }

.btn-blue, .btn-red {
  display: inline-block; width: 100%; text-align: center; padding: 14px; border-radius: 8px;
  font-weight: 700; color: #fff !important; border: none; cursor: pointer; font-size: 1em;
  text-decoration: none !important;
}
.btn-blue { background: var(--brand); }
.btn-red { background: var(--red); }
.section-blue, .section-red { display: block; margin: 8px 0; }

.entry-header { margin-bottom: 16px; }
.entry-header h1 { font-size: 1.35em; color: #fff; margin: 10px 0 14px; }

.entry-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 5px; font-size: 0.85em; color: var(--text-dim) !important; text-decoration: none !important; }
.topbar-item .icon { width: 15px; height: 15px; }
a.topbar-item:hover { color: var(--accent) !important; }
.topbar-like { color: var(--accent) !important; margin-left: auto; }
.topbar-like .icon { color: var(--accent); }

.tag-chip { background: var(--surface); color: #cfe8f5 !important; border-radius: 14px; padding: 4px 10px; font-size: 0.8em; text-decoration: none !important; }

.badge-chip { font-size: 0.78em; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.badge-popular { background: rgba(0, 229, 255,0.15); color: var(--accent); }
.badge-hof { background: rgba(224,168,0,0.18); color: #e0a800; }

.entry-buttons { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.page-badge {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 11px; font-size: 0.9em; font-weight: 700; color: #fff;
}
.fav-btn {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 11px; font-size: 0.9em; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.fav-btn .icon { width: 15px; height: 15px; }
.fav-btn.faved { border-color: #e0a800; color: #e0a800; }
.like-btn.liked { border-color: #FF6F63; color: #FF6F63; }

.info-row { display: flex; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9em; }
.info-label { flex: 0 0 112px; color: #7db8e8; white-space: nowrap; }
.info-value { color: #eee; flex: 1; }
.info-tag-link { color: #999 !important; text-decoration: none !important; }
.info-tag-link:hover { text-decoration: underline !important; }

.entry-desc { margin: 4px 0 24px; }
.entry-desc-more { text-align: center; }
.desc-more-btn { background: none; border: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 16px; }
.desc-more-btn:hover { text-decoration: underline; }
.entry-desc .entry-desc-body { display: none; margin-top: 10px; }
.entry-desc.open .entry-desc-body { display: block; }
.entry-desc-body p { margin: 0 0 12px; color: var(--text); line-height: 1.9; }
.like-cta { text-align: center; margin: 28px 0; }
.like-cta p { margin: 0 0 14px; color: #fff; }
.like-cta .accent-text { color: var(--accent); font-weight: 700; margin: 0 4px; }
.like-cta-btn {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  transition: background-color 0.15s ease;
}
.like-cta-btn .icon { width: 28px; height: 28px; }
.like-cta-btn.liked { background: #FF6F63; color: #fff; }

.gallery-vertical { display: flex; flex-direction: column; gap: 4px; margin: 20px auto; max-width: 100%; }
.ph-box.sample-page {
  height: 420px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
@media (max-width: 767px) { .ph-box.sample-page { height: 280px; } }

.sample-page--real { width: 100%; height: auto; border-radius: 4px; display: block; }

.entry-review-text { max-width: 640px; margin: 16px auto 24px; line-height: 1.9; color: var(--text, #f2f2f2); }
.entry-review-text p { margin: 1em 0; }

.cta-wrap { max-width: 480px; width: 100%; margin: 24px auto 40px; }

.comment-section { max-width: 640px; margin: 30px auto 0; }
.comments-area { margin: 30px auto 0; max-width: 640px; }
.comments-area__title, .comment-section h3 {
  color: var(--accent) !important; background: none !important; padding: 0 !important;
  font-size: 1.9em; font-weight: 700; font-family: 'Noto Sans JP', sans-serif; margin-bottom: 16px;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 10px 0 0 20px; padding-left: 14px; border-left: 2px solid var(--border); }

.comment-list .comment {
  background: none; border: none; border-radius: 0;
  padding: 0; margin-bottom: 0; box-shadow: none;
}
.rivett-comment { border-bottom: 1px dashed var(--border); padding: 14px 0; }
.rivett-comment__header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rivett-comment__author { color: #7ec98a; font-size: 0.9em; font-weight: 700; }
.rivett-comment__meta { display: flex; align-items: center; gap: 8px; }
.rivett-comment__date { color: var(--text-dim); font-size: 0.72em; }
.rivett-comment__edit { font-size: 0.72em; }
.rivett-comment__edit a { color: var(--text-dim); }
.rivett-comment__body { color: var(--text); margin-top: 6px; }
.rivett-comment__body p { margin: 0; }
.rivett-comment__footer { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rivett-comment__like {
  display: flex; align-items: center; gap: 5px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; color: var(--accent); padding: 4px 12px; font-size: 0.8em; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.rivett-comment__like-icon { width: 13px; height: 13px; }
.rivett-comment__like.is-liked { background: #FF6F63; border-color: #FF6F63; }
.rivett-comment__reply a { color: var(--text-dim); font-size: 0.8em; text-decoration: underline; }
.rivett-comment__reply a:hover { color: var(--accent); }

#respond { margin-top: 20px; }
#respond .comment-reply-title { color: var(--text); font-size: 1.1em; }

.comment-notes, .logged-in-as { color: var(--text-dim) !important; font-size: 0.85em; }
.logged-in-as a { color: var(--accent) !important; }
#commentform { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
#commentform p { margin: 0; }
#commentform label { color: var(--text-dim); font-size: 0.85em; display: block; margin-bottom: 4px; }
#commentform input[type="text"], #commentform input[type="email"], #commentform input[type="url"], #commentform textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px;
  background: var(--surface); color: var(--text); font-family: inherit;
}
#commentform textarea { resize: none; }
#commentform .form-submit input[type="submit"] {
  background: var(--accent); color: #fff; border: none; border-radius: 20px; padding: 8px 24px; cursor: pointer; font-family: inherit;
}

.card-grid-item { display: contents; }

.sort-bar { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.sort-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); border-radius: 16px; padding: 6px 16px; font-size: 0.85em; cursor: pointer; }
.sort-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sort-btn.active::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: middle;
}
.sort-btn.active[data-dir="desc"]::after { border-top: 5px solid #fff; }
.sort-btn.active[data-dir="asc"]::after { border-bottom: 5px solid #fff; }
.sort-btn.active:not([data-dir])::after { display: none; }

.mm-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mm-debug {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 0.85em;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
}
.card-date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.75em;
  color: var(--text-dim);
}
.card-date .icon { width: 12px; height: 12px; }

.card-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1;
}

.mm-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 48px;
}
.mm-pagination-count {
  width: 100%;
  margin: 0 0 8px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9em;
}
.mm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9em;
  text-decoration: none;
  position: static;
  float: none;
  width: auto;
}
.mm-pagination .page-numbers:hover { border-color: var(--accent); }
.mm-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
.mm-pagination .page-numbers.dots {
  background: none;
  border: none;
  min-width: 20px;
  padding: 0;
}
#history-clear { align-self: center; }

.empty-msg { color: var(--text-dim); text-align: center; padding: 60px 0; }

.genre-index-head { justify-content: center; text-align: center; }
.genre-index-head > div { text-align: center; }

.kana-jump-bar {
  margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
  line-height: 2; text-align: center;
}
.kana-jump-bar a { color: var(--accent); font-size: 1em; margin-right: 10px; }
.kana-jump-bar a:hover { text-decoration: underline; }

.kana-group { margin-bottom: 34px; scroll-margin-top: 80px; }
.kana-group-label {
  margin: 0 0 18px; padding: 0 0 10px 16px;
  border-left: 5px solid var(--accent); border-bottom: 1px solid var(--border);
  background: none; color: var(--accent); font-size: 1.7em; font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
}
.kana-group-list {
  list-style: disc; margin: 0; padding-left: 22px;
  columns: 190px 7; column-gap: 24px;
}
.kana-group-list li {
  margin-bottom: 12px;
  break-inside: avoid;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
.kana-group-list a { color: var(--accent); font-size: 0.95em; }
.kana-group-list a:hover { text-decoration: underline; }

.related-section { margin-top: 40px; }
.related-section .section-head h2 { color: var(--accent) !important; }

.mobile-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #141414;
  border-top: 1px solid var(--border); z-index: 550; padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  transition: transform 0.25s ease;
}

@media (max-width: 767px) {
  .scroll-to-top { bottom: 86px !important; }

  body.momomanga-scroll-down .mobile-nav { transform: translateY(100%); }
  body.momomanga-scroll-down .scroll-to-top { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
}
.mobile-nav a, .mobile-nav button {
  flex: 1; background: none; border: none; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
}
.mobile-nav .icon { width: 20px; height: 20px; }
.mobile-nav a span, .mobile-nav button span { font-size: 0.68em; }
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--accent); }

@media (max-width: 767px) {
  .site-logo span { display: none; }
  .search-panel { right: 8px; left: 8px; width: auto; }
  .gallery-main { padding-bottom: 76px; }
  .mobile-nav { display: flex; }
  .comment-list .children { margin-left: 10px; }
  #commentform textarea { font-size: 16px; }
}

.content-area {
  grid-template-columns: 1fr !important;
}
.site-content {
  padding-top: 0 !important;
}

body.single-post {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.mm-ad {
  display: block;
  margin: 16px auto;
  text-align: center;
}
.mm-ad-footer {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 24px;
  box-sizing: border-box;
}
.mm-affiliate-notice {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg);
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.mm-ad-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  overflow: hidden;
}
.mm-ad-sp {
  display: none;
}
.mm-ad-body img {
  max-width: 100%;
  height: auto;
}
.mm-ad-body iframe {
  max-width: 100%;
}
.mm-ad-body.mm-ad--rect {
  min-height: 250px;
}
.mm-ad-body.mm-ad--wide {
  min-height: 90px;
}
.mm-ad-body.mm-ad--half {
  min-height: 600px;
}
.mm-ad-body.mm-ad--skyscraper {
  min-height: 600px;
}
.mm-ad-body.mm-ad--banner {
  min-height: 60px;
}
.mm-ad-body.mm-ad--strip {
  min-height: 50px;
}
.mm-ad-body.mm-ad--strip_l {
  min-height: 100px;
}
.mm-ad-body.mm-ad--none {
  min-height: 0;
}

html.mm-adblock .mm-ad,
html.mm-adblock .mm-ad-footer,
html.mm-adblock .card-grid-item--pr {
  display: none !important;
}

.gallery-col {
  min-width: 0;
}

.mm-rail {
  display: none;
  position: fixed;
  overflow: hidden;
  z-index: 20;
}
.mm-rail .mm-ad {
  margin: 0;
}

.mm-rail-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.mm-rail-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.mm-interstitial {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mm-interstitial[hidden] {
  display: none;
}
.mm-interstitial-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}
.mm-interstitial-label {
  margin: 0;
  align-self: flex-start;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
}
.mm-interstitial-body {
  max-width: 100%;
}
.mm-interstitial-body iframe {
  max-width: 100%;
}
.mm-interstitial-close {
  padding: 12px 32px;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.mm-interstitial-close:hover {
  background: var(--accent-dark);
}

.card-date--pr {
  justify-content: flex-end;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

@media (max-width: 767px) {
  .mm-ad {
    margin: 14px auto;
  }
  .mm-ad-pc {
    display: none;
  }
  .mm-ad-sp {
    display: flex;
  }
  .mm-affiliate-notice {
    padding-bottom: 76px;
  }
}

.preview-cta {
  text-align: center;
  padding: 24px 16px 4px;
}
.preview-cta__note {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

body {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(0,229,255,0.10), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(255,0,255,0.10), transparent 55%),
    var(--bg) !important;
  background-attachment: fixed !important;
}

.site-header { background: var(--neon-grad); color: var(--on-accent); }
.hamburger-btn span { background: var(--on-accent); }
.search-toggle-btn { color: var(--on-accent); }
.site-logo, .site-logo:hover { color: #fff; text-shadow: 0 1px 6px rgba(4,4,26,0.35); }

.nav-drawer, .search-panel, .mobile-nav { background: var(--surface-deep); }

.entry-content h2, .page-content h2,
.cf7-req,
.wpcf7 input[type="submit"],
#commentform .form-submit input[type="submit"],
.mm-pagination .page-numbers.current,
.mm-interstitial-close { color: var(--on-accent); }
::selection { color: var(--on-accent); }
::-moz-selection { color: var(--on-accent); }

.sort-btn { color: #fff; }
.sort-btn.active { background: var(--neon-grad); border-color: var(--accent); color: #fff; text-shadow: 0 0 4px rgba(4,4,26,0.9), 0 1px 2px rgba(4,4,26,0.9); }
.sort-btn.active[data-dir="desc"]::after { border-top-color: #fff; }
.sort-btn.active[data-dir="asc"]::after { border-bottom-color: #fff; }

.sort-btn[data-key="comments"],
#section-commented,
.front_section_commented,
.nav-drawer a[href$="/commented/"] { display: none !important; }

.scroll-to-top {
  background: rgba(13, 13, 46, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.55);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  backdrop-filter: blur(4px);
}
.scroll-to-top:hover {
  border-color: var(--accent2);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent2), 0 0 18px rgba(255, 0, 255, 0.4);
}

.section-overline {
  background: var(--neon-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 700;
}
.section-head h2 { text-shadow: 0 0 14px rgba(0,229,255,0.35); }
.card-thumb { transition: box-shadow 0.2s ease; }
.card:hover .card-thumb { box-shadow: 0 0 0 2px var(--accent2), 0 0 18px rgba(255,0,255,0.35); }
