   7. SINGLE PAGE (記事ページ)
   ========================================================================== */

/* Layout — uses .tp-wrap from main layout */
.single-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Header */
.single-head {
  padding: 24px 32px 16px;
  background: var(--bg-card);
}
.post-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.single-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.single-meta a { color: var(--text-link); }
.single-categories a,
.single-tags a {
  color: var(--text-secondary);
}
.single-pv {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 500;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}
.single-thumbnail {
  margin-top: 12px;
}
.single-thumbnail img {
  border: 1px solid var(--border);
  max-height: 50%;
  max-width: 50%;
}

/* AA area — scrollable within article */
.AA-area {
  margin: 0;
  padding: 2rem 1rem;
  background: #fff;
  font-size: 16px;
  line-height: 18px;
  font-family: "ＭＳ Ｐゴシック","MS PGothic",IPAMonaPGothic,Mona,Monapo,Saitamaar,sans-serif;
  white-space: pre;
  font-variant-ligatures: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Page links (nextpage) */
.page-links {
  padding: 12px 32px;
  font-size: 13px;
  background: var(--bg-card);
}
.page-links a {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 2px;
  background: var(--accent-light);
  border-radius: var(--radius);
  color: var(--accent-dark);
}

/* Ad blocks */
.ad-block {
  padding: 20px 32px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  font-size: 13px;
}
.support-note { margin-bottom: 6px; }
.fanbox {
  color: var(--accent-dark);
  font-size: 14px;
}

/* Related products — like-label size */
.related-products {
  display: block;
  padding: 16px 32px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.related-products-title { display: none; }
.related-products-links {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.related-products-links::before {
  content: '同人作品を探す';
  display: block;
  margin-bottom: 10px;
}
.related-products-row {
  display: inline-flex;
  gap: 6px;
  margin: 4px 3px;
}
.related-products-kw { display: none; }
.related-products-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  text-decoration: none;
  transition: var(--transition);
}
.related-products-btn:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Tags */
.single-tag-list {
  padding: 12px 32px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}
.single-tag-list a {
  color: var(--text-link);
}

/* Like / Favorite */
.like-section {
  padding: 20px 32px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  text-align: center;
}
.like-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}
.post-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Favorite button */
.fav-button-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fav-button {
  appearance: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: var(--transition);
}
.fav-button:hover {
  background: var(--accent);
  color: #fff;
}
.fav-button.active {
  background: var(--accent);
  color: #fff;
}
.fav-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Like button */
.like-button-wrapper {
  display: inline-flex;
  align-items: center;
}
.like-button {
  appearance: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #E05A6D;
  background: #FBEEF0;
  border: 1px solid #E05A6D;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: var(--transition);
}
.like-button:hover {
  background: #E05A6D;
  color: #fff;
}
.like-button.liked {
  background: #E05A6D;
  color: #fff;
}

/* Navigation (prev / next) */
.single-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  font-size: 13px;
}
.single-nav a {
  color: var(--text-link);
  font-weight: 500;
}

/* Related posts */
.related-section {
  padding: 20px 32px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}
.related-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.related-header .related-heading { margin-bottom: 0; }
.related-toc-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-link);
  flex-shrink: 0;
}
.related-list {
  list-style: none;
}
.related-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.related-list li:last-child { border-bottom: none; }
.related-list a { color: var(--text-primary); }
.related-list a:hover { color: var(--accent); }
.related-current {
  background: var(--accent-50);
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--accent-dark);
}

/* Comments area */
.comments-area {
  padding: 20px 32px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}
.comments-area h2,
.comments-area h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.comment-list {
  list-style: none;
  margin-bottom: 20px;
}
.comment-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  line-height: 1.7;
}
.comment-list li:last-child { border-bottom: none; }
.comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  resize: vertical;
}
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.comment-form .submit {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.comment-form .submit:hover { background: var(--accent-dark); }

/* Widget areas */
.widget-area { padding: 16px 32px; border-top: 1px solid var(--border-light); background: var(--bg-card); }


/* Mobile — AA表示幅を最大化 */
body.is-mobile .single-article {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
