@charset "utf-8";
/*
Theme Name: caramel-sp-2
Theme URI: https://caramel-sp.com
Author: caramel-sp.com
Description: 女性向けエロ漫画 キャラメル喫茶 - モダンリデザイン
Version: 2.0
*/

/* ========================================
   0. Design Tokens
   ======================================== */
:root {
  --c-primary: #ff6b9f;
  --c-primary-light: #fff0f5;
  --c-primary-dark: #e8527f;
  --c-accent: #b06621;
  --c-accent-light: #dfc1a6;
  --c-bg: #fafafa;
  --c-surface: #fff;
  --c-text: #333;
  --c-text-sub: #777;
  --c-text-muted: #aaa;
  --c-border: #e8e8e8;
  --c-link: #684b43;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
  --header-h: 56px;
  --font-sign: 'Amatic SC', cursive;
  --transition: .2s ease;
  --content-max: 1200px;
  --sidebar-w: 340px;
}

/* ========================================
   1. Reset & Base
   ======================================== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.7; color: var(--c-text);
  background: var(--c-bg); padding-top: var(--header-h);
}
a { color: var(--c-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary); }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul, ol, li { list-style: none; }
input, button, textarea { font: inherit; }
input[type="text"], textarea { -webkit-appearance: none; border-radius: 0; }

/* ========================================
   2. Header
   ======================================== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: var(--c-accent-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}
#wpadminbar { position: fixed; }
body.admin-bar #header { top: 32px; }
@media (max-width:782px) { body.admin-bar #header { top: 46px; } }
body.admin-bar { padding-top: calc(var(--header-h) + 32px); }
@media (max-width:782px) { body.admin-bar { padding-top: calc(var(--header-h) + 46px); } }

#header .logo { flex: 0 0 auto; }
#header .logo a { display: flex; align-items: center; height: var(--header-h); }
#header .logo img { height: 36px; width: auto; display: block; }

/* Hamburger */
.menu-open { display: block; width: 44px; height: 44px; cursor: pointer; position: absolute; top: 6px; right: 8px; z-index: 10;
  display: flex; align-items: center; justify-content: center; }
.menu-open::before { content: "\e5d2"; font-family: Material Icons; font-size: 32px; color: #fff; }
.menu-close { position: absolute; top: 12px; right: calc(75% + 16px); z-index: 13; cursor: pointer; }
@media (min-width:800px) { .menu-close { right: 616px; } }
.menu-close::before { content: "\e5cd"; font-family: Material Icons; font-size: 32px; color: #fff; }
.menu { position: fixed; top: 0; right: 0; display: none; z-index: 110; }
.menu.showing { display: block; width: 100%; height: 100vh; }
.menu-inner {
  width: 80%; max-width: 400px; height: 100vh; overflow-y: auto;
  background: var(--c-surface); padding: 60px 24px 40px;
  position: absolute; top: 0; right: 0; z-index: 13;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.menu-background { display: none; z-index: 12; }
.showing .menu-background { display: block; width: 100%; height: 100vh; background: rgba(0,0,0,.45); position: fixed; top: 0; left: 0; }
.menu li { padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.menu li a { font-size: 15px; font-weight: 600; color: var(--c-text); }
.menu .sns { padding: 20px 0 0; border: none; }
.menu .sns a.tw::before { content: url(/img/icons/32f/x.svg); }
body.fixed { position: fixed; width: 100%; }

/* Search in menu */
.search-form { margin-bottom: 20px; }
.search-form .form { display: flex; height: 44px; position: relative; }
.search-form .input {
  width: 100%; border: 2px solid var(--c-border); border-radius: var(--radius-full);
  padding: 0 16px 0 42px; font-size: 14px; background: var(--c-bg);
  transition: border-color var(--transition);
}
.search-form .input:focus { border-color: var(--c-primary); outline: none; }
.search-form .submit {
  position: absolute; top: 0; left: 0; width: 42px; height: 44px;
  border: none; background: none; cursor: pointer;
}
.search-form .submit::before { content: "\e8b6"; font-family: Material Icons; font-size: 22px; color: var(--c-text-sub); }

/* Header Ads */
.header-ads-container { padding: 12px 0; text-align: center; }
.header-ads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ========================================
   3. Layout (float-based: #main と #sub に共通の親要素がないため)
   ======================================== */
@media (min-width:960px) {
  #main, #main.single, main.index {
    width: calc(100% - var(--sidebar-w));
    padding: 24px;
    box-sizing: border-box;
    float: left;
  }
  #sub {
    width: var(--sidebar-w);
    float: right;
    padding: 24px;
    box-sizing: border-box;
  }
  #footer { clear: both; }
  .pre-footer-text { clear: both; }
}
@media (max-width:959px) {
  #main, #main.single, main.index { padding: 0; overflow: hidden; }
  #sub { padding: 16px; }
}

/* ========================================
   4. Site Title & Description
   ======================================== */
.site-title {
  font-size: 18px; font-weight: 800; color: var(--c-primary);
  padding: 20px 16px 4px; letter-spacing: .02em;
}
.site-description { font-size: 13px; color: var(--c-text-sub); padding: 0 16px 12px; line-height: 1.6; }
.site-description-h2 {
  font-size: 16px; font-weight: 700; color: var(--c-accent);
  padding: 0 16px; margin-top: 8px;
}
.about-genre { padding: 16px 0 24px; }

/* ========================================
   5. Section Headers
   ======================================== */
#main section header, .latest-comments header {
  text-align: center; padding: 20px 16px 24px;
  background: linear-gradient(180deg, var(--c-primary-light) 0%, var(--c-bg) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
#main section header .sign, .latest-comments header .sign {
  font-family: var(--font-sign); font-size: 36px; color: var(--c-primary);
  display: block; line-height: 1;
}
#main section header h1 { color: var(--c-accent); font-size: 18px; font-weight: 700; margin-top: 8px; line-height: 1.4; }
#main section header h2 { color: var(--c-accent); font-size: 15px; font-weight: 700; margin-top: 4px; }
.latest-comments header h2 { color: var(--c-accent); font-size: 15px; font-weight: 700; margin-top: 4px; }

/* ========================================
   6. Book List & Cards
   ======================================== */
.book-list { padding: 8px 0; }
.book-list li { border-bottom: 1px solid var(--c-border); }

.book-card {
  display: flex; flex-direction: row; gap: 12px; padding: 12px 16px;
  transition: background var(--transition);
}
.book-card:hover { background: var(--c-primary-light); }
.book-card-main { flex: 0 0 auto; }

.book-card .book-list-item-thumbnail {
  width: 90px; height: auto; aspect-ratio: 182/257;
  border-radius: var(--radius-sm); overflow: hidden;
  background: #eee; box-shadow: var(--shadow-sm);
}
.book-card .book-list-item-thumbnail img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.book-card:hover .book-list-item-thumbnail img { transform: scale(1.03); }
.book-card .book-list-item-thumbnail .no-image {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; color: #bbb; font-size: 11px; background: #f5f5f5;
}

.book-list-item-body { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.book-list-item-title {
  font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--c-primary);
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-list-item-title a { color: inherit; }
.book-list-item-artist { font-size: 12px; color: var(--c-accent); margin-bottom: 4px; }
.book-list-item-artist a { color: inherit; }
.book-list-item-genre { margin: 4px 0; }
.book-list-item-date { font-size: 11px; color: var(--c-text-muted); }

/* BL/TL Labels */
.book-label {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 20px;
  padding: 0 8px; border-radius: var(--radius-full); color: #fff; letter-spacing: .05em;
}
.book-label-tl { background: var(--c-primary); }
.book-label-bl { background: #6e9eff; }

/* Tags in cards */
.book-card-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.book-card-tag {
  font-size: 11px; line-height: 22px; padding: 0 8px;
  border-radius: var(--radius-full); background: var(--c-primary-light); color: var(--c-text-sub);
  transition: background var(--transition);
}
.book-card-tag:hover { background: #ffe0ec; color: var(--c-primary); }

/* PC: 2 columns */
@media (min-width:1120px) {
  .book-list { display: flex; flex-wrap: wrap; }
  .book-list li { width: 50%; }
}
@media (min-width:960px) {
  .book-card .book-list-item-thumbnail { width: 120px; }
  .book-list-item-title { font-size: 15px; }
}

/* ========================================
   7. Type Tabs (BL/TL/All)
   ======================================== */
.type-tabs, .ranking-select-tabs {
  display: flex; gap: 8px; justify-content: center; padding: 12px 16px;
}
.type-tabs a, .ranking-select-tabs a {
  display: inline-block; padding: 0 18px; font-size: 13px; font-weight: 600;
  line-height: 34px; border-radius: var(--radius-full);
  border: 1.5px solid var(--c-border); background: var(--c-surface); color: var(--c-text-sub);
  transition: all var(--transition); min-width: 64px; text-align: center;
}
.type-tabs li.active a, .ranking-select-tabs li.active a {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
}

/* ========================================
   8. Ranking
   ======================================== */
.ranking-list { counter-reset: rank; margin: 8px 0 24px; }
.ranking-list > li { position: relative; }
.ranking-list > li.ranking-item { padding-left: 32px; }
.ranking-number {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  width: 24px; height: 24px; line-height: 24px; text-align: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--c-primary); border-radius: 6px;
}
.ranking-list > li.ranking-item::before { content: none; display: none; }
/* WPP counter fallback */
.ranking-list > li:not(.ranking-item) { padding: 12px 12px 12px 44px; overflow: hidden; }
.ranking-list > li:not(.ranking-item)::before {
  content: counter(rank); counter-increment: rank;
  position: absolute; top: 12px; left: 12px;
  width: 24px; height: 24px; line-height: 24px; text-align: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--c-primary); border-radius: 6px;
}
.ranking-list > li:not(.ranking-item) > a { display: flex; align-items: flex-start; gap: 12px; color: inherit; }
.ranking-list > li:not(.ranking-item) > a .book-list-item-thumbnail,
.ranking-list > li:not(.ranking-item) > a .thumbnail {
  flex: 0 0 auto; width: 90px; height: auto; margin: 0; aspect-ratio: 182/257;
  border-radius: var(--radius-sm); overflow: hidden;
}
.ranking-list > li:not(.ranking-item) > a img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ========================================
   9. Buttons & Pagination
   ======================================== */
.more a {
  display: block; margin: 16px; text-align: center;
  font-size: 15px; font-weight: 600; line-height: 48px;
  color: #fff; background: var(--c-primary); border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  position: relative;
}
.more a:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.more a::after { content: "\e409"; font-family: Material Icons; font-size: 18px; position: absolute; right: 20px; top: 0; }

.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 16px; }
.pager a, .pager span,
.list-footer .pager .page-numbers,
.archive-footer .archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.pager a, .list-footer .pager a.page-numbers, .archive-footer .archive-pagination a.page-numbers {
  background: var(--c-surface); color: var(--c-text); border: 1.5px solid var(--c-border);
  transition: all var(--transition);
}
.pager a:hover, .list-footer .pager a.page-numbers:hover, .archive-footer .archive-pagination a.page-numbers:hover {
  border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light);
}
.pager span { background: #eee; color: var(--c-text-muted); }
.list-footer .pager .page-numbers.current, .archive-footer .archive-pagination .page-numbers.current {
  background: var(--c-primary); color: #fff; border: none;
}
.list-footer .pager .page-numbers.dots, .archive-footer .archive-pagination .page-numbers.dots {
  background: transparent; color: var(--c-text-muted); border: none; padding: 0 6px;
}
.list-footer .pager { font-size: 0; }
.archive-footer .archive-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 0; }
.page-number { text-align: right; color: var(--c-text-sub); font-size: 13px; padding: 8px 16px; }

/* ========================================
   10. Sidebar
   ======================================== */
#sub header { text-align: center; padding: 16px 0; }
#sub header h2 { font-size: 14px; color: var(--c-text-sub); font-weight: 600; }
#sub header .sign { font-family: var(--font-sign); font-size: 28px; color: var(--c-text-sub); }

/* .search は #sub 内のサイドバー検索セクションにのみ適用
   （WordPress が検索結果ページで body.search を付与するため、スコープを限定） */
#sub .search,
section.search { background: var(--c-primary-light); border-radius: var(--radius-md); padding: 0 0 16px; margin-bottom: 20px; }
.hashtags { padding: 12px 16px; }
.hashtags > div { padding-bottom: 12px; border-top: 1px solid rgba(0,0,0,.06); }
.hashtags h3 { text-align: center; padding: 12px 0 8px; color: var(--c-text-sub); font-size: 12px; font-weight: 600; }
.hashtags .taglist { text-align: center; }
.hashtags .taglist a, .hashtags a {
  display: inline-block; padding: 0 10px; margin: 3px; font-size: 13px;
  line-height: 28px; border-radius: var(--radius-full);
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-sub);
  transition: all var(--transition);
}
.hashtags .taglist a:hover, .hashtags a:hover { border-color: var(--c-primary); color: var(--c-primary); background: #fff; }
.hashtags a::before { content: "#"; color: var(--c-text-muted); margin-right: 2px; }

.authors { padding: 16px; background: var(--c-surface); border-radius: var(--radius-md); margin-bottom: 20px; }
.authors h3 { text-align: center; padding: 8px 0; color: var(--c-text-sub); font-size: 12px; }
.authors li { display: inline-block; }
.authors a {
  display: inline-block; padding: 0 10px; margin: 3px; font-size: 13px;
  line-height: 28px; border-radius: var(--radius-full);
  border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text-sub);
  transition: all var(--transition);
}
.authors a:hover { border-color: var(--c-primary); color: var(--c-primary); }

.recommend-site { background: var(--c-surface); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }
.recommend-site h3 { font-size: 12px; color: var(--c-text-sub); padding-top: 12px; margin-top: 12px; text-align: center; border-top: 1px solid var(--c-border); }
.recommend-site-list li { padding: 6px 0; }
.recommend-site-list a { font-size: 12px; color: var(--c-text-sub); }
.recommend-site-list a:hover { color: var(--c-primary); }

/* Sidebar search form */
.sidebar-search-form { padding: 0 16px 12px; }
.sidebar-search-form .form { display: flex; height: 40px; position: relative; }
.sidebar-search-form .input {
  width: 100%; border: 2px solid var(--c-border); border-radius: var(--radius-full);
  padding: 0 14px 0 38px; font-size: 13px; background: #fff;
  transition: border-color var(--transition);
}
.sidebar-search-form .input:focus { border-color: var(--c-primary); outline: none; }
.sidebar-search-form .submit {
  position: absolute; top: 0; left: 0; width: 38px; height: 40px;
  border: none; background: none; cursor: pointer;
}
.sidebar-search-form .submit::before { content: "\e8b6"; font-family: Material Icons; font-size: 20px; color: var(--c-text-sub); }

/* ========================================
   11. Single Page (Article Viewer)
   ======================================== */
.breadcrumbs, .breadcrumb { padding: 12px 16px; }
.breadcrumbs-list { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--c-text-muted); }
.breadcrumbs-list li::after { content: "\e5cc"; font-family: Material Icons; font-size: 14px; padding-left: 4px; vertical-align: middle; color: #ccc; }
.breadcrumbs-list li:last-child::after { content: none; }
.breadcrumbs-list a { color: var(--c-text-sub); }
.breadcrumbs-list li span { color: var(--c-text-muted); }
@media (min-width:960px) { .breadcrumbs { padding: 4px 0 20px; } }

.book-header, .archive-header { background: var(--c-surface); padding: 20px 16px; border-radius: var(--radius-md); margin-bottom: 16px; }
.book-header h1, .archive-header .archive-title {
  font-size: 22px; line-height: 1.4; color: var(--c-accent); margin-bottom: 8px; font-weight: 800;
}
.book-description { font-size: 14px; color: var(--c-text-sub); padding: 12px 0; line-height: 1.8; }
.book-artist { font-size: 13px; color: var(--c-text-sub); margin-bottom: 4px; }
.book-artist span:first-child, .book-category span:first-child, .book-tags span:first-child,
.book-published-at span:first-child, .book-updated-at span:first-child { font-weight: 700; margin-right: 6px; color: var(--c-text); }
.book-meta { margin-top: 8px; }
.book-category, .book-published-at, .book-updated-at { font-size: 12px; color: var(--c-text-sub); margin-top: 4px; }
.book-tags { font-size: 12px; color: var(--c-text-sub); margin-top: 4px; }
.book-tags a {
  display: inline-block; font-size: 11px; line-height: 24px; padding: 0 10px;
  margin: 2px 4px 2px 0; border-radius: var(--radius-full); background: var(--c-primary-light);
  transition: background var(--transition);
}
.book-tags a:hover { background: #ffe0ec; }

.single .book-body { background: #f5f5f5; padding: 16px; border-radius: var(--radius-md); }
.archive-description { font-size: 13px; color: var(--c-text-sub); line-height: 1.8; margin-top: 8px; }
.archive-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 12px; }
.archive-sort { display: flex; gap: 12px; }
.archive-sort .active { border-bottom: 2px solid var(--c-primary); }
.archive-sort .active a { font-weight: 700; color: var(--c-primary); }
.archive-footer { text-align: center; margin: 16px 0 24px; }
.archive-footer .archive-count { color: var(--c-text-sub); font-size: 13px; margin-bottom: 8px; }

/* Original link button */
.book-original-link { margin-top: 20px; text-align: center; }
.book-original-link a {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 90%; max-width: 480px; min-height: 56px; padding: 0 24px;
  font-size: 20px !important; font-weight: 700; color: #fff !important;
  background: var(--c-primary) !important; border: none !important;
  border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-md) !important;
  transition: all var(--transition) !important;
}
.book-original-link a:hover { background: var(--c-primary-dark) !important; transform: translateY(-2px); box-shadow: var(--shadow-lg) !important; }
.comic-metadata li.original-link { width: 100%; }
.comic-metadata li.original-link .book-original-link { text-align: center; }
.comic-metadata li.original-link .book-original-link a { margin: 0 auto; }
.book-end-link { text-align: center; }
.book-end-link a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-size: 15px; font-weight: 700;
  color: #fff !important; background: var(--c-primary) !important;
  border: none !important; border-radius: var(--radius-md) !important;
  box-shadow: none !important;
}

/* ========================================
   12. Comments
   ======================================== */
.book-comments {
  background: var(--c-surface); border-radius: var(--radius-md); padding: 24px;
  max-width: 820px; margin: 20px auto;
}
.book-comments-title { color: var(--c-accent); font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.book-comments .comment-list > li { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 14px; }
.book-comments .comment-meta { font-size: 12px; color: var(--c-text-muted); margin-bottom: 8px; }
.book-comments .comment-meta .fn { color: var(--c-accent); font-weight: 700; }
.book-comments .comment-content { font-size: 14px; line-height: 1.7; color: var(--c-text-sub); }
.book-comments .reply { display: none; }
.book-comments .comment-respond { margin-top: 16px; }
.book-comments .comment-reply-title { color: var(--c-accent); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.book-comments input[type="text"], .book-comments textarea {
  width: 100%; border: 2px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; background: var(--c-bg);
  transition: border-color var(--transition);
}
.book-comments input[type="text"]:focus, .book-comments textarea:focus { border-color: var(--c-primary); outline: none; }
.book-comments textarea { resize: vertical; min-height: 100px; }
.book-comments .comment-submit {
  display: block; width: 100%; border: none; background: var(--c-primary); color: #fff;
  font-weight: 700; font-size: 15px; line-height: 48px; height: 48px;
  margin-top: 12px; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--transition);
}
.book-comments .comment-submit:hover { background: var(--c-primary-dark); }

/* ========================================
   13. Latest Comments
   ======================================== */
.latest-comments { margin: 16px 0; }
#sub .latest-comments { clear: none; margin: 0 0 20px; }
.latest-comments--pc { display: none; }
@media (min-width:960px) { #sub .latest-comments--sp { display: none; } .latest-comments--pc { display: block; } }
@media (max-width:959px) { .latest-comments--pc { display: none; } #sub .latest-comments--sp { display: block; } }
.latest-comments-list { padding: 12px 16px; }
.latest-comments-item { border-bottom: 1px solid var(--c-border); padding: 10px 0; }
.latest-comments-item a { display: block; }
.latest-comments-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-text-muted); margin-bottom: 6px; }
.latest-comments-author { color: var(--c-accent); font-weight: 700; }
.latest-comments-excerpt { font-size: 13px; color: var(--c-text-sub); line-height: 1.5; margin-bottom: 4px; }
.latest-comments-post { font-size: 12px; color: var(--c-primary); }
.latest-comments-empty { padding: 12px 16px; color: var(--c-text-sub); font-size: 13px; }

/* ========================================
   14. Page Template
   ======================================== */
.page-content { padding: 20px 16px; }
.page-content h2 { font-size: 18px; font-weight: 700; color: var(--c-text); padding: 1em 0 .8em; }
.page-content p { font-size: 15px; margin-bottom: 1.5em; line-height: 1.8; }
.article-header { background: var(--c-surface); padding: 20px 16px; border-radius: var(--radius-md); }
.article-header h1 { font-size: 22px; color: var(--c-accent); font-weight: 800; }
body.page-id-77 .article-header { background: var(--c-surface); padding: 20px 16px; text-align: left; }
body.page-id-77 .article-header h1 { font-size: 22px; color: var(--c-accent); }

/* Term search (tags/artists pages) */
.term-search-form { margin: 16px 0 12px; text-align: center; }
.term-search-input {
  width: calc(100% - 32px); max-width: 480px; height: 44px;
  padding: 0 18px; border: 2px solid var(--c-border); border-radius: var(--radius-full);
  background: var(--c-surface); font-size: 14px;
  transition: border-color var(--transition);
}
.term-search-input:focus { border-color: var(--c-primary); outline: none; }
.term-search-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 16px 16px; }
.term-search-list .term-item a {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 12px;
  font-size: 13px; line-height: 32px; border-radius: var(--radius-full);
  background: var(--c-bg); color: var(--c-link); border: 1px solid var(--c-border);
  transition: all var(--transition);
}
.term-search-list .term-item a:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }
.term-search-list .term-item span { font-size: 11px; color: var(--c-text-muted); }
.term-search-list-tags .term-item a::before { content: "#"; color: var(--c-text-muted); }
.term-search-list .notfound { width: 100%; text-align: center; color: var(--c-text-sub); padding: 16px 0; }

/* ========================================
   15. Footer
   ======================================== */
.pre-footer-text {
  color: var(--c-text-muted); font-size: 11px; line-height: 1.7;
  padding: 16px; text-align: center; clear: both;
}
#footer { background: var(--c-surface); border-top: 1px solid var(--c-border); }
#footer .footer-inner { padding: 24px 20px; max-width: var(--content-max); margin: 0 auto; }
#footer .footer-inner nav { border-top: 1px solid var(--c-border); padding-top: 16px; }
#footer .sign { font-family: var(--font-sign); font-size: 24px; color: var(--c-text-sub); }
#footer nav ul { margin-bottom: 8px; }
#footer nav li { padding: 6px 0; }
#footer nav li a { font-size: 13px; color: var(--c-text-sub); }
#footer nav li a:hover { color: var(--c-primary); }
#footer .sns { text-align: left; margin: 16px 0 8px; }
#footer .sns a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #222; border-radius: 8px; }
#footer .sns a img { width: 60%; height: 60%; object-fit: contain; }
#footer .sns a.tw::before { content: none; }
#footer .credit { background: #f0f0f0; text-align: center; padding: 20px; }
#footer .credit a { font-size: 12px; color: var(--c-text-sub); }

/* ========================================
   16. Book Footer (single post metadata)
   ======================================== */
.book-footer { padding: 20px 16px; background: var(--c-surface); border-radius: var(--radius-md); margin-top: 16px; }
.comic-metadata { font-size: 14px; }
.comic-metadata li { min-height: 32px; margin-bottom: 6px; }
.comic-metadata a {
  display: inline-block; padding: 0 10px; margin: 2px 4px 4px 0;
  font-size: 13px; line-height: 28px; border: 1px solid var(--c-border);
  background: var(--c-bg); border-radius: var(--radius-full); color: var(--c-text-sub);
  transition: all var(--transition);
}
.comic-metadata a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.comic-metadata .tags a::before { content: "#"; }
.comic-metadata .title b { font-size: 15px; font-weight: 700; }

/* ========================================
   17. Recommend section
   ======================================== */
.recommend { margin-top: 24px; }
.recommend-list-title { font-size: 15px; font-weight: 700; color: var(--c-accent); padding: 16px 16px 0; }

/* ========================================
   18. Favorite Button
   ======================================== */
.favorite-button { margin: 12px 0; }

/* ========================================
   19. Ads
   ======================================== */
.rectangle { width: 300px; height: 250px; margin: 16px auto; }
.mobileonly { display: block; }
@media (min-width:744px) {
  .mobileonly, .rectangle { display: none; }
  .header-ads-container { display: none; }
}

/* ========================================
   20. Misc
   ======================================== */
.not-found { padding: 40px 16px; text-align: center; color: var(--c-text-sub); }
.error { padding: 24px 16px; text-align: center; color: var(--c-text-sub); }
.table-content { width: 100%; overflow-x: auto; }
.table-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-content th { background: var(--c-primary-light); text-align: left; }
.table-content th, .table-content td { border: 1px solid var(--c-border); padding: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li a { display: block; padding: 0 12px; font-size: 14px; line-height: 32px; border-radius: var(--radius-full); background: var(--c-bg); border: 1px solid var(--c-border); }
.tag-list li a:hover { background: var(--c-primary-light); border-color: var(--c-primary); }
.tag-list li a::before { content: "#"; color: var(--c-text-muted); }
.sns-list { padding-top: 1em; }
.sns-list ul { display: flex; justify-content: center; gap: 12px; }
.sns-list ul li { width: 24px; height: 24px; }
.sns-list ul li a { display: block; width: 100%; height: 100%; }
.sns-list ul li a img { width: 100%; height: 100%; object-fit: contain; }

/* ========================================
   21. Search Results Page
   ======================================== */
/* body.search は WordPress が自動付与するクラス — 背景色をリセット */
body.search { background: var(--c-bg); }

/* 検索結果ページのセクションヘッダーが固定ヘッダーに被らないよう余白を確保 */
body.search #main { margin-top: 16px; }
body.search #main .list-header {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
}
body.search #main .list-header .sign {
  color: var(--c-primary);
}
body.search #main .list-header h2 {
  color: var(--c-text);
  font-size: 16px;
}
/* book-footer（読了後CTA） */
.book-footer-tags { padding: 0 0 16px; }
.book-footer-tags a {
  display: inline-block; padding: 0 10px; margin: 2px 4px 4px 0;
  font-size: 13px; line-height: 28px; border: 1px solid var(--c-border);
  background: var(--c-bg); border-radius: var(--radius-full); color: var(--c-text-sub);
  transition: all var(--transition);
}
.book-footer-tags a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.book-footer-tags a::before { content: "#"; }
.book-footer-cta { text-align: center; padding: 8px 0 0; }
.book-footer-cta-text { font-size: 14px; color: var(--c-text-sub); margin-bottom: 12px; }
