@charset "utf-8";

/*
Theme Name: EROMAGAN2
Theme URI: eromanga-s.com
Description: EROMAGAN
Version: 1.0
Author: EROMAGAN
Author URI: eromanga-s.com
*/

* {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
p,
div,
figure {
    margin: 0;
    padding: 0;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
}
ul,
ol,
li {
    list-style: none;
    margin: 0 0;
    padding: 0 0;
}
img {
    vertical-align: middle;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    margin: 0 0;
}

html {
    font-family:
        -apple-system, BlinkMacSystemFont, Arial, Helvetica, "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium",
        YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}
body {
    margin: 0 0;
    padding: 0 0;
    background: #fff;
    color: #334155;
}
h1,
h2,
h3 {
    color: #0f172a;
}
a {
    color: #1ba1e3;
}
a:hover {
    color: #31aae7;
}
input[type="text"],
input[type="number"],
textarea {
    font-size: 16px !important;
}

:root {
    --mainColor: #b94047;
    --accentColor: #84cc16;
    --baseColor: #f1f5f9;
}

#header {
    width: 100%;
    height: 50px;
    background: rgba(179, 66, 74, 0.8);
    z-index: 999;
}
#content {
    display: flex;
    flex-direction: column;
    margin: 80px auto 0;
}
#main {
    width: 100%;
    margin: 0 0;
    padding: 0 0 16px;
}
#main > article,
#main > section,
#main > aside,
#main > nav {
    padding: 12px 12px;
}
#sidebar {
    width: 100%;
    margin: 0 0;
    padding: 0 0 16px;
}
#sidebar > div {
    padding: 12px 12px;
}
#footer {
    width: 100%;
    background: #e2e8f0;
}
#footer > div {
    padding: 24px 12px;
}
#footer .footer-site-links {
    padding: 16px 12px;
}
#footer .footer-site-links__inner {
    text-align: center;
}
#footer .footer-site-links a {
    display: inline-block;
    font-size: 14px;
    color: #444;
    margin: 0;
    padding: 2px 6px;
    line-height: 1.8;
}
#footer .footer-site-links__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}
#footer .footer-site-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}
#footer .footer-site-links li {
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    #header {
        height: 64px;
    }
    #content {
        margin: 64px auto 0;
    }
    #main > article,
    #main > section,
    #main > aside,
    #main > nav {
        padding: 24px 24px;
    }
    #sidebar > div {
        padding: 24px 24px;
    }
    #footer > div {
        padding: 24px 24px;
    }
    #footer .footer-site-links {
        padding: 16px 24px;
    }
}
@media (min-width: 1024px) {
    #content {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1164px;
    }
    #main {
        width: calc(100% - 348px);
        padding: 0 0 0;
    }
    #sidebar {
        width: 348px;
    }

    /* PC: 固定パーツ（footer-site-links）を「1行最大8つ」で整列 */
    #footer .footer-site-links__inner {
        max-width: 1164px;
        margin: 0 auto;
        text-align: left;
    }
    #footer .footer-site-links__inner br {
        display: none;
    }

    /* PC: 1行最大8つ（最小幅=8等分相当）。文字は折り返さず、収まらなければ次の行へ */
    #footer .footer-site-links__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px 16px;
    }

    /* ul/li 版 */
    #footer .footer-site-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 16px;
        width: 100%;
    }
    #footer .footer-site-links li {
        flex: 0 0 auto;
    }
    #footer .footer-site-links li a {
        display: block;
        padding: 4px 8px;
        margin: 0;
        box-sizing: border-box;
        font-size: 12px;
        line-height: 1.4;
        white-space: nowrap;
        word-break: keep-all;
    }

    /* a直置き等: wrapper直下のaも同じルール（HTML差を吸収） */
    #footer .footer-site-links__inner > a {
        flex: 0 0 auto;
        padding: 4px 8px;
        margin: 0;
        box-sizing: border-box;
        font-size: 12px;
        line-height: 1.4;
        white-space: nowrap;
        word-break: keep-all;
    }
}

.logo {
    display: flex;
    justify-content: center;
    padding: 0 12px;
}
.logo .site-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 0;
}
.logo a {
    display: block;
    width: 100px;
}
.logo a img {
    width: 100%;
    height: auto;
}
@media (min-width: 768px) {
    .logo {
        padding: 0 24px;
    }
    .logo a {
        width: 120px;
    }
}

.hamburger-menu {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger-menu {
    position: absolute;
    left: auto;
    right: 0;
    top: 0;
}
.hamburger-menu a {
    color: #fff;
}
.menu-open {
    flex: 0 0 auto;
    display: block;
    height: 40px;
    font-size: 30px;
    line-height: 40px;
}
.menu-open::before {
    content: "\e8b6";
    font-family: Material Icons;
    cursor: pointer;
}
.menu-close {
    position: absolute;
    top: 50%;
    left: -60px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 30px;
    color: #fff;
    z-index: 15;
}
.menu-close::before {
    content: "\e5cd";
    font-family: Material Icons;
    cursor: pointer;
}
.menu {
    position: fixed;
    top: 0;
    right: 0;
}
.menu.showing {
    width: 100%;
    height: 100vh;
    z-index: 12;
}
.menu-container {
    display: none;
    width: 75%;
    max-width: 600px;
    height: 100vh;
    padding: 0;
    background: #f7fafd;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 14;
    position: fixed;
}
.showing .menu-container {
    display: block;
}
.menu-inner {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
}
.showing .menu-inner {
    display: block;
}
.menu-inner .search {
    padding: 50px 16px 24px;
}
.menu-inner .navigation {
    padding: 0 0 80px;
}
.menu-inner .menu-list {
    border-top: solid 1px #aaa;
}
.menu-inner .menu-list li {
    border-bottom: solid 1px #aaa;
}
.menu-inner .menu-list li a {
    display: block;
    padding: 12px 16px;
    color: #333;
}
.menu-inner .menu-list li a:hover {
    background: #f0f0f0;
}
.nav-background {
    display: none;
}
.showing .nav-background {
    display: block;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 13;
}
@media (min-width: 768px) {
    .hamburger-menu {
        right: 7px;
        top: 7px;
    }
}

.search {
    margin-bottom: 16px;
}
.search-form {
    position: relative;
}
.search-form .search-input {
    height: 45px;
    border: solid 1px #ccc;
    padding: 8px 8px 8px 48px;
    box-sizing: border-box;
    font-size: 16px;
    width: 100%;
}
.search-form .search-button {
    height: 40px;
    width: 40px;
    border: none;
    background: #fff;
    color: #aaa;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: 3px;
    left: 3px;
}
.search-form .search-button::before {
    content: "\e8b6";
    font-family: Material Icons;
    font-size: 30px;
    line-height: 40px;
}

.breadcrumb {
    border-top: solid 1px #ddd;
    border-bottom: solid 1px #ddd;
    background: #f7fafd;
    margin-top: 10px;
}
.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 12px;
    gap: 4px 2px;
    padding: 8px 0;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb li::after {
    content: "\e5cc";
    font-family: Material Icons;
    display: inline-block;
    padding-left: 2px;
    vertical-align: middle;
}
.breadcrumb li:last-child::after {
    content: none;
}
.breadcrumb li span {
    color: #888;
}
@media (min-width: 1024px) {
    .breadcrumb {
        border-top: none;
        border-bottom: none;
        background: none;
    }
    .breadcrumb ul {
        padding: 8px 0 32px;
    }
}

.overview-header {
    margin-bottom: 8px;
}
.overview-header h1 {
    font-size: 15px;
    font-weight: bold;
    color: 333;
}
.overview-content {
    font-size: 12px;
    color: #666;
}
@media (min-width: 1024px) {
    .overview-header h1 {
        font-size: 20px;
    }
}

.article-list-header {
    margin-bottom: 16px;
}
.article-list-header h1,
.article-list-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 16px;
    background: #b94047;
    color: #fff;
    padding: 10px 0 10px 16px;
}
.article-list-count {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-bottom: 8px;
}
.article-list-sort {
    display: flex;
    gap: 8px;
    font-size: 14px;
}
.article-list-sort li {
    flex: 0 0 auto;
}
.article-list-sort li a {
    display: block;
    background: #e3edf8;
    padding: 4px 8px;
    border-radius: 4px;
}
.article-list-sort li.active a {
    font-weight: bold;
    color: #fff;
    background: #f84a95;
}

.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 8px;
    margin-bottom: 16px;
}
.article-list-item {
    width: calc((100% - 16px) / 2);
    position: relative;
}
.article-list-item .thumbnail {
    width: 100%;
    aspect-ratio: 182/257;
    background: #ddd;
}
.article-list-item .thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 182/257;
    object-fit: cover;
}
.article-list-item .title a {
    display: block;
    padding: 8px 4px 8px 0;
}
.article-list-item .title span {
    display: block;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #222;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    overflow: hidden;
}
.article-list-item .category a {
    color: #fff;
    background: #ddd;
    padding-left: 5px;
    font-size: 11px;
    line-height: 1.8;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.article-list-item .category a[href*="/category/doujinshi"] {
    background: #f87171;
}
.article-list-item .category a[href*="/category/manga"] {
    background: #84cc16;
}
.article-list-item .category a:not(:last-child) {
    display: none;
}
.article-list-item .favorite {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 2px;
}
.article-list-item .favorite.active {
    color: #f84a95;
}
.article-list-item .favorite a {
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
}
.article-list-item .favorite .count {
    color: #aaa;
    font-size: 14px;
}
.article-list-item .favorite .favorited {
    color: red;
}
.article-list-item .view {
    color: #aaa;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    bottom: 2px;
}
.article-list-footer {
    padding: 24px 0;
}
.article-list-footer .pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    position: relative;
}
.article-list-footer .pagination a {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    box-sizing: border-box;
    background: #fff;
}
.article-list-footer .pagination a:hover {
    border-bottom: solid 1px;
}
.article-list-footer .pagination span {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: orange;
    font-weight: bold;
}
.article-list-footer .pagination .current {
    color: #f84a95;
    font-size: 18px;
}
.article-list-footer .pagination .dots {
    color: #ccc;
}
.article-list-footer .pagination .prev {
    border: solid 1px #ccc;
    border-radius: 4px;
    color: #888;
    font-size: 18px;
    position: absolute;
    left: 0;
}
.article-list-footer .pagination .next {
    border: solid 1px #ccc;
    border-radius: 4px;
    color: #888;
    font-size: 18px;
    position: absolute;
    right: 0;
}
.article-list-footer .pagination .prev::before {
    content: "\e408";
    font-family: Material Icons;
}
.article-list-footer .pagination .next::before {
    content: "\e409";
    font-family: Material Icons;
}
.article-list-footer .show-more a {
    display: block;
    text-align: center;
    background: #fff;
    border: solid 1px #ccc;
    height: 48px;
    line-height: 48px;
    border-radius: 24px;
    color: #666;
    font-weight: bold;
}
.article-list-footer .show-more a:hover {
    background: #f0f0f0;
    color: #444;
}

.article-list-footer h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 16px;
}
.article-list-footer .category-description {
    font-size: 14px;
    margin-top: 24px;
}
.article-list-footer .characters {
    margin-top: 24px;
}

@media (min-width: 768px) {
    .article-list {
        gap: 12px;
    }
    .article-list-item {
        width: calc((100% - 48px) / 3);
    }
    .article-list-footer .pagination .prev {
        margin-right: 0;
    }
    .article-list-footer .pagination .next {
        margin-left: 0;
    }
}

.recommended-header {
    margin-bottom: 16px;
}
.recommended-header h1,
.recommended-header .recommended-description {
    font-size: 12px;
}
.recommended-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.recommended-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 8px;
    margin-bottom: 16px;
    counter-reset: item;
}
.recommended-list li {
    position: relative;
}
.recommended-list .view {
    display: none;
}
.recommended-list .thumbnail {
    position: relative;
}

@media (min-width: 768px) {
    .recommended-list {
        gap: 12px;
    }
}

.ranking-header {
    margin-bottom: 16px;
}
.ranking-header h1,
.ranking-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    background: #b94047;
    color: #fff;
    padding: 10px 0 10px 16px;
}

.ranking-list ol {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 8px;
    margin-bottom: 16px;
    counter-reset: item;
}
.ranking-list ol li {
    position: relative;
}
/* .ranking-list ol li::before { counter-increment:item; content:counter(item); font-size:13px; color:#fff; background: #f84a95; display:block; width:20px; height:20px; line-height:20px; text-align:center; position:absolute; left:0; top:0; z-index:2;} */
.ranking-list .thumbnail {
    position: relative;
}
.ranking-list-footer {
    padding: 24px 0;
}
.ranking-list-footer .show-more a {
    display: block;
    text-align: center;
    background: #fff;
    border: solid 1px #ccc;
    height: 48px;
    line-height: 48px;
    border-radius: 24px;
    color: #666;
    font-weight: bold;
}
.ranking-list-footer .show-more a:hover {
    background: #f0f0f0;
    color: #444;
}

.favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 8px;
    margin-bottom: 16px;
}
.favorites-list li {
    position: relative;
    border-top: none !important;
    padding: 0 0 !important;
}

@media (min-width: 768px) {
    .ranking-list ol {
        gap: 12px;
    }
    .favorites-list {
        gap: 12px;
    }
}

.article-header {
    margin-bottom: 16px;
}
.article-header .metadata {
    padding: 0 16px 24px 16px;
}
.article-header .date {
    position: relative;
    font-size: 13px;
    color: #888;
}
.article-header .date::before {
    content: "\e8b5";
    font-family: Material Icons;
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
}
@media screen and (max-width: 767px) {
    .article-header .metadata {
        padding: 0 14px 16px 14px;
    }
}

.page-title {
    margin: 16px 0;
    font-weight: bold;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    background: #b94047;
    color: #fff;
    padding: 10px 0 10px 16px;
}
.book-overview {
    overflow: hidden;
}
.book-cover {
    width: 45%;
}
.book-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 182/257;
    object-fit: cover;
    background: #fafafa;
}

.book-metadata {
    font-size: 12px;
}
.book-metadata dl > div {
    display: flex;
    margin-bottom: 1em;
    gap: 4px;
}
.book-metadata dt {
    width: 30%;
}
.book-metadata dt::after {
    content: " :";
}
.book-metadata dd {
    width: 70%;
}
.book-metadata dd a {
    display: inline-block;
    text-decoration: underline;
    margin-right: 8px;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.favorite-button {
    display: flex;
    align-items: center;
    gap: 4px;
}
.favorite-button a {
    font-size: 24px;
    cursor: pointer;
}
.favorite-button .unfavorited {
    color: #888;
}
.favorite-button .favorited {
    color: red;
}
.favorite-button .count {
    color: #888;
    font-size: 16px;
    font-weight: bold;
}
.favorite-button.single {
    justify-content: end;
}
#article .favorite-button.single {
    justify-content: center;
    margin: 2px 0;
}
#article .wh-like.favorite-button.single,
#article .ec-like.favorite-button.single {
    gap: 4px;
    justify-content: flex-start;
    padding: 3px 10px;
}
#article .favorite-button.single a {
    font-size: 16px;
    line-height: 1.2;
}
#article .favorite-button.single .simplefavorite-button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    font-size: 12px !important;
    justify-content: flex-start !important;
    line-height: 1.2 !important;
    margin: 2px 0 !important;
    min-height: 0 !important;
    padding: 0.25em 0.65em 0.25em 1.25em !important;
    text-align: left !important;
    white-space: nowrap !important;
    width: auto !important;
}
#article .favorite-button.single .simplefavorite-button i {
    font-size: 1em !important;
    left: 0.2em !important;
}
#article .simplefavorite-button.preset {
    box-sizing: border-box !important;
    font-size: 12px !important;
    margin: 2px 0 !important;
    padding: 0.25em 0.65em 0.25em 1.25em !important;
    text-align: left !important;
    white-space: nowrap !important;
    width: auto !important;
}
#article .simplefavorite-button.preset i {
    font-size: 1em !important;
    left: 0.2em !important;
}
#article .favorite-button.single .count,
#article .favorite-button.single > span {
    font-size: 11px;
    font-weight: 700;
}
.view-count {
    color: #888;
    font-size: 16px;
    font-weight: bold;
}

@media (min-width: 768px) {
    .book-metadata {
        font-size: 15px;
        border: solid 1px #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        padding: 24px 16px;
    }
}

.gallery {
    margin-right: -12px;
    margin-left: -12px;
    overflow: hidden;
}
.image-list li {
    margin-bottom: 16px;
}
.image-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 182/257;
    object-fit: contain;
    background: #fafafa;
}
.image-number {
    padding: 0 12px 16px;
    font-size: 12px;
    color: #ddd;
}
.page-number {
    font-size: 14px;
}
@media (min-width: 768px) {
    .gallery {
        margin-right: 0;
        margin-left: 0;
        background: none;
    }
    .image-number {
        padding: 0 0 16px;
        font-size: 12px;
        color: #aaa;
    }
}
.purchase-buttons {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.purchase-button a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px 0;
    border: none;
    background: #aaa;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 0 rgba(6, 6, 6, 0.8);
}
.purchase-button a.fanza {
    background: #ff892e;
    box-shadow: 0 3px 0 rgba(145, 59, 81, 0.8);
}
.purchase-button a.fanza:hover {
    background: #ffaa69;
}
.purchase-button a.dlsite {
    background: #4baef3;
    box-shadow: 0 3px 0 rgba(45, 104, 145, 0.8);
}
.purchase-button a.dlsite:hover {
    background: #5db6f4;
}
.purchase-button a span {
    display: block;
    font-size: 13px;
    padding-top: 4px;
}

.content {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.9;
}
.content h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 16px;
}
.content h1,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: var(--text);
}
.content p,
.content li,
.content dd,
.content td {
    color: var(--text2);
}
.content a {
    color: var(--accent-soft);
}
.content > p {
    margin-bottom: 16px;
}

.article-footer {
    padding: 24px 0;
    margin-right: -12px;
    margin-left: -12px;
    background: #f0f0f0;
}
.article-footer h3 {
    padding: 0 12px 16px;
    font-size: 15px;
}
.article-footer .hashtag {
    padding: 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.article-footer .hashtag a {
    font-size: 12px;
    display: block;
    background: #666;
    color: #fafafa;
    line-height: 20px;
    padding: 0 8px;
    border-radius: 10px;
}
.article-footer .hashtag a::before {
    content: "#";
}
@media (min-width: 768px) {
    .article-footer {
        padding: 24px 0;
        margin-right: 0;
        margin-left: 0;
    }
    .article-footer .hashtag {
        padding: 0 16px;
    }
    .article-footer .hashtag a {
        line-height: 24px;
        padding: 0 8px;
        border-radius: 12px;
    }
}

.promotion {
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}
.promotion img {
    max-width: 100%;
    height: auto;
}

.comments input,
.comments textarea {
    border: solid 1px #ccc;
    font-size: 16px;
    line-height: 1.5;
    padding: 8px 8px;
    box-sizing: border-box;
    width: 100%;
}
.comments input.submit {
    border: none;
    background: #f0f0f0;
    padding: 12px 24px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(4, 4, 4, 0.3);
}
.comments input.submit:hover {
    background: #eaeaea;
    box-shadow: 0 2px 6px rgba(4, 4, 4, 0.3);
}
.comments .comments-header,
.comments .comment-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: solid 1px #ccc;
}
.comments .comment-list .comment-author {
    margin-bottom: 8px;
}
.comments .comment-list .comment-author .name {
    font-size: 15px;
    font-weight: bold;
    color: #111;
    display: inline-block;
    margin-right: 8px;
}
.comments .comment-list .comment-author .date {
    font-size: 13px;
    color: #888;
}
.comments .comment-list .comment-text {
    font-size: 16px;
}
.comments .comment-form {
    display: flex;
    flex-wrap: wrap;
}
.comments .comment-form-author {
    margin-bottom: 16px;
    order: 1;
    width: 100%;
}
.comments .comment-form-text {
    margin-bottom: 16px;
    order: 2;
    width: 100%;
}
.comments .form-submit {
    order: 3;
    width: 100%;
}
.comments .comment-reply-title {
    font-size: 14px;
    margin: 16px 0 16px;
}

.recommend h3 {
    margin-bottom: 12px;
    padding-bottom: 4px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: solid 2px var(--accentColor);
}
.recommend-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    overflow-x: scroll;
}
.recommend-list-item {
    width: calc((100% - 16px) / 3);
    flex-shrink: 0;
}
.recommend-list-item .thumbnail {
    width: 100%;
    aspect-ratio: 182/257;
    background: #ddd;
}
.recommend-list-item .thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 182/257;
    object-fit: cover;
}
.recommend-list-item .title a {
    display: block;
    padding: 8px 4px 8px 0;
}
.recommend-list-item .title span {
    display: block;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #222;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    height: 3.8em;
    overflow: hidden;
}
@media (min-width: 768px) {
    .recommend-list {
        gap: 12px;
    }
    .recommend-list-item {
        width: calc((100% - 48px) / 5);
    }
}

.ranking-select-tabs {
    display: flex;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}
.ranking-select-tabs li {
    flex: 0 0 auto;
}
.ranking-select-tabs li a {
    display: block;
    background: #e3edf8;
    padding: 4px 8px;
    border-radius: 4px;
}
.ranking-select-tabs li.active a {
    font-weight: bold;
    color: #fff;
    background: #f84a95;
}

.sidebar-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.4;
    background: #b94047;
    color: #fff;
    padding: 10px 0 10px 16px;
}
.sidebar-content .more {
    margin-top: 16px;
    text-align: right;
    padding-right: 4px;
}
.sidebar-content .more a {
    font-weight: bold;
    font-size: 15px;
    color: #666;
}
.sidebar-content .more a::before {
    content: "\eac9";
    font-family: Material Icons;
    vertical-align: top;
    line-height: 1.5;
}

.tag-cloud {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tag-cloud li {
    flex: 0 1 auto;
}
.tag-cloud li a {
    display: block;
    padding: 7px 10px;
    background: var(--baseColor);
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    text-align: center;
}
.tag-cloud li a:hover {
    color: #444;
}

.recommend-site-list li {
    padding: 8px 0;
}
.recommend-site-list li a {
    color: #666;
    font-size: 13px;
}

.disclaimer {
    font-size: 12px;
    color: #666;
}
.footer-navigation {
    margin-bottom: 50px;
}
.footer-navigation li {
    padding: 8px 0;
}
.footer-navigation li a {
    font-size: 15px;
    color: #444;
}
.copyright {
    font-size: 11px;
    color: #666;
}

.return-to-top {
    position: fixed;
    bottom: 50px;
    left: 16px;
    transition: all 0.5s ease;
}
.return-to-top a {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    color: #666;
    box-shadow: 0 2px 8px #ccc;
}
.return-to-top a::before {
    content: "\e5d8";
    font-family: Material Icons;
    font-size: 32px;
    line-height: 50px;
}
@media (min-width: 1024px) {
    .return-to-top {
        bottom: 50px;
        left: 24px;
    }
}

@media (max-width: 767px) {
    .ads {
        padding-bottom: 16px;
    }
}

/*-- plugin styles --*/

.wpcf7-form {
    max-width: 480px;
}
.wpcf7-form > p {
    margin-bottom: 16px;
}
.wpcf7-form input {
    padding: 8px;
    border: solid 1px #ccc;
    display: block;
    width: 100%;
    line-height: 1.8;
    box-sizing: border-box;
}
.wpcf7-form textarea {
    padding: 8px;
    border: solid 1px #ccc;
    display: block;
    width: 100%;
    line-height: 1.8;
    box-sizing: border-box;
}
.wpcf7-submit {
    margin-top: 16px;
}
.wpcf7 form .wpcf7-response-output {
    margin: 0 0 0 !important;
}

/* アンケートcss */

#enquete {
    background: #fdf1f1;
    border-radius: 20px;
    padding: 0 10px 10px;
}
#enquete h3 {
    font-size: 20px;
    font-weight: bold;
    color: #ff9199;
    margin-bottom: 10px;
}
#enquete .wp-block-list a {
    color: #d83473;
    font-weight: bold;
}
#enquete .wp-block-list a::before {
    content: "\e887";
    font-family: "Material Icons";
    margin-right: 3px;
    vertical-align: text-bottom;
}

/* snsエリア */
.sns-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(249, 115, 22, 0.2);
    padding: 20px;
}
.sns-img {
    width: 20%;
}
.sns-img img {
    width: 100%;
}
@media screen and (max-width: 768px) {
    .sns-box {
        display: block;
        padding: 30px 15px;
    }
    .sns-img {
        width: 40%;
        margin: 0 auto 20px;
    }
}
#menu-test {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    flex-direction: row;
    white-space: nowrap;
    padding: 10px;
}
.popular-contents {
    background: #e1e1e1;
}
.popular-contents li {
    position: relative;
    font-size: 12px;
}
.popular-contents li::after {
    content: "|";
    position: absolute;
    top: 0;
    right: -12px;
}
.popular-contents li:last-child::after {
    content: "";
}
.popular-contents li a {
    color: #000;
}
.popular-contents li:first-child a {
    font-weight: bold;
}

/* 検索フォーム */
.search-area-header h2 {
    background: #b94047;
    color: #fff;
    font-weight: bold;
    padding: 10px 0 10px 16px;
}
.search-area-header .description {
    margin-top: 16px;
}
.search-area-content {
    margin-top: 20px;
}
.search-area-select-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.search-area-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% / 2);
}
.search-area-select label {
    text-align: center;
    font-weight: bold;
}
.search-area-select select {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 10px;
}
.search-category {
    margin-bottom: 20px;
}
.search-category .search-category-label {
    display: block;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.search-category .search-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.search-category .search-category-item {
    width: calc(100% / 3);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
}
.search-tag {
    margin-bottom: 20px;
}
.search-tag .search-tag-label {
    display: block;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.search-tag .search-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.search-tag .search-tag-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-tag .search-tag-item a {
    font-size: 10px;
    display: block;
    text-align: center;
    color: #000;
}
.search-tag .search-tag-item a:hover {
    color: #f84a95;
}
.search-text {
    margin-bottom: 20px;
}
.search-text .search-text-label {
    display: block;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.search-text .search-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 0 10px;
}

.search-button {
    text-align: center;
}
.search-button button {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    padding: 0 10px;
    margin: 20px auto 0;
    appearance: none;
    -webkit-appearance: none;
    color: #000;
    cursor: pointer;
}

/* おすすめの漫画 */
.osusume-list {
    margin-top: 20px;
}
.osusume-list ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.osusume-list h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    background: #b94047;
    color: #fff;
    padding: 10px 0 10px 16px;
}

.header-nav {
    background: #000;
    padding: 3px 0;
}
.header-nav .inner {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}
.header-nav .inner::-webkit-scrollbar {
    display: none;
}
.header-nav .inner ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 40px;
}
.header-nav .inner .modal-open {
    position: relative;
    color: #fff;
    cursor: pointer;
}
.header-nav .inner ul .modal-open::before {
    content: "▶︎";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
}
.header-nav .inner ul li a {
    position: relative;
    color: #fff;
}
.header-nav .inner ul li a::before {
    content: "▶︎";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
}
.nav-under {
    background: #f7f3c6;
    padding: 5px 0;
}
.nav-under a {
    display: block;
    text-align: center;
    color: #ff0000;
    font-weight: bold;
    text-decoration: underline;
}

.term-search-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.term-search-list li {
    flex: 1 1 auto;
}
.term-search-list li a {
    display: block;
    padding: 4px;
    color: #666;
    border: solid 1px #ccc;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}
.sidebar-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2em;
}
.sidebar-list li {
    flex: 1 1 auto;
}
.sidebar-list li a {
    display: block;
    padding: 4px;
    color: #666;
    border: solid 1px #ccc;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}
.search-modal {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
}
.overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}
.search-modal-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}
.search-modal.active {
    display: block;
}
.search-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 24px;
}
.search-modal-close::after {
    content: "\e5cd";
    font-family: Material Icons;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .header-nav .inner ul {
        width: 540px;
    }
}

.latest-comments {
    padding: 32px 24px 32px;
    box-sizing: border-box;
}
.latest-comments li {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}
.latest-comments .comment-meta {
    background: rgba(33, 33, 33, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
.latest-comments .comment-area {
    padding: 1em;
}
.latest-comments .comment-post-link {
    font-size: 12px;
}

/* New EROMAGAN dark redesign */
:root {
    --bg: #0f0f14;
    --bg2: #181820;
    --bg3: #1f1f2a;
    --surface: #252535;
    --surface2: #2c2c40;
    --accent: #e8453c;
    --accent-soft: #ff6b5e;
    --accent-pale: rgba(232, 69, 60, 0.12);
    --gold: #f0b040;
    --text: #e8e6e0;
    --text2: #a8a6a0;
    --text3: #706e68;
    --border: #2e2e3e;
    --border2: #3a3a4e;
    --tag-bg: #1e1e2e;
    --tag-text: #b0aeb0;
    --blue: #4a8fd4;
    --blue-pale: rgba(74, 143, 212, 0.1);
    --blue-border: rgba(74, 143, 212, 0.3);
    --purple: #9b6dd7;
    --purple-pale: rgba(155, 109, 215, 0.1);
    --purple-border: rgba(155, 109, 215, 0.3);
    --font: "Noto Sans JP", "Hiragino Sans", sans-serif;
    --w: 1120px;
    --r: 8px;
    --rs: 5px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
}
a {
    color: var(--accent-soft);
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}
a:hover {
    color: var(--accent);
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
h1,
h2,
h3 {
    color: var(--text);
    font-weight: 700;
}
#header.hd {
    height: auto;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
}
.hd-in {
    max-width: var(--w);
    height: 52px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}
.logo .lo {
    color: var(--accent);
    font-size: 20px;
}
.nav {
    display: flex;
    gap: 2px;
}
.nav a {
    color: var(--text2);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px;
}
.nav a:hover,
.nav a.on {
    background: var(--accent-pale);
    color: var(--accent-soft);
}
.hb {
    display: none;
    width: 36px;
    height: 36px;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
}
.hb span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    position: absolute;
    left: 9px;
    transition: 0.25s;
}
.hb span:nth-child(1) {
    top: 12px;
}
.hb span:nth-child(2) {
    top: 17px;
}
.hb span:nth-child(3) {
    top: 22px;
}
.hb.on span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}
.hb.on span:nth-child(2) {
    opacity: 0;
}
.hb.on span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}
.mm {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg2);
    z-index: 99;
    padding: 12px 16px;
    overflow-y: auto;
}
.mm.on {
    display: block;
}
.mm a {
    display: block;
    color: var(--text);
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
#content {
    max-width: var(--w);
    margin: 24px auto 0;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
}
#main {
    width: 100%;
    min-width: 0;
}
.eromagan-front #main {
    display: contents;
}
.eromagan-front #main > .hero {
    grid-column: 1 / -1;
    grid-row: 1;
}
.eromagan-front #main > section:not(.hero) {
    grid-column: 1;
}
.eromagan-front #sidebar {
    grid-column: 2;
    grid-row: 2 / span 5;
}
.eromagan-directory #main {
    grid-column: 1 / -1;
}
#main > article,
#main > section,
#main > aside,
#main > nav,
#sidebar > div {
    padding: 0;
}
.hero {
    text-align: center;
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 32px 16px 24px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 6px;
}
.hero h1 .acc {
    color: var(--accent-soft);
}
.hero-sub,
.ph-sub {
    color: var(--text3);
    font-size: 12px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    color: var(--text2);
    font-size: 12px;
}
.hero-stats .num {
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
}
.sec {
    margin-bottom: 36px;
}
.sec-h,
.article-list-header.sec-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.sec-h h2,
.sec-h h3,
.article-list-header h1,
.article-list-header h2 {
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}
.badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}
.sec-badge {
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
}
.badge-blue {
    background: var(--blue-pale);
    color: var(--blue);
}
.badge-purple {
    background: var(--purple-pale);
    color: var(--purple);
}
.sec-more {
    margin-left: auto;
    color: var(--text3);
    font-size: 11px;
}
.popular {
    margin-bottom: 32px;
}
.pop-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.pop-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    overflow: hidden;
    padding: 14px;
    position: relative;
    text-align: center;
}
.pop-card:hover {
    background: var(--bg3);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}
.pop-rank {
    color: var(--text3);
    font-size: 10px;
    font-weight: 700;
    left: 8px;
    position: absolute;
    top: 6px;
}
.pop-card:nth-child(1) .pop-rank {
    color: var(--gold);
}
.pop-card:nth-child(2) .pop-rank {
    color: #b0b0b0;
}
.pop-card:nth-child(3) .pop-rank {
    color: #c08060;
}
.pop-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pop-count {
    color: var(--text3);
    font-size: 11px;
}
.pop-bar {
    background: var(--border);
    border-radius: 2px;
    height: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.pop-bar-fill {
    background: var(--accent);
    border-radius: 2px;
    height: 100%;
}
.artist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.artist-card {
    align-items: flex-start;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    display: flex;
    gap: 12px;
    min-height: 76px;
    padding: 16px;
}
.artist-card:hover {
    background: var(--bg3);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}
.artist-initial {
    align-items: center;
    background: linear-gradient(135deg, var(--accent), #ff8a78);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 18px;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    line-height: 1;
}
.artist-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.artist-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: keep-all;
}
.artist-count {
    color: var(--text3);
    font-size: 11px;
    margin-top: 2px;
}
.artist-arrow {
    align-self: center;
    color: var(--text3);
    font-size: 14px;
}
.ranking-card-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ranking-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
    padding: 10px;
}
.ranking-card:hover {
    border-color: var(--border2);
}
.ranking-card__thumb {
    aspect-ratio: 3 / 4;
    background: var(--surface);
    border-radius: 10px;
    display: block;
    overflow: hidden;
    position: relative;
}
.ranking-card__thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.ranking-card__rank {
    align-items: center;
    background: var(--accent);
    border-radius: 0 0 10px 0;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    left: 0;
    min-width: 34px;
    position: absolute;
    top: 0;
    z-index: 1;
}
.ranking-card:nth-child(1) .ranking-card__rank {
    background: var(--gold);
    color: #1b1400;
}
.ranking-card:nth-child(2) .ranking-card__rank {
    background: #b0b0b0;
    color: #111;
}
.ranking-card:nth-child(3) .ranking-card__rank {
    background: #c08060;
}
.ranking-card__body {
    align-self: center;
    min-width: 0;
}
.ranking-card__title {
    background: transparent;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 8px;
    padding: 0;
}
.ranking-card__title a {
    color: var(--text);
}
.ranking-card__meta {
    align-items: center;
    color: var(--text3);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px;
    margin-bottom: 10px;
}
.cg,
.article-list.cg,
.osusume-grid.rg {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.article-list.cg.archive-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.c,
.article-list-item {
    width: auto;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition:
        border-color 0.2s,
        transform 0.2s;
}
.c:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
}
.c-th,
.thumbnail a {
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    overflow: hidden;
    position: relative;
}
.c-new {
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    left: 6px;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 4px 6px;
    position: absolute;
    top: 6px;
    z-index: 1;
}
.c-th img,
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.c-bd {
    padding: 8px 10px 10px;
}
.c-tt,
.article-list-item .title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.c-tt a,
.article-list-item .title a {
    color: var(--text);
}
.article-list-item .title a {
    padding: 0;
}
.article-list-item .title span {
    color: var(--text);
    font-size: inherit;
    line-height: inherit;
}
.c-mt {
    color: var(--text3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}
.c-tg,
.tc,
.wh-tags,
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.tc-group {
    margin-top: 16px;
}
.tc-label {
    color: var(--text2);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}
a.tag,
span.tag,
.tc a.tag,
.sidebar-list li a,
.term-search-list li a.tag {
    display: inline-flex;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 0;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.3;
}
.c-tg a.tag {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 8px;
}
a.tag:hover,
.sidebar-list li a:hover {
    background: var(--accent-pale);
    color: var(--accent-soft);
}
.search-box,
.search-area-content {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
}
.search-input,
.search-area select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--rs);
}
.search-input:focus,
.search-area select:focus {
    outline: none;
    border-color: var(--accent);
}
.search-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.search-tag-item label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 12px;
    padding: 5px 10px;
    font-size: 11px;
}
.bc,
.breadcrumb {
    color: var(--text3);
    font-size: 10px;
    margin: 0 0 16px;
}
.bc a,
.breadcrumb a {
    color: var(--text3);
}
.bc-s {
    margin: 0 5px;
}
.ch-wrap,
.th-wrap {
    margin-bottom: 20px;
}
.ch-badge {
    display: inline-block;
    background: var(--blue-pale);
    border: 1px solid var(--blue-border);
    color: var(--blue);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    margin-bottom: 8px;
}
.ch-wrap h1,
.th-wrap h1,
.page-title {
    background: transparent;
    color: var(--text);
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 4px;
    padding: 0;
}
.ch-count,
.th-count,
.article-list-count {
    color: var(--text3);
    font-size: 12px;
    margin-bottom: 12px;
}
.ch-desc,
.th-desc,
.category-description {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text2);
    font-size: 13px;
    line-height: 1.9;
    padding: 14px 16px;
    margin-top: 12px;
}
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    padding-bottom: 8px;
    font-size: 12px;
}
.sort-bar span {
    color: var(--text3);
}
.sort-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
    border-radius: 12px;
    font-size: 11px;
    padding: 4px 12px;
}
.sort-btn:hover,
.sort-btn.on {
    background: var(--accent-pale);
    border-color: var(--accent);
    color: var(--accent-soft);
}
.pager .nav-links,
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.pager a,
.pager span,
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--rs);
    color: var(--text2);
    font-size: 12px;
    font-weight: 500;
    padding: 0 8px;
}
.pager .on,
.pager .current,
.pagination .current,
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
}
.cat-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
.cat-card {
    border-radius: 12px;
    padding: 21px;
    position: relative;
    overflow: hidden;
}
.cat-card.commercial {
    background: var(--blue-pale);
    border: 1px solid var(--blue-border);
    padding: 3px;
}
.cat-card.doujin {
    background: var(--purple-pale);
    border: 1px solid var(--purple-border);
    padding: 3px;
}
.cat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.commercial .cat-label,
.commercial .cat-name {
    color: var(--blue);
}
.doujin .cat-label,
.doujin .cat-name {
    color: var(--purple);
}
.cat-name {
    font-size: 22px;
    margin-bottom: 4px;
}
.cat-stats {
    color: var(--text2);
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
}
.cat-stats .num {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}
.cat-desc {
    color: var(--text2);
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.cat-btn {
    display: inline-flex;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
}
.cat-card.commercial .cat-btn {
    background: var(--blue);
    color: #fff;
}
.cat-card.commercial:hover .cat-btn {
    background: #3a7bc0;
    color: #fff;
}
.cat-card.doujin .cat-btn {
    background: var(--purple);
    color: #fff;
}
.cat-card.doujin:hover .cat-btn {
    background: #8558c4;
    color: #fff;
}
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.cat-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text2);
    font-size: 11px;
    line-height: 1.4;
    padding: 4px 9px;
}
.compare {
    margin: 32px 0 24px;
}
.cmp-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
}
.cmp-table th,
.cmp-table td {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    font-size: 12px;
    line-height: 1.7;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.cmp-table thead th {
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}
.cmp-table tbody th {
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
    width: 120px;
}
.about,
.category-about {
    color: var(--text2);
    font-size: 12px;
    line-height: 1.9;
}
.about p,
.category-about p {
    color: var(--text2);
    font-size: 12px;
    line-height: 1.9;
}
.about p + p,
.category-about p + p {
    margin-top: 8px;
}
.switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(155, 109, 215, 0.08);
    border: 1px solid rgba(155, 109, 215, 0.25);
    border-radius: var(--r);
    color: var(--purple);
    font-size: 12px;
    margin-bottom: 20px;
    padding: 12px 14px;
}
.switch:hover {
    background: rgba(155, 109, 215, 0.15);
    color: #b080e8;
}
.filter-bar {
    margin-bottom: 14px;
}
.filter-label {
    color: var(--text3);
    font-size: 11px;
    margin-bottom: 6px;
}
.ft-tag {
    background: var(--tag-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--tag-text);
    cursor: pointer;
    font-size: 10px;
    padding: 3px 10px;
}
.ft-tag:hover,
.ft-tag.on {
    background: var(--accent-pale);
    border-color: var(--accent);
    color: var(--accent-soft);
}
.rt {
    margin-top: 24px;
}
.rt-label {
    color: var(--text3);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}
.tg-grid,
.term-search-list.tg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}
.term-search-list.tg-grid li {
    flex: initial;
}
.tg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    color: var(--text);
    font-size: 12px;
    padding: 8px 12px;
}
.tg-item:hover {
    background: var(--accent-pale);
    border-color: var(--accent);
    color: var(--accent-soft);
}
.tg-item.hot {
    background: var(--bg3);
    border-color: var(--border2);
}
.tg-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tg-num {
    color: var(--text3);
    flex-shrink: 0;
    font-size: 10px;
}
.wh {
    margin-bottom: 16px;
}
.wh h1 {
    font-size: 20px;
    line-height: 1.5;
}
.wh-au {
    color: var(--text2);
    font-size: 13px;
    margin-bottom: 10px;
}
.wh-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    color: var(--text3);
    font-size: 12px;
    margin-bottom: 10px;
}
.ml {
    color: var(--text3);
    font-size: 10px;
    margin-right: 2px;
}
.md {
    width: 1px;
    height: 10px;
    background: var(--border);
}
.wh-like,
.ec-like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--accent-soft);
    font-size: 12px;
    padding: 4px 10px;
}
.vw {
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 4px;
}
.vw .image-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.vw-pg {
    width: 100%;
    max-width: 720px;
    background: var(--surface);
}
.vw-pg img {
    width: 100%;
    margin: 0 auto;
}
.ec,
.cta-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-align: center;
    padding: 18px;
    margin-bottom: 4px;
}
.cta-wrap {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ec-tt {
    font-size: 13px;
    font-weight: 700;
}
.ec-au,
.cta-sub {
    color: var(--text3);
    font-size: 11px;
}
.cta-pages {
    color: var(--text2);
    font-size: 11px;
    margin-bottom: 8px;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 520px);
    background: var(--accent);
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(232, 69, 60, 0.3);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 36px;
}
.btn-cta:hover {
    background: #c83a32;
    color: #fff;
}
.cta-wrap .purchase-button {
    width: min(100%, 560px);
    margin: 0 auto;
}
.cta-wrap .purchase-button a.fanza.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}
.synopsis {
    color: var(--text2);
    font-size: 13px;
    line-height: 1.9;
}
#article .breadcrumb.bc {
    background: transparent;
    border: 0;
    color: var(--text3);
    margin: 0 0 16px;
    padding: 0;
}
#article .breadcrumb.bc a {
    color: var(--text3);
}
#article .breadcrumb.bc a:hover {
    color: var(--accent-soft);
}
#article .wh {
    margin-bottom: 0;
    padding-bottom: 18px;
}
#article .wh h1 {
    font-size: 22px;
    margin-bottom: 6px;
}
#article .gallery.vw {
    background: #000;
    margin: 0 0 4px;
}
#article .vw .image-list {
    gap: 0;
    margin: 0;
    padding: 0;
}
#article .vw .image-list li {
    margin: 0;
}
#article .vw .image-list img {
    aspect-ratio: auto;
    background: transparent;
    height: auto;
    object-fit: contain;
}
#article .ec {
    margin-top: 4px;
}
#article .ec,
#article .cta-wrap {
    padding: 28px 18px;
}
#article .cta-pages {
    font-size: 12px;
    margin-bottom: 14px;
}
#article .btn-cta {
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(232, 69, 60, 0.28);
    font-size: 15px;
    min-height: 58px;
}
#article .btn-cta:hover {
    background: var(--accent-soft);
    color: #fff;
}
#article .cta-wrap .purchase-button {
    width: min(100%, 560px);
}
#article .cta-sub {
    margin-top: 12px;
}
.related-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.rc {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.rc:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
}
.rc-th {
    aspect-ratio: 3 / 4;
    background: var(--surface);
    display: block;
    overflow: hidden;
}
.rc-th img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.rc-bd {
    padding: 7px 9px 9px;
}
.rc-tt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 3px;
    overflow: hidden;
}
.rc-tt a {
    color: var(--text);
}
.rc-au {
    color: var(--text3);
    font-size: 10px;
}
#sidebar {
    width: 100%;
}
#sidebar .sec {
    margin-bottom: 28px;
}
#sidebar .sec-h {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    padding-bottom: 6px;
}
#sidebar .sec-h h3,
.sb .sec-h h3 {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}
.sidebar-content {
    color: var(--text2);
}
.rk {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rk-i {
    display: grid;
    grid-template-columns: 22px 48px 1fr;
    gap: 6px;
    align-items: start;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    color: var(--text);
    padding: 8px;
}
.rk-i:hover {
    border-color: var(--border2);
    color: var(--text);
}
.rk-n {
    color: var(--text3);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    padding-top: 4px;
}
.rk-i:nth-child(1) .rk-n {
    color: var(--gold);
}
.rk-i:nth-child(2) .rk-n {
    color: #a0a0a0;
}
.rk-i:nth-child(3) .rk-n {
    color: #c08060;
}
.rk-th {
    display: block;
    width: 48px;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}
.rk-th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rk-info {
    min-width: 0;
}
.rk-tt {
    color: var(--text);
    display: -webkit-box;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rk-au {
    color: var(--text3);
    display: block;
    font-size: 9px;
    margin-top: 1px;
}
.sidebar-comment-list {
    display: flex;
    flex-direction: column;
}
.sidebar-comment {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.sidebar-comment__text {
    color: var(--text2);
    display: block;
    font-size: 11px;
    line-height: 1.6;
}
.sidebar-comment__post {
    color: var(--accent-soft);
    display: block;
    font-size: 10px;
    margin-top: 3px;
}
.sidebar-empty {
    color: var(--text3);
    font-size: 11px;
}
.ft,
#footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    color: var(--text3);
    margin-top: 48px;
    padding: 28px 16px 16px;
    font-size: 11px;
}
.ft-in,
#footer .footer-site-links__inner {
    max-width: var(--w);
    margin: 0 auto;
}
.ft-nav ul,
.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.ft-nav a,
.footer-navigation a {
    color: var(--text3);
    font-size: 11px;
}
#footer .ft-nav a,
#footer .footer-navigation a,
#footer .footer-navigation li a,
#footer .footer-site-links a {
    color: var(--text2);
}
#footer .ft-nav a:hover,
#footer .footer-navigation a:hover,
#footer .footer-site-links a:hover {
    color: var(--text);
}
.ft-copy,
.footer-bar {
    border-top: 1px solid var(--border);
    text-align: center;
    padding-top: 10px;
    margin-top: 14px;
}
.latest-comments li {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.latest-comments .comment-meta {
    background: var(--bg3);
}

@media (max-width: 960px) {
    #content {
        grid-template-columns: 1fr;
    }
    .eromagan-front #main {
        display: block;
    }
    .eromagan-front #main > .hero,
    .eromagan-front #main > section:not(.hero),
    .eromagan-front #sidebar,
    .eromagan-directory #main {
        grid-column: auto;
        grid-row: auto;
    }
    .cg,
    .article-list.cg,
    .osusume-grid.rg {
        grid-template-columns: repeat(4, 1fr);
    }
    .pop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .nav {
        display: none;
    }
    .hb {
        display: block;
    }
    #content {
        padding: 0 10px;
        margin-top: 16px;
        gap: 20px;
    }
    .hero {
        padding: 24px 12px 18px;
    }
    .hero h1,
    .wh h1,
    .ch-wrap h1,
    .th-wrap h1,
    .page-title {
        font-size: 17px;
    }
    .hero-stats {
        gap: 14px;
    }
    .cg,
    .article-list.cg,
    .osusume-grid.rg {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .c-bd {
        padding: 6px 8px 8px;
    }
    .c-tt,
    .article-list-item .title {
        font-size: 11px;
    }
    .cat-duo {
        grid-template-columns: 1fr;
    }
    .cat-card {
        padding: 18px 16px;
    }
    .tg-grid,
    .term-search-list.tg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .pop-grid .pop-card:nth-child(n + 5) {
        display: none;
    }
    .pop-card {
        padding: 10px 8px;
    }
    .artist-grid {
        grid-template-columns: 1fr;
    }
    .ranking-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
    }
    .ranking-card__title {
        font-size: 13px;
    }
    .vw {
        border-radius: 0;
        margin-left: -10px;
        margin-right: -10px;
    }
    .ec,
    .cta-wrap {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-left: -10px;
        margin-right: -10px;
    }
}
@media (max-width: 400px) {
    .cg,
    .article-list.cg,
    .osusume-grid.rg {
        grid-template-columns: repeat(2, 1fr);
    }
}
