/* SEO最適化 漫画解説サイト - スタイル */
:root {
  --color-bg: #0f0f12;
  --color-surface: #1a1a1f;
  --color-border: #2a2a32;
  --color-text: #e8e6e3;
  --color-text-muted: #9b98a1;
  --color-accent: #e84c4f;
  --color-accent-hover: #ff6b6e;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

/* 画像読み込み中プレースホルダー（3つ）- 画像サイズ感 */
.image-loading-placeholders {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.img-placeholder {
  width: 200px;
  height: 150px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.img-placeholder-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-accent);
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
}

.nav a:hover {
  color: var(--color-accent);
}

/* 広告エリア */
.ad-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

/* Main */
.main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.lead {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.lead a {
  color: var(--color-accent);
  text-decoration: none;
}

.lead a:hover {
  text-decoration: underline;
}

.intro-content {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.intro-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.intro-content p {
  margin: 0 0 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.raw-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Manga list */
.manga-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.manga-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.manga-card:hover {
  border-color: var(--color-accent);
}

.manga-link {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  color: inherit;
  text-decoration: none;
}

.manga-card-image {
  flex-shrink: 0;
}

.manga-card-image img {
  width: 120px;
  height: 168px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-bg);
}

.manga-card-content {
  flex: 1;
  min-width: 0;
}

.manga-link h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.manga-link p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.manga-link .meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.manga-link .meta span {
  margin-right: 1rem;
}

/* Manga detail */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.manga-detail-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.manga-cover {
  width: 160px;
  height: 224px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-bg);
  flex-shrink: 0;
}

.manga-tags {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
}

.article-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.article-header .meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.article-header .meta span,
.article-header .meta time {
  margin-right: 1rem;
}

.article-body {
  font-size: 1rem;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 3rem 0;
}

.error-page h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.error-page p {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
}

/* 関連記事・内部リンク（SEO） */
.related-links,
.popular-links {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.related-links h2,
.popular-links h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.related-links ul,
.popular-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-links li,
.popular-links li {
  margin-bottom: 0.5rem;
}

.related-links a,
.popular-links a {
  color: var(--color-accent);
  text-decoration: none;
}

.related-links a:hover,
.popular-links a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
