/*
Theme Name: 異種族漫画図鑑 - SYN Ownd Child
Template: syn-ownd
Theme URI: https://syn.design/
Author: SYN Ownd Child Custom
Description: 異種族・人外漫画サイト向けのダークファンタジー図鑑デザイン。SYN Ownd用子テーマ。
Version: 1.1.0
Text Domain: syn-ownd-child
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
@charset "utf-8";

/* =========================================================
   異種族漫画図鑑 / Dark Fantasy Encyclopedia Skin
   - 親テーマ SYN Ownd の構造を維持したまま外観のみ変更
   - 本文は可読性優先の明るい背景
   ========================================================= */

:root {
  --jingai-bg: #f4f0e8;
  --jingai-paper: #fffdf8;
  --jingai-paper-2: #f8f2e8;
  --jingai-ink: #28242b;
  --jingai-muted: #756d76;
  --jingai-dark: #201a26;
  --jingai-dark-2: #30233a;
  --jingai-purple: #6e3f7f;
  --jingai-purple-deep: #4b2859;
  --jingai-gold: #c7a35a;
  --jingai-gold-light: #ead6a4;
  --jingai-border: #ded4c4;
  --jingai-shadow: 0 12px 32px rgba(41, 31, 46, .08);
  --jingai-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body.jingai-dark-fantasy,
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(110, 63, 127, .07), transparent 24rem),
    linear-gradient(180deg, #f8f4ed 0, var(--jingai-bg) 28rem, var(--jingai-bg) 100%);
  color: var(--jingai-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  letter-spacing: .015em;
}

::selection {
  background: var(--jingai-gold-light);
  color: var(--jingai-dark);
}

a {
  color: var(--jingai-purple-deep);
  text-decoration-color: rgba(75, 40, 89, .35);
  text-underline-offset: .16em;
  transition: color .2s ease, opacity .2s ease, transform .2s ease, border-color .2s ease, background-color .2s ease;
}

a:hover {
  color: var(--jingai-purple);
}

img {
  border-radius: 10px;
}

/* ---------- Header ---------- */
.site-header,
#masthead,
header[role="banner"],
.l-header,
.header {
  background: linear-gradient(135deg, var(--jingai-dark) 0%, #2b2131 55%, var(--jingai-dark-2) 100%);
  color: #fff;
  border-bottom: 3px solid var(--jingai-gold);
  box-shadow: 0 8px 28px rgba(26, 20, 31, .18);
}

.site-header a,
#masthead a,
header[role="banner"] a,
.l-header a,
.header a {
  color: #fff;
  text-decoration: none;
}

.site-title,
.site-title a,
.logo-text,
.header-logo,
.header-logo a {
  font-weight: 800;
  letter-spacing: .055em;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.site-description,
.tagline,
.header-description {
  color: #d9cfdd;
  font-size: .92rem;
}

/* Navigation */
.main-navigation,
.global-nav,
.gnav,
.header-nav,
nav[aria-label*="メニュー"],
nav[aria-label*="Menu"] {
  border-top: 1px solid rgba(255,255,255,.08);
}

.main-navigation a,
.global-nav a,
.gnav a,
.header-nav a {
  position: relative;
  font-weight: 700;
  letter-spacing: .035em;
}

.main-navigation a:hover,
.global-nav a:hover,
.gnav a:hover,
.header-nav a:hover,
.main-navigation .current-menu-item > a,
.global-nav .current-menu-item > a,
.gnav .current-menu-item > a,
.header-nav .current-menu-item > a {
  color: var(--jingai-gold-light);
}

.main-navigation .current-menu-item > a::after,
.global-nav .current-menu-item > a::after,
.gnav .current-menu-item > a::after,
.header-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: .2em;
  height: 2px;
  background: var(--jingai-gold);
}

/* ---------- Main layout ---------- */
.site-content,
#content,
.l-content,
main {
  position: relative;
}

.content-area,
.site-main,
main,
.l-main {
  min-width: 0;
}

/* ---------- Cards / post list ---------- */
.home article,
.archive article,
.search article,
.home .post,
.archive .post,
.search .post,
.archive-item,
.post-list-item,
.entry-card,
.article-card,
[class*="post-card"],
[class*="entry-card"] {
  background: rgba(255, 253, 248, .96);
  border: 1px solid var(--jingai-border);
  border-radius: var(--jingai-radius);
  box-shadow: var(--jingai-shadow);
}

.home article,
.archive article,
.search article,
.home .post,
.archive .post,
.search .post,
.archive-item,
.post-list-item,
.entry-card,
.article-card {
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home article:hover,
.archive article:hover,
.search article:hover,
.home .post:hover,
.archive .post:hover,
.search .post:hover,
.archive-item:hover,
.post-list-item:hover,
.entry-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  border-color: #cbb98f;
  box-shadow: 0 16px 38px rgba(41, 31, 46, .12);
}

.entry-title,
.post-title,
.article-title,
h1.entry-title {
  color: var(--jingai-dark);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
}

.entry-title a,
.post-title a,
.article-title a {
  color: var(--jingai-dark);
  text-decoration: none;
}

.entry-title a:hover,
.post-title a:hover,
.article-title a:hover {
  color: var(--jingai-purple-deep);
}

.entry-meta,
.post-meta,
.article-meta,
.post-date,
time {
  color: var(--jingai-muted);
  font-size: .88rem;
}

/* Category / tag chips */
.cat-links a,
.tags-links a,
.post-categories a,
.entry-categories a,
.post-category a,
.category-label,
.tag-cloud-link,
.wp-block-tag-cloud a {
  display: inline-block;
  margin: .15rem .2rem .15rem 0;
  padding: .28rem .66rem;
  background: #efe5f1;
  color: var(--jingai-purple-deep);
  border: 1px solid #dac8df;
  border-radius: 999px;
  font-size: .78rem !important;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.cat-links a:hover,
.tags-links a:hover,
.post-categories a:hover,
.entry-categories a:hover,
.post-category a:hover,
.tag-cloud-link:hover,
.wp-block-tag-cloud a:hover {
  background: var(--jingai-purple-deep);
  border-color: var(--jingai-purple-deep);
  color: #fff;
}

/* ---------- Single article ---------- */
.entry-content,
.post-content,
.article-body,
.wp-block-post-content {
  color: var(--jingai-ink);
}

.entry-content > p,
.post-content > p,
.article-body > p,
.wp-block-post-content > p {
  margin-bottom: 1.65em;
}

.entry-content h2,
.post-content h2,
.article-body h2,
.wp-block-post-content h2 {
  margin-top: 2.6em;
  margin-bottom: 1.15em;
  padding: .72em .9em .68em 1em;
  color: #fff;
  background: linear-gradient(110deg, var(--jingai-dark-2), var(--jingai-purple-deep));
  border-left: 6px solid var(--jingai-gold);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(45, 32, 52, .10);
  font-size: clamp(1.24rem, 2.5vw, 1.62rem);
  line-height: 1.5;
}

.entry-content h3,
.post-content h3,
.article-body h3,
.wp-block-post-content h3 {
  margin-top: 2.15em;
  margin-bottom: .95em;
  padding: .2em 0 .45em .8em;
  color: var(--jingai-dark);
  border-left: 4px solid var(--jingai-purple);
  border-bottom: 1px solid #d8ccb9;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.entry-content h4,
.post-content h4,
.article-body h4,
.wp-block-post-content h4 {
  margin-top: 1.8em;
  color: var(--jingai-purple-deep);
}

.entry-content blockquote,
.post-content blockquote,
.wp-block-quote {
  margin: 1.7em 0;
  padding: 1.1em 1.25em 1.1em 1.35em;
  background: var(--jingai-paper-2);
  border: 1px solid #e4d7c3;
  border-left: 5px solid var(--jingai-gold);
  border-radius: 8px;
  color: #4f4851;
}

.entry-content table,
.post-content table,
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border: 1px solid var(--jingai-border);
  border-radius: 8px;
  overflow: hidden;
}

.entry-content th,
.post-content th,
.wp-block-table th {
  background: #efe8f0;
  color: var(--jingai-dark);
  font-weight: 700;
}

.entry-content th,
.entry-content td,
.post-content th,
.post-content td,
.wp-block-table th,
.wp-block-table td {
  padding: .75em .85em;
  border: 1px solid #e5dccf;
}

/* ---------- Buttons / CTA ---------- */
.wp-block-button__link,
a.wp-element-button,
button,
input[type="submit"],
input[type="button"],
.button,
.btn,
a[class*="button"] {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--jingai-purple-deep), #744584);
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 6px 14px rgba(75, 40, 89, .20);
}

.wp-block-button__link:hover,
a.wp-element-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.btn:hover,
a[class*="button"]:hover {
  background: linear-gradient(135deg, #5e356e, var(--jingai-purple-deep));
  opacity: .96;
  transform: translateY(-1px);
}

/* FANZA / affiliate CTA often uses inline-styled links; improve safely */
.entry-content a[rel~="sponsored"],
.post-content a[rel~="sponsored"] {
  font-weight: 700;
}

/* ---------- Sidebar / widgets ---------- */
.widget,
.sidebar-widget,
#secondary > section,
#secondary > aside,
aside .widget {
  background: rgba(255, 253, 248, .96);
  border: 1px solid var(--jingai-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(41, 31, 46, .06);
}

.widget-title,
.sidebar-title,
aside h2,
aside h3 {
  color: var(--jingai-dark);
  border-bottom: 2px solid var(--jingai-gold);
  padding-bottom: .55em;
  font-weight: 800;
}

.widget ul,
aside ul {
  list-style: none;
  padding-left: 0;
}

.widget li,
aside li {
  border-bottom: 1px dashed #e2d9ca;
}

.widget li:last-child,
aside li:last-child {
  border-bottom: 0;
}

/* ---------- Search / form ---------- */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea,
select {
  background: #fff;
  color: var(--jingai-ink);
  border: 1px solid #cfc4b5;
  border-radius: 8px;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(110, 63, 127, .20);
  border-color: var(--jingai-purple);
}

/* ---------- Pagination ---------- */
.nav-links .page-numbers,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3em;
  min-height: 2.3em;
  margin: .2em;
  padding: .35em .6em;
  background: var(--jingai-paper);
  color: var(--jingai-purple-deep);
  border: 1px solid var(--jingai-border);
  border-radius: 7px;
  text-decoration: none;
}

.nav-links .current,
.pagination .current,
.nav-links .page-numbers:hover,
.pagination .page-numbers:hover {
  background: var(--jingai-purple-deep);
  border-color: var(--jingai-purple-deep);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer,
#colophon,
footer[role="contentinfo"],
.l-footer,
.footer {
  margin-top: 3rem;
  background: linear-gradient(135deg, #211a27, #30233a);
  color: #d9d0dc;
  border-top: 3px solid var(--jingai-gold);
}

.site-footer a,
#colophon a,
footer[role="contentinfo"] a,
.l-footer a,
.footer a {
  color: #f4e6bd;
}

.site-footer a:hover,
#colophon a:hover,
footer[role="contentinfo"] a:hover,
.l-footer a:hover,
.footer a:hover {
  color: #fff;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb,
.breadcrumbs,
[class*="breadcrumb"] {
  color: var(--jingai-muted);
  font-size: .86rem;
}

.breadcrumb a,
.breadcrumbs a,
[class*="breadcrumb"] a {
  color: var(--jingai-purple-deep);
}

/* ---------- Utility: adult notice / PR boxes ---------- */
.jingai-notice,
.adult-notice,
.pr-notice {
  padding: .9em 1em;
  background: #fff7e8;
  border: 1px solid #ead5ac;
  border-left: 4px solid var(--jingai-gold);
  border-radius: 8px;
}

/* ---------- Mobile ---------- */
@media (max-width: 782px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .entry-content h2,
  .post-content h2,
  .article-body h2,
  .wp-block-post-content h2 {
    margin-top: 2.15em;
    padding: .65em .72em;
    border-left-width: 5px;
    border-radius: 7px;
  }

  .entry-content h3,
  .post-content h3,
  .article-body h3,
  .wp-block-post-content h3 {
    margin-top: 1.8em;
    padding-left: .65em;
  }

  .home article,
  .archive article,
  .search article,
  .home .post,
  .archive .post,
  .search .post,
  .archive-item,
  .post-list-item,
  .entry-card,
  .article-card {
    border-radius: 10px;
  }

  .site-header,
  #masthead,
  header[role="banner"],
  .l-header,
  .header {
    border-bottom-width: 2px;
  }
}

/* Accessibility: honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* 投稿メタなどのアバターをサイトアイコン化 */
.site-icon-avatar {
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 2px 8px rgba(0,0,0,0.18);
}

/* 全ページ共通ヘッダー画像 */
.jingai-header-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.jingai-header-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}
