@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

/* 子カテゴリグリッド全体の設定（親コンテナ） */
html,
body {
  height: 100%;
  margin: 0;
}
#container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
}

.content-in {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

#main {
  min-height: 100vh;
}

#sidebar {
  flex: 1;
  min-height: 100vh;
}

.model-tab-menu li {
  margin: 0.2em;
}

.dlsite-section-title {
  background: #791d3c;
  color: #fff;
  padding: 10px 16px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  border-radius: 4px;
}

.dlsite-swiper {
  height: 1550px; /* 5件ぶん確保 */
  overflow: hidden;
  padding: 10px 0;
  margin-top: 23px;
  box-sizing: border-box;
}

.dlsite-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-bottom: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.dlsite-swiper img {
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 6px;
}

.dlsite-swiper-title {
  font-size: 12.5px;
  text-align: left;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 最大2行で切る */
  -webkit-box-orient: vertical;
  margin-top: 4px;
}

/****************************************
 * カテゴリグリッド（ジャンル・モデル共通）
 ****************************************/
.child-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.child-category-grid .grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #a30e2c;
  background-color: #fdfdfd;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
  word-break: break-word;
  white-space: normal;
}

.child-category-grid .grid-item span {
  display: block;
  width: 100%;
  line-height: 1.3;
  text-align: center;
}

.child-category-grid .grid-item:hover {
  background-color: #f0f0f0;
}

/****************************************
 * パンくずリスト（現在ページ表示）
 ****************************************/
.breadcrumb-current,
.breadcrumb-caption[aria-current='page'] {
  font-weight: bold;
  color: #444;
  cursor: default;
}

/****************************************
 * サムネイル画像（記事内やカード用）
 ****************************************/
.entry-card-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}

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

.related-list .cat-label {
  display: none !important;
}

/****************************************
 * サムネイルギャラリー・再生ボタンエフェクト
 ****************************************/
.thumbnail-wrapper {
  text-align: center !important;
  margin: 0 auto !important;
  display: block !important;
  margin-bottom: 1.5em !important;
  position: relative !important;
}

.thumbnail-wrapper a {
  display: inline-block;
  position: relative;
}

.thumbnail-image {
  display: block;
  width: 100%;
  height: auto;
}

.ripple-wrapper {
  position: relative !important;
  display: inline-block;
}

.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20%;
  height: 20%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
}

.thumbnail-wrapper:hover .ripple {
  animation: ripple 2.5s infinite;
  opacity: 1;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/****************************************
 * アコーディオンカテゴリリスト（親＋子カテゴリ表示）
 ****************************************/
.sidebar-category-list .cat-parent {
  background-color: #8b1e3f;
  color: #fff;
  font-weight: bold;
  padding: 4px 10px;
  min-height: 40px;
  border-radius: 6px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
  position: relative;
  z-index: 0;
  cursor: pointer;
}

.sidebar-category-list .cat-parent:hover {
  background-color: #b0123a;
}

.sidebar-category-list .cat-parent .cat-label:hover {
  color: #fff;
}

.sidebar-category-list .cat-parent .toggle-btn {
  color: #fff;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  align-self: center;
  width: auto;
  flex-shrink: 0;
}

.sidebar-category-list .toggle-btn::after {
  content: '▶';
  display: inline-block;
  font-size: 14px;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  width: auto;
  align-self: center;
}

.sidebar-category-list .cat-item.open .toggle-btn::after {
  content: '▼';
}

.sidebar-category-list .cat-item.open .cat-parent {
  background-color: #6e0015;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-category-list .children {
  margin: 8px 0 0 0;
  padding-left: 0;
  display: none;
}

.sidebar-category-list .cat-item.open .children {
  display: block;
}

.sidebar-category-list .children a {
  display: block;
  padding: 6px 10px;
  color: #333;
  text-decoration: none;
  font-weight: normal;
  transition: all 0.2s ease;
  border-bottom: none;
}

.sidebar-category-list .children a:hover,
.sidebar-category-list .children a:focus {
  color: #8b001b;
  font-weight: bold;
  text-decoration: underline;
}

.sidebar-category-list .children .current-cat > a {
  color: #8b001b;
  font-weight: bold;
}

.sidebar-category-list .children a::before {
  content: '▶';
  display: inline-block;
  margin-right: 8px;
  color: #8b001b;
  font-size: 0.8em;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.sidebar-category-list .cat-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
  position: static !important;
}

/****************************************
 * 子カテゴリリンク（モデル以外）
 ****************************************/
.sidebar-category-list .children a {
  display: block;
  padding: 6px 10px;
  color: #333;
  text-decoration: none;
  font-weight: normal;
  transition: all 0.2s ease;
}

.sidebar-category-list .children a:hover,
.sidebar-category-list .children a:focus {
  color: #8b001b;
  font-weight: bold;
  text-decoration: underline;
}

/* 現在のカテゴリ */
.sidebar-category-list .children .current-cat > a {
  color: #8b001b;
  font-weight: bold;
}

/* ▶ アイコン */
.sidebar-category-list .children a::before {
  content: '▶';
  margin-right: 8px;
  color: #8b001b;
  font-size: 0.8em;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/****************************************
 * モデルカテゴリ（画像・名前をグリッド表示）
 ****************************************/

/* 子カテゴリリンク：モデルのみ非表示に */
.sidebar-category-list .children a.model-link::before {
  content: none !important;
}

/* モデル表示：画像付きグリッド */
.sidebar-category-list .children.model-grid li {
  list-style: none;
  text-align: center;
  padding-left: 0;
  margin-left: 0;
}

.sidebar-category-list .children.model-grid .model-thumb img {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.sidebar-category-list .children.model-grid .model-name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 2px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}

/* グリッド全体（開いてる時だけ表示） */
.sidebar-category-list .cat-item.open .children.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px 10px;
  justify-content: center;
}

/* child-category-gridにも適用されるモデル用調整 */
.child-category-grid.model-grid .grid-item {
  border: none;
  background: transparent;
  padding: 0;
  height: auto;
  flex-direction: column;
}

.child-category-grid.model-grid .grid-item img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 6px;
}

.child-category-grid.model-grid .grid-item .model-name {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  white-space: nowrap;
}

/****************************************
 * Glide.js スライダー全般
 ****************************************/

.main-visual-carousel .glide {
  position: relative;
}

.main-visual-carousel .glide__track,
.main-visual-carousel .glide__slides,
.main-visual-carousel .glide__slide {
  overflow: hidden;
}

.main-visual-carousel .glide__slides {
  display: flex;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.main-visual-carousel .glide__slide,
.main-visual-carousel .glide__slide--clone {
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.main-visual-carousel .glide__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.main-visual-carousel .glide__slide .entry-card-thumb {
  width: 100%;
  margin: 0 auto;
}

.main-visual-carousel .glide__slide .entry-card-thumb img,
.main-visual-carousel .glide__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-position: center;
}

.main-visual-carousel .glide__slide h2 {
  font-size: 22px;
  line-height: 1.4;
  color: #000 !important;
  padding: 0 !important;
  background: none !important;
  margin: 0 auto;
  max-width: 800px;
  white-space: normal;
  word-wrap: break-word;
  display: inline-block;
  text-align: left !important;
}

.main-visual-carousel .slide-caption {
  display: block;
  max-width: 800px !important;
  margin: 0.5em auto 0;
  padding: 0 0.5em !important;
  line-height: 1.4 !important;
}

.main-visual-carousel .glide__bullets {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 10px;
  position: relative;
  top: 0px;
}

.main-visual-carousel .glide__bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.main-visual-carousel .glide__bullet:focus {
  outline: none;
}
.main-visual-carousel .glide__bullet--active {
  background-color: #a28ecb;
}

.main-visual-carousel .glide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  border-radius: 5px;
  cursor: pointer;
}
.main-visual-carousel .glide__arrow--left {
  left: 10px;
}
.main-visual-carousel .glide__arrow--right {
  right: 10px;
}

/****************************************
 * ヘッダー＆ナビゲーション
 ****************************************/

#header {
  display: none;
}

#navi-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navi-in > ul li {
  width: 100px;
}

.menu-header .item-label {
  font-size: 14px;
}

.menu-header .caption-wrap {
  padding: 0.3em 0.5em;
  width: 110% !important;
}

.header-container nav {
  margin-top: 0.5em;
}

/****************************************
 * 検索フォーム（ヘッダー右側）
 ****************************************/
.header-search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  margin-right: 10px;
  flex-shrink: 0;
  max-width: 350px;
  width: 305px;
}

.header-search-form input[type='text'] {
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.header-search-form button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #8b1e3f;
  font-size: 16px;
}

/****************************************
 * フッター全体
 ****************************************/
.footer {
  padding: 0;
}

#footer-in {
  padding-bottom: 0;
}

.footer-bottom {
  padding: 5px 0;
  font-size: 12px;
}

.footer-bottom-logo {
  display: none;
}

.footer-widgets {
  line-height: 1.3;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin: 0 auto;
}

/****************************************
 * フッター メニュー（ナビゲーション）
 ****************************************/
.footer-widgets .widget_nav_menu {
  margin: 5px 0 10px;
}

.footer-widgets .widget_nav_menu ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.footer-widgets .widget_nav_menu li {
  display: inline-block;
  margin: 5px 8px;
  padding: 0;
}

.footer-widgets .widget_nav_menu a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}

.footer-widgets .widget_nav_menu .sub-menu {
  display: none;
}

/****************************************
 * フッター下部の著作権表記
 ****************************************/
#footer-in .footer-bottom-content {
  font-size: 11px !important;
  float: none !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1em;
}

/*========================================
  = 作品ダイジェスト画像ギャラリー（2列表示） =
  ========================================*/
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1em;
}

.gallery a {
  display: block;
  width: 100%;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*=======================================
 = 横向きタブレット・小型ノートPC向けスタイル =
   ※ 画面幅が 1024px 以上 1140px 以下の範囲に適用
=======================================*/
@media (max-width: 1140px) and (min-width: 1024px) {
  /****************************************
   * レイアウト（メイン・サイドバー・コンテンツ全体）
   ****************************************/
  .main {
    display: block;
    width: 70% !important;
  }

  .sidebar {
    width: 30% !important;
  }

  #content {
    width: 100% !important;
  }

  #content-in {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .main,
  .sidebar {
    display: block !important;
  }

  /****************************************
   * clearfix対応
   ****************************************/
  .cf::after,
  #content::after {
    content: '';
    display: table;
    clear: both;
  }

  /****************************************
   * グローバルナビゲーションの横スクロール対応
   ****************************************/
  #navi-in {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #navi-in > ul.menu-header.menu-pc {
    overflow-x: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    min-width: max-content !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  #navi-in > ul.menu-header.menu-pc::-webkit-scrollbar {
    display: none !important;
  }

  #navi-in > ul.menu-header.menu-pc > li {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    width: auto !important;
  }

  /****************************************
   * サイドバー内カテゴリリストの調整
   ****************************************/
  .sidebar-category-list .children li {
    padding-left: 0 !important;
  }

  /*========================================
  = 作品ダイジェスト画像ギャラリー（2列表示） =
  ========================================*/
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1em;
  }

  .gallery a {
    display: block;
    width: 100%;
  }

  .gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
}

/*=======================================
 = タブレット縦向き・iPad mini・大型スマホ対応 =
   ※ 画面幅が 1023px 以下すべての端末に適用
=======================================*/
@media (max-width: 1023px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block;
    width: 100%;
    padding: 0.5em;
    font-size: 1em;
  }

  /****************************************
   * ヘッダー（ロゴ・ナビゲーションなど）
   ****************************************/
  .global-nav,
  .main-menu,
  #navi-in > ul.menu-header.menu-pc,
  .tagline,
  #sidebar,
  .footer-left,
  .footer-right,
  .header-search-form {
    display: none !important;
  }

  #header {
    display: block;
    padding: 0 !important;
  }

  .logo-image {
    padding: 0;
  }

  .logo-image img {
    width: 70px;
  }

  /****************************************
   * レイアウト（メイン・サイドバー）
   ****************************************/
  .main,
  .sidebar {
    width: 100% !important;
  }

  /****************************************
   * ドロワーメニュー（スマホ風メニュー）
   ****************************************/
  .menu-drawer {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-drawer .menu-item a {
    display: block;
    background-color: #8b001b;
    color: #fff;
    padding: 10px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .menu-drawer .menu-item a:hover {
    background-color: #a30e2c;
    color: #fff;
  }

  /****************************************
   * スライダー（Glide.js用調整）
   ****************************************/
  .main-visual-carousel .glide__slides {
    display: flex;
    gap: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-visual-carousel .glide__slide,
  .main-visual-carousel .glide__slide--clone {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .main-visual-carousel .glide__slide .entry-card-thumb img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .main-visual-carousel .glide__bullets {
    margin-top: 3rem;
  }

  .main-visual-carousel .glide__slide .slide-caption {
    font-size: 14.5px;
    line-height: 1.4;
    margin-top: 0.5em;
    padding: 0 0.5em;
  }

  /****************************************
   * コンテンツ（見出し・記事タイトルなど）
   ****************************************/
  #list h2 {
    margin: 5px 0;
  }

  h2.entry-card-title.card-title {
    font-size: 13.5px !important;
  }

  /****************************************
   * フッターエリア全般
   ****************************************/
  .footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-widgets .widget_nav_menu {
    margin: 5px 0 0;
  }

  .footer-widgets,
  .footer-widgets .widget_nav_menu,
  .footer-widgets .widget_nav_menu ul,
  .footer-widgets .widget_nav_menu li {
    display: block !important;
    overflow: visible !important;
    visibility: visible !important;
    height: auto !important;
  }

  #nav_menu-3 ul,
  #nav_menu-4 ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
  }

  #nav_menu-3 li,
  #nav_menu-4 li {
    margin: 0;
  }

  #nav_menu-3 a,
  #nav_menu-4 a {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
  }

  #nav_menu-3 a:hover,
  #nav_menu-4 a:hover {
    text-decoration: underline;
  }

  .footer-bottom-content {
    font-size: 10px;
    display: block !important;
    text-align: center;
  }

  /****************************************
   * サイドバー内カテゴリ表示の調整
   ****************************************/
  .sidebar-category-list .cat-item.open .children.model-grid {
    justify-content: center;
    padding: 0 10px;
  }

  .sidebar-category-list .children li {
    padding-left: 0;
  }
}

/*=======================================
 = スマートフォン縦向き専用スタイル =
   ※ 画面幅が 480px 以下のスマホに適用
=======================================*/
@media screen and (max-width: 480px) {
  /*========================================
  = 作品ダイジェスト画像ギャラリー（1列表示） =
  ========================================*/
  .gallery {
    grid-template-columns: 1fr;
  }
}
