/* Shared manga parts for SWELL screens and the legacy shell (MANGA-SWELL-FOUNDATION-20261112-01). */
:root { --mq-ink: #243b35; --mq-muted: #52665e; --mq-green: #245c48; --mq-teal: #216660; --mq-line: #dce6e0; --mq-soft: #f3f7f4; }
.mq-stars { position: relative; display: inline-block; white-space: nowrap; font-family: Arial, sans-serif; font-size: 21px; line-height: 1.25; letter-spacing: 2px; vertical-align: middle; color: #757575; }
.mq-stars__base { color: #757575; }
.mq-stars__fill { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; white-space: nowrap; color: #946000; }
.mq-score { display: inline-block; font-size: 15px; font-weight: 700; margin-left: 8px; vertical-align: middle; }
.mq-search form { display: flex; gap: 10px; max-width: 800px; margin: auto; }
.mq-search input { min-width: 0; width: 100%; flex: 1; min-height: 50px; padding: 10px 16px; border: 1px solid #9cafa4; border-radius: 8px; background: #fff; color: var(--mq-ink); font-size: 16px; }
.mq-search input::placeholder { color: #65746d; opacity: 1; }
.mq-search button { min-height: 50px; border: 0; border-radius: 8px; padding: 10px 26px; background: var(--mq-green); color: #fff; font-weight: 700; cursor: pointer; }
.mq-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 36px 0; }
.mq-pagination :where(a,span) { min-width: 44px; min-height: 44px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mq-line); border-radius: 7px; }
.mq-pagination .current, .mq-pagination [aria-current="page"] { color: #fff; background: var(--mq-green); }
.mq-empty { padding: 36px 24px; text-align: center; border: 1px dashed #b8c9be; border-radius: 12px; color: var(--mq-muted); background: #fafcfb; }

/* Inside SWELL's .post_content: keep catalog links out of the article styles. */
.post_content .mq-genre-entries a, .post_content .mq-pagination a { text-decoration: none; }
.post_content .mq-search form { margin: 0; }
.mq-credit { margin: .5em 0 0; font-size: 12px; text-align: center; }
/* Core buttons follow SWELL's main color unless a color is chosen in the editor. */
.post_content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background-color: var(--color_main, #245c48); }
/* Manga covers: show the whole cover inside SWELL post-list thumbnails. */
.p-postList .c-postThumb__figure { background: var(--mq-soft); }
.p-postList .c-postThumb__img { object-fit: contain; }

/* Top page (MANGA-TOP-PAGE-20261112-01). Classes are set on core blocks in the editor ("追加CSSクラス"). */
.mq-hero-mascot img { border-radius: 24px; background: #fff; box-shadow: 0 8px 24px rgba(36, 92, 72, .15); }
@media (max-width: 781px) { .wp-block-columns.mq-hero-cols { flex-direction: column-reverse; } .mq-hero-mascot img { width: 150px !important; } }
.mq-hero-eyebrow { color: var(--mq-green); font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: .4em !important; }
.mq-hero-lead { font-size: clamp(20px, 2.6vw, 27px); font-weight: 700; line-height: 1.55; margin-bottom: 1em !important; }
.post_content .mq-entry-card { height: 100%; padding: 16px 18px; border: 1px solid #8bb79b; border-radius: 14px; background: #f1f8f3; }
.post_content .mq-entry-card--imp { border-color: #d89b70; background: #fff7ef; }
.post_content .mq-entry-card p { margin: 0 0 6px; }
.post_content .mq-entry-tag { display: inline-block; padding: 1px 9px; border-radius: 99px; background: var(--mq-green); color: #fff; font-size: 11px; font-weight: 700; }
.post_content .mq-entry-card--imp .mq-entry-tag { background: #a44c16; }
.post_content .mq-entry-title { font-size: 18px; font-weight: 700; }
.post_content .mq-entry-quote { font-size: 13px; color: var(--mq-muted); }
.post_content .mq-entry-link a { font-size: 14px; font-weight: 700; text-decoration: none; color: #185438; }
.post_content .mq-entry-card--imp .mq-entry-link a { color: #78350f; }
.post_content .mq-section-lead { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 14px; color: var(--mq-muted); }
.post_content .mq-about-quote { max-width: 640px; margin-left: auto; margin-right: auto; padding: 14px 18px; border-radius: 12px; background: var(--mq-soft); }
.post_content .mq-about-quote p { margin: 0; font-size: 14px; }
@media (max-width: 600px) { .mq-search input { padding-inline: 10px; } .mq-search button { padding-inline: 14px; } }
