@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* ===================================================
   Theme Tokens
=================================================== */
:root {
  --archive-bg: #111113;
  --archive-bg-2: #15161a;
  --archive-surface: #1a1b20;
  --archive-surface-2: #212229;
  --archive-surface-3: #282932;
  --archive-border: #343640;

  --archive-text: #e8e3dc;
  --archive-text-muted: #b7aea3;
  --archive-text-faint: #8d867d;

  --archive-accent: #e60033;
  --archive-accent-dark: #b30027;
  --archive-accent-soft: rgba(230, 0, 51, 0.08);

  --archive-link: #d8c3ae;
  --archive-link-hover: #f1dfc8;

  --archive-radius-sm: 4px;
  --archive-radius-md: 8px;
  --archive-radius-lg: 10px;

  --archive-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --archive-transition: 0.3s;
}

/* ===================================================
   Base
=================================================== */
html,
body,
#container,
#content,
.content,
.content-in,
.main,
#main,
#sidebar,
.footer,
#footer {
  background-color: var(--archive-bg);
  color: var(--archive-text);
}

body {
  color: var(--archive-text);
  line-height: 1.75;
}

a {
  color: var(--archive-link);
  transition:
    color var(--archive-transition),
    background-color var(--archive-transition),
    border-color var(--archive-transition);
}

a:hover {
  color: var(--archive-link-hover);
}

img {
  border-radius: 6px;
}

::selection {
  background: rgba(230, 0, 51, 0.35);
  color: #fff3f5;
}

/* ===================================================
   Common surfaces
=================================================== */
#main,
.main,
.article,
.sidebar,
.widget,
.widget-area,
.appeal,
.appeal-in,
.author-box,
.comment-area,
.related-entry-card-wrap {
  background: var(--archive-surface);
  color: var(--archive-text);
  border-color: var(--archive-border);
}

/* ===================================================
   Header / Navi
=================================================== */
#header,
.header-container,
#header-container,
.header,
#navi,
.navi,
#navi-in,
.header-in,
#header .logo,
#header .logo a {
  background: #141418;
  color: var(--archive-text);
  border-color: var(--archive-border);
}

#header a,
#navi a,
.navi a,
.menu-item a {
  color: var(--archive-text);
}

#header a:hover,
#navi a:hover,
.navi a:hover,
.menu-item a:hover {
  color: var(--archive-link-hover);
}

/* ===================================================
   PC表示のカラムレイアウト最適化
=================================================== */
@media screen and (min-width: 1024px) {
  .content-in {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    align-items: flex-start;
    overflow: visible !important;
  }

  .content-in::before,
  .content-in::after {
    display: none !important;
  }

  #sidebar {
    order: 1 !important;
    width: clamp(200px, 20vw, 280px) !important;
    flex-shrink: 0 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: transparent;
  }

  #main {
    order: 2 !important;
    flex-grow: 1 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  #sidebar::-webkit-scrollbar {
    width: 6px;
  }

  #sidebar::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 3px;
  }
}

/* ===================================================
   Widget / Sidebar accordion
=================================================== */
.widget {
  background: var(--archive-surface);
  border: 1px solid var(--archive-border);
  box-shadow: var(--archive-shadow);
  border-radius: var(--archive-radius-md);
}

.custom-widget-dropdown {
  margin-bottom: 12px;
}

.custom-widget-summary,
.widget-no-accordion .widget-title,
.widget-no-accordion .widget_title,
.widget-no-accordion .widget-title-static {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  background-color: var(--archive-surface-2);
  color: var(--archive-text);
  list-style: none;
  border: 1px solid var(--archive-border);
  border-radius: var(--archive-radius-md);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.custom-widget-summary:hover,
.custom-widget-summary:focus {
  background-color: var(--archive-surface-3);
  color: #ffd2db;
}

.custom-widget-summary::-webkit-details-marker {
  display: none;
}

/* ▼ は widget-summary-chevron（span）で管理するため ::after は無効化 */
.custom-widget-summary::after {
  content: none;
}

/* ▼ 独立 span */
.widget-summary-chevron {
  font-size: 0.8em;
  color: var(--archive-text-muted);
  flex-shrink: 0;
  margin-left: auto;
  pointer-events: none;
  transition: transform 0.3s ease, color 0.2s ease;
}

.custom-widget-dropdown[open] .widget-summary-chevron {
  transform: rotate(180deg);
  color: #d88b99;
}

.custom-widget-dropdown[open] {
  padding-bottom: 16px;
  color: var(--archive-text);
}

.custom-widget-dropdown > *:not(summary) {
  padding: 0 16px;
  margin-top: 12px;
  color: var(--archive-text);
}

.custom-widget-dropdown[open] ul,
.custom-widget-dropdown[open] ol {
  padding-left: 0;
  margin: 0;
}

.custom-widget-dropdown[open] li {
  list-style: none;
  margin-bottom: 8px;
  color: var(--archive-text);
}

.custom-widget-dropdown[open] p,
.custom-widget-dropdown[open] span,
.custom-widget-dropdown[open] div,
.custom-widget-dropdown[open] small,
.custom-widget-dropdown[open] label {
  color: var(--archive-text);
}

/* アコーディオン内リンク */
.custom-widget-dropdown[open] a,
.custom-widget-dropdown[open] .menu a,
.custom-widget-dropdown[open] .menu-item a {
  display: inline-block;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--archive-text-muted);
  text-decoration: none;
  white-space: normal;
}

.custom-widget-dropdown[open] .current-menu-item > a,
.custom-widget-dropdown[open] .current_page_item > a {
  color: #ff8aa1;
}

.custom-widget-dropdown[open] a:hover,
.custom-widget-dropdown[open] .menu a:hover,
.custom-widget-dropdown[open] .menu-item a:hover,
.custom-widget-dropdown[open] .current-menu-item > a:hover,
.custom-widget-dropdown[open] .current_page_item > a:hover {
  color: #fff !important;
  background-color: var(--archive-accent) !important;
  border-color: var(--archive-accent) !important;
}

/* 非アコーディオンウィジェット */
.widget-no-accordion > *:not(.widget-title):not(.widget_title):not(.widget-title-static) {
  margin-top: 12px;
}

.widget-no-accordion .widget-title,
.widget-no-accordion .widget_title,
.widget-no-accordion .widget-title-static {
  cursor: default;
  pointer-events: none;
}

.sidebar-menu-content {
  -webkit-transform: translateX(-105%);
  transform: translateX(-105%);
  right: auto;
  left: 0;
}

.menu-item-count {
  font-size: 0.75em;
  vertical-align: middle;
  opacity: 0.75;
  margin-left: 4px;
  font-weight: normal;
  color: var(--archive-text-muted);
}

/* ===================================================
   Widget title link（タイトルリンク化対応）
=================================================== */
.custom-widget-summary .widget-title-link {
  flex: 1;
  color: inherit;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  display: inline;
  white-space: normal;
}

.custom-widget-summary .widget-title-link:hover {
  color: #ffd2db;
  background: transparent !important;
  border-color: transparent !important;
}

/* ===================================================
   Sidebar page links（直リンクウィジェット用）
=================================================== */
.sidebar-page-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-page-links li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--archive-border);
}

.sidebar-page-links li:last-child {
  border-bottom: none;
}

.sidebar-page-links a {
  display: block;
  padding: 9px 12px;
  color: var(--archive-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--archive-radius-sm);
  transition:
    color var(--archive-transition),
    background-color var(--archive-transition);
}

.sidebar-page-links a:hover,
.sidebar-page-links a:focus-visible {
  color: #fff !important;
  background-color: var(--archive-accent) !important;
  border-color: var(--archive-accent) !important;
}

.sidebar-page-links .current-page > a,
.sidebar-page-links a[aria-current="page"] {
  color: #ff8aa1;
  background-color: var(--archive-accent-soft);
}

/* ===================================================
   Entry cards
=================================================== */
.entry-card-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  margin-bottom: 25px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--archive-surface);
  border: 1px solid var(--archive-border);
  border-radius: var(--archive-radius-lg);
  box-shadow: var(--archive-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.entry-card-wrap:hover {
  background: var(--archive-surface-2);
  border-color: rgba(199, 179, 154, 0.35);
  transform: translateY(-2px);
}

.entry-card-thumb {
  width: 40%;
  max-width: 640px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--archive-radius-sm);
  background: var(--archive-bg-2);
}

.entry-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--archive-radius-sm);
}

.entry-card-thumb-figure .cat-label {
 display: none ;
 /* position: absolute;
  top: 5px;
  left: 5px;
  right: auto;
  z-index: 10;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
}

.entry-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--archive-text);
}

.entry-card-content * {
  color: var(--archive-text);
}

.entry-card-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.entry-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.entry-card-meta .cat-link,
.entry-card-meta .tag-link {
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--archive-border);
  background-color: var(--archive-surface-2);
  color: var(--archive-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: 0.3s;
}

.entry-card-meta .cat-link {
  border-color: rgba(230, 0, 51, 0.45);
  color: #ff8aa1;
  background-color: rgba(230, 0, 51, 0.08);
}

.entry-card-meta .cat-link:hover,
.entry-card-meta .tag-link:hover {
  background-color: var(--archive-accent);
  color: #fff;
  border-color: var(--archive-accent);
}

.entry-card-snippet {
  display: none;
}

@media screen and (max-width: 768px) {
  .post-list.card,
  .post-list-card,
  .post-list-cassette,
  .post-list-card2,
  .list-items,
  .card-cols-2,
  .card-cols-3,
  .card-cols-4,
  .post-list-card .post-list-item,
  .post-list-card2 .post-list-item {
    display: block !important;
    grid-template-columns: 1fr !important;
    columns: 1 !important;
  }

  .entry-card-wrap {
    flex-direction: column;
    gap: 10px;
    border-radius: 8px;
    box-shadow: none;
  }

  .entry-card-thumb {
    width: 100%;
    max-width: 100%;
  }

  .cat-label,
  .entry-card-thumb-figure .cat-label {
    display: none ;
  }
}

/* ===================================================
   Article page
=================================================== */
.article {
  background: var(--archive-surface);
  border: 1px solid var(--archive-border);
  border-radius: var(--archive-radius-lg);
  box-shadow: var(--archive-shadow);
  color: var(--archive-text);
}

.article h1.entry-title {
  padding: 0.5em;
  background: transparent;
  border-left: solid 5px var(--archive-accent);
  border-bottom: solid 2px var(--archive-accent);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--archive-text);
}

.article .entry-content {
  color: var(--archive-text);
}

.article .entry-content p,
.article .entry-content li,
.article .entry-content td,
.article .entry-content th,
.article .entry-content dd,
.article .entry-content dt {
  color: var(--archive-text);
}

/*.article .entry-content h2 {
  position: relative;
  padding: 0.6em;
  margin-top: 2em;
  background: linear-gradient(90deg, rgba(230, 0, 51, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  border-top: solid 2px var(--archive-border);
  border-bottom: solid 2px var(--archive-border);
  color: var(--archive-text);
  font-size: 1.3rem;
  font-weight: bold;
}*/

/* ===================================================
   H2 Heading (Optimized for Dark Theme Variables)
=================================================== */
/* ===================================================
   H2 Heading (Interactive block with tag-link hover)
=================================================== */
/* ===================================================
   H2 Underline & Pseudo-element Killer
=================================================== */
/* 1. H2本体のあらゆる下線・装飾を強制消去 */
.article .entry-content h2 {
    border-bottom: none !important;
    text-decoration: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* 2. Cocoon標準の見出し装飾（疑似要素による下線）を強制無効化 */
.article .entry-content h2::before,
.article .entry-content h2::after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}

/* 3. H2の中にリンク(aタグ)が含まれている場合の下線も強制消去 */
.article .entry-content h2 a {
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    color: inherit; /* 文字色をH2に合わせる */
}
.article .entry-content h2 {
    display: block;
    box-sizing: border-box;
    width: 100%;
    background: var(--archive-surface-2);
    color: var(--archive-text);
    padding: 12px 16px;
    margin: 2em 0 1em;
    border: none;
    border-left: 5px solid var(--archive-accent);
    border-radius: var(--archive-radius-sm);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    /* 背景、ボーダー、文字色のすべての変化を滑らかに同期させる */
    transition: background-color var(--archive-transition), border-color var(--archive-transition), color var(--archive-transition);
}

/* 見出しH2の控えめなホバー効果 */
.article .entry-content h2:hover {
    background-color: rgba(230, 0, 51, 0.25) !important;
    color: #fff !important;
    border-left-color: var(--archive-accent-dark) !important;
}
/* ===================================================
   H2 Stretched Link (ボックス全体をクリッカブル化)
=================================================== */
/* 1. H2を相対配置（基準点）に設定 */
.article .entry-content h2 {
    position: relative !important;
}

/* 2. H2内のリンク(aタグ)から透明な疑似要素を拡張してボックス全体を覆う */
.article .entry-content h2 a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.article .entry-content h3 {
  position: relative;
  padding-bottom: 0.5em;
  margin-top: 1.5em;
  border-bottom: solid 3px var(--archive-accent);
  color: var(--archive-text);
  font-size: 1.2rem;
}

.article .entry-content h4,
.article .entry-content h5,
.article .entry-content h6 {
  color: var(--archive-text);
}



.article .entry-content a {
  color: #f0cdb5;
  text-decoration-color: rgba(240, 205, 181, 0.45);
}

.article .entry-content a:hover {
  color: #fff0e0;
  text-decoration-color: rgba(255, 240, 224, 0.75);
}

/* ===================================================
   Tables / Blockquote / Code
=================================================== */
.article .entry-content table,
.article .entry-content th,
.article .entry-content td {
  border: 1px solid var(--archive-border);
}

.article .entry-content th {
  background: var(--archive-surface-3);
  color: var(--archive-text);
}

.article .entry-content td {
  background: var(--archive-surface);
  color: var(--archive-text);
}

.article .entry-content blockquote {
  padding: 1em 1.2em;
  background: var(--archive-surface-2);
  color: var(--archive-text-muted);
  border-left: 4px solid var(--archive-accent);
}

.article .entry-content pre,
.article .entry-content code {
  background: #101115;
  color: #f0ddd0;
  border: 1px solid var(--archive-border);
}

/* ===================================================
   Forms / Search
=================================================== */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea,
select,
.search-edit {
  background: #ffffff;
  color: #111113;
  border: none;
  border-radius: var(--archive-radius-md);
}

input[type="text"]::placeholder,
input[type="search"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
  color: #9a9a9a;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--archive-accent);
  box-shadow: 0 0 0 3px rgba(230, 0, 51, 0.18);
}

/* 検索ウィジェット外枠を透明に */
.widget_search .search-form,
.widget_search form,
.search-form {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ===================================================
   Pagination / small UI
=================================================== */
.pagination,
.pager-post-navi {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-numbers,
.pagination a,
.pagination-next-link,
.pagination-prev-link,
.tagcloud a {
  background: var(--archive-surface-2);
  color: var(--archive-text);
  border: 1px solid var(--archive-border);
}

.page-numbers.current,
.pagination a:hover,
.pagination-next-link:hover,
.pagination-prev-link:hover,
.tagcloud a:hover {
  background: var(--archive-accent);
  color: #fff;
  border-color: var(--archive-accent);
}

/* ===================================================
   FANZA button
=================================================== */
.fanza-btn a {
  display: block;
  max-width: 80%;
  margin: 30px auto;
  padding: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(180deg, #f02050 0%, var(--archive-accent) 100%);
  border-radius: 5px;
  box-shadow: 0 4px 0 var(--archive-accent-dark), 0 12px 20px rgba(0, 0, 0, 0.22);
  transition: 0.2s;
}

.fanza-btn a:hover {
  transform: translateY(2px);
  background: linear-gradient(180deg, #ff3360 0%, #cf002d 100%);
  box-shadow: 0 2px 0 var(--archive-accent-dark);
  color: #fff !important;
}

/* ===================================================
   Muted text / footer
=================================================== */
.site-description,
.post-date,
.post-update,
.date-tags,
.breadcrumb,
.breadcrumb a,
.widget-entry-card-snippet,
.related-entry-card-snippet,
.footer-bottom,
.copyright,
.sidebar .widget p,
.sidebar .widget li {
  color: var(--archive-text-muted);
}

#footer,
.footer,
.footer-in {
  background: #121318;
  color: var(--archive-text-muted);
  border-top: 1px solid var(--archive-border);
}

#footer a,
.footer a {
  color: var(--archive-text-muted);
}

#footer a:hover,
.footer a:hover {
  color: var(--archive-link-hover);
}

/* ===================================================
   Carousel / Film strip
=================================================== */
@media screen and (max-width: 1023px) {
  #carousel {
    display: none !important;
  }
}

#carousel {
  position: relative;
  background: #0c0c0f;
  border-top: 1px solid #24242b;
  border-bottom: 1px solid #24242b;
  margin: 0 0 24px;
  overflow: hidden;
}

#carousel-in {
  max-width: 100%;
  padding: 8px 46px 12px;
  background: transparent;
  box-sizing: border-box;
}

.carousel-entry-card-wrap {
  display: block;
  text-decoration: none;
}

.carousel-entry-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.carousel-entry-card-content,
.carousel-entry-card-title {
  display: none;
}

.carousel-entry-card-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #15161a;
  line-height: 0;
  aspect-ratio: 2184 / 1484;
}

.carousel-entry-card-thumb img,
.carousel-entry-card-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.carousel-entry-card-thumb .cat-label {
  display: none;
}

#carousel .slick-slide {
  padding: 0 6px;
  box-sizing: border-box;
}

#carousel .slick-list {
  margin: 0 -6px;
  overflow: hidden;
}

#carousel .slick-prev,
#carousel .slick-next {
  z-index: 20;
  width: 34px;
  height: 34px;
  background: rgba(12, 12, 15, 0.92);
  border: 1px solid #2b2b33;
  border-radius: 0;
}

#carousel .slick-prev {
  left: 8px;
}

#carousel .slick-next {
  right: 8px;
}

#carousel .slick-prev:hover,
#carousel .slick-next:hover {
  background: var(--archive-accent);
  border-color: var(--archive-accent);
}

#carousel .slick-prev:before,
#carousel .slick-next:before {
  font-size: 18px;
  color: #d6d0c8;
  opacity: 1;
}

#carousel .slick-prev:hover:before,
#carousel .slick-next:hover:before {
  color: #fff;
}

#carousel .slick-dots {
  bottom: 6px;
  z-index: 15;
}

#carousel .slick-dots li {
  margin: 0 1px;
}

#carousel .slick-dots li button:before {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

#carousel .slick-dots li.slick-active button:before {
  color: rgba(230, 0, 51, 0.5);
  opacity: 1;
}
/* cocoon-child-master/style.css */

/* サイドバー幅 200px に最適化 */
.jk-acc-wrap {
    font-size: 12px;
}

/* グループラベルの文字色をCocoonテーマ変数と合わせる場合 */
.jk-acc-header {
    color: var(--color-main, #333);
}
.jk-acc-header:hover {
    color: var(--color-main-dark, #c0392b);
}