@charset "UTF-8";

/*!
Theme Name: Cocoon Child (キモメンNTR同人漫画ネオ)
Template:   cocoon-master
Version:    2.0.0
*/

/* デフォルトで記事本文・カテゴリー本文の文章を左揃えにする */
.entry-content,
.entry-content p,
.category-page-content,
.category-page-content p {
  text-align: left;
}

/* ヘッダー・フッター テキストロゴ表示（ダークモード映え） */
.logo-header .site-name,
.logo-header .site-name-text {
  display: inline-block !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.logo-header .site-name-text:hover {
  color: #ff6b9f !important;
}
.logo-menu-button .site-logo-text {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

/* --------------------------------------------------
 * 殿堂入り横スクロール枠（キモメンブログ完全踏襲）
 * -------------------------------------------------- */
.dendo-pink-frame {
  border: 3px solid #ff4b8b;
  border-radius: 15px;
  padding: 20px 10px;
  margin: 30px 0;
  background-color: rgba(255, 75, 139, 0.05);
}
.dendo-title-area {
  text-align: center;
  margin-bottom: 10px;
}
.dendo-main-title {
  font-weight: bold;
  font-size: 1.4em;
  color: #ff4b8b;
  margin-bottom: 5px !important;
}
.dendo-admin-msg {
  font-size: 0.9em;
  color: #ff4b8b;
  font-weight: bold;
  margin: 0 !important;
}
.dendo-scroll-notice {
  text-align: center;
  font-size: 10px;
  color: #ff4b8b;
  margin-bottom: 10px !important;
  opacity: 0.85;
}
.dendo-scroll-outer { width: 100%; }
.dendo-scroll-inner {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 5px 15px;
  -webkit-overflow-scrolling: touch;
}
.dendo-card {
  flex: 0 0 155px;
  text-decoration: none !important;
}
.dendo-img-wrap img {
  width: 155px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.35);
}
.dendo-card-title {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-top: 8px;
  white-space: normal;
  line-height: 1.4;
  font-weight: bold;
  text-align: center;
}
.dendo-scroll-inner::-webkit-scrollbar { height: 4px; }
.dendo-scroll-inner::-webkit-scrollbar-thumb {
  background: #ff4b8b;
  border-radius: 10px;
}

/* --------------------------------------------------
 * 同人漫画 作品スペックカード（AIO構造化対応）
 * -------------------------------------------------- */
.doujin-meta-card {
  background: #1a1a1f;
  border: 1px solid #333540;
  border-left: 4px solid #ff4b8b;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0 26px 0;
  color: #e5e7eb;
}
.doujin-meta-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2b2d38;
}
.doujin-meta-title {
  font-size: 0.98em;
  font-weight: bold;
  color: #fff;
}
.doujin-rating-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111;
  font-weight: 800;
  font-size: 0.9em;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.doujin-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  font-size: 0.88em;
}
.doujin-meta-item {
  background: #22232b;
  padding: 8px 12px;
  border-radius: 6px;
}
.doujin-meta-label {
  display: block;
  font-size: 0.78em;
  color: #9ca3af;
  margin-bottom: 2px;
}
.doujin-meta-val {
  color: #f9fafb;
  font-weight: 600;
}

/* --------------------------------------------------
 * 同人漫画 [scene_card] ダークモード最適化
 * -------------------------------------------------- */
.scene-card-single {
  background: #1c1d24;
  border: 1px solid #353744;
  border-left: 4px solid #ff4b8b;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 10px 0 22px 0;
  color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.scene-card-single h4 {
  margin: 0 0 10px 0 !important;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
}
.scene-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.scene-card-time {
  font-weight: bold;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #ff4b8b;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.84em;
}
.scene-card-status {
  background: #3b2e13;
  color: #fde68a;
  font-size: 0.78em;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #92400e;
}
.scene-card-costume {
  font-size: 0.86em;
  color: #d1d5db;
  background: #252732;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.scene-card-detail {
  font-size: 0.9em;
  color: #f3f4f6;
  line-height: 1.7;
  margin-top: 8px;
}

/* --------------------------------------------------
 * 公式購入・試し読みCTA（FANZA / DLsite マイクロコピー付き）
 * -------------------------------------------------- */
.doujin-cta-box {
  background: #1a1a20;
  border: 1px solid #353545;
  border-radius: 12px;
  padding: 20px 16px;
  margin: 26px 0;
  text-align: center;
}
.doujin-cta-microcopy {
  display: inline-block;
  background: #3b2e13;
  color: #fde68a;
  border: 1px solid #b45309;
  font-size: 0.82em;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.doujin-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@keyframes shine {
  0% { transform: skewX(-45deg) translateX(-150%); }
  100% { transform: skewX(-45deg) translateX(150%); }
}
.shiny-btn {
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0 auto;
  background: linear-gradient(to bottom, #ff6b9f, #ff4b8b);
  color: #fff !important;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none !important;
  padding: 14px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(255, 75, 139, 0.4);
  width: 92%;
  max-width: 440px;
  line-height: 1.4;
  text-align: center;
}
.shiny-btn-fanza {
  background: linear-gradient(to bottom, #ff6b9f, #e11d48) !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4) !important;
}
.shiny-btn-dlsite {
  background: linear-gradient(to bottom, #00c6ff, #0072ff) !important;
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.4) !important;
}
.shiny-btn::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-45deg) translateX(-150%);
  animation: shine 3s infinite;
}

/* ジャンルカード（トップページ用） */
.genre-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0 30px 0;
}
.genre-hub-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  background: #1f2029;
  border: 1px solid #353746;
  border-radius: 10px;
  color: #f3f4f6 !important;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.genre-hub-chip:hover {
  border-color: #ff4b8b;
  background: #2a2030;
  transform: translateY(-2px);
}

/* スマホ追従CTA */
.floating-btn-wrap {
  position: fixed; bottom: -100px; left: 0; width: 100%; padding: 10px; z-index: 9999;
  transition: bottom 0.4s ease; text-align: center; pointer-events: none;
}
.floating-btn-wrap.is-active { bottom: 64px; pointer-events: auto; }
.floating-btn-wrap .shiny-btn {
  width: 90%; max-width: 400px; font-size: 15px; padding: 13px 16px;
}

/* 新着パネル */
.new-badge-tiny {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: #ff4500; color: #fff; font-size: 9px; font-weight: bold;
  padding: 1px 5px; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.4); line-height: 1.2;
}
.post-date-overlay {
  position: absolute; bottom: 45px; right: 8px; z-index: 2;
  color: #fff; font-size: 9px; background: rgba(0,0,0,0.65);
  padding: 1px 6px; border-radius: 3px; font-weight: bold;
}
.post-panel-item:hover img { opacity: 1; transform: scale(1.06); }
@media (max-width: 480px) {
  .new-posts-grid { gap: 8px; }
  .new-badge-tiny { top: 5px; left: 5px; font-size: 7.5px; padding: 1px 4px; }
  .post-date-overlay { bottom: 40px; right: 5px; font-size: 8px; }
}
